/* ═══════════════════════════════════════════════════════════
   AURIA AI · Site — design system (Instagram-aligned)
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Brand */
  --purple:    #A100F2;
  --purple-2:  #C44CFF;
  --indigo:    #5301C0;
  --indigo-2:  #3A0091;

  /* Surfaces */
  --bg:        #0A0612;
  --bg-2:      #0F0A1C;
  --bg-light:  #F2F0F5;
  --ink:       #F2F0F5;
  --ink-dark:  #0A0612;

  --muted:     #9A93AD;
  --muted-2:   #6B6580;
  --rule:      rgba(242,240,245,0.10);
  --rule-2:    rgba(242,240,245,0.16);

  --font: 'Geist', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --maxw: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  letter-spacing: -0.011em;
  overflow-x: hidden;
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
}

/* faint operational grain over everything */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(242,240,245,0.025) 1px, transparent 0);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 0;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

a { color: inherit; text-decoration: none; }

/* ─── Type utilities ─── */
.mono {
  font-family: var(--mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.kicker {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.kicker::before { content: "\25C7"; color: var(--purple); font-size: 0.85em; }

.h-display {
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
em { font-style: normal; color: var(--purple-2); }

.section { position: relative; z-index: 1; padding: 120px 0; }
.section-head { max-width: 760px; margin-bottom: 64px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 18px 0 0;
  text-wrap: balance;
}
.section-sub {
  font-size: 1.12rem;
  color: var(--muted);
  line-height: 1.65;
  margin-top: 22px;
  max-width: 60ch;
}
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 15px 28px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: -0.01em;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-2); box-shadow: 0 0 40px rgba(161,0,242,0.25); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule-2); }
.btn-ghost:hover { border-color: var(--purple); color: var(--purple-2); }

/* ─── Logo mark (grid square, hollow center) ─── */
.logo {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 600; font-size: 1.25rem; letter-spacing: -0.03em;
}
.logo__mark {
  width: 28px; height: 28px; flex: 0 0 auto;
  background: var(--purple);
  display: inline-flex; align-items: center; justify-content: center;
}
.logo__mark i { width: 33.33%; height: 33.33%; background: var(--bg); display: block; }
.logo__sub {
  font-family: var(--mono); font-weight: 500; font-size: 0.72rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2);
  padding-left: 11px; border-left: 1px solid var(--rule-2);
}

/* ═══ NAVBAR ═══ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0;
  transition: background 0.3s, padding 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,6,18,0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--rule);
  padding: 13px 0;
}
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-links a:not(.btn) {
  font-family: var(--mono); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:not(.btn):hover { color: var(--ink); }
.lang {
  display: flex; border: 1px solid var(--rule-2); border-radius: 4px; overflow: hidden;
}
.lang button {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600;
  padding: 6px 11px; background: transparent; border: none; color: var(--muted-2);
  cursor: pointer; transition: all 0.2s;
}
.lang button.active { background: var(--purple); color: #fff; }
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-burger span { width: 24px; height: 2px; background: var(--ink); transition: 0.3s; }

/* ═══ HERO ═══ */
.hero {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 160px 0 90px;
  overflow: hidden;
}
.hero__glow {
  position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 1100px; border-radius: 50%;
  background: radial-gradient(circle, rgba(161,0,242,0.16), transparent 62%);
  filter: blur(40px); pointer-events: none; z-index: -1;
  animation: breathe 14s ease-in-out infinite;
}
@keyframes breathe { 0%,100% { opacity: 0.7; transform: translateX(-50%) scale(1); } 50% { opacity: 1; transform: translateX(-50%) scale(1.06); } }

.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 34px;
}
.hero__badge .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--purple);
  box-shadow: 0 0 0 0 rgba(161,0,242,0.5); animation: pulse 2s infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(161,0,242,0.5);} 70% { box-shadow: 0 0 0 9px rgba(161,0,242,0);} 100% { box-shadow: 0 0 0 0 rgba(161,0,242,0);} }

.hero h1 {
  font-size: clamp(2.7rem, 6.2vw, 5.2rem);
  font-weight: 600; line-height: 0.98; letter-spacing: -0.04em;
  max-width: 16ch; text-wrap: balance;
}
.hero p.lead {
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  color: var(--muted); line-height: 1.6; margin-top: 32px; max-width: 56ch;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 44px; }

/* hero ticker / signal row */
.hero__signals {
  margin-top: 80px; padding-top: 32px; border-top: 1px solid var(--rule);
  display: flex; gap: 48px; flex-wrap: wrap;
}
.hero__signal { display: flex; flex-direction: column; gap: 4px; }
.hero__signal b { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--purple-2); font-weight: 600; }
.hero__signal span { font-size: 0.95rem; color: var(--muted); }

/* ═══ PIPELINE ═══ */
.pipe-band { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--bg-2); position: relative; z-index: 1; }
.pipe-band .container { padding-top: 72px; padding-bottom: 80px; }
.pipe-head { text-align: center; margin-bottom: 64px; }
.pipe-head .kicker { justify-content: center; }
.pipe-title { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.08; margin-top: 16px; text-wrap: balance; }

.pipe { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 180px; }
.pipe-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.pipe-base { stroke: var(--rule-2); stroke-width: 2; }
.pipe-glow { stroke: url(#pipeGrad); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(161,0,242,0.7)); }

.pipe-node { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
/* organic vertical offsets */
.pipe-node[data-i="0"] { transform: translateY(-26px); }
.pipe-node[data-i="1"] { transform: translateY(24px); }
.pipe-node[data-i="2"] { transform: translateY(-18px); }
.pipe-node[data-i="3"] { transform: translateY(28px); }
.pipe-node[data-i="4"] { transform: translateY(-22px); }
.pipe-node[data-i="5"] { transform: translateY(18px); }

.pn-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--rule-2); transition: all 0.45s cubic-bezier(0.16,1,0.3,1); }
.pn-n { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; color: var(--muted-2); margin-top: 12px; transition: color 0.4s; }
.pn-l { font-family: var(--font); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.02em; color: var(--muted); margin-top: 4px; transition: color 0.4s; }

.pipe-node.lit .pn-dot { background: var(--purple); border-color: var(--purple); box-shadow: 0 0 14px 2px rgba(161,0,242,0.55); }
.pipe-node.lit .pn-n { color: var(--purple-2); }
.pipe-node.lit .pn-l { color: var(--ink); }
.pipe-node.ping .pn-dot { animation: pnPing 0.6s ease-out; }
@keyframes pnPing { 0% { transform: scale(1); } 45% { transform: scale(1.55); } 100% { transform: scale(1); } }

@media (max-width: 760px) {
  .pipe { flex-direction: column; align-items: stretch; gap: 0; min-height: 0; }
  .pipe-node { flex-direction: row; justify-content: flex-start; gap: 16px; text-align: left; padding: 18px 0; transform: none !important; }
  .pipe-node .pn-n { margin-top: 0; order: -1; }
  .pipe-node .pn-l { margin-top: 0; font-size: 1.1rem; }
  .pipe-svg { display: none; }
  .pipe-base, .pipe-glow { display: none; }
  /* vertical connector down the left, behind the dots */
  .pipe-node::before { content: ""; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--rule-2); z-index: 0; }
  .pipe-node:first-child::before { top: 50%; }
  .pipe-node:last-child::before { bottom: 50%; }
  .pn-dot { position: relative; z-index: 1; background: var(--bg); border-color: var(--muted-2); }
  /* CSS-driven sequential light (no SVG dependency on mobile) */
  .pipe-node .pn-dot { animation: pnSeq 4.8s infinite both; }
  .pipe-node .pn-n, .pipe-node .pn-l { animation: pnSeqText 4.8s infinite both; }
  .pipe-node[data-i="0"] .pn-dot, .pipe-node[data-i="0"] .pn-n, .pipe-node[data-i="0"] .pn-l { animation-delay: 0s; }
  .pipe-node[data-i="1"] .pn-dot, .pipe-node[data-i="1"] .pn-n, .pipe-node[data-i="1"] .pn-l { animation-delay: 0.5s; }
  .pipe-node[data-i="2"] .pn-dot, .pipe-node[data-i="2"] .pn-n, .pipe-node[data-i="2"] .pn-l { animation-delay: 1.0s; }
  .pipe-node[data-i="3"] .pn-dot, .pipe-node[data-i="3"] .pn-n, .pipe-node[data-i="3"] .pn-l { animation-delay: 1.5s; }
  .pipe-node[data-i="4"] .pn-dot, .pipe-node[data-i="4"] .pn-n, .pipe-node[data-i="4"] .pn-l { animation-delay: 2.0s; }
  .pipe-node[data-i="5"] .pn-dot, .pipe-node[data-i="5"] .pn-n, .pipe-node[data-i="5"] .pn-l { animation-delay: 2.5s; }
}
@keyframes pnSeq {
  0%, 100% { background: var(--bg); border-color: var(--muted-2); box-shadow: none; transform: scale(1); }
  6% { background: var(--purple); border-color: var(--purple); box-shadow: 0 0 14px 2px rgba(161,0,242,0.6); transform: scale(1.4); }
  55% { background: var(--purple); border-color: var(--purple); box-shadow: 0 0 10px 1px rgba(161,0,242,0.45); transform: scale(1); }
}
@keyframes pnSeqText {
  0%, 100% { color: var(--muted); }
  6%, 55% { color: var(--ink); }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .pipe-node .pn-dot, .pipe-node .pn-n, .pipe-node .pn-l { animation: none !important; }
  .pn-dot { background: var(--purple); border-color: var(--purple); }
  .pn-l { color: var(--ink); }
}

/* ═══ STATS STRIP ═══ */
.stats { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); position: relative; z-index: 1; background: var(--bg-2); }
.stats .container { display: grid; grid-template-columns: repeat(4,1fr); }
.stat { padding: 48px 28px; text-align: center; border-left: 1px solid var(--rule); }
.stat:first-child { border-left: none; }
.stat__n { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.stat__n span { color: var(--purple); }
.stat__l { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); margin-top: 14px; }

/* ═══ PROBLEM ═══ */
.problem-list { display: flex; flex-direction: column; margin-top: 8px; }
.problem-row {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 28px; align-items: center;
  padding: 30px 0; border-top: 1px solid var(--rule);
}
.problem-row:last-child { border-bottom: 1px solid var(--rule); }
.problem-row .idx { font-family: var(--mono); font-size: 0.85rem; color: var(--muted-2); }
.problem-row .txt { font-size: clamp(1.2rem, 2.2vw, 1.7rem); font-weight: 500; letter-spacing: -0.02em; }
.problem-row .tag { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.problem-turn {
  margin-top: 56px; padding: 48px; border: 1px solid var(--rule-2); border-radius: 6px;
  background: linear-gradient(135deg, rgba(161,0,242,0.06), transparent);
  font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; text-wrap: balance;
}

/* ═══ FLOW (6 steps) ═══ */
.flow-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; }
.flow-step { display: grid; grid-template-columns: 52px 1fr; gap: 22px; padding: 30px 0; border-top: 1px solid var(--rule); }
.flow-step .num { font-family: var(--mono); font-size: 0.9rem; color: var(--purple-2); padding-top: 4px; }
.flow-step h3 { font-size: 1.32rem; font-weight: 600; letter-spacing: -0.02em; }
.flow-step p { font-size: 0.95rem; color: var(--muted); line-height: 1.6; margin-top: 9px; }

/* ═══ PRODUCTION (Não é demo) ═══ */
.prod { background: var(--indigo); position: relative; z-index: 1; overflow: hidden; }
.prod::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0);
  background-size: 28px 28px; pointer-events: none;
}
.prod .container { position: relative; z-index: 1; }
.prod .kicker { color: rgba(255,255,255,0.7); }
.prod .kicker::before { color: #fff; }
.prod .section-title { color: #fff; }
.prod .section-sub { color: rgba(255,255,255,0.82); }
.prod-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 32px; margin-top: 64px; }
.prod-stat__n { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 600; letter-spacing: -0.04em; line-height: 0.9; color: #fff; }
.prod-stat__n span { color: var(--purple-2); }
.prod-stat__l { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.7); margin-top: 14px; }

/* ═══ HITL (human in the loop) ═══ */
.hitl-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; align-items: stretch; }
.hitl-col { border: 1px solid var(--rule-2); border-radius: 6px; padding: 40px 36px; }
.hitl-col__head { display: flex; align-items: center; gap: 14px; padding-bottom: 22px; margin-bottom: 24px; border-bottom: 1px solid var(--rule); }
.hitl-col__icon { width: 42px; height: 42px; border: 1px solid var(--rule-2); border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.hitl-col__icon svg { width: 22px; height: 22px; fill: none; stroke-width: 1.6; }
.hitl-col.ai .hitl-col__icon svg { stroke: var(--purple-2); }
.hitl-col.human .hitl-col__icon svg { stroke: var(--ink); }
.hitl-col__title { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; }
.hitl-col__sub { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); margin-top: 3px; }
.hitl-items { list-style: none; display: flex; flex-direction: column; gap: 15px; }
.hitl-items li { display: flex; gap: 12px; font-size: 0.95rem; color: var(--muted); line-height: 1.5; }
.hitl-items li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; margin-top: 8px; flex: 0 0 auto; }
.hitl-col.ai .hitl-items li::before { background: var(--purple); }
.hitl-col.human .hitl-items li::before { background: var(--ink); }
.hitl-bridge { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 26px; }
.hitl-bridge__line { width: 2px; flex: 1; background: linear-gradient(180deg, var(--purple), rgba(242,240,245,0.4)); }
.hitl-bridge__label {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted-2); white-space: nowrap; padding: 10px 0; writing-mode: vertical-rl;
}

/* ═══ APPLICATIONS ═══ */
.apps-grid { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.app { padding: 40px 30px; border-left: 1px solid var(--rule); transition: background 0.3s; }
.app:first-child { border-left: none; }
.app:hover { background: var(--bg-2); }
.app__icon { width: 34px; height: 34px; margin-bottom: 22px; }
.app__icon svg { width: 34px; height: 34px; fill: none; stroke: var(--muted-2); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.3s; }
.app:hover .app__icon svg { stroke: var(--purple-2); }
.app h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 10px; }
.app p { font-size: 0.88rem; color: var(--muted); line-height: 1.55; }

/* ═══ CTA ═══ */
.cta-band { position: relative; z-index: 1; }
.cta-box {
  border: 1px solid var(--rule-2); border-radius: 8px; padding: 96px 48px; text-align: center;
  background: linear-gradient(135deg, rgba(161,0,242,0.08), rgba(83,1,192,0.04));
  position: relative; overflow: hidden;
}
.cta-box .section-title { margin: 18px auto 0; max-width: 18ch; }
.cta-box .section-sub { margin: 22px auto 40px; }

/* ═══ FOOTER ═══ */
.footer { position: relative; z-index: 1; border-top: 1px solid var(--rule); padding: 72px 0 36px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer-brand p { color: var(--muted); font-size: 0.95rem; margin-top: 18px; max-width: 34ch; line-height: 1.6; }
.footer-col h4 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 18px; }
.footer-col a { display: block; color: var(--muted); font-size: 0.92rem; padding: 5px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; border-top: 1px solid var(--rule); font-family: var(--mono); font-size: 0.74rem; color: var(--muted-2); letter-spacing: 0.04em; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--rule-2); border-radius: 6px; color: var(--muted); transition: all 0.2s; }
.footer-social a:hover { border-color: var(--purple); color: var(--purple-2); }

/* ═══ reveal ═══ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* staggered children */
.stagger > * { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > *:nth-child(1) { transition-delay: 0.00s; }
.stagger.in > *:nth-child(2) { transition-delay: 0.07s; }
.stagger.in > *:nth-child(3) { transition-delay: 0.14s; }
.stagger.in > *:nth-child(4) { transition-delay: 0.21s; }
.stagger.in > *:nth-child(5) { transition-delay: 0.28s; }
.stagger.in > *:nth-child(6) { transition-delay: 0.35s; }

/* hover micro-interactions */
.flow-step { transition: border-color 0.3s; }
.flow-step .num { transition: color 0.3s, transform 0.3s; }
.flow-step:hover { border-top-color: var(--rule-2); }
.flow-step:hover .num { color: var(--purple); transform: translateX(2px); }
.problem-row { transition: border-color 0.3s; }
.problem-row:hover { border-top-color: var(--rule-2); }
.problem-row:hover .txt { color: var(--purple-2); }
.problem-row .txt { transition: color 0.3s; }
.btn-primary svg, .btn-ghost svg { transition: transform 0.25s ease; }
.btn:hover svg { transform: translateX(3px); }

/* hero clause underline draw */
.hero h1 em { position: relative; }
.hero h1 em::after {
  content: ""; position: absolute; left: 0; bottom: 0.04em; height: 3px; width: 100%;
  background: var(--purple); transform: scaleX(0); transform-origin: left;
  transition: transform 0.9s cubic-bezier(0.16,1,0.3,1) 0.5s;
}
.hero.armed h1 em::after { transform: scaleX(1); }

/* count-up tabular figures (no layout jiggle) */
.stat__n, .prod-stat__n { font-variant-numeric: tabular-nums; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
  .flow-grid { grid-template-columns: 1fr; gap: 0; }
  .stats .container { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-left: none; }
  .stat:nth-child(3),.stat:nth-child(4) { border-top: 1px solid var(--rule); }
  .stat:nth-child(3) { border-left: none; }
  .prod-stats { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .apps-grid { grid-template-columns: 1fr 1fr; }
  .app:nth-child(2) { border-left: none; }
  .app:nth-child(3),.app:nth-child(4) { border-top: 1px solid var(--rule); }
  .app:nth-child(3) { border-left: none; }
  .hitl-grid { grid-template-columns: 1fr; gap: 20px; }
  .hitl-bridge { flex-direction: row; padding: 8px 0; }
  .hitl-bridge__line { width: auto; height: 2px; flex: 1; background: linear-gradient(90deg, var(--purple), rgba(242,240,245,0.4)); }
  .hitl-bridge__label { writing-mode: horizontal-tb; padding: 0 14px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .container { padding: 0 22px; }
  .section { padding: 76px 0; }
  .section-head { margin-bottom: 44px; }
  .hero { min-height: auto; padding: 132px 0 72px; }
  .hero__signals { gap: 24px; margin-top: 52px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(10,6,18,0.96); backdrop-filter: blur(18px);
    padding: 28px 32px; border-bottom: 1px solid var(--rule);
  }
  .nav-burger { display: flex; }
  .problem-row { grid-template-columns: 44px 1fr; }
  .problem-row .tag { display: none; }
  .problem-turn { padding: 32px 26px; }
  .prod-stats { grid-template-columns: 1fr 1fr; }
  .apps-grid { grid-template-columns: 1fr; }
  .app { border-left: none; border-top: 1px solid var(--rule); }
  .app:first-child { border-top: none; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 18px; align-items: flex-start; }
  .cta-box { padding: 60px 26px; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
