/* ═══════════════════════════════════════════
   RESET & BASE
════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-900: #1e3a8a;
  --blue-800: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-100: #dbeafe;
  --blue-50:  #eff6ff;
  --white:    #ffffff;
  --gray-50:  #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(30,58,138,.10);
  --shadow-lg: 0 8px 40px rgba(30,58,138,.14);
  --radius:    12px;
  --radius-lg: 20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--gray-800);
  background: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background .2s ease;
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ═══════════════════════════════════════════
   TYPOGRAPHY HELPERS
════════════════════════════════════════════ */
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue-600);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: 100px;
  padding: 4px 14px;
  margin-bottom: 16px;
}
.section-label.light {
  color: var(--blue-100);
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.2);
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--gray-800);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--gray-600);
  max-width: 580px;
  margin: 0 auto 56px;
  text-align: center;
}

.text-blue { color: var(--blue-600); }

/* ═══════════════════════════════════════════
   BUTTONS
════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--blue-600);
  color: var(--white);
  border-color: var(--blue-600);
  box-shadow: 0 4px 14px rgba(37,99,235,.35);
}
.btn--primary:hover {
  background: var(--blue-800);
  border-color: var(--blue-800);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,99,235,.4);
}

.btn--outline {
  background: transparent;
  color: var(--blue-600);
  border-color: var(--blue-200, #bfdbfe);
}
.btn--outline:hover {
  background: var(--blue-50);
  border-color: var(--blue-600);
}

.btn--full { width: 100%; justify-content: center; }

/* ═══════════════════════════════════════════
   IMAGE PLACEHOLDERS
════════════════════════════════════════════ */
.img-placeholder {
  background: var(--blue-50);
  border: 2px dashed var(--blue-200, #bfdbfe);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-placeholder__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 32px;
  text-align: center;
  color: var(--blue-500);
}

.img-placeholder__inner svg  { width: 64px; opacity: .6; }
.img-placeholder__inner span { font-size: 14px; font-weight: 600; color: var(--blue-600); }
.img-placeholder__inner small{ font-size: 11px; color: var(--gray-400); }

/* ═══════════════════════════════════════════
   NAV
════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
  transition: box-shadow .2s;
}
.nav.scrolled { box-shadow: var(--shadow-md); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__logo-icon {
  width: 40px; height: 40px;
  background: var(--blue-600);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.nav__logo-icon img { width: 100%; height: 100%; object-fit: cover; }
.nav__logo-icon.small { width: 32px; height: 32px; border-radius: 8px; }

.logo-fallback {
  color: white;
  font-weight: 800;
  font-size: 18px;
  display: none;
}

.nav__logo-text {
  font-size: 20px;
  font-weight: 600;
  color: var(--gray-800);
}
.nav__logo-text strong { color: var(--blue-600); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  padding: 8px 14px;
  border-radius: 8px;
  transition: color .15s, background .15s;
}
.nav__links a:hover { color: var(--blue-600); background: var(--blue-50); }

.nav__links .nav__cta {
  background: var(--blue-600);
  color: white;
  border-radius: 8px;
  padding: 8px 18px;
}
.nav__links .nav__cta:hover { background: var(--blue-800); color: white; }

/* Theme toggle */
.nav__theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1.5px solid var(--gray-200);
  background: transparent;
  color: var(--gray-800);
  cursor: pointer;
  margin-left: 12px;
  transition: border-color .2s ease, background .2s ease;
}
.nav__theme-toggle:hover { border-color: var(--blue-500); }
.theme-icon { width: 18px; height: 18px; }
.theme-icon--moon { display: none; }
:root[data-theme="dark"] .theme-icon--sun  { display: none; }
:root[data-theme="dark"] .theme-icon--moon { display: block; }

/* Burger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--gray-800);
  border-radius: 2px;
  transition: all .25s;
}

/* Mobile menu */
.nav__mobile {
  display: none;
  flex-direction: column;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--gray-100);
  gap: 4px;
}
.nav__mobile a {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-600);
  padding: 10px 12px;
  border-radius: 8px;
}
.nav__mobile a:hover { background: var(--blue-50); color: var(--blue-600); }
.nav__mobile .nav__cta {
  background: var(--blue-600);
  color: white;
  text-align: center;
  margin-top: 8px;
}

/* ═══════════════════════════════════════════
   HERO
════════════════════════════════════════════ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 140px 0 100px;
  background: linear-gradient(160deg, var(--white) 60%, var(--blue-50) 100%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 0.8fr 1.35fr;
  gap: 44px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-600);
  padding: 6px 16px;
  margin-bottom: 24px;
}

.hero__text h1 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 20px;
}

.hero__sub {
  font-size: 18px;
  color: var(--gray-600);
  margin-bottom: 36px;
  line-height: 1.7;
  max-width: 480px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 22px; font-weight: 800; color: var(--blue-600); }
.stat span   { font-size: 12px; color: var(--gray-400); font-weight: 500; }
.stat-sep    { width: 1px; height: 36px; background: var(--gray-200); }

.hero__img-placeholder { width: 100%; aspect-ratio: 4/3; }

/* ── Hero mockup SVG ── */
.hero__mockup {
  position: relative;
  width: 100%;
}

.hero__mockup-img {
  width: 100%;
  display: block;
}

/* Two-tone line art, no card/frame — blends straight into the hero background.
   -mask fills individual icons (not one big card) with a tone close to the
   hero background, purely so connector lines tuck cleanly behind them. */
.hero__diagram-line { stroke: #1e293b; }
.hero__diagram-label { fill: #1e293b; }
.hero__diagram-fill { fill: #1e293b; }
.hero__diagram-mask { fill: #f6f9ff; }
.hero__diagram-oncolor { fill: #fff; }

/* ── Hero stack Option A — Glassmorphism blur stack ── */
.hero__stack {
  position: relative;
  width: 100%;
  height: 400px;
}

.hero__stack-img {
  position: absolute;
  border-radius: 16px;
  transition: transform 0.5s cubic-bezier(.22,.68,0,1.2), filter 0.5s ease, opacity 0.5s ease;
}

/* Image 1 — fond, grande, très floutée */
.hero__stack-img--back {
  width: 88%;
  top: 30px;
  left: 0;
  transform: rotate(-5deg) scale(0.95);
  filter: blur(6px) brightness(0.75) saturate(1.2);
  opacity: 0.7;
  z-index: 1;
  box-shadow: 0 30px 80px rgba(37,99,235,0.25);
}

/* Image 2 — devant, nette, glassmorphism */
.hero__stack-img--front {
  width: 85%;
  bottom: 0;
  right: 0;
  transform: rotate(2deg);
  filter: none;
  opacity: 1;
  z-index: 3;
  box-shadow: 0 24px 64px rgba(0,0,0,0.22);
  border: 1.5px solid rgba(255,255,255,0.55);
  border-radius: 16px;
}

/* Halo coloré derrière le stack */
.hero__stack::before {
  content: '';
  position: absolute;
  inset: 10% 5%;
  background: radial-gradient(ellipse at 50% 50%, rgba(37,99,235,0.18) 0%, transparent 70%);
  filter: blur(30px);
  z-index: 0;
}

/* Hover */
.hero__stack:hover .hero__stack-img--back {
  transform: rotate(-7deg) scale(0.93) translateY(8px);
  filter: blur(9px) brightness(0.65) saturate(1.3);
  opacity: 0.55;
}

.hero__stack:hover .hero__stack-img--front {
  transform: rotate(0deg) scale(1.04);
  box-shadow: 0 32px 80px rgba(0,0,0,0.28);
}

/* Blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.blob--1 {
  width: 500px; height: 500px;
  background: rgba(37,99,235,.07);
  top: -100px; right: -100px;
}
.blob--2 {
  width: 400px; height: 400px;
  background: rgba(59,130,246,.05);
  bottom: -80px; left: -80px;
}
.hero > *:not(.blob) { position: relative; z-index: 1; }

/* ═══════════════════════════════════════════
   VIDEO
════════════════════════════════════════════ */
.video-section {
  padding: 100px 0;
  background: var(--gray-50);
  text-align: center;
}

.video-section h2 { margin-bottom: 12px; }

.video-wrapper {
  max-width: 860px;
  margin: 0 auto;
}

.video-placeholder {
  aspect-ratio: 16/9;
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.play-btn {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--blue-600);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 0 0 12px rgba(37,99,235,.15);
  transition: transform .2s;
}
.play-btn:hover { transform: scale(1.1); }
.play-btn svg { width: 30px; height: 30px; margin-left: 4px; }

/* ═══════════════════════════════════════════
   PROBLEM
════════════════════════════════════════════ */
.problem {
  padding: 100px 0;
  background: var(--white);
  text-align: center;
}

.problem__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.problem-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: left;
  transition: box-shadow .2s, transform .2s;
}
.problem-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.problem-card__icon {
  width: 52px; height: 52px;
  background: var(--blue-50);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.problem-card__icon svg { width: 24px; height: 24px; }
.problem-card h3    { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.problem-card p     { font-size: 14px; color: var(--gray-600); line-height: 1.6; }

.problem__img-placeholder {
  aspect-ratio: 2/1;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════
   HOW IT WORKS
════════════════════════════════════════════ */
.how-it-works {
  padding: 100px 0;
  background: var(--gray-50);
  text-align: center;
}

.how-it-works__diagram {
  width: 100%;
  max-width: 880px;
  margin: 48px auto 0;
  display: block;
}

/* ═══════════════════════════════════════════
   SOLUTION
════════════════════════════════════════════ */
.solution {
  padding: 100px 0;
  background: var(--blue-50);
}

.solution__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.solution__img-placeholder { aspect-ratio: 4/3; width: 100%; }

.solution__text h2  { color: var(--gray-800); }
.solution__text > p { font-size: 16px; color: var(--gray-600); margin-bottom: 28px; }

.solution__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.solution__list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.check-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--blue-600);
  color: white;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.solution__list strong { display: block; font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.solution__list span   { font-size: 14px; color: var(--gray-600); }

/* ═══════════════════════════════════════════
   DOCS SECTION
════════════════════════════════════════════ */
.docs-section {
  padding: 100px 0;
  background: #0f172a;
  overflow: hidden;
}

/* Header */
.docs-section__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.platform-section__badge--violet {
  background: rgba(124,58,237,.15);
  color: #8b5cf6;
  border: 1px solid rgba(124,58,237,.25);
}

.docs-section__title {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.12;
  color: #f1f5f9;
  margin: 14px 0 16px;
}

.docs-section__sub {
  font-size: 16px;
  color: #94a3b8;
  line-height: 1.7;
}

/* Highlights row */
.docs-section__highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

.docs-section__highlight {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 14px;
  padding: 20px;
  transition: border-color .25s, box-shadow .25s;
}

.docs-section__highlight:hover {
  border-color: #7c3aed;
  box-shadow: 0 8px 30px rgba(124,58,237,.15);
}

.docs-section__highlight-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(124,58,237,.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.docs-section__highlight-icon svg { width: 20px; height: 20px; }

.docs-section__highlight strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 5px;
}

.docs-section__highlight span {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.6;
}

/* Screenshots stacked — full viewport bleed */
.docs-section__screens {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 75vw;
  margin-left: calc(50% - 37.5vw);
  padding: 0;
  box-sizing: border-box;
}

.docs-section__screen-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.docs-section__screen-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.docs-section__screen-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3b82f6;
  flex-shrink: 0;
}

.docs-section__screen-dot--violet {
  background: #8b5cf6;
}

.docs-section__screen-frame {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #334155;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.docs-section__screen-frame--zoomable {
  cursor: zoom-in;
  position: relative;
}

.docs-zoom-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(15,23,42,.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
  z-index: 2;
}

.docs-section__screen-frame--zoomable:hover .docs-zoom-icon { opacity: 1; }

.docs-section__screen-frame:hover {
  transform: translateY(-5px);
  border-color: #7c3aed;
  box-shadow: 0 28px 80px rgba(124,58,237,.2);
}

.docs-section__screen-frame img {
  width: 100%;
  display: block;
  object-fit: contain;
}

.docs-section__screen-caption {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.6;
  padding: 0 4px;
}

/* Responsive */
@media (max-width: 900px) {
  .docs-section__highlights { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 550px) {
  .docs-section__highlights { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   FEATURES
════════════════════════════════════════════ */
.features {
  padding: 100px 0;
  background: var(--white);
  text-align: center;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  text-align: left;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--blue-100);
}

.feature-card__icon {
  width: 52px; height: 52px;
  background: var(--blue-50);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-card__icon svg { width: 24px; height: 24px; }

.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.feature-card p  { font-size: 14px; color: var(--gray-600); line-height: 1.6; margin-bottom: 20px; }

.feature-card--soon { border-color: rgba(124,58,237,.2); background: #faf5ff; }
.feature-card--soon:hover { border-color: rgba(124,58,237,.4); }
.feature-card--soon .feature-card__icon { background: #ede9fe; }

/* Top row: icon + badge */
.feature-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}
.feature-card__top .feature-card__icon { margin-bottom: 0; }

/* Status badge */
.feature-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  padding: 3px 10px;
  border-radius: 100px;
  white-space: nowrap;
}
.feature-badge--active {
  background: #dbeafe;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}
.feature-badge--soon {
  background: #ede9fe;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}

/* Progress bar */
.feature-progress { margin-top: auto; }

.feature-progress__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--gray-400);
  margin-bottom: 7px;
  font-weight: 500;
}

.feature-progress__pct {
  font-size: 13px;
  font-weight: 800;
  color: var(--gray-800);
}
.feature-progress__pct--soon { color: #7c3aed; }

.feature-progress__bar {
  height: 6px;
  background: var(--gray-100);
  border-radius: 100px;
  overflow: hidden;
}

.feature-progress__fill {
  height: 100%;
  width: var(--pct);
  background: var(--color);
  border-radius: 100px;
  transform-origin: left;
  animation: grow .9s cubic-bezier(.4,0,.2,1) both;
}

@keyframes grow {
  from { width: 0; }
  to   { width: var(--pct); }
}

/* ═══════════════════════════════════════════
   TARGET USERS
════════════════════════════════════════════ */
.users {
  padding: 100px 0;
  background: var(--gray-50);
  text-align: center;
}

.users__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.user-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 24px 28px;
  text-align: center;
  transition: box-shadow .2s, transform .2s;
}
.user-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.user-card__icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--blue-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.user-card__icon svg { width: 34px; height: 34px; }

.user-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.user-card p  { font-size: 13px; color: var(--gray-600); line-height: 1.6; }

/* ═══════════════════════════════════════════
   FAQ
════════════════════════════════════════════ */
.faq {
  padding: 100px 0;
  background: var(--white);
  text-align: center;
}

.faq .section-sub a { color: var(--blue-600); text-decoration: underline; text-underline-offset: 2px; }

.faq__list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.faq__item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq__item summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 700;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
  content: '+';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue-600);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s;
}
.faq__item[open] summary::after { transform: rotate(45deg); }

.faq__item p {
  padding: 0 22px 20px;
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.65;
}
.faq__item p a { color: var(--blue-600); text-decoration: underline; text-underline-offset: 2px; }

/* ═══════════════════════════════════════════
   WAITLIST
════════════════════════════════════════════ */
.waitlist {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-600) 100%);
  color: white;
}

.waitlist__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.waitlist__text h2 {
  color: white;
  margin-bottom: 16px;
}
.waitlist__text > p {
  font-size: 16px;
  color: rgba(255,255,255,.8);
  margin-bottom: 32px;
  line-height: 1.7;
}

.waitlist__perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.waitlist__perks li {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,.9);
}

/* Form */
.waitlist__form-wrap {
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}

.waitlist__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-800);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  color: var(--gray-800);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  background: var(--white);
  resize: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-400); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}

.form-note { font-size: 12px; color: var(--gray-400); text-align: center; }

/* Success */
.waitlist__success {
  text-align: center;
  padding: 40px 20px;
}
.success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.waitlist__success h3 { font-size: 22px; margin-bottom: 10px; }
.waitlist__success p  { font-size: 15px; color: var(--gray-600); }

/* ═══════════════════════════════════════════
   FOOTER
════════════════════════════════════════════ */
.footer {
  background: var(--gray-800);
  color: rgba(255,255,255,.7);
}

.footer__inner {
  display: flex;
  gap: 48px;
  padding: 56px 0 40px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer__brand .nav__logo-text { color: white; }
.footer__brand > p {
  font-size: 14px;
  color: rgba(255,255,255,.5);
  margin-top: 14px;
  line-height: 1.6;
}

.footer__nav {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__col h4 { font-size: 13px; font-weight: 700; color: white; letter-spacing: .5px; margin-bottom: 4px; }
.footer__col a  { font-size: 14px; color: rgba(255,255,255,.55); transition: color .15s; }
.footer__col a:hover { color: white; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
}
.footer__bottom .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,.4);
}

/* ═══════════════════════════════════════════
   BACKOFFICE SECTION
════════════════════════════════════════════ */
.bo {
  padding: 100px 0 80px;
  background: linear-gradient(180deg, #f0f4ff 0%, #ffffff 40%, #f8fafc 100%);
  overflow: hidden;
}

/* Header */
.bo__header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 32px;
}

.bo__title {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.12;
  color: #0f172a;
  margin: 14px 0 18px;
}

.bo__subtitle {
  font-size: 17px;
  color: #64748b;
  line-height: 1.7;
}

/* Pills */
.bo__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 52px;
}

.bo__pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  color: #334155;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
  transition: border-color .2s, box-shadow .2s, color .2s;
}
.bo__pill-icon { width: 14px; height: 14px; flex-shrink: 0; }

.bo__pill:hover {
  border-color: #2563eb;
  color: #2563eb;
  box-shadow: 0 2px 12px rgba(37,99,235,.12);
}

/* Screenshot gallery — picker on the left, big preview on the right */
.container.bo__gallery {
  max-width: 1480px;
}

.bo__gallery {
  margin-bottom: 64px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  align-items: start;
}

.bo__gallery-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 620px;
  overflow-y: auto;
  padding-right: 4px;
}

.bo__gallery-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.bo__gallery-item:hover {
  border-color: #93c5fd;
  box-shadow: 0 2px 12px rgba(37,99,235,.1);
}

.bo__gallery-item.active {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 4px 18px rgba(37,99,235,.16);
}

.bo__gallery-item-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bo__gallery-item-icon svg { width: 18px; height: 18px; }

.bo__gallery-item.active .bo__gallery-item-icon { background: #dbeafe; }

.bo__gallery-item-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.bo__gallery-item-text strong {
  font-size: 14.5px;
  color: #0f172a;
}

.bo__gallery-item-text span {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.35;
}

.bo__gallery-view { display: flex; flex-direction: column; gap: 18px; }

.bo__gallery-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: zoom-in;
  box-shadow:
    0 0 0 1px rgba(0,0,0,.08),
    0 20px 60px rgba(15,23,42,.12);
}

.bo__gallery-frame .bo__screen-img { max-height: none; object-fit: contain; background: #f8fafc; }

.bo__gallery-zoom {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  border: none;
  background: rgba(15,23,42,.72);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: zoom-in;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  transition: background .2s ease, transform .2s ease;
}
.bo__gallery-zoom svg { width: 16px; height: 16px; stroke: #fff; fill: none; }
.bo__gallery-zoom:hover { background: rgba(37,99,235,.9); transform: translateY(-2px); }

.bo__gallery-desc {
  font-size: 15.5px;
  line-height: 1.7;
  color: #64748b;
  padding: 0 4px;
}

@media (max-width: 860px) {
  .bo__gallery { grid-template-columns: 1fr; }
  .bo__gallery-list { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .bo__gallery-item { flex: 0 0 auto; min-width: 220px; }
}

/* Screenshots grid */
.bo__main-wrap {
  margin-bottom: 64px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bo__screen-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.bo__screen {
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0,0,0,.08),
    0 20px 60px rgba(15,23,42,.12);
  transition: transform .35s ease, box-shadow .35s ease;
}

.bo__screen:hover {
  transform: translateY(-5px);
  box-shadow:
    0 0 0 1px rgba(37,99,235,.15),
    0 28px 80px rgba(37,99,235,.14);
}

/* Fake browser bar */
.bo__screen-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: #1e293b;
}

.bo__screen-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.bo__screen-url {
  margin-left: 10px;
  font-size: 11.5px;
  color: #94a3b8;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
}

.bo__screen-img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.bo__screen--full .bo__screen-img  { max-height: 420px; object-fit: cover; }
.bo__screen--half .bo__screen-img  { max-height: none; object-fit: contain; background: #f8fafc; }

.bo__screen-caption {
  max-width: 640px;
  margin: -6px auto 8px;
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-600, #475569);
}
.bo__screen-caption strong { color: var(--gray-900, #0f172a); }

/* Zoom wrapper for clickable half screens */
.bo__screen--half {
  cursor: zoom-in;
  position: relative;
}

.bo__screen--half .bo__zoom-icon {
  position: absolute;
  top: 48px; /* below browser bar */
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(15,23,42,.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
  z-index: 2;
}

.bo__screen--half .bo__zoom-icon svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
  fill: none;
}

.bo__screen--half:hover .bo__zoom-icon { opacity: 1; }

@media (max-width: 700px) {
  .bo__screen-row { grid-template-columns: 1fr; }
  .bo__screen--full .bo__screen-img  { max-height: 240px; }
  .bo__screen--half .bo__screen-img  { max-height: none; }
}

/* ── Lightbox ── */
.lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(2,6,23,.88);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}

.lb-overlay.open { display: flex; }

.lb-overlay img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 12px;
  box-shadow: 0 32px 96px rgba(0,0,0,.6);
  object-fit: contain;
  cursor: default;
}

.lb-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.lb-close:hover { background: rgba(255,255,255,.25); }

.lb-close svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
  fill: none;
}

/* 3 detail cards */
.bo__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.bo__card {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px 28px;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}

.bo__card:hover {
  border-color: #c7d7fe;
  box-shadow: 0 12px 40px rgba(37,99,235,.1);
  transform: translateY(-4px);
}

.bo__card--featured {
  background: linear-gradient(145deg, #1e3a8a 0%, #2563eb 100%);
  border-color: transparent;
  color: #fff;
}

.bo__card--featured:hover {
  box-shadow: 0 16px 48px rgba(37,99,235,.35);
  border-color: transparent;
}

.bo__card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 18px;
}

.bo__card__icon--blue   { background: rgba(37,99,235,.1); }
.bo__card__icon--indigo { background: rgba(255,255,255,.18); }
.bo__card__icon--violet { background: rgba(124,58,237,.1); }

.bo__card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
}

.bo__card--featured h3 { color: #fff; }

.bo__card p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.65;
  margin-bottom: 18px;
}

.bo__card--featured p { color: rgba(255,255,255,.8); }

.bo__card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.bo__card__list li {
  font-size: 13px;
  font-weight: 500;
  color: #475569;
}

.bo__card--featured .bo__card__list li { color: rgba(255,255,255,.85); }

/* Responsive */
@media (max-width: 900px) {
  .bo__cards { grid-template-columns: 1fr; }
  .bo__float-card { width: 55%; right: -10px; bottom: -20px; }
}

@media (max-width: 600px) {
  .bo__float-card { display: none; }
}

/* ═══════════════════════════════════════════
   ANDROID AGENT SECTION
════════════════════════════════════════════ */

/* Shared badge style (used in bo + android sections) */
.platform-section__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.platform-section__badge--blue {
  background: rgba(37,99,235,.1);
  color: #2563eb;
  border: 1px solid rgba(37,99,235,.2);
}

.platform-section__badge--green {
  background: rgba(5,150,105,.12);
  color: #059669;
  border: 1px solid rgba(5,150,105,.2);
}

/* Android section layout */
.platform-section--android,
.platform-section--api {
  background: #0f172a;
  padding: 100px 0;
  overflow: hidden;
}

.platform-section__inner > * { min-width: 0; }

.platform-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.platform-section__inner--reverse {
  direction: rtl;
}
.platform-section__inner--reverse > * {
  direction: ltr;
}

.platform-section__text h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 16px;
  color: #f1f5f9;
}

.platform-section__desc {
  font-size: 16px;
  color: #94a3b8;
  line-height: 1.7;
  margin-bottom: 32px;
}

.platform-section__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.platform-section__list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.platform-section__list-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.platform-section__list-icon svg { width: 18px; height: 18px; }

.platform-section__list-icon--green {
  background: rgba(5,150,105,.15);
}

.platform-section__list-icon--blue {
  background: rgba(37,99,235,.15);
}

.platform-section__list li strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 3px;
}

.platform-section__list li span {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.6;
}

.platform-section__list li a {
  color: #60a5fa;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.platform-section__list li a:hover { color: #93c5fd; }

/* Android mobile mockup */
.platform-section__mobile-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

.platform-section__mobile-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(5,150,105,.22) 0%, transparent 70%);
  filter: blur(30px);
  z-index: 0;
}

.platform-section__mobile-frame {
  position: relative;
  z-index: 1;
  width: 260px;
  border-radius: 36px;
  overflow: hidden;
  border: 6px solid #1e293b;
  box-shadow:
    0 0 0 2px #334155,
    0 40px 80px rgba(0,0,0,.5);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.platform-section__mobile-frame img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.platform-section__mobile-frame:hover {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow:
    0 0 0 2px #334155,
    0 56px 100px rgba(5,150,105,.3);
}

/* Responsive */
@media (max-width: 768px) {
  .platform-section__inner,
  .platform-section__inner--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 48px;
  }
  .platform-section__mobile-frame { width: 190px; }
}

/* API request/response code window */
.api-window {
  background: #0c1220;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

.api-window__panel { padding: 22px 24px; }
.api-window__panel + .api-window__panel {
  border-top: 1px solid rgba(255,255,255,.08);
}

.api-window__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 14px;
}

.api-window__code {
  font-family: 'SF Mono', 'Fira Code', Consolas, monospace;
  font-size: 13px;
  line-height: 1.7;
  color: #cbd5e1;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.api-window__code .tok-kw  { color: #f472b6; }
.api-window__code .tok-fn  { color: #60a5fa; }
.api-window__code .tok-str { color: #86efac; }
.api-window__code .tok-key { color: #93c5fd; }

.api-window__response {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'SF Mono', 'Fira Code', Consolas, monospace;
  font-size: 14px;
  color: #cbd5e1;
}
.api-window__status { color: #4ade80; font-weight: 700; }
.api-window__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74,222,128,.6);
}

@media (max-width: 640px) {
  .api-window__code { font-size: 11.5px; }
  .api-window__response { font-size: 12.5px; flex-wrap: wrap; }
}

/* ═══════════════════════════════════════════
   WORKFLOW WALKTHROUGH — scroll-driven example
════════════════════════════════════════════ */
.wf {
  position: relative;
  background: var(--gray-800);
  color: white;
}

.wf__track {
  position: relative;
  height: 900vh; /* 9 stages × 100vh */
}

.wf__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.wf__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.wf__eyebrow { display: block; text-align: center; color: #60a5fa; margin-bottom: 28px; }

.wf__layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 48px;
  align-items: center;
}

.wf__text { position: relative; }

.wf__slides-stack {
  display: grid;
  min-height: 230px;
}

.wf__slide {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .45s ease, transform .45s ease;
  pointer-events: none;
}
.wf__slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.wf__num {
  display: block;
  font-size: 52px;
  font-weight: 800;
  color: rgba(255,255,255,.14);
  line-height: 1;
  margin-bottom: 6px;
}

.wf__slide h3 { color: #fff; font-size: 24px; margin-bottom: 12px; }
.wf__slide p { color: rgba(255,255,255,.65); font-size: 15.5px; line-height: 1.7; }
.wf__slide p strong { color: #fff; }
.wf__slide p code {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 13.5px;
  color: #93c5fd;
}

/* ── Graph — real branching shape, the graph itself carries the explanation ── */
.wf__graph {
  position: relative;
  width: 100%;
  aspect-ratio: 1000 / 800;
  border-radius: 20px;
  background-image: radial-gradient(rgba(255,255,255,.12) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
}

.wf__edges { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

.wf__edge {
  fill: none;
  stroke: rgba(255,255,255,.14);
  stroke-width: 2;
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
}
.wf__edge--dashed { stroke-dasharray: 6 5; }
.wf__edge--dashed.current,
.wf__edge--dashed.done { stroke-dasharray: 6 5; }

.wf__edge.done {
  stroke: #3b82f6;
}
.wf__edge.current {
  stroke: #38bdf8;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: wf-draw .6s ease forwards;
  filter: drop-shadow(0 0 4px rgba(56,189,248,.7));
}
@keyframes wf-draw {
  to { stroke-dashoffset: 0; }
}

.wf__edge-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  fill: rgba(255,255,255,.4);
  transition: fill .35s ease;
}
.wf__edge-label--true.lit  { fill: #4ade80; }
.wf__edge-label--false.lit { fill: #f87171; }

.wf__node {
  position: absolute;
  width: 17%;
  height: 16%; /* fixed, so edges always meet the box edge, never the text */
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,.1);
  background: #0f1c30;
  opacity: .35;
  filter: grayscale(.5);
  overflow: hidden;
  transition: opacity .35s ease, filter .35s ease, border-color .35s ease, box-shadow .35s ease, background .35s ease;
  z-index: 1;
}

.wf__node strong,
.wf__node > div > span { overflow-wrap: anywhere; }

.wf__node--start     { left: 2%;    top: 2%; }
.wf__node--init      { left: 21%;   top: 2%; }
.wf__node--var       { left: 40%;   top: 2%; }
.wf__node--foreach   { left: 59%;   top: 2%; }
.wf__node--endall    { left: 80%;   top: 2%; border-style: dashed; }
.wf__node--cmd       { left: 56.5%; top: 21%;  width: 22%; }
.wf__node--exception { left: 56.5%; top: 40%;  width: 22%; border-style: dashed; }
.wf__node--ok        { left: 37.5%; top: 62%;  width: 20%; }
.wf__node--error     { left: 74.5%; top: 62%;  width: 20%; border-style: dashed; }
.wf__node--enditer   { left: 56.5%; top: 81%;  width: 22%; }

/* Row-0 nodes connect horizontally — dot on the left edge, vertically centered */
.wf__node--start .wf__node-dot,
.wf__node--init .wf__node-dot,
.wf__node--var .wf__node-dot,
.wf__node--foreach .wf__node-dot,
.wf__node--endall .wf__node-dot {
  top: 50%;
  left: -5px;
  transform: translateY(-50%);
}

/* Everything below connects vertically — dot on the top edge, horizontally centered */
.wf__node--cmd .wf__node-dot,
.wf__node--exception .wf__node-dot,
.wf__node--ok .wf__node-dot,
.wf__node--error .wf__node-dot,
.wf__node--enditer .wf__node-dot {
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
}

.wf__node-dot {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  transition: background .35s ease, box-shadow .35s ease;
}

.wf__node > div { display: flex; flex-direction: column; min-width: 0; }
.wf__node strong { font-size: 14.5px; color: #fff; line-height: 1.25; }
.wf__node > div > span { font-size: 12px; color: rgba(255,255,255,.55); }
.wf__node code { color: #93c5fd; background: none; padding: 0; font-size: 11.5px; }

.wf__node-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.6);
  transition: background .35s ease, color .35s ease;
}
.wf__node-icon svg { width: 15px; height: 15px; }

.wf__node--start .wf__node-icon     { background: rgba(56,189,248,.14); color: #38bdf8; }
.wf__node--init .wf__node-icon      { background: rgba(129,140,248,.14); color: #818cf8; }
.wf__node--var .wf__node-icon       { background: rgba(196,181,253,.14); color: #c4b5fd; }
.wf__node--foreach .wf__node-icon   { background: rgba(251,191,36,.14); color: #fbbf24; }
.wf__node--cmd .wf__node-icon       { background: rgba(96,165,250,.14); color: #60a5fa; }
.wf__node--exception .wf__node-icon { background: rgba(251,146,60,.14); color: #fb923c; }
.wf__node--ok .wf__node-icon        { background: rgba(74,222,128,.14); color: #4ade80; }
.wf__node--error .wf__node-icon     { background: rgba(248,113,113,.14); color: #f87171; }
.wf__node--enditer .wf__node-icon,
.wf__node--endall .wf__node-icon    { background: rgba(148,163,184,.14); color: #94a3b8; }

.wf__node.current .wf__node-icon,
.wf__node.done .wf__node-icon {
  background: rgba(255,255,255,.14);
}

.wf__node.done {
  opacity: 1;
  filter: none;
  background: #14243c;
}
.wf__node.done .wf__node-dot { background: #3b82f6; }

.wf__node.current {
  opacity: 1;
  filter: none;
  border-color: #38bdf8;
  background: rgba(56,189,248,.1);
  box-shadow: 0 0 0 4px rgba(56,189,248,.14), 0 8px 24px rgba(56,189,248,.2);
}
.wf__node.current .wf__node-dot {
  background: #38bdf8;
  box-shadow: 0 0 0 4px rgba(56,189,248,.28);
}

@media (max-width: 860px) {
  /* The 2D pinned graph doesn't translate to mobile — show the full
     explanation stack, then the graph fully lit as a vertical flow. */
  .wf__track { height: auto; }
  .wf__sticky { position: relative; height: auto; padding: 56px 0; }
  .wf__layout { grid-template-columns: 1fr; gap: 36px; }

  .wf__slides-stack {
    display: flex;
    flex-direction: column;
    gap: 26px;
    min-height: 0;
  }
  .wf__slide {
    position: relative;
    grid-area: unset;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .wf__graph {
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .wf__edges { display: none; }
  .wf__node {
    position: relative;
    left: auto !important; top: auto !important;
    width: 100%;
    height: auto;
    overflow: visible;
    opacity: 1;
    filter: none;
  }
  .wf__node-dot { background: #3b82f6; }
}

/* ═══════════════════════════════════════════
   ANDROMATE STUDIO
════════════════════════════════════════════ */
.studio {
  padding: 100px 0;
  background: var(--gray-800);
  color: white;
}

.studio__header { text-align: center; margin-bottom: 40px; }
.studio__header h2 { color: white; }
.studio__header .section-sub { color: rgba(255,255,255,.6); margin-bottom: 0; }

/* Dots (reused in screenshot topbar) */
.editor__dots { display: flex; gap: 6px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot--red    { background: #ff5f57; }
.dot--yellow { background: #febc2e; }
.dot--green  { background: #28c840; }

/* Gradient headline */
.studio-gradient {
  background: linear-gradient(90deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Screenshot wrapper */
.studio__screenshot-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 32px 80px rgba(0,0,0,.6);
  margin-bottom: 40px;
  /* Break out of container to be wider */
  width: min(1400px, 96vw);
  margin-left: 50%;
  transform: translateX(-50%);
}

.studio__screenshot-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  background: #0f1623;
  border-bottom: 1px solid rgba(255,255,255,.07);
  flex-wrap: wrap;
}

.studio__screenshot-title {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.studio-logo-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-600);
  color: white;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

.studio__wf-name {
  font-size: 12px;
  font-family: 'Courier New', monospace;
  color: rgba(255,255,255,.45);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.studio__topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.studio__pill {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}
.studio__pill.connected {
  background: rgba(34,197,94,.15);
  color: #86efac;
  border: 1px solid rgba(34,197,94,.25);
}
.studio__pill.run {
  background: var(--blue-600);
  color: white;
  cursor: pointer;
}

/* The screenshot image itself */
.studio__screenshot-frame {
  background: #f0f4f8;
  line-height: 0;
}

.studio__screenshot-img {
  width: 100%;
  height: auto;
  display: block;
}

.studio__screenshot-fallback {
  aspect-ratio: 16/8;
  background: #f0f4f8;
  border: none;
  border-radius: 0;
  display: flex;
}
.studio__screenshot-fallback .img-placeholder__inner span { color: var(--blue-600); }

/* ── AML dynamic variables section ── */
.studio__aml-section {
  margin-bottom: 48px;
  padding: 48px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
}

/* Centered header */
.studio__aml-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 36px;
}

.aml-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #a78bfa;
  background: rgba(167,139,250,.1);
  border: 1px solid rgba(167,139,250,.25);
  border-radius: 100px;
  padding: 4px 14px;
  margin-bottom: 16px;
}

.studio__aml-header h3 {
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 800;
  color: white;
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -.5px;
}

.studio__aml-header p {
  font-size: 16px;
  color: rgba(255,255,255,.5);
  line-height: 1.7;
}

/* Variables in a horizontal wrap row */
.aml-vars-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 36px;
}

.aml-var {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #0f1623;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 8px;
  transition: border-color .2s;
}
.aml-var:hover { border-color: rgba(167,139,250,.45); }

.aml-var__name {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  font-weight: 700;
  color: #c4b5fd;
  white-space: nowrap;
}

.aml-var__desc {
  font-size: 12px;
  color: rgba(255,255,255,.3);
  white-space: nowrap;
}

/* Full-width big screenshot */
.studio__aml-img-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 16px 56px rgba(0,0,0,.6);
  /* Break out wider like the first screenshot */
  width: min(1400px, 96vw);
  margin-left: 50%;
  transform: translateX(-50%);
}

@media (max-width: 900px) {
  .studio__aml-section { padding: 28px 16px; }
  .aml-var__desc { display: none; }
  .studio__aml-img-wrap { width: 100%; transform: none; margin-left: 0; }
}

/* ── Tasks library progress banner ── */
.tasks-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(124,58,237,.08));
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 48px;
  margin-top: 40px;
}

.tasks-banner__left .aml-tag { margin-bottom: 16px; }

.tasks-banner__left h3 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: white;
  line-height: 1.25;
  letter-spacing: -.5px;
  margin-bottom: 14px;
}

.tasks-banner__left p {
  font-size: 15px;
  color: rgba(255,255,255,.55);
  line-height: 1.7;
  margin-bottom: 24px;
}

.tasks-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tasks-categories span {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.65);
}

/* Right side — big number */
.tasks-banner__right {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.tasks-big-pct {
  font-size: clamp(72px, 10vw, 110px);
  font-weight: 900;
  line-height: 1;
  color: white;
  letter-spacing: -4px;
}
.tasks-big-pct span {
  font-size: .5em;
  color: #60a5fa;
  letter-spacing: 0;
}

.tasks-label {
  font-size: 14px;
  color: rgba(255,255,255,.5);
  margin-top: -8px;
}

.tasks-progress-bar {
  width: 100%;
  height: 10px;
  background: rgba(255,255,255,.1);
  border-radius: 100px;
  overflow: hidden;
}

.tasks-progress-fill {
  height: 100%;
  width: var(--pct);
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  border-radius: 100px;
  animation: grow .9s cubic-bezier(.4,0,.2,1) both;
}

.tasks-counts {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  justify-content: center;
}

.tasks-count {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.tasks-count strong {
  font-size: 28px;
  font-weight: 800;
  color: white;
}
.tasks-count span {
  font-size: 12px;
  color: rgba(255,255,255,.4);
}

.tasks-count-sep {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,.12);
}

@media (max-width: 900px) {
  .tasks-banner {
    grid-template-columns: 1fr;
    padding: 32px 20px;
    gap: 36px;
  }
}

/* Node category pills */
.studio__node-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 48px;
}

.node-cat {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.05);
  transition: all .2s;
  cursor: default;
}
.node-cat:hover { border-color: rgba(255,255,255,.3); color: white; background: rgba(255,255,255,.1); }

.node-cat--control { border-color: rgba(96,165,250,.4);  color: #93c5fd; background: rgba(96,165,250,.08); }
.node-cat--runtime { border-color: rgba(167,139,250,.4); color: #c4b5fd; background: rgba(167,139,250,.08); }
.node-cat--code    { border-color: rgba(251,146,60,.4);  color: #fdba74; background: rgba(251,146,60,.08); }
.node-cat--ui      { border-color: rgba(34,197,94,.4);   color: #86efac; background: rgba(34,197,94,.08); }
.node-cat--comm    { border-color: rgba(96,165,250,.4);  color: #93c5fd; background: rgba(96,165,250,.08); }
.node-cat--loc     { border-color: rgba(251,191,36,.4);  color: #fde68a; background: rgba(251,191,36,.08); }
.node-cat--sms     { border-color: rgba(244,114,182,.4); color: #f9a8d4; background: rgba(244,114,182,.08); }
.node-cat--bt      { border-color: rgba(129,140,248,.4); color: #a5b4fc; background: rgba(129,140,248,.08); }

/* Studio highlights */
.studio__highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.studio-hl {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  transition: background .2s, border-color .2s;
}
.studio-hl:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(37,99,235,.4);
}

.studio-hl__icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: rgba(37,99,235,.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.studio-hl__icon svg { width: 20px; }

.studio-hl h4    { font-size: 15px; font-weight: 700; color: white; margin-bottom: 6px; }
.studio-hl p     { font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.6; }

/* ═══════════════════════════════════════════
   SCROLL ANIMATIONS
════════════════════════════════════════════ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════ */
@media (max-width: 900px) {
  .studio__screenshot-topbar { gap: 8px; }
  .studio__wf-name { display: none; }

  .hero__inner,
  .solution__inner,
  .waitlist__inner { grid-template-columns: 1fr; }

  .hero { padding: 110px 0 70px; }
  .hero__visual { order: -1; }
  .hero__img-placeholder { aspect-ratio: 16/9; }
  .hero__text h1 { letter-spacing: -1px; }

  .solution__inner { direction: ltr; }

  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__mobile.open { display: flex; }
}

@media (max-width: 600px) {
  .hero__actions { flex-direction: column; }
  .btn { justify-content: center; }
  .hero__stats { gap: 12px; }
  .waitlist__form-wrap { padding: 24px 20px; }
}

/* ═══════════════════════════════════════════
   CONTACT
════════════════════════════════════════════ */
/* Android App feature card */
.feature-card--android {
  border-color: #bbf7d0;
  background: linear-gradient(145deg, #fff, #f0fdf4);
}

.feature-card__icon--android {
  background: #dcfce7;
}

.feature-badge--ready {
  background: #dcfce7;
  color: #15803d;
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}

.ready-tag {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: white;
  padding: 2px 8px;
  border-radius: 20px;
  vertical-align: middle;
  margin-left: 6px;
}

.feature-card__android-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #bbf7d0;
}

.android-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  color: #15803d;
  font-weight: 500;
}

.android-info-item svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.feature-card__android-info--blue .android-info-item { color: #2563eb; }

.atlas-tag {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: white;
  padding: 2px 8px;
  border-radius: 20px;
  vertical-align: middle;
  margin-left: 6px;
}

.contact {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-600) 100%);
  color: white;
}

.contact__inner {
  text-align: center;
}

.contact__inner h2 {
  color: white;
}

.contact__inner .section-label {
  color: rgba(255,255,255,.7);
}

.contact__inner .section-sub {
  color: rgba(255,255,255,.8);
}

.contact__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 48px;
  text-align: left;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}

.contact-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.contact-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.contact-card__icon svg {
  width: 26px;
  height: 26px;
}

.contact-card__icon--github {
  background: #f0f0f0;
  color: #24292f;
}

.contact-card__icon--email {
  background: var(--blue-100);
  color: var(--blue-600);
}

.contact-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gray-800);
}

.contact-card p {
  color: var(--gray-600);
  font-size: .97rem;
  line-height: 1.6;
  flex: 1;
}

.contact-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: .95rem;
  margin-top: 8px;
  transition: opacity .2s, transform .15s;
}

.contact-card__btn:hover {
  opacity: .88;
  transform: translateY(-1px);
}

.contact-card__btn--github {
  background: #24292f;
  color: #fff;
}

.contact-card__btn--email {
  background: var(--blue-600);
  color: #fff;
}

.contact-card__link {
  display: block;
  text-align: center;
  font-size: .88rem;
  color: var(--gray-400);
  margin-top: 2px;
}

a.contact-card__link {
  color: var(--blue-600);
  font-weight: 500;
}

a.contact-card__link:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .contact__cards { grid-template-columns: 1fr; }
}


/* ════════════════════════════════════════════
   SCROLL STORY  (Apple-style)
════════════════════════════════════════════ */
.story {
  background: #000;
  color: #fff;
}

.story__track {
  height: 600vh;  /* 500vh steps + 100vh outro */
  position: relative;
}

.story__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

/* ── Counter ── */
.story__counter {
  position: absolute;
  top: 40px;
  left: 56px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  letter-spacing: .06em;
  z-index: 10;
}

.story__counter-cur {
  color: #2563eb;
  font-size: 15px;
}

/* ── Text column ── */
.story__text-col {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 72px 0 64px;
}

.story__slide {
  position: absolute;
  left: 64px;
  right: 40px;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .55s cubic-bezier(.4,0,.2,1),
              transform .55s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
}

.story__slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.story__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #2563eb;
  background: rgba(37,99,235,.12);
  border: 1px solid rgba(37,99,235,.25);
  border-radius: 20px;
  padding: 4px 12px;
  margin-bottom: 20px;
}

.story__slide h2 {
  font-size: clamp(30px, 3.6vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: #fff;
  margin-bottom: 20px;
}

.story__slide p {
  font-size: 17px;
  line-height: 1.75;
  color: #94a3b8;
  max-width: 400px;
}

/* ── Image column ── */
.story__img-col {
  position: relative;
  overflow: hidden;
  background: #0a0f1e;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story__img-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  opacity: 0;
  transform: scale(.96) translateY(16px);
  transition: opacity .6s cubic-bezier(.4,0,.2,1),
              transform .6s cubic-bezier(.4,0,.2,1);
}

.story__img-slide.active {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.story__img-slide img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 12px;
  box-shadow: 0 32px 80px rgba(0,0,0,.7),
              0 0 0 1px rgba(255,255,255,.06);
  object-fit: contain;
}

/* ── Large icons ── */
.story__icon-wrap {
  width: 260px;
  height: 260px;
  border-radius: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.story__icon-wrap svg {
  width: 140px;
  height: 140px;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.5));
}

.story__icon-wrap--blue {
  background: radial-gradient(circle at 40% 35%, #1d4ed8, #0f172a);
  box-shadow: 0 0 80px rgba(37,99,235,.35), 0 0 0 1px rgba(37,99,235,.2);
}

.story__icon-wrap--violet {
  background: radial-gradient(circle at 40% 35%, #5b21b6, #0f172a);
  box-shadow: 0 0 80px rgba(124,58,237,.35), 0 0 0 1px rgba(124,58,237,.2);
}

.story__icon-wrap--cyan {
  background: radial-gradient(circle at 40% 35%, #075985, #0f172a);
  box-shadow: 0 0 80px rgba(14,165,233,.35), 0 0 0 1px rgba(14,165,233,.2);
}

.story__icon-wrap--green {
  background: radial-gradient(circle at 40% 35%, #14532d, #0f172a);
  box-shadow: 0 0 80px rgba(34,197,94,.3), 0 0 0 1px rgba(34,197,94,.2);
}

.story__icon-wrap--atlas {
  background: radial-gradient(circle at 40% 35%, #431407, #0f172a);
  box-shadow: 0 0 100px rgba(249,115,22,.4), 0 0 0 1px rgba(249,115,22,.25);
}

/* ── Dots ── */
.story__dots {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 10;
}

.story__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #334155;
  transition: background .3s, transform .3s;
}

.story__dot.active {
  background: #2563eb;
  transform: scale(1.7);
}

/* ── Bottom progress bar ── */
.story__progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #1e293b;
  z-index: 10;
}

.story__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  width: 0%;
  transition: width .1s linear;
}

/* ── Outro overlay ── */
.story__outro-overlay {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  z-index: 20;
}

/* ── Gradient bridge to next section ── */
.story__gradient-exit {
  height: 220px;
  background: linear-gradient(to bottom, #000 0%, #f8fafc 100%);
  position: relative;
  z-index: 1;
}

/* ── Section reveal animations ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity .8s cubic-bezier(.4,0,.2,1),
              transform .8s cubic-bezier(.4,0,.2,1);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .story__sticky {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .story__text-col {
    padding: 24px 28px 0;
    align-items: flex-end;
  }

  .story__slide {
    left: 28px;
    right: 28px;
  }

  .story__img-col {
    border-top: 1px solid #1e293b;
  }

  .story__img-slide {
    padding: 20px;
  }

  .story__counter { left: 28px; top: 24px; }
  .story__dots { display: none; }
}


/* ════════════════════════════════════════════
   CHAPTER / OUTRO INTERLUDES
   Theme-adaptive: white + dark text in light mode,
   soft slate-gray + white text in dark mode (never pure black).
════════════════════════════════════════════ */

.chapter-card { background: var(--white); }

.chapter-card__track {
  height: 160vh;
  position: relative;
}

.chapter-card__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.chapter-card__title {
  font-size: clamp(56px, 11vw, 160px);
  font-weight: 900;
  letter-spacing: -.04em;
  color: var(--gray-800);
  text-transform: uppercase;
  opacity: 0;
  transform: scale(1.18);
  will-change: transform, opacity;
  display: block;
  text-align: center;
}

.chapter-card__title--long {
  font-size: clamp(28px, 5.5vw, 68px);
  max-width: 900px;
  line-height: 1.2;
  padding: 0 24px;
}

.see-you { background: var(--white); position: relative; }

.see-you__track { height: 300vh; position: relative; }

.see-you__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.see-you__content {
  text-align: center;
  opacity: 0;
  transform: scale(1.18);
  will-change: transform, opacity;
}

.see-you__brand {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(30,41,59,.35);
  margin-bottom: 28px;
}

.see-you__headline {
  display: flex;
  flex-direction: column;
  line-height: .9;
}

.see-you__line1 {
  display: block;
  font-size: clamp(64px, 13vw, 180px);
  font-weight: 900;
  letter-spacing: -.04em;
  color: var(--gray-800);
  text-transform: uppercase;
}

.see-you__line2 {
  display: block;
  font-size: clamp(64px, 13vw, 180px);
  font-weight: 900;
  letter-spacing: -.04em;
  color: rgba(30,41,59,.18);
  text-transform: uppercase;
}

.announce-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 34px;
  background: var(--gray-800);
  border-bottom: 1px solid rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  z-index: 101;
}

.announce-bar__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2563eb;
  opacity: .8;
}

.nav { top: 34px; }

/* ════════════════════════════════════════════
   GLOBAL DARK THEME  — unified cinematic page
════════════════════════════════════════════ */

:root[data-theme="dark"] {

body { background: #020817; color: #cbd5e1; }

/* Story outro fades to body dark, not black */
.story { background: #020817; }
.story__outro-overlay { background: #020817; }
.story__gradient-exit { display: none; }

/* ── Section backgrounds ── */
.video-section          { background: #020817; }
.problem                { background: #030f20; }
.how-it-works           { background: #020817; }
.solution               { background: #020817; }
.bo                     { background: #030f20; }
.platform-section--android { background: #020817; }
.studio                 { background: #030f20; }
.features               { background: #020817; }
.users                  { background: #030f20; }
.faq                    { background: #020817; }
.footer                 { background: #010610; }

/* Remove section hard borders */
.video-section, .problem, .solution, .bo,
.features, .users, .contact {
  border-top: 1px solid rgba(255,255,255,.04);
}

/* ── Section headers / labels ── */
.section-label { color: #3b82f6; }

.video-section h2,
.problem h2,
.solution__text h2,
.features h2,
.users h2,
.faq h2,
.how-it-works h2 { color: #f1f5f9; }

.video-section .section-sub,
.problem p.section-sub,
.solution__text > p,
.features .section-sub,
.users .section-sub,
.faq .section-sub,
.how-it-works .section-sub { color: #64748b; }

/* ── Problem cards ── */
.problem-card {
  background: #0c1a2e;
  border-color: rgba(255,255,255,.07);
}
.problem-card h3 { color: #e2e8f0; }
.problem-card p  { color: #64748b;  }
.problem-card__icon { background: rgba(37,99,235,.15); }
.problem-card:hover { box-shadow: 0 8px 32px rgba(37,99,235,.15); }

/* ── Solution ── */
.solution__text strong { color: #e2e8f0; }
.solution__list span   { color: #64748b; }
.solution__list li .solution__check { color: #2563eb; }

/* ── Backoffice ── */
.bo__title, .bo__sub { color: #f1f5f9; }
.bo__pill {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.1);
  color: #94a3b8;
}
.bo__pill:hover { border-color: #2563eb; color: #93c5fd; box-shadow: none; }

.bo__card {
  background: #0c1a2e;
  border: 1.5px solid rgba(255,255,255,.07);
  color: #e2e8f0;
}
.bo__card h3 { color: #f1f5f9; }
.bo__card p  { color: #64748b; }
.bo__card__list li { color: #94a3b8; }
.bo__card:hover { border-color: rgba(37,99,235,.4); box-shadow: 0 8px 32px rgba(37,99,235,.12); }

.bo__screen--half .bo__screen-img { background: #0c1a2e; }

.bo__gallery-item {
  background: #0c1a2e;
  border-color: rgba(255,255,255,.08);
}
.bo__gallery-item:hover { border-color: rgba(37,99,235,.4); }
.bo__gallery-item.active {
  border-color: #2563eb;
  background: rgba(37,99,235,.12);
}
.bo__gallery-item-icon { background: rgba(255,255,255,.06); }
.bo__gallery-item.active .bo__gallery-item-icon { background: rgba(37,99,235,.25); }
.bo__gallery-item-text strong { color: #f1f5f9; }
.bo__gallery-item-text span { color: #94a3b8; }
.bo__gallery-frame .bo__screen-img { background: #0c1a2e; }
.bo__gallery-desc { color: #94a3b8; }

.bo__screen-caption { color: #94a3b8; }
.bo__screen-caption strong { color: #f1f5f9; }

/* ── Features ── */
.feature-card {
  background: #0c1a2e;
  border-color: rgba(255,255,255,.07);
}
.feature-card h3 { color: #e2e8f0; }
.feature-card p  { color: #64748b; }
.feature-card__icon { background: rgba(37,99,235,.15); }
.feature-card:hover { border-color: rgba(37,99,235,.3); box-shadow: 0 8px 32px rgba(37,99,235,.12); }
.feature-card--soon {
  background: #100c1e;
  border-color: rgba(124,58,237,.2);
}
.feature-card--soon .feature-card__icon { background: rgba(124,58,237,.15); }
.feature-card--soon:hover { border-color: rgba(124,58,237,.4); }

/* ── Users ── */
.user-card {
  background: #0c1a2e;
  border-color: rgba(255,255,255,.07);
}
.user-card__icon { background: rgba(37,99,235,.15); }
.user-card h3 { color: #e2e8f0; }
.user-card p  { color: #64748b; }
.user-card:hover { box-shadow: 0 8px 32px rgba(37,99,235,.12); }

/* ── FAQ ── */
.faq__item {
  background: #0c1a2e;
  border-color: rgba(255,255,255,.07);
}
.faq__item summary { color: #e2e8f0; }
.faq__item p { color: #94a3b8; }

/* ── Video placeholder ── */
.video-wrapper .img-placeholder {
  background: #0c1a2e;
  border-color: rgba(255,255,255,.07);
}
.video-placeholder span, .video-placeholder small { color: #64748b; }

/* ── Waitlist form ── */
.waitlist__form-wrap {
  background: #0c1a2e;
  border: 1.5px solid rgba(255,255,255,.07);
}

/* ── Hero dark ── */
.hero { background: var(--gray-800); }
.hero h1 { color: #fff; }
.hero__h1-cloud { color: #fff; }
.hero__sub { color: rgba(255,255,255,.55); }
.hero__diagram-line { stroke: #e2e8f0; }
.hero__diagram-label { fill: #e2e8f0; }
.hero__diagram-fill { fill: #e2e8f0; }
.hero__diagram-mask { fill: #1c2c47; }
.hero__diagram-oncolor { fill: #0f172a; }

/* ── Logo larger ── */
.nav__logo-icon { width: 48px; height: 48px; border-radius: 12px; }
.nav__logo-text { font-size: 22px; }

/* ── Nav dark ── */
.nav {
  background: var(--gray-800);
  border-bottom: 1px solid rgba(255,255,255,.07);
}

/* ── Chapter / outro interludes ── */
.chapter-card { background: var(--gray-800); }
.chapter-card__title { color: #fff; }
.see-you { background: var(--gray-800); }
.see-you__brand { color: rgba(255,255,255,.28); }
.see-you__line1 { color: #fff; }
.see-you__line2 { color: rgba(255,255,255,.22); }

.nav.scrolled {
  box-shadow: 0 4px 32px rgba(0,0,0,.5);
}

.nav__logo-text { color: #fff; }

.nav__theme-toggle { border-color: rgba(255,255,255,.15); color: #e2e8f0; }
.nav__theme-toggle:hover { border-color: #3b82f6; background: rgba(59,130,246,.1); }
.nav__burger span { background: #fff; }

.nav__links a {
  color: rgba(255,255,255,.6);
}

.nav__links a:hover {
  color: #fff;
  background: rgba(255,255,255,.07);
}

.nav__links .nav__cta { background: #2563eb; color: #fff; }
.nav__links .nav__cta:hover { background: #1d4ed8; }

.nav__burger span { background: rgba(255,255,255,.85); }

/* Adjust hero padding for bar + nav */
.hero { padding-top: calc(68px + 34px + 60px); }

/* ── Stat separator ── */
.stat-sep { background: rgba(255,255,255,.1); }

/* ── Section reveal — start hidden ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(48px);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
}
