/* =========================================================================
   ZenvX AI Studio — Global stylesheet
   Single centralized token system + reusable components.
   Dark theme, single green accent (kept from the existing "Live" semantics).
   ========================================================================= */

/* ------------------------------ Design tokens --------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  /* Surfaces (canvas -> raised) */
  --bg:            #0A0C0B;
  --bg-elev:       #0E110F;
  --surface:       #121614;
  --surface-2:     #171B19;
  --raised:        #1E2320;

  /* Hairlines / borders */
  --border:        rgba(255,255,255,0.09);
  --border-strong: rgba(255,255,255,0.16);

  /* Text */
  --text:          #F3F6F4;
  --text-2:        rgba(255,255,255,0.64);
  --text-3:        rgba(255,255,255,0.42);

  /* Single accent (green) — CTAs, links, active states, listening glow, Live */
  --accent:        #33D17A;
  --accent-strong: #26BE6A;
  --accent-ink:    #04140B;               /* text on accent fills */
  --accent-soft:   rgba(51,209,122,0.12);
  --accent-line:   rgba(51,209,122,0.30);
  --accent-glow:   rgba(51,209,122,0.45);

  /* Radii */
  --r-sm: 10px;
  --r:    14px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* Spacing scale: 4 8 12 16 24 32 48 64 96 */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  /* Shadows / glows (subtle, borders-first) */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.35);
  --shadow:    0 1px 2px rgba(0,0,0,.35), 0 12px 32px rgba(0,0,0,.35);
  --glow:      0 0 0 1px var(--accent-line), 0 0 40px -8px var(--accent-glow);

  /* Type (matches existing site: Inter body + Space Grotesk display) */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  --font-display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SF Mono", ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;

  /* Layout */
  --container: 1120px;
  --nav-h: 68px;
}

/* ------------------------------ Reset ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Ambient background: one soft green wash, no rainbow/purple slop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60% 45% at 78% -5%, rgba(51,209,122,0.10), transparent 60%),
    radial-gradient(50% 40% at 0% 0%, rgba(255,255,255,0.03), transparent 55%);
}

/* ------------------------------ Layout --------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s5);
  position: relative;
  z-index: 1;
}
.section { padding-block: var(--s9); position: relative; z-index: 1; }
.section--tight { padding-block: var(--s8); }
.divider { height: 1px; background: var(--border); border: 0; }

/* ------------------------------ Typography ----------------------------- */
.display {
  font-size: clamp(2.4rem, 6vw, 4.1rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 750;
}
.h3 {
  font-size: 1.18rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 650;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--text-2); }
.muted { color: var(--text-2); }
.text-accent { color: var(--accent); }

/* Section header component: eyebrow + title + subtext */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--accent-line);
}
.section-head { max-width: 720px; margin-bottom: var(--s7); }
.section-head .eyebrow { margin-bottom: var(--s4); }
.section-head .h2 { margin-bottom: var(--s4); }
.section-head .lead { color: var(--text-2); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

/* ------------------------------ Buttons -------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 46px;
  padding: 0 var(--s5);
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform .18s ease, background .18s ease,
              border-color .18s ease, box-shadow .18s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 8px 24px -10px var(--accent-glow);
}
.btn-primary:hover { background: var(--accent-strong); box-shadow: 0 12px 30px -8px var(--accent-glow); }
.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover { background: var(--raised); border-color: var(--accent-line); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { color: var(--text); }
.btn-sm { min-height: 38px; padding: 0 var(--s4); font-size: 0.9rem; }
.btn-block { width: 100%; }

/* ------------------------------ Nav ------------------------------------ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(10,12,11,0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.12rem;
}
.brand .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s2);
  list-style: none;
  padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: var(--s2) var(--s3);
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: "";
  display: block;
  height: 2px; margin-top: 3px;
  border-radius: 2px;
  background: var(--accent);
}
.nav-links .btn-primary { display: none; }   /* in-menu CTA hidden on desktop */
.nav-right { display: flex; align-items: center; gap: var(--s3); }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 18px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after  { transform: translateY(4px); }
.nav.open .nav-toggle span { background: transparent; }
.nav.open .nav-toggle span::before { transform: rotate(45deg); }
.nav.open .nav-toggle span::after  { transform: rotate(-45deg) translateY(-1.5px); }

/* ------------------------------ Badges / tags -------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
}
.badge-live {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--accent-line);
}
.badge-live .live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: livePulse 2s infinite;
}
.badge-soon { color: var(--text-2); }
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 var(--accent-glow); }
  70%  { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* ------------------------------ Cards ---------------------------------- */
.grid { display: grid; gap: var(--s5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: var(--s6);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.card .icon {
  font-size: 1.6rem;
  width: 52px; height: 52px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  margin-bottom: var(--s4);
}
.card:hover .icon { border-color: var(--accent-line); }
.card .h3 { margin-bottom: var(--s2); }
.card p { color: var(--text-2); font-size: 0.96rem; }

/* Stat card */
.stat .num {
  font-size: 2.4rem; font-weight: 800; letter-spacing: -0.02em;
  line-height: 1; color: var(--text);
}
.stat .num .plus { color: var(--accent); }

/* Feature card, larger product surface */
.product-card {
  display: grid;
  gap: var(--s4);
  background:
    linear-gradient(180deg, rgba(51,209,122,0.05), transparent 40%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s7);
}
.product-card .h2 { margin-bottom: var(--s2); }
.product-card .row { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }

/* ------------------------------ Hero ----------------------------------- */
.hero { padding-block: clamp(var(--s7), 8vw, var(--s9)); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--s8);
  align-items: center;
}
.hero .display { margin-block: var(--s4); }
.hero .lead { max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.hero-meta { display: flex; gap: var(--s5); margin-top: var(--s6); color: var(--text-3); font-size: 0.85rem; flex-wrap: wrap; }
.hero-meta b { color: var(--text); font-weight: 650; }

/* ------------------- Concept demo (Speak -> Understand -> Execute) ------ */
.demo {
  position: relative;
  border-radius: var(--r-lg);
}
/* Swap point wrapper: drop real <video>/<img> here later (see index.html) */
.demo-media { display: none; border-radius: var(--r-lg); overflow: hidden; }
.demo-media.is-active { display: block; }
.demo-media.is-active + .demo-mock { display: none; }

.demo-mock {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.osbar {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.traffic { display: flex; gap: 7px; }
.traffic i { width: 11px; height: 11px; border-radius: 50%; background: var(--raised); display: block; }
.osbar .title { font-size: 0.82rem; color: var(--text-3); font-weight: 600; }
.osbar .clock { margin-left: auto; font-size: 0.78rem; color: var(--text-3); font-variant-numeric: tabular-nums; }

.osbody { padding: var(--s5); display: grid; gap: var(--s4); min-height: 340px; }

/* Pipeline steps */
.pipe { display: flex; align-items: center; gap: var(--s2); }
.pipe .step {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 11px; border-radius: var(--r-pill);
  font-size: 0.74rem; font-weight: 600;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-3);
  transition: color .25s ease, border-color .25s ease, background .25s ease;
}
.pipe .step .bullet { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); transition: background .25s ease, box-shadow .25s ease; }
.pipe .step.on { color: var(--text); border-color: var(--accent-line); background: var(--accent-soft); }
.pipe .step.on .bullet { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.pipe .arrow { color: var(--text-3); font-size: 0.8rem; }

/* Mic / listening */
.mic-row { display: flex; align-items: center; gap: var(--s4); }
.mic {
  position: relative;
  width: 54px; height: 54px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 1.3rem;
  transition: border-color .25s ease, background .25s ease;
}
.demo.listening .mic {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}
.demo.listening .mic::after {
  content: "";
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--accent-line);
  animation: micPulse 1.4s ease-out infinite;
}
@keyframes micPulse {
  0%   { transform: scale(0.9); opacity: .8; }
  100% { transform: scale(1.5); opacity: 0; }
}
/* Live waveform bars */
.wave { display: flex; align-items: center; gap: 4px; height: 34px; }
.wave i { width: 4px; height: 8px; border-radius: 3px; background: var(--text-3); }
.demo.listening .wave i { background: var(--accent); animation: wave 1s ease-in-out infinite; }
.demo.listening .wave i:nth-child(2){ animation-delay: .1s }
.demo.listening .wave i:nth-child(3){ animation-delay: .2s }
.demo.listening .wave i:nth-child(4){ animation-delay: .3s }
.demo.listening .wave i:nth-child(5){ animation-delay: .15s }
.demo.listening .wave i:nth-child(6){ animation-delay: .25s }
.demo.listening .wave i:nth-child(7){ animation-delay: .05s }
@keyframes wave { 0%,100%{ height: 8px } 50%{ height: 30px } }

/* Command bubble w/ typing */
.bubble {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: var(--s3) var(--s4);
  font-size: 0.98rem; color: var(--text);
  min-height: 46px; display: flex; align-items: center;
}
.bubble .label { color: var(--text-3); font-size: 0.72rem; text-transform: uppercase; letter-spacing: .1em; margin-right: 8px; }
.caret { display: inline-block; width: 2px; height: 1.05em; background: var(--accent); margin-left: 2px; vertical-align: -2px; opacity: 0; }
.demo.typing .caret { animation: blink 0.9s step-end infinite; opacity: 1; }
@keyframes blink { 50% { opacity: 0; } }

/* Execution result: opened window + notif toggle */
.result { display: grid; grid-template-columns: 1fr auto; gap: var(--s3); align-items: stretch; }
.result .win, .result .notif {
  opacity: 0; transform: translateY(8px) scale(.98);
  transition: opacity .4s ease, transform .4s ease;
}
.demo.executed .result .win, .demo.executed .result .notif { opacity: 1; transform: none; }
.win {
  background: var(--surface); border: 1px solid var(--accent-line);
  border-radius: 10px; padding: var(--s3) var(--s4);
  display: flex; align-items: center; gap: var(--s3);
  box-shadow: 0 0 30px -12px var(--accent-glow);
}
.win .app { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); font-size: 1.1rem; }
.win .meta small { color: var(--text-3); display: block; font-size: 0.74rem; }
.win .meta b { font-size: 0.92rem; font-weight: 650; }
.notif {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: var(--s3); min-width: 96px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
}
.notif small { font-size: 0.68rem; color: var(--text-3); }
.toggle {
  width: 44px; height: 24px; border-radius: var(--r-pill);
  background: var(--raised); position: relative; transition: background .3s ease;
}
.toggle::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%; background: var(--text-2);
  transition: transform .3s ease, background .3s ease;
}
.demo.executed .toggle { background: var(--accent); }
.demo.executed .toggle::after { transform: translateX(20px); background: #fff; }
.notif .state { font-size: 0.74rem; font-weight: 650; color: var(--text-3); }
.demo.executed .notif .state { color: var(--accent); }

/* ------------------------------ Founders ------------------------------- */
.founder-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.founder-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: var(--s6);
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--s3);
  transition: transform .2s ease, border-color .2s ease;
}
.founder-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.avatar {
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center;
  font-weight: 700; font-size: 1.15rem; letter-spacing: 0.02em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}
.founder-card .name { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.01em; }
.founder-card .role { color: var(--text-2); font-size: 0.92rem; }
.founder-card .contact { margin-top: var(--s2); }
.founder-card .contact a {
  display: inline-flex; align-items: center; gap: var(--s2);
  color: var(--accent); font-size: 0.95rem; font-weight: 550;
}
.founder-card .contact a:hover { text-decoration: underline; }

/* ------------------------------ Roadmap -------------------------------- */
.timeline { display: grid; gap: var(--s4); }
.tl-item {
  display: grid; grid-template-columns: 132px 1fr; gap: var(--s5);
  align-items: start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: var(--s5) var(--s6);
}
.tl-item .phase { color: var(--text-3); font-size: 0.82rem; font-weight: 650; }
.tl-item.done .phase { color: var(--accent); }
.tl-item .h3 { margin-bottom: 4px; }
.tl-item p { color: var(--text-2); font-size: 0.95rem; }

/* ------------------------------ FAQ ------------------------------------ */
.faq { display: grid; gap: var(--s3); max-width: 820px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color .2s ease;
}
.faq-item.open { border-color: var(--accent-line); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  padding: var(--s5) var(--s5);
  background: transparent; border: 0; text-align: left;
  color: var(--text); font-size: 1.02rem; font-weight: 600;
}
.faq-q:hover { color: var(--accent); }
.faq-q .chev {
  flex: none; width: 22px; height: 22px; position: relative;
  transition: transform .25s ease; color: var(--text-3);
}
.faq-item.open .faq-q .chev { transform: rotate(180deg); color: var(--accent); }
.faq-a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .28s ease;
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p {
  padding: 0 var(--s5) var(--s5);
  color: var(--text-2); font-size: 0.97rem; line-height: 1.6;
}
.verify {
  display: inline-block;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em;
  color: #E9B872; background: rgba(233,184,114,0.12);
  border: 1px solid rgba(233,184,114,0.3);
  padding: 1px 6px; border-radius: 6px; margin-left: 6px;
  vertical-align: 1px;
}

/* ------------------------------ CTA band ------------------------------- */
.cta-band {
  text-align: center;
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(51,209,122,0.10), transparent 60%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(var(--s7), 6vw, var(--s9)) var(--s5);
}
.cta-band .h2 { margin-bottom: var(--s4); }
.cta-band .actions { display: flex; gap: var(--s3); justify-content: center; flex-wrap: wrap; margin-top: var(--s6); }

/* ------------------------------ Contact form --------------------------- */
/* Two-column founders | form layout; collapses to one column on tablet/phone */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s7); align-items: start; }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s7); }
.field { display: grid; gap: var(--s2); margin-bottom: var(--s4); }
.field label { font-size: 0.85rem; color: var(--text-2); font-weight: 550; }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent-line);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field select { appearance: none; }

/* ------------------------------ Footer --------------------------------- */
.footer {
  border-top: 1px solid var(--border);
  padding-block: var(--s8) var(--s6);
  margin-top: var(--s8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--s7);
  margin-bottom: var(--s7);
}
.footer .brand { margin-bottom: var(--s3); }
.footer p { color: var(--text-2); font-size: 0.94rem; max-width: 34ch; }
.footer h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); margin-bottom: var(--s4); }
.footer ul { list-style: none; padding: 0; display: grid; gap: var(--s3); }
.footer ul a { color: var(--text-2); font-size: 0.95rem; }
.footer ul a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s4);
  padding-top: var(--s5); border-top: 1px solid var(--border);
  color: var(--text-3); font-size: 0.86rem; flex-wrap: wrap;
}

/* ------------------------------ Reveal motion -------------------------- */
/* Reveals only hide when JS is active (graceful no-JS fallback) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .06s; }
.reveal.d2 { transition-delay: .12s; }
.reveal.d3 { transition-delay: .18s; }
.reveal.d4 { transition-delay: .24s; }

/* ------------------------------ Responsive ----------------------------- */
/* Standardized device breakpoints:
   1024px  tablet landscape / small laptop
    860px  tablet portrait  (primary nav collapses to a toggle menu)
    640px  large phones
    420px  small phones                                                   */

/* ---- Tablet landscape / small laptop ---- */
@media (max-width: 1024px) {
  .hero-grid { gap: var(--s6); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { gap: var(--s6); }
}

/* ---- Tablet portrait: primary nav collapses ---- */
@media (max-width: 860px) {
  :root { --nav-h: 60px; }
  .section { padding-block: var(--s8); }
  .hero-grid { grid-template-columns: 1fr; gap: var(--s7); }
  .contact-grid { grid-template-columns: 1fr; gap: var(--s6); }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav-links {
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: var(--s3) var(--s5) var(--s5);
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-8px);
    opacity: 0; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: var(--s3); border-radius: var(--r-sm); }
  .nav-links a.active::after { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-right .btn-primary { display: none; }   /* CTA moves into the menu */
  .nav.open .nav-links .btn-primary { display: inline-flex; justify-content: center; margin-top: var(--s2); }
}

/* ---- Large phones ---- */
@media (max-width: 640px) {
  .section { padding-block: var(--s7); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .founder-grid { grid-template-columns: 1fr; }
  .tl-item { grid-template-columns: 1fr; gap: var(--s2); padding: var(--s5); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s6); }
  .footer p { max-width: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: var(--s2); }
  .result { grid-template-columns: 1fr; }
  .pipe { flex-wrap: wrap; }

  /* Lighter padding on large surfaces */
  .product-card { padding: var(--s6); }
  .form-card { padding: var(--s6); }
  .card { padding: var(--s5); }
  .cta-band { padding: var(--s7) var(--s5); }

  /* Full-width primary actions on phones */
  .hero-actions, .cta-band .actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn, .cta-band .actions .btn { width: 100%; }
}

/* ---- Small phones ---- */
@media (max-width: 420px) {
  .container { padding-inline: var(--s4); }
  .osbody { padding: var(--s4); min-height: 300px; }
  .pipe .step { font-size: 0.68rem; padding: 5px 9px; }
  .founder-card, .form-card, .product-card { padding: var(--s5); }
}

/* ------------------------------ Reduced motion ------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ------------------------------ Display typeface ----------------------- */
.display, .h2, .h3, .brand, .eyebrow, .num { font-family: var(--font-display); }

/* ------------------------------ Contact form states -------------------- */
/* Honeypot: visually hidden, off-screen, never focusable by real users */
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.field-error { display: block; min-height: 15px; margin-top: 4px; font-size: 0.8rem; color: #ff6b7d; }
.cf-turnstile { margin: var(--s2) 0 var(--s3); min-height: 65px; }
.form-status { margin-top: var(--s4); font-size: 0.93rem; border-radius: var(--r-sm); }
.form-status.success {
  color: var(--accent); background: var(--accent-soft);
  border: 1px solid var(--accent-line); padding: var(--s3) var(--s4);
}
.form-status.error {
  color: #ff8a97; background: rgba(255,93,115,0.10);
  border: 1px solid rgba(255,93,115,0.30); padding: var(--s3) var(--s4);
}
.submit-btn.loading { opacity: .65; pointer-events: none; }
