/* ──────────────────────────────────────────────────────────────
   Sp4ce Machines — Apple-inspired design system
   Extracted from sp4ce-shop-apple.html (approved design)
   ────────────────────────────────────────────────────────────── */

/* ── RESET & TOKENS ────────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
:root {
  --white: #ffffff;
  --off-white: #f5f5f7;
  --surface: #fbfbfd;
  --gray-1: #f5f5f7;
  --gray-2: #e8e8ed;
  --gray-3: #d2d2d7;
  --gray-4: #86868b;
  --gray-5: #6e6e73;
  --gray-6: #1d1d1f;
  --black: #000000;
  --blue: #0071e3;
  --blue-dark: #0077ed;
  --blue-light: #2997ff;
  --red: #ff3b30;
  --green: #34c759;
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'DM Serif Display', Georgia, serif;
  --nav-h: 52px;
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--gray-6);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { font-family: var(--font); border: none; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

/* ── SCROLLBAR ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-1); }
::-webkit-scrollbar-thumb { background: var(--gray-3); border-radius: 3px; }

/* ── NAV ───────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  height: var(--nav-h);
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
  transition: background 0.3s;
}
nav.scrolled { background: rgba(255,255,255,0.95); }
.nav-logo {
  font-family: var(--font);
  font-weight: 700; font-size: 17px;
  color: var(--gray-6); letter-spacing: -0.3px;
}
.nav-logo span { color: var(--blue); }
.nav-center {
  display: flex; gap: 28px; list-style: none;
  position: absolute; left: 50%; transform: translateX(-50%);
}
.nav-center a {
  font-size: 13px; font-weight: 400; color: var(--gray-5);
  transition: color 0.15s; letter-spacing: 0;
}
.nav-center a:hover, .nav-center a.active { color: var(--gray-6); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-btn {
  padding: 7px 16px;
  background: var(--blue);
  color: white; font-size: 13px; font-weight: 500;
  border-radius: 20px;
  transition: background 0.15s, transform 0.15s;
}
.nav-btn:hover { background: var(--blue-dark); transform: scale(1.02); }
.burger {
  display: none; flex-direction: column; gap: 4px;
  background: none; padding: 4px;
}
.burger span {
  width: 18px; height: 1.5px; background: var(--gray-6);
  border-radius: 1px; display: block; transition: all 0.25s;
}
.burger.open span:nth-child(1) { transform: rotate(45deg) translate(4px,4px); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px,-4px); }

/* Mobile drawer */
.drawer {
  position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  z-index: 998;
  transform: translateY(-4px); opacity: 0; pointer-events: none;
  transition: all 0.25s var(--ease-out);
  padding: 24px;
  display: flex; flex-direction: column; gap: 0;
}
.drawer.open { transform: translateY(0); opacity: 1; pointer-events: all; }
.drawer a {
  font-size: 17px; font-weight: 400; color: var(--gray-6);
  padding: 14px 0; border-bottom: 1px solid var(--gray-2);
  display: block;
}
.drawer .d-cta {
  margin-top: 20px;
  background: var(--blue); color: white;
  text-align: center; padding: 14px; border-radius: 12px;
  font-weight: 600; font-size: 15px;
}

/* ── HERO ──────────────────────────────────────────────── */
.hero {
  padding-top: var(--nav-h);
  min-height: 100svh;
  background: var(--black);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 50% 110%, rgba(0,113,227,0.35) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 20% 20%, rgba(255,255,255,0.04) 0%, transparent 50%);
}
.hero-eyebrow {
  font-size: clamp(12px,2vw,15px); font-weight: 500; letter-spacing: 0.05em;
  color: var(--blue-light); margin-bottom: 20px; text-transform: uppercase;
  opacity: 0; animation: fadeUp 0.9s 0.2s var(--ease-out) forwards;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 8vw, 96px);
  font-weight: 400; line-height: 1.04; letter-spacing: -0.02em;
  color: #f5f5f7;
  margin-bottom: 24px;
  opacity: 0; animation: fadeUp 0.9s 0.4s var(--ease-out) forwards;
}
.hero-title em { font-style: italic; color: rgba(255,255,255,0.5); }
.hero-sub {
  font-size: clamp(16px,2.5vw,21px); font-weight: 300;
  color: rgba(255,255,255,0.6); line-height: 1.6;
  max-width: 580px; margin: 0 auto 40px;
  opacity: 0; animation: fadeUp 0.9s 0.6s var(--ease-out) forwards;
}
.hero-btns {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 0.9s 0.8s var(--ease-out) forwards;
}
.btn-primary {
  padding: 14px 28px;
  background: var(--blue); color: white;
  font-size: 15px; font-weight: 500; border-radius: 980px;
  transition: all 0.2s; display: inline-block;
  box-shadow: 0 4px 20px rgba(0,113,227,0.4);
}
.btn-primary:hover { background: var(--blue-dark); transform: scale(1.02); box-shadow: 0 6px 28px rgba(0,113,227,0.5); }
.btn-ghost {
  padding: 14px 28px;
  background: rgba(255,255,255,0.1);
  color: white; font-size: 15px; font-weight: 500; border-radius: 980px;
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.2s; display: inline-block;
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.15); transform: scale(1.02); }
.btn-secondary {
  padding: 12px 24px;
  background: var(--gray-1); color: var(--gray-6);
  font-size: 14px; font-weight: 500; border-radius: 980px;
  border: 1px solid var(--gray-2);
  transition: all 0.2s; display: inline-block;
}
.btn-secondary:hover { background: var(--gray-2); }

/* Hero machine visual */
.hero-machine-wrap {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: min(700px,90vw); opacity: 0;
  animation: heroMachineIn 1.4s 1s var(--ease-out) forwards;
}
@keyframes heroMachineIn {
  from { opacity:0; transform: translateX(-50%) translateY(60px); }
  to   { opacity:1; transform: translateX(-50%) translateY(0); }
}
.hero-machine-img {
  width: 100%; height: 340px;
  display: flex; align-items: flex-end; justify-content: center;
  position: relative;
}
.machine-silhouette {
  width: 280px; height: 320px;
  background: linear-gradient(160deg, #1a1a2e 0%, #0a0a14 100%);
  border-radius: 20px 20px 8px 8px;
  position: relative;
  box-shadow: 0 -40px 120px rgba(0,113,227,0.3), 0 0 0 1px rgba(255,255,255,0.06);
  overflow: hidden;
}
.machine-silhouette img,
.machine-silhouette .hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; padding: 0;
}
/* Slight inner border so the video edges don't look raw against the frame */
.machine-silhouette .hero-video {
  border-radius: 18px 18px 6px 6px;
}
.machine-glow {
  position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%);
  width: 300px; height: 60px;
  background: radial-gradient(ellipse, rgba(0,113,227,0.5) 0%, transparent 70%);
  filter: blur(20px);
}
.hero-scroll-hint {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.3); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0; animation: fadeUp 1s 1.8s forwards;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  animation: scrollPulse 2s infinite;
}
@keyframes scrollPulse { 0%,100%{opacity:0.3;transform:scaleY(1)} 50%{opacity:1;transform:scaleY(1.2)} }

/* ── PAGE HEAD (small hero used on subpages) ──────────── */
.page-head {
  padding: calc(var(--nav-h) + 80px) 24px 60px;
  background: var(--off-white);
  border-bottom: 1px solid var(--gray-2);
  text-align: center;
}
.page-head .eyebrow { color: var(--blue); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
.page-head h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 64px); font-weight: 400; line-height: 1.1;
  letter-spacing: -0.02em; color: var(--gray-6);
}
.page-head h1 em { font-style: italic; color: var(--gray-4); }
.page-head p { color: var(--gray-5); margin-top: 16px; font-size: 17px; max-width: 640px; margin-left: auto; margin-right: auto; line-height: 1.6; }

/* ── STATS BAR ─────────────────────────────────────────── */
.stats-bar {
  background: var(--off-white);
  padding: 48px 24px;
  border-bottom: 1px solid var(--gray-2);
}
.stats-inner {
  max-width: 960px; margin: 0 auto;
  display: flex; justify-content: space-around; gap: 24px; flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(36px,5vw,56px); font-weight: 400; line-height: 1;
  color: var(--gray-6); margin-bottom: 8px; letter-spacing: -0.02em;
}
.stat-num span { color: var(--blue); }
.stat-label { font-size: 13px; color: var(--gray-4); letter-spacing: 0.01em; }

/* ── SECTION COMMONS ───────────────────────────────────── */
.section { padding: 100px 24px; max-width: 1200px; margin: 0 auto; }
.section-full { padding: 100px 0; }
.section-label {
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--blue);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px,5vw,60px); font-weight: 400; line-height: 1.1;
  letter-spacing: -0.02em; color: var(--gray-6); margin-bottom: 20px;
}
.section-title em { font-style: italic; color: var(--gray-4); }
.section-body {
  font-size: clamp(16px,2vw,19px); font-weight: 300;
  color: var(--gray-5); line-height: 1.65; max-width: 600px;
}

/* ── SCROLL REVEAL ─────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-32px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(32px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ── FEATURED HERO PRODUCT ─────────────────────────────── */
.hero-product {
  background: var(--black);
  padding: 120px 24px;
  text-align: center;
  position: relative; overflow: hidden;
}
.hero-product-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 80%, rgba(0,113,227,0.2) 0%, transparent 60%);
}
.hero-product-label {
  font-size: 13px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--blue-light);
  margin-bottom: 16px; position: relative; z-index: 1;
}
.hero-product-title {
  font-family: var(--font-display);
  font-size: clamp(40px,7vw,80px); font-weight: 400;
  color: #f5f5f7; line-height: 1.05; letter-spacing: -0.02em;
  margin-bottom: 16px; position: relative; z-index: 1;
}
.hero-product-sub {
  font-size: clamp(18px,2.5vw,24px); font-weight: 300;
  color: rgba(255,255,255,0.5); margin-bottom: 40px;
  position: relative; z-index: 1;
}
.hero-product-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }
.btn-link {
  font-size: 15px; font-weight: 500; color: var(--blue-light);
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap 0.2s; cursor: pointer;
}
.btn-link:hover { gap: 10px; }
.btn-link::after { content: '→'; }

/* Machine showcase */
.product-showcase {
  max-width: 600px; margin: 60px auto 0;
  position: relative; z-index: 1;
}
.showcase-img {
  width: 100%; aspect-ratio: 4/3;
  background: linear-gradient(145deg, #111128, #060610);
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 60px 120px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.04);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  position: relative;
}
.showcase-img img {
  width: 100%; height: 100%; object-fit: contain; padding: 32px;
  transition: transform 0.6s var(--ease-out);
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
}
.showcase-img:hover img { transform: scale(1.03) translateY(-4px); }
.showcase-img::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 80px;
  background: linear-gradient(to top, #060610, transparent);
  pointer-events: none;
}
.showcase-glow {
  position: absolute; bottom: -40px; left: 50%; transform: translateX(-50%);
  width: 80%; height: 100px;
  background: radial-gradient(ellipse, rgba(0,113,227,0.4) 0%, transparent 70%);
  filter: blur(30px);
}

/* ── PRODUCT GRID ──────────────────────────────────────── */
.product-section {
  background: var(--off-white);
  padding: 80px 0;
}
.product-section-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.product-section-header { text-align: center; margin-bottom: 60px; }

.cat-row {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 48px;
}
.cat-pill {
  padding: 8px 18px; border-radius: 980px;
  font-size: 13px; font-weight: 500;
  background: var(--white); color: var(--gray-5);
  border: 1px solid var(--gray-2);
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.cat-pill.active, .cat-pill:hover {
  background: var(--blue); color: white; border-color: var(--blue);
}

.pgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px,100%), 1fr));
  gap: 20px;
}

.pcard {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--gray-2);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
  opacity: 0; transform: translateY(24px);
  cursor: pointer;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
}
.pcard.visible { animation: cardIn 0.5s var(--ease-out) forwards; }
.pcard:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.1); }
.pcard.hidden { display: none; }
@keyframes cardIn { to { opacity:1; transform:translateY(0); } }

.pcard-img {
  aspect-ratio: 4/3;
  background: var(--off-white);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.pcard-img img {
  width: 100%; height: 100%; object-fit: contain;
  padding: 0; transition: transform 0.4s var(--ease-out);
}
.pcard:hover .pcard-img img { transform: scale(1.04); }

.pcard-badge {
  position: absolute; top: 14px; left: 14px;
  padding: 4px 10px; border-radius: 980px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
  z-index: 2;
}
.badge-new { background: var(--blue); color: white; }
.badge-hot { background: var(--red); color: white; }
.badge-roi { background: var(--green); color: white; }

.pcard-body { padding: 20px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.pcard-cat { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.pcard-name { font-size: 17px; font-weight: 600; color: var(--gray-6); margin-bottom: 6px; letter-spacing: -0.01em; line-height: 1.3; }
.pcard-desc { font-size: 13px; color: var(--gray-4); line-height: 1.5; margin-bottom: 16px; flex: 1; }
.pcard-specs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 20px;
}
.spec { background: var(--off-white); border-radius: 8px; padding: 8px 10px; }
.spec-l { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-4); display: block; margin-bottom: 2px; }
.spec-v { font-size: 13px; font-weight: 500; color: var(--gray-6); }
.pcard-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--gray-1); padding-top: 16px; gap: 12px; }
.price-on-request { font-size: 13px; font-weight: 500; color: var(--gray-4); letter-spacing: 0.01em; }
.pcard-btn {
  padding: 9px 20px;
  background: var(--blue); color: white;
  font-size: 13px; font-weight: 500; border-radius: 980px;
  transition: all 0.2s; white-space: nowrap;
}
.pcard-btn:hover { background: var(--blue-dark); transform: scale(1.03); }

/* ── THREE UP FEATURE TILES ────────────────────────────── */
.tiles { background: var(--white); }
.tiles-inner { max-width: 1200px; margin: 0 auto; padding: 80px 24px; }
.tiles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px,100%),1fr)); gap: 16px; }
.tile {
  border-radius: 24px; overflow: hidden; position: relative;
  aspect-ratio: 3/4; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 32px;
  transition: transform 0.3s var(--ease-out);
  text-decoration: none;
}
.tile:hover { transform: scale(1.01); }
.tile-dark { background: var(--black); }
.tile-blue { background: #001d3d; }
.tile-gray { background: var(--gray-1); }
.tile-img {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 24px 80px;
}
.tile-img img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4)); transition: transform 0.6s var(--ease-out); }
.tile:hover .tile-img img { transform: scale(1.04) translateY(-6px); }
.tile-content { position: relative; z-index: 1; }
.tile-label { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px; }
.tile-dark .tile-label, .tile-blue .tile-label { color: rgba(255,255,255,0.5); }
.tile-gray .tile-label { color: var(--gray-4); }
.tile-name { font-family: var(--font-display); font-size: clamp(22px,3vw,30px); font-weight: 400; line-height: 1.2; margin-bottom: 12px; }
.tile-dark .tile-name, .tile-blue .tile-name { color: white; }
.tile-gray .tile-name { color: var(--gray-6); }
.tile-link { font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; transition: gap 0.2s; cursor: pointer; }
.tile-dark .tile-link, .tile-blue .tile-link { color: rgba(255,255,255,0.7); }
.tile-gray .tile-link { color: var(--blue); }
.tile-link:hover { gap: 8px; }
.tile-link::after { content: '→'; }
.tile-dark::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 50%); pointer-events: none; }
.tile-blue::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,29,61,0.9) 0%, transparent 50%); pointer-events: none; }
.tile-gray::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, var(--gray-1) 0%, transparent 50%); pointer-events: none; }

/* ── OPERATOR SECTION ──────────────────────────────────── */
.operator-section {
  background: var(--off-white);
  border-top: 1px solid var(--gray-2);
  border-bottom: 1px solid var(--gray-2);
}
.operator-inner {
  max-width: 1100px; margin: 0 auto; padding: 100px 24px;
  display: flex; gap: 80px; align-items: center; flex-wrap: wrap;
}
.op-text { flex: 1; min-width: min(300px, 100%); }
.op-headline {
  font-family: var(--font-display);
  font-size: clamp(28px,4vw,48px); font-weight: 400; line-height: 1.15;
  letter-spacing: -0.02em; color: var(--gray-6); margin-bottom: 20px;
}
.op-headline em { font-style: italic; color: var(--gray-4); }
.op-body { font-size: 17px; font-weight: 300; color: var(--gray-5); line-height: 1.65; margin-bottom: 32px; }
.op-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.op-stat strong { display: block; font-family: var(--font-display); font-size: 36px; color: var(--gray-6); letter-spacing: -0.02em; }
.op-stat strong span { color: var(--blue); }
.op-stat small { font-size: 13px; color: var(--gray-4); letter-spacing: 0.01em; }
.op-card {
  flex: 0 0 min(320px, 100%);
  background: var(--white); border-radius: 20px;
  border: 1px solid var(--gray-2);
  padding: 28px; text-align: center;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.op-card-icon { font-size: 40px; margin-bottom: 16px; }
.op-card-name { font-size: 17px; font-weight: 600; color: var(--gray-6); margin-bottom: 4px; }
.op-card-loc { font-size: 13px; color: var(--gray-4); margin-bottom: 20px; }
.op-dots { display: grid; grid-template-columns: repeat(6,1fr); gap: 6px; margin-bottom: 16px; }
.op-dot { height: 4px; border-radius: 2px; animation: dotPulse 2s infinite; }
.op-dot:nth-child(odd) { background: var(--blue); }
.op-dot:nth-child(even) { background: var(--gray-2); }
@keyframes dotPulse { 0%,100%{opacity:0.4} 50%{opacity:1} }
.op-card-link { font-size: 13px; font-weight: 500; color: var(--blue); }

/* ── B2B SECTION ───────────────────────────────────────── */
.b2b-section { background: var(--white); padding: 100px 0; }
.b2b-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.b2b-header { text-align: center; margin-bottom: 64px; }
.b2b-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px,100%),1fr));
  gap: 2px; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--gray-2);
}
.b2b-item {
  background: var(--white); padding: 36px 32px;
  border-right: 1px solid var(--gray-2);
  border-bottom: 1px solid var(--gray-2);
  transition: background 0.2s;
}
.b2b-item:hover { background: var(--off-white); }
.b2b-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--off-white); display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px;
  border: 1px solid var(--gray-2);
}
.b2b-name { font-size: 15px; font-weight: 600; color: var(--gray-6); margin-bottom: 8px; }
.b2b-desc { font-size: 14px; color: var(--gray-4); line-height: 1.55; }

/* ── CTA ───────────────────────────────────────────────── */
.cta-section {
  background: var(--black);
  padding: 120px 24px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(0,113,227,0.25) 0%, transparent 60%);
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(36px,6vw,72px); font-weight: 400;
  color: #f5f5f7; line-height: 1.08; letter-spacing: -0.02em;
  margin-bottom: 20px; position: relative; z-index: 1;
}
.cta-sub {
  font-size: clamp(16px,2.5vw,21px); font-weight: 300;
  color: rgba(255,255,255,0.5); max-width: 560px; margin: 0 auto 40px;
  line-height: 1.6; position: relative; z-index: 1;
}
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* ── FOOTER ────────────────────────────────────────────── */
footer {
  background: var(--off-white);
  border-top: 1px solid var(--gray-2);
  padding: 40px 24px 60px;
  font-size: 12px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr));
  gap: 32px; margin-bottom: 32px; padding-bottom: 32px;
  border-bottom: 1px solid var(--gray-2);
}
.footer-col h4 { font-size: 12px; font-weight: 600; color: var(--gray-6); margin-bottom: 12px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--gray-4); transition: color 0.15s; font-size: 12px; }
.footer-col a:hover { color: var(--gray-6); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px; color: var(--gray-4);
}
.footer-bottom a { color: var(--gray-4); }
.footer-bottom a:hover { color: var(--gray-6); }

/* ── MODAL ─────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(20px);
  display: none; align-items: flex-end; justify-content: center;
  padding: 0;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--white); border-radius: 24px 24px 0 0;
  width: 100%; max-width: 540px;
  padding: 8px 24px 40px;
  max-height: 92vh; overflow-y: auto;
  position: relative;
}
@media (min-width: 700px) {
  .modal-overlay { align-items: center; padding: 24px; }
  .modal-box { border-radius: 24px; }
}
.modal-handle { width: 36px; height: 4px; background: var(--gray-2); border-radius: 2px; margin: 12px auto 20px; }
.modal-title { font-size: 22px; font-weight: 600; color: var(--gray-6); margin-bottom: 6px; padding-right: 32px; }
.modal-sub { font-size: 14px; color: var(--gray-4); margin-bottom: 24px; line-height: 1.5; }
.modal-inp {
  width: 100%; padding: 14px 16px;
  background: var(--off-white); border: 1px solid var(--gray-2);
  border-radius: 12px; font-family: var(--font); font-size: 16px; color: var(--gray-6);
  outline: none; transition: border-color 0.2s; -webkit-appearance: none;
}
.modal-inp:focus { border-color: var(--blue); }
.modal-close {
  position: absolute; top: 20px; right: 20px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--gray-1); color: var(--gray-5);
  font-size: 16px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none; transition: background 0.15s;
}
.modal-close:hover { background: var(--gray-2); }
.modal-submit {
  width: 100%; padding: 16px;
  background: var(--blue); color: white;
  font-size: 16px; font-weight: 600; border-radius: 14px;
  margin-top: 8px; transition: background 0.2s;
}
.modal-submit:hover { background: var(--blue-dark); }
.modal-checkbox-row { display: flex; align-items: flex-start; gap: 10px; margin-top: 4px; font-size: 12px; color: var(--gray-5); line-height: 1.4; }
.modal-checkbox-row input { margin-top: 2px; flex-shrink: 0; }
.modal-checkbox-row a { color: var(--blue); }

/* ── STICKY MOBILE BAR ─────────────────────────────────── */
.sticky-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 500;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(20px);
  border-top: 1px solid var(--gray-2); padding: 10px 16px; gap: 8px;
  transform: translateY(100%); transition: transform 0.3s var(--ease-out);
}
.sticky-bar.show { transform: translateY(0); }
.sticky-bar a {
  flex: 1; padding: 13px 8px; text-align: center;
  font-size: 13px; font-weight: 600; border-radius: 10px; display: block;
}
.sb-main { background: var(--blue); color: white; }
.sb-sec { background: var(--gray-1); color: var(--gray-6); }

/* ── COOKIE BANNER ─────────────────────────────────────── */
.cookie-banner {
  position: fixed; bottom: 16px; left: 16px; right: 16px;
  max-width: 600px; margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--gray-2);
  border-radius: 16px;
  padding: 20px;
  z-index: 600;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  transform: translateY(120%); opacity: 0;
  transition: transform 0.4s var(--ease-out), opacity 0.4s;
}
.cookie-banner.show { transform: translateY(0); opacity: 1; }
.cookie-banner p { font-size: 13px; color: var(--gray-5); line-height: 1.5; margin-bottom: 14px; }
.cookie-banner p a { color: var(--blue); }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-btn {
  padding: 9px 16px; border-radius: 980px; font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all 0.15s;
}
.cookie-accept { background: var(--blue); color: white; flex: 1; min-width: 120px; }
.cookie-accept:hover { background: var(--blue-dark); }
.cookie-reject { background: var(--gray-1); color: var(--gray-6); border: 1px solid var(--gray-2); flex: 1; min-width: 120px; }
.cookie-reject:hover { background: var(--gray-2); }
@media (min-width: 600px) {
  .cookie-banner { display: flex; align-items: center; gap: 20px; }
  .cookie-banner p { margin-bottom: 0; flex: 1; }
  .cookie-actions { flex: 0 0 auto; }
  .cookie-accept, .cookie-reject { min-width: 100px; }
}

/* ── PRODUCT DETAIL PAGE ───────────────────────────────── */
.pdp {
  padding: calc(var(--nav-h) + 40px) 24px 80px;
  max-width: 1200px; margin: 0 auto;
}
.pdp-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--gray-5); margin-bottom: 32px;
  transition: color 0.15s;
}
.pdp-back:hover { color: var(--gray-6); }
.pdp-back::before { content: '←'; }
.pdp-grid {
  display: grid; grid-template-columns: 1fr; gap: 48px;
}
@media (min-width: 880px) {
  .pdp-grid { grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
}
.pdp-media {
  background: var(--off-white);
  border-radius: 24px;
  border: 1px solid var(--gray-2);
  aspect-ratio: 4/3;
  overflow: hidden; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.pdp-media img { width: 100%; height: 100%; object-fit: contain; }
.pdp-info { padding-top: 8px; }
.pdp-cat { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.pdp-title {
  font-family: var(--font-display);
  font-size: clamp(32px,5vw,52px); font-weight: 400; line-height: 1.1;
  letter-spacing: -0.02em; color: var(--gray-6); margin-bottom: 16px;
}
.pdp-vendor { font-size: 13px; color: var(--gray-4); margin-bottom: 20px; }
.pdp-vendor strong { color: var(--gray-6); font-weight: 500; }
.pdp-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.pdp-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; background: var(--off-white);
  border: 1px solid var(--gray-2); border-radius: 980px;
  font-size: 12px; color: var(--gray-6); font-weight: 500;
}
.pdp-badge.live { background: rgba(52, 199, 89, 0.08); color: #1a8c3f; border-color: rgba(52, 199, 89, 0.2); }
.pdp-desc { font-size: 16px; color: var(--gray-5); line-height: 1.7; margin-bottom: 24px; }
.pdp-desc ul { margin-top: 8px; padding-left: 20px; }
.pdp-desc li { margin-bottom: 4px; }
.pdp-price-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; border-top: 1px solid var(--gray-2); border-bottom: 1px solid var(--gray-2);
  margin-bottom: 24px;
}
.pdp-price-label { font-size: 11px; color: var(--gray-4); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px; }
.pdp-price-val { font-size: 24px; font-weight: 600; color: var(--gray-6); }
.pdp-cta {
  width: 100%;
  padding: 16px 28px;
  background: var(--blue); color: white;
  font-size: 16px; font-weight: 500; border-radius: 980px;
  transition: all 0.2s; display: block; text-align: center;
  box-shadow: 0 4px 20px rgba(0,113,227,0.3);
}
.pdp-cta:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(0,113,227,0.4); }
.pdp-meta { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pdp-meta-item { padding: 16px; background: var(--off-white); border-radius: 12px; }
.pdp-meta-item .lbl { font-size: 11px; color: var(--gray-4); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.pdp-meta-item .val { font-size: 14px; font-weight: 500; color: var(--gray-6); }

/* ── LEGAL / TEXT PAGES ────────────────────────────────── */
.legal {
  padding: calc(var(--nav-h) + 60px) 24px 100px;
  max-width: 760px; margin: 0 auto;
  font-size: 15px; line-height: 1.7; color: var(--gray-5);
}
.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(32px,5vw,48px); font-weight: 400; color: var(--gray-6);
  letter-spacing: -0.02em; line-height: 1.15;
  margin-bottom: 12px;
}
.legal h2 {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 400; color: var(--gray-6);
  margin-top: 48px; margin-bottom: 16px;
}
.legal h3 {
  font-size: 16px; font-weight: 600; color: var(--gray-6);
  margin-top: 24px; margin-bottom: 8px;
}
.legal p { margin-bottom: 16px; }
.legal ul, .legal ol { margin: 12px 0 16px 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--blue); }
.legal a:hover { text-decoration: underline; }
.legal-meta { font-size: 13px; color: var(--gray-4); margin-bottom: 32px; }
.legal-callout {
  background: var(--off-white);
  border: 1px solid var(--gray-2);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 13px;
  color: var(--gray-5);
  margin: 24px 0;
}
.legal-callout strong { color: var(--gray-6); }

/* Contact form */
.contact-grid {
  display: grid; grid-template-columns: 1fr; gap: 40px;
  max-width: 1000px; margin: 0 auto;
}
@media (min-width: 800px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 60px; } }
.contact-form { display: flex; flex-direction: column; gap: 12px; }
.contact-form label { font-size: 13px; color: var(--gray-5); margin-bottom: -4px; }
.contact-info-block { display: flex; flex-direction: column; gap: 20px; }
.contact-info-item h4 { font-size: 11px; font-weight: 600; color: var(--gray-4); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.contact-info-item p { font-size: 16px; color: var(--gray-6); line-height: 1.5; }
.contact-info-item a { color: var(--blue); }

/* ── ANIMATIONS ────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(24px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-center { display: none; }
  .burger { display: flex; }
  .nav-right .nav-btn { display: none; }
  .hero-machine-wrap { display: none; }
  .tiles-grid { grid-template-columns: 1fr; }
  .tile { aspect-ratio: 4/3; }
  .operator-inner { gap: 40px; padding: 60px 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .sticky-bar { display: flex; }
  footer { padding-bottom: 90px; }
  .b2b-grid { grid-template-columns: 1fr; }
  .pdp-meta { grid-template-columns: 1fr; }
  .section { padding: 60px 24px; }
}
@media (min-width: 769px) {
  .b2b-grid { grid-template-columns: repeat(3,1fr); }
}
