/* ==========================================================================
   Agentic Mobile Apps — design system
   Structural language studied from veridocs.com (sharp corners, thin serif
   display type, near-black/cream contrast sections, single warm accent,
   corner-bracket "frame" motif, snappy cubic-bezier easing) — palette,
   copy, and every component are original to this project.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;1,9..144,400;1,9..144,500&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* --- brand palette --- */
  --ink: #0a0c14;
  --ink-soft: #12141f;
  --paper: #faf7f2;
  --paper-dim: #f1ede5;
  --accent: #6a5cff;       /* signal violet — precision / agentic */
  --accent-2: #ff6a45;     /* warm coral — CTA / human moment */
  --accent-dim: #b8b0ff;

  --white: #ffffff;
  --n-90: #eeeeee;
  --n-70: #cccccc;
  --n-50: #8f95a3;
  --n-40: #666f83;
  --n-30: #444a58;
  --n-20: #22242f;

  --border-hair: 1px solid rgba(255, 255, 255, 0.12);
  --border-hair-dark: 1px solid rgba(10, 12, 20, 0.12);

  --ease-snap: cubic-bezier(0.215, 0.61, 0.355, 1);
  --ease-out-fast: cubic-bezier(0.23, 1, 0.32, 1);
  --dur-fast: 0.3s;
  --dur-med: 0.4s;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 0px;
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
}

/* --- reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

section { position: relative; }
.section-pad { padding: clamp(64px, 10vw, 140px) 0; }
.section-pad-sm { padding: clamp(40px, 6vw, 80px) 0; }

.bg-ink { background: var(--ink); color: var(--white); }
.bg-paper { background: var(--paper); color: var(--ink); }
.bg-ink-soft { background: var(--ink-soft); color: var(--white); }

/* --- typography --- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent-2);
  flex-shrink: 0;
}
.bg-paper .eyebrow { color: var(--accent); }
.bg-paper .eyebrow::before { background: var(--accent); }
.eyebrow .eyebrow-sub {
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: var(--n-50);
}

h1, .h1 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-size: clamp(40px, 6vw, 76px);
}
h2, .h2 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-size: clamp(30px, 4.2vw, 52px);
}
h3, .h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  font-size: clamp(20px, 2.2vw, 26px);
}
.accent-line { color: var(--accent); font-style: italic; }
.bg-ink .accent-line, .bg-ink-soft .accent-line { color: var(--accent-dim); }

.lede {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--n-50);
  max-width: 46ch;
  line-height: 1.6;
}
.bg-ink .lede, .bg-ink-soft .lede { color: var(--n-70); }

.mono-tag {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--n-50);
}

/* --- buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: var(--border-hair);
  transition: background-color var(--dur-fast) var(--ease-snap),
              color var(--dur-fast) var(--ease-snap),
              border-color var(--dur-fast) var(--ease-snap),
              transform var(--dur-fast) var(--ease-out-fast);
  white-space: nowrap;
}
.btn svg { width: 14px; height: 14px; transition: transform var(--dur-fast) var(--ease-snap); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--white); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.25);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }
.bg-paper .btn-ghost { color: var(--ink); border-color: rgba(10,12,20,0.2); }
.bg-paper .btn-ghost:hover { border-color: var(--ink); background: rgba(10,12,20,0.05); }
.btn-dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-dark:hover { background: var(--accent); border-color: var(--accent); }

/* --- nav --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 12, 20, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: var(--border-hair);
  transition: background-color var(--dur-fast) var(--ease-snap);
}
.nav-inner {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo-mark {
  width: 22px; height: 22px;
  background: var(--accent);
  position: relative;
  flex-shrink: 0;
}
.logo-mark::before {
  content: '';
  position: absolute;
  inset: 6px;
  background: var(--ink);
}
.nav-links {
  display: flex;
  gap: 26px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.nav-links a { color: var(--n-70); transition: color var(--dur-fast) var(--ease-snap); }
.nav-links a:hover { color: var(--white); }
.nav-cta { display: flex; align-items: center; gap: 14px; flex-shrink: 1; min-width: 0; }
.nav-toggle {
  display: none;
  background: transparent;
  border: var(--border-hair);
  color: var(--white);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 61px; left: 0; right: 0;
  background: var(--ink);
  border-bottom: var(--border-hair);
  z-index: 99;
  padding: 8px var(--gutter) 24px;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  padding: 14px 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--n-70);
  border-bottom: var(--border-hair);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu .btn { margin-top: 14px; justify-content: center; }

@media (max-width: 1100px) {
  .nav-cta .btn-ghost { display: none; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta .btn-primary { display: none; }
  .nav-toggle { display: flex; }
}

/* --- hero --- */
.hero {
  padding: clamp(140px, 20vw, 220px) 0 clamp(80px, 10vw, 120px);
  position: relative;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(106,92,255,0.35) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 20%, black 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 20%, black 0%, transparent 75%);
  pointer-events: none;
}
.hero-content { position: relative; max-width: 780px; }
.hero-kicker { margin-bottom: 26px; }
.hero h1 { margin-bottom: 26px; }
.hero .lede { margin-bottom: 40px; max-width: 52ch; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hero-note { font-size: 13px; color: var(--n-50); margin-top: 18px; }

/* reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease-out-fast), transform 0.7s var(--ease-out-fast);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* --- corner-frame motif (studied from veridocs' bracket cards) --- */
.frame {
  position: relative;
  border: var(--border-hair);
}
.bg-paper .frame { border: var(--border-hair-dark); }
.frame::before, .frame::after,
.frame-corner-tl, .frame-corner-br { content: ''; position: absolute; width: 16px; height: 16px; pointer-events: none; }
.frame::before { top: -1px; left: -1px; border-top: 2px solid var(--accent-2); border-left: 2px solid var(--accent-2); }
.frame::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--accent-2); border-right: 2px solid var(--accent-2); }

/* --- section heading block --- */
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head .eyebrow { margin-bottom: 20px; }
.section-head h2 { margin-bottom: 18px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* --- logo/word marquee --- */
.marquee-band {
  border-top: var(--border-hair);
  border-bottom: var(--border-hair);
  padding: 30px 0;
  overflow: hidden;
}
.marquee-row { display: flex; align-items: center; gap: 64px; width: max-content; animation: marquee 28s linear infinite; }
.marquee-track:hover .marquee-row { animation-play-state: paused; }
.marquee-item {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--n-40);
  white-space: nowrap;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --- problem / contrast cards --- */
.contrast-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,0.12);
  border: var(--border-hair);
}
.contrast-card { background: var(--ink); padding: clamp(28px, 4vw, 44px); }
.contrast-card .mono-tag { margin-bottom: 16px; }
.contrast-card h3 { margin-bottom: 14px; }
.contrast-card p { color: var(--n-70); font-size: 15px; line-height: 1.6; }
.contrast-card.is-negative .mono-tag { color: var(--n-50); }
.contrast-card.is-positive { background: var(--ink-soft); }
.contrast-card.is-positive .mono-tag { color: var(--accent-2); }
@media (max-width: 760px) { .contrast-grid { grid-template-columns: 1fr; } }

/* --- steps (scroll-progress driven, studied from veridocs' scrubbed section) --- */
.steps-section { padding: clamp(64px, 10vw, 130px) 0 40px; }
.steps-progress {
  height: 3px;
  background: var(--paper-dim);
  margin-top: 48px;
  position: relative;
}
.steps-progress-fill {
  position: absolute; top: 0; left: 0; height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.25s var(--ease-snap);
}
.steps-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(10,12,20,0.1); margin-top: 40px; }
.step-card {
  background: var(--paper);
  padding: 30px 26px 34px;
  position: relative;
  transition: background-color var(--dur-med) var(--ease-snap);
}
.step-card::before, .step-card::after { content: ''; position: absolute; width: 14px; height: 14px; opacity: 0; transition: opacity var(--dur-fast) var(--ease-snap); }
.step-card::before { top: 10px; left: 10px; border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); }
.step-card::after { bottom: 10px; right: 10px; border-bottom: 2px solid var(--accent); border-right: 2px solid var(--accent); }
.step-card.is-active::before, .step-card.is-active::after { opacity: 1; }
.step-card.is-active { background: var(--white); }
.step-num {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--n-40);
  margin-bottom: 14px;
}
.step-num svg { width: 10px; height: 10px; fill: var(--accent); }
.step-card h4 { font-family: var(--font-display); font-weight: 500; font-size: 19px; color: var(--ink); margin-bottom: 10px; }
.step-card p { font-size: 14px; line-height: 1.55; color: var(--n-30); }
@media (max-width: 900px) { .steps-list { grid-template-columns: 1fr; } }

/* --- industries tabs (studied from veridocs' vertical showcase) --- */
.industries-shell { border: var(--border-hair-dark); background: var(--white); position: relative; }
.industry-tabs {
  display: flex;
  border-bottom: var(--border-hair-dark);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.industry-tabs::-webkit-scrollbar { display: none; }
/* Scroll affordance: a soft fade at the right edge hints there's more to
   swipe to, since the row can overflow on narrow screens. */
.industries-shell::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 36px;
  height: 61px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.95));
  pointer-events: none;
}
@media (min-width: 620px) { .industries-shell::after { display: none; } }
.industry-tab {
  padding: 20px 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--n-40);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color var(--dur-fast) var(--ease-snap), border-color var(--dur-fast) var(--ease-snap);
  background: transparent;
  border-top: none; border-left: none; border-right: none;
}
.industry-tab.is-active { color: var(--ink); border-bottom-color: var(--accent); }
.industry-tab:hover { color: var(--ink); }
.industry-panels { position: relative; }
.industry-panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.industry-panel.is-active { display: grid; }
.industry-copy { padding: clamp(32px, 5vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.industry-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper-dim);
  color: var(--accent);
  margin-bottom: 22px;
}
.industry-icon svg { width: 22px; height: 22px; }
.industry-copy h3 { color: var(--ink); margin-bottom: 12px; }
.industry-copy p { color: var(--n-30); font-size: 15px; line-height: 1.6; margin-bottom: 18px; }
.industry-modules { display: flex; flex-wrap: wrap; gap: 8px; }
.industry-modules span {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  background: var(--paper-dim);
  color: var(--n-30);
  letter-spacing: 0.02em;
}
.industry-visual {
  position: relative;
  background: var(--ink);
  min-height: 340px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  border-left: 3px solid var(--accent);
}
.phone-mock {
  width: 200px;
  border: 8px solid var(--n-20);
  background: var(--ink-soft);
  aspect-ratio: 9/18.5;
  position: relative;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
}
.phone-mock .bar { height: 22px; background: rgba(255,255,255,0.06); display: flex; align-items: center; padding: 0 10px; gap: 5px; }
.phone-mock .bar span { width: 5px; height: 5px; background: var(--accent-2); border-radius: 50%; }
.phone-mock .body { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.phone-mock .line { height: 8px; background: rgba(255,255,255,0.12); }
.phone-mock .line.w60 { width: 60%; }
.phone-mock .line.w80 { width: 80%; }
.phone-mock .card { height: 54px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); margin-top: 6px; }
@media (max-width: 760px) { .industry-panel { grid-template-columns: 1fr; } .industry-visual { min-height: 260px; } }

/* --- comparison table --- */
/* Self-contained light surface: tbody text colors below assume this
   background regardless of the section the table is dropped into. */
.vs-table-wrap { overflow-x: auto; border: var(--border-hair-dark); background: var(--paper); }
.vs-table { width: 100%; border-collapse: collapse; min-width: 640px; color: var(--ink); }
.vs-table th, .vs-table td { padding: 18px 22px; text-align: left; border-bottom: var(--border-hair-dark); font-size: 14.5px; }
.vs-table thead th { background: var(--ink); color: var(--white); font-family: var(--font-display); font-weight: 400; font-size: 17px; }
.vs-table thead th:first-child { background: var(--paper); color: var(--ink); }
.vs-table tbody th { color: var(--n-30); font-weight: 600; width: 26%; }
.vs-table tbody td:nth-child(2) { color: var(--n-40); }
.vs-table tbody td:nth-child(3) { color: var(--ink); font-weight: 500; }
.vs-table tbody tr:last-child th, .vs-table tbody tr:last-child td { border-bottom: none; }
.vs-table td.cell-good::before { content: '✓ '; color: var(--accent); font-weight: 700; }
.vs-table td.cell-bad::before { content: '— '; color: var(--n-50); }

/* Below ~640px, a wide table forces sideways scrolling just to reach the
   "Agentic Mobile Apps" column — the answer that matters most. Restructure
   each row into a small stacked card instead: the question as a heading,
   then each answer on its own labeled line. No markup change needed. */
@media (max-width: 640px) {
  .vs-table-wrap { overflow-x: visible; border: none; }
  .vs-table { min-width: 0; display: block; }
  .vs-table thead { display: none; }
  .vs-table tbody { display: block; }
  .vs-table tbody tr {
    display: block;
    border: var(--border-hair-dark);
    margin-bottom: 14px;
    padding: 18px 20px;
  }
  .vs-table tbody tr:last-child { margin-bottom: 0; }
  .vs-table th, .vs-table td { display: block; padding: 0; border-bottom: none; width: auto; }
  .vs-table tbody th {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 12px;
  }
  .vs-table tbody td { padding: 8px 0 0 0; font-size: 14px; line-height: 1.5; }
  .vs-table tbody td:first-of-type { border-top: var(--border-hair-dark); padding-top: 12px; }
  .vs-table tbody td::before {
    display: block;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 4px;
  }
  /* One ::before slot per cell, so the desktop ✓/— glyph rule is superseded
     here rather than fought with — the accent-colored label alone already
     makes the distinction clear without needing both. */
  .vs-table tbody td:nth-child(2)::before { content: 'VIBE CODING'; color: var(--n-50); }
  .vs-table tbody td:nth-child(3)::before { content: 'AGENTIC MOBILE APPS'; color: var(--accent); }
}

/* --- build visualization (looping, decorative — aria-hidden) ---
   One 9s cycle: type the prompt (0–36%) -> hold (36–44%) -> a dot travels
   the pipeline lighting each node in turn (44–89%) -> output appears
   (89–100%) -> reset and repeat. Node count is 6, evenly spaced. */
.build-viz {
  --cycle: 9s;
  max-width: 880px;
  margin: 0 auto;
  padding: 44px clamp(20px, 4vw, 48px) 36px;
  background: var(--white);
  border: var(--border-hair-dark);
}
.build-prompt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--paper-dim);
  border: var(--border-hair-dark);
  margin-bottom: 44px;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--ink);
}
.build-prompt-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  flex-shrink: 0;
  animation: build-pulse var(--cycle) ease-in-out infinite;
}
/* flex:1 + min-width:0 is the actual fix: without it, a flex child holding
   white-space:nowrap content refuses to shrink below the text's full
   content width (default min-width:auto), so overflow:hidden never had
   anything real to clip against — the box just grew to fit the sentence
   regardless of available row space. */
.build-prompt-text-wrap { overflow: hidden; flex: 1; min-width: 0; }
.build-prompt-text {
  display: inline-block;
  white-space: nowrap;
  border-right: 2px solid var(--accent);
  padding-right: 3px;
  width: 0;
  animation: build-type var(--cycle) steps(39, end) infinite;
}
@keyframes build-pulse {
  0%, 40% { opacity: 1; }
  20% { opacity: 0.35; }
  41%, 100% { opacity: 0.35; }
}
@keyframes build-type {
  0% { width: 0; }
  36%, 100% { width: 39ch; }
}

.build-viz { position: relative; overflow: hidden; }
/* Ambient layer: a slow, independent drift of faint dots behind everything,
   suggesting continuous background activity rather than one linear script. */
.build-viz-ambient {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(106,92,255,0.14) 1px, transparent 1px);
  background-size: 26px 26px;
  animation: build-ambient-drift 46s linear infinite;
  pointer-events: none;
}
@keyframes build-ambient-drift {
  from { background-position: 0 0; }
  to { background-position: 260px 130px; }
}

/* --- neural pipeline: a real small-network topology (6 layers, 20 neurons,
   66 synapses) instead of icon-nodes on a wire. A signal sweeps layer by
   layer left to right: synapses ignite, then the destination layer's
   neurons light up, ring, and settle — the same 44%–89% travel window and
   per-index timing (i * cycle * 0.084) the rest of the section already
   uses, so it stays in lockstep with the prompt-typing and output reveal. */
.build-pipeline {
  position: relative;
  width: 100%;
  aspect-ratio: 900 / 200;
  margin-bottom: 8px;
  z-index: 1;
}
.neural-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

.synapse {
  stroke: var(--n-90);
  stroke-width: 1;
  opacity: 0.8;
  stroke-dasharray: none;
  animation-name: synapse-glow, synapse-flow;
  animation-duration: var(--cycle), 0.6s;
  animation-timing-function: ease-out, linear;
  animation-iteration-count: infinite, infinite;
}
.synapse-gap-0 { animation-delay: calc((0.5) * (var(--cycle) * 0.084)), 0s; }
.synapse-gap-1 { animation-delay: calc((1.5) * (var(--cycle) * 0.084)), 0s; }
.synapse-gap-2 { animation-delay: calc((2.5) * (var(--cycle) * 0.084)), 0s; }
.synapse-gap-3 { animation-delay: calc((3.5) * (var(--cycle) * 0.084)), 0s; }
.synapse-gap-4 { animation-delay: calc((4.5) * (var(--cycle) * 0.084)), 0s; }
/* stroke-dasharray snaps (not smoothly interpolated) between solid and a
   dotted pattern; the separate synapse-flow loop only becomes visible once
   dasharray is set, giving the "dots traveling along the wire" read. */
@keyframes synapse-glow {
  0%, 41% { stroke: var(--n-90); stroke-width: 1; opacity: 0.8; stroke-dasharray: none; }
  44% { stroke-dasharray: 4 4; }
  47% { stroke: var(--accent); stroke-width: 1.8; opacity: 1; stroke-dasharray: 4 4; }
  55% { stroke-dasharray: 4 4; }
  58%, 100% { stroke: var(--n-90); stroke-width: 1; opacity: 0.8; stroke-dasharray: none; }
}
@keyframes synapse-flow {
  from { stroke-dashoffset: 16; }
  to { stroke-dashoffset: 0; }
}

.neuron {
  fill: var(--white);
  stroke: var(--n-70);
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: neuron-fire var(--cycle) ease-in-out infinite;
  animation-delay: calc(var(--i) * (var(--cycle) * 0.084));
}
@keyframes neuron-fire {
  0%, 41% { fill: var(--white); stroke: var(--n-70); transform: scale(1); filter: none; }
  44% {
    fill: var(--accent);
    stroke: var(--accent);
    transform: scale(1.5);
    filter: drop-shadow(0 0 5px rgba(106,92,255,0.75));
  }
  50% { transform: scale(1.1); }
  56%, 100% { fill: var(--white); stroke: var(--n-70); transform: scale(1); filter: none; }
}
/* The lone Ship neuron gets the biggest, longest-held pulse — the payoff
   node right before the output reveal. */
.neuron-l5 {
  animation-name: neuron-fire-final;
}
@keyframes neuron-fire-final {
  0%, 86% { fill: var(--white); stroke: var(--n-70); transform: scale(1); filter: none; }
  90% {
    fill: var(--accent);
    stroke: var(--accent);
    transform: scale(1.7);
    filter: drop-shadow(0 0 8px rgba(106,92,255,0.85));
  }
  100% { fill: var(--accent); stroke: var(--accent); transform: scale(1.3); filter: drop-shadow(0 0 6px rgba(106,92,255,0.6)); }
}

/* Sits as its own row below .build-pipeline (a sibling, not a child of it) —
   the pipeline's only sizing comes from aspect-ratio while its SVG is
   absolutely positioned inside it, so a label row nested *inside* that box
   would render at its top edge instead of after the diagram.
   Natural width + nowrap, not equal flex:1 columns: six columns forced to
   the same width (~50px on a phone) don't have room for a 9-letter word
   like "Discovery" at any legible font size — measured, not assumed: at the
   320px breakpoint's 8px font it needs ~76px against a ~43px column. Letting
   each label size to its own content and distributing the row with
   space-between fits the full set (measured total ~285px at 320px viewport)
   with room to spare, and guarantees every label stays on one line. This
   trades a little positional alignment with the diagram above for that
   guarantee — acceptable for a decorative label row. */
.neural-labels {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 14px;
  margin-bottom: 28px;
}
.neural-labels span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--n-50);
  flex: none;
  white-space: nowrap;
}

/* Build layer only: a tiny "generating" equalizer flourish while it fires,
   a quick abstract stand-in for code being written — no literal text.
   Positioned to sit under the Build layer's neuron cluster (layer x ≈ 59%
   of the 900-wide viewBox; the cluster's lowest neuron sits at y ≈ 79%). */
.build-node-bars {
  position: absolute;
  left: 58.9%;
  top: 80%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 10px;
}
.build-node-bars span {
  width: 2.5px;
  height: 3px;
  background: var(--accent-2);
  opacity: 0;
  animation: build-bars var(--cycle) ease-in-out infinite;
  animation-delay: calc(3 * (var(--cycle) * 0.084));
}
.build-node-bars span:nth-child(2) { animation-delay: calc(3 * (var(--cycle) * 0.084) + 0.08s); }
.build-node-bars span:nth-child(3) { animation-delay: calc(3 * (var(--cycle) * 0.084) + 0.16s); }
.build-node-bars span:nth-child(4) { animation-delay: calc(3 * (var(--cycle) * 0.084) + 0.24s); }
@keyframes build-bars {
  0%, 43% { height: 3px; opacity: 0; }
  45%, 54% { height: 10px; opacity: 1; }
  57%, 100% { height: 3px; opacity: 0; }
}

@media (max-width: 640px) {
  .neural-labels span { font-size: 9px; }
  .build-pipeline { margin-bottom: 4px; }
}
@media (max-width: 400px) {
  .neural-labels span { font-size: 8px; }
}

.build-output {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  z-index: 1;
}
.build-output-glow {
  position: absolute;
  left: 50%; top: 50%;
  width: 260px; height: 260px;
  margin: -130px 0 0 -130px;
  background: radial-gradient(circle, rgba(106,92,255,0.25), transparent 65%);
  opacity: 0;
  animation: build-glow-pulse var(--cycle) ease-out infinite;
  pointer-events: none;
}
@keyframes build-glow-pulse {
  0%, 88% { opacity: 0; transform: scale(0.6); }
  93% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.15); }
}
.build-output-phone {
  opacity: 0;
  transform: translateY(10px) scale(0.85);
  animation: build-phone-show var(--cycle) infinite;
}
@keyframes build-phone-show {
  0%, 88% { opacity: 0; transform: translateY(10px) scale(0.85); }
  93% { opacity: 1; transform: translateY(0) scale(1.06); }
  96% { transform: translateY(0) scale(1); }
  99% { opacity: 1; }
  100% { opacity: 0; }
}
.build-output-phone .phone-mock.small { width: 64px; position: relative; }
.build-output-phone .phone-mock.small::after {
  content: '';
  position: absolute; inset: -4px;
  border: 1px solid var(--accent);
  opacity: 0;
  animation: build-node-ring var(--cycle) ease-out infinite;
  animation-delay: calc(var(--cycle) * 0.93);
}
.build-files { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
/* Official, unmodified Apple/Google badge artwork (see index.html for
   sourcing). Both brands' guidelines prohibit modifying, angling, or adding
   effects (drop-shadows, glows) to these — so the only animation here is a
   plain opacity fade timed to the existing output reveal; no transform,
   filter, recolor, or resize beyond the aspect-ratio-locked height below. */
.store-badge {
  display: block;
  height: 40px;
  width: auto;
  opacity: 0;
  animation: badge-show var(--cycle) infinite;
}
.store-badge-2 { animation-delay: calc(var(--cycle) * 0.015); }
@keyframes badge-show {
  0%, 90% { opacity: 0; }
  95%, 99% { opacity: 1; }
  100% { opacity: 0; }
}

@media (max-width: 640px) {
  .build-node-label { display: none; }
  .build-node { width: auto; }
  .build-viz { padding-left: 12px; padding-right: 12px; }
  .build-prompt { padding: 12px 10px; gap: 8px; }
  .build-prompt-text { font-size: 10.5px; }
  .build-output-glow { width: 180px; height: 180px; margin: -90px 0 0 -90px; }
}
@media (max-width: 360px) {
  .build-viz { padding-left: 8px; padding-right: 8px; }
  .build-prompt { padding: 10px 8px; gap: 6px; }
  .build-prompt-text { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .build-viz-ambient,
  .synapse,
  .neuron,
  .build-node-bars span,
  .build-output-phone,
  .build-output-phone .phone-mock.small::after,
  .store-badge,
  .build-output-glow,
  .build-prompt-dot,
  .build-prompt-text { animation: none; }
}

/* --- why grid --- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(10,12,20,0.08); }
.why-card { background: var(--paper); padding: 34px 30px; }
.why-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--white); border: var(--border-hair-dark); color: var(--accent); margin-bottom: 20px; }
.why-icon svg { width: 20px; height: 20px; }
.why-card h4 { font-family: var(--font-display); font-weight: 500; font-size: 18px; color: var(--ink); margin-bottom: 10px; }
.why-card p { font-size: 14.5px; color: var(--n-30); line-height: 1.6; }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr; } }

/* --- pricing band --- */
.pricing-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,0.12); border: var(--border-hair); }
.price-card { background: var(--ink-soft); padding: 34px 30px; min-width: 0; }
.price-card .step-tag { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--accent-2); margin-bottom: 14px; display: block; }
.price-card .amount { font-family: var(--font-display); font-size: clamp(24px, 4vw, 34px); font-weight: 400; margin-bottom: 12px; }
.price-card p { font-size: 14px; color: var(--n-70); line-height: 1.55; }
@media (max-width: 760px) { .pricing-band { grid-template-columns: 1fr; } }

/* --- CTA band --- */
.cta-band {
  position: relative;
  background: var(--ink);
  padding: clamp(70px, 10vw, 120px) 0;
  overflow: hidden;
  text-align: center;
}
.cta-glow {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(106,92,255,0.25), transparent 60%);
  pointer-events: none;
}
.cta-band h2 { position: relative; margin-bottom: 30px; }
.cta-band .btn { position: relative; }
.wrap-narrow { max-width: 620px; }

/* --- signup form --- */
.signup-form { position: relative; text-align: left; }
.hp-field {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-field { margin-bottom: 16px; text-align: left; }
.form-row .form-field { margin-bottom: 0; }
.form-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--n-50);
  margin-bottom: 8px;
}
.optional-tag { text-transform: none; font-weight: 400; letter-spacing: normal; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: var(--border-hair);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 13px 14px;
  transition: border-color var(--dur-fast) var(--ease-snap), background-color var(--dur-fast) var(--ease-snap);
}
.form-field textarea { resize: vertical; min-height: 80px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,0.07);
}
.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238f95a3' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}
.form-field.has-error input,
.form-field.has-error select {
  border-color: var(--accent-2);
}
.form-field .field-error {
  display: none;
  font-size: 12.5px;
  color: var(--accent-2);
  margin-top: 6px;
}
.form-field.has-error .field-error { display: block; }
.form-submit { width: 100%; justify-content: center; margin-top: 6px; }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.form-submit .btn-label::after { content: attr(data-idle); }
.form-status {
  min-height: 20px;
  margin: 14px 0 0;
  font-size: 13.5px;
  color: var(--accent-2);
  text-align: center;
}
.form-status.is-ok { color: var(--accent-dim); }

.signup-success { text-align: center; padding: 20px 0; }
.signup-success-icon {
  width: 56px; height: 56px;
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(106,92,255,0.15);
  border: 1px solid var(--accent);
  color: var(--accent-dim);
}
.signup-success-icon svg { width: 26px; height: 26px; }
.signup-success h3 { font-family: var(--font-display); font-size: 26px; font-weight: 400; margin-bottom: 12px; }
.signup-success .lede { max-width: 42ch; }

@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; gap: 16px; } }

/* --- footer --- */
.footer { background: var(--ink); border-top: var(--border-hair); padding: 60px 0 30px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 50px; }
.footer-brand { max-width: 300px; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { color: var(--n-50); font-size: 14px; line-height: 1.6; }
.footer-cols { display: flex; gap: 70px; flex-wrap: wrap; }
.footer-col h5 { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--n-50); margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14px; color: var(--n-70); transition: color var(--dur-fast) var(--ease-snap); }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: var(--border-hair); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--n-50); }
@media (max-width: 560px) {
  .footer-cols { flex-direction: column; gap: 36px; width: 100%; }
}

/* --- page hero (interior pages) --- */
.page-hero { padding: clamp(150px, 18vw, 200px) 0 clamp(50px, 7vw, 80px); }
.page-hero .eyebrow { margin-bottom: 22px; }
.page-hero h1 { margin-bottom: 22px; }

/* --- utility --- */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-lg { margin-top: 56px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }

@media (max-width: 640px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
}
