/* AutiveX AI — landing redesign
   Brand: violeta #B735FF · púrpura #7432FF · azul #0877FF · cian #08D8FF
*/

:root {
  color-scheme: dark;
  --bg:        #050309;
  --bg-deep:   #020106;
  --text:      #F5F4FB;
  --muted:     rgba(245, 244, 251, 0.62);
  --muted-2:   rgba(245, 244, 251, 0.42);
  --line:      rgba(255, 255, 255, 0.08);
  --line-2:    rgba(255, 255, 255, 0.14);
  --surface:   rgba(255, 255, 255, 0.025);

  --violet:  #B735FF;
  --purple:  #7432FF;
  --blue:    #0877FF;
  --cyan:    #08D8FF;

  --grad: linear-gradient(105deg, #B735FF 0%, #7432FF 32%, #0877FF 68%, #08D8FF 100%);
  --grad-soft: linear-gradient(105deg, rgba(183,53,255,.18), rgba(116,50,255,.16) 35%, rgba(8,119,255,.16) 70%, rgba(8,216,255,.18));

  --display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --body:    'Instrument Sans', ui-sans-serif, system-ui, sans-serif;

  --max-w: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
button, input { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.app { position: relative; min-height: 100vh; }

.grain {
  position: fixed; inset: 0; z-index: 200; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.04;
  mix-blend-mode: overlay;
}

/* ───────── NAV ───────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(24px, 5vw, 56px);
  background: #000;
  backdrop-filter: blur(8px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo-img { height: 48px; width: auto; display: block; mix-blend-mode: screen; }
.brand-logo-img-sm { height: 36px; }
.brand-mark { display: grid; place-items: center; width: 28px; height: 28px; }
.brand-mark.sm { width: 22px; height: 22px; }
.brand-mark svg { width: 100%; height: 100%; filter: drop-shadow(0 0 12px rgba(183,53,255,0.5)); }
.brand-word {
  font-family: var(--display);
  font-size: 1.05rem; font-weight: 500; letter-spacing: -0.02em;
  color: var(--text);
}
.brand-word em {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-weight: 600;
}
.nav-links {
  display: flex; gap: clamp(20px, 3vw, 40px);
  font-size: 0.9rem; color: var(--muted);
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font-size: 0.86rem; font-weight: 500;
  letter-spacing: -0.005em;
  transition: border-color 220ms ease, background 220ms ease;
}
.nav-cta:hover { border-color: rgba(8,216,255,0.5); background: rgba(8,216,255,0.04); }
.nav-cta .dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(8,216,255,0.9), 0 0 18px rgba(8,216,255,0.4);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: 0.4 } }

/* ───────── HERO ───────── */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  max-width: none;
  margin: 0;
  padding: clamp(40px, 6vh, 80px) clamp(24px, 8vw, 180px) clamp(60px, 8vh, 120px);
  min-height: calc(100vh - 80px);
  isolation: isolate;
  overflow: hidden;
}
.hero-copy {
  display: flex; flex-direction: column;
  align-items: flex-start;
  text-align: left;
  max-width: 600px;
  position: relative;
  z-index: 4;
}
.hero-grid-bg {
  position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black, transparent 75%);
}
.hero-vignette {
  position: absolute; inset: -10% -5% -10% -5%; z-index: -1;
  background:
    radial-gradient(circle at 50% 38%, rgba(116,50,255,0.18), transparent 50%),
    radial-gradient(circle at 30% 60%, rgba(8,216,255,0.10), transparent 55%),
    radial-gradient(circle at 70% 65%, rgba(183,53,255,0.10), transparent 55%);
  filter: blur(20px);
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 28px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.eyebrow-pip {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

/* Orb stage */
.hero-orb-stage {
  position: relative;
  display: grid; place-items: center;
  width: 100%;
  height: 100%;
  min-height: 480px;
}
.orb-wrap {
  position: relative;
  display: grid; place-items: center;
  max-width: 100%;
  max-height: 100%;
  width: clamp(360px, 42vw, 560px) !important;
  height: clamp(360px, 42vw, 560px) !important;
}
.orb-canvas {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
.orb-halo {
  position: absolute; inset: -18%;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, rgba(183,53,255,0.45) 0%, rgba(116,50,255,0.22) 25%, rgba(8,119,255,0.16) 45%, rgba(8,216,255,0.10) 60%, transparent 75%);
  filter: blur(28px);
  opacity: 0.85;
  animation: haloBreath 5s ease-in-out infinite;
}
@keyframes haloBreath {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}
.orb-ring {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center;
  pointer-events: none;
}
.orb-ring-inner, .orb-ring-outer {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
}
.orb-ring-inner {
  width: 88%; height: 88%;
  border-color: rgba(8,216,255,0.18);
  box-shadow: 0 0 30px rgba(8,216,255,0.08) inset;
  animation: spin 28s linear infinite;
}
.orb-ring-inner::before {
  content: ''; position: absolute; top: -3px; left: 50%;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  transform: translateX(-50%);
}
.orb-ring-outer {
  width: 102%; height: 102%;
  border-color: rgba(183,53,255,0.12);
  border-style: dashed;
  animation: spin 80s linear infinite reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-headline {
  max-width: 100%;
  font-family: var(--display);
  font-size: clamp(2.4rem, 4.6vw, 4.6rem);
  font-weight: 360;
  letter-spacing: -0.04em;
  line-height: 0.98;
  color: var(--text);
  text-wrap: balance;
  margin-bottom: 22px;
}
.hl-lead { color: rgba(245,244,251,0.94); }
.hl-accent {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 30px rgba(116,50,255,0.18);
}

.typewriter {
  display: inline-block;
  position: relative;
  white-space: nowrap;
  min-width: 14ch;
  vertical-align: baseline;
}
.typewriter-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.typewriter-caret {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  margin-left: 4px;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(8,216,255,0.7);
  border-radius: 1px;
  transform: translateY(0.05em);
  animation: caretBlink 1s steps(2, start) infinite;
}
@keyframes caretBlink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}
.hero-sub {
  max-width: 520px;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.1vw, 1.12rem);
  line-height: 1.6;
  margin-bottom: 32px;
  text-wrap: pretty;
}

.hero-actions {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  margin-bottom: 40px;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  font-family: var(--body);
  font-size: 0.92rem; font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--text);
  background: rgba(255,255,255,0.04);
  position: relative;
  overflow: hidden;
  transition: border-color 240ms ease, background 240ms ease, transform 240ms ease;
}
.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--grad);
  opacity: 0;
  transition: opacity 280ms ease;
  z-index: -1;
}
.btn-primary::after {
  content: '';
  position: absolute; left: 14px; top: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  transform: translateY(-50%);
  display: none;
}
.btn-primary:hover {
  border-color: rgba(8,216,255,0.55);
  background: rgba(8,216,255,0.06);
  transform: translateY(-1px);
}
.btn-primary svg { transition: transform 220ms ease; opacity: 0.85; }
.btn-primary:hover svg { transform: translateX(3px); opacity: 1; }
.btn-primary-lg { padding: 18px 30px; font-size: 0.96rem; }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 18px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.9rem; font-weight: 500;
  letter-spacing: -0.005em;
  position: relative;
  transition: color 200ms ease;
}
.btn-secondary::after {
  content: '';
  position: absolute;
  left: 18px; right: 18px; bottom: 10px;
  height: 1px;
  background: currentColor;
  opacity: 0.3;
  transition: opacity 220ms ease, left 220ms ease, right 220ms ease;
}
.btn-secondary:hover { color: var(--text); }
.btn-secondary:hover::after { opacity: 0.6; left: 14px; right: 14px; }

.hero-meta {
  display: flex; align-items: center; gap: clamp(20px, 4vw, 56px);
  color: var(--muted-2);
  font-size: 0.82rem;
}
.hero-meta > div:not(.meta-sep) {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.hero-meta strong {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.04rem;
  letter-spacing: -0.01em;
  color: var(--text);
}
.hero-meta span { font-size: 0.78rem; }
.meta-sep { width: 1px; height: 28px; background: var(--line); }

/* ───────── SECTIONS ───────── */
section {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(80px, 12vh, 160px) clamp(24px, 5vw, 56px);
}
.section-head {
  display: flex; flex-direction: column; gap: 18px;
  max-width: 880px;
  margin-bottom: clamp(48px, 6vh, 80px);
}
.section-num {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}
section h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 380;
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: var(--text);
  text-wrap: balance;
}
section h2 em {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ───────── NICHE — Before / After + Dashboard ───────── */
.section-lede {
  margin-top: 6px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 600px;
}

/* ───────── NICHE — Pure visual Before / After ───────── */
.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 64px;
}
.ba-col {
  position: relative;
  display: flex; flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 48px 32px 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 520px;
  overflow: hidden;
}
.ba-before {
  background: rgba(255,255,255,0.012);
  filter: saturate(0.3);
}
.ba-after {
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(116,50,255,0.08), transparent 70%),
    rgba(255,255,255,0.012);
  border-color: rgba(8,216,255,0.18);
}
.ba-after::before {
  content: '';
  position: absolute; top: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.6;
}

.ba-col-tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 7px 14px;
  border-radius: 4px;
  display: inline-flex; align-items: center; gap: 8px;
  align-self: flex-start;
}
.ba-tag-mute { color: var(--muted-2); border: 1px solid var(--line); }
.ba-tag-live { color: var(--cyan); border: 1px solid rgba(8,216,255,0.3); background: rgba(8,216,255,0.04); }
.ba-tag-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 8px var(--cyan);
  animation: pulse 1.4s ease-in-out infinite;
}

/* BIG PHONE — left side */
.big-phone {
  position: relative;
  width: 200px; height: 200px;
  display: grid; place-items: center;
}
.big-phone-icon {
  position: relative; z-index: 2;
  width: 110px; height: 110px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.02);
  animation: ringShake 1.4s ease-in-out infinite;
}
@keyframes ringShake {
  0%, 100% { transform: rotate(0); }
  10% { transform: rotate(-12deg); }
  20% { transform: rotate(10deg); }
  30% { transform: rotate(-8deg); }
  40% { transform: rotate(6deg); }
  50% { transform: rotate(0); }
}
.big-phone-rings {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  pointer-events: none;
}
.big-phone-rings span {
  position: absolute;
  width: 110px; height: 110px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  animation: bigRing 2.4s ease-out infinite;
}
.big-phone-rings span:nth-child(2) { animation-delay: 0.8s; }
.big-phone-rings span:nth-child(3) { animation-delay: 1.6s; }
@keyframes bigRing {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* BIG ORB — right side */
.big-orb-wrap {
  position: relative;
  width: 200px; height: 200px;
  display: grid; place-items: center;
}
.big-orb-halo {
  position: absolute; inset: -10%;
  background: radial-gradient(circle, rgba(183,53,255,0.45) 0%, rgba(116,50,255,0.25) 30%, rgba(8,119,255,0.15) 55%, transparent 75%);
  filter: blur(20px);
  animation: haloBreath 4s ease-in-out infinite;
}
.big-orb-core {
  position: relative; z-index: 3;
  width: 130px; height: 130px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #FFFFFF 0%, #08D8FF 18%, #0877FF 45%, #7432FF 75%, #B735FF 100%);
  box-shadow:
    0 0 40px rgba(116,50,255,0.6),
    0 0 80px rgba(8,216,255,0.3),
    inset 0 0 30px rgba(255,255,255,0.2);
  animation: orbPulse 3s ease-in-out infinite;
}
@keyframes orbPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
.big-orb-wave {
  position: absolute;
  width: 130px; height: 130px;
  border-radius: 50%;
  border: 1px solid rgba(8,216,255,0.5);
  pointer-events: none;
}
.big-orb-wave.w1 { animation: orbWave 2.8s ease-out infinite; }
.big-orb-wave.w2 { animation: orbWave 2.8s ease-out 0.9s infinite; }
.big-orb-wave.w3 { animation: orbWave 2.8s ease-out 1.8s infinite; }
@keyframes orbWave {
  0% { transform: scale(1); opacity: 0.7; border-color: rgba(8,216,255,0.5); }
  100% { transform: scale(1.7); opacity: 0; border-color: rgba(183,53,255,0.2); }
}

/* BIG STAT */
.ba-bigstat {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  gap: 10px;
}
.ba-bigstat strong {
  font-family: var(--display);
  font-size: clamp(4.5rem, 8vw, 6.5rem);
  font-weight: 320;
  letter-spacing: -0.05em;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}
.ba-bigstat-bad strong {
  color: rgba(255, 90, 90, 0.78);
  text-shadow: 0 0 30px rgba(255, 90, 90, 0.15);
}
.ba-bigstat-good strong {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 30px rgba(116,50,255,0.2);
}
.ba-bigstat span {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text);
  max-width: 220px;
  line-height: 1.3;
}
.ba-bigstat-bad span { color: var(--muted); }

@media (max-width: 880px) {
  .ba-grid { grid-template-columns: 1fr; }
  .ba-col { min-height: 420px; padding: 36px 24px; }
}

/* ── chips ── */
.niche-chips {
  display: flex; align-items: center; gap: 18px;
  flex-wrap: wrap;
}
.niche-chips-label {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-2);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.84rem;
  color: var(--muted);
  font-family: var(--body);
  transition: border-color 240ms ease, color 240ms ease;
}
.chip:hover { border-color: rgba(8,216,255,0.4); color: var(--text); }

@media (max-width: 880px) {
  .ba-grid { grid-template-columns: 1fr; gap: 16px; }
}
/* ───────── HOW · System Flow Canvas ───────── */
.flow-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7.2;
  min-height: 460px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(8,216,255,0.012), transparent 60%),
    rgba(255,255,255,0.008);
  overflow: hidden;
  margin-bottom: 36px;
}
.flow-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 36px 36px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  pointer-events: none;
}

.flow-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

.flow-edge-pulse {
  stroke-dasharray: 8 92;
  stroke-dashoffset: 100;
  opacity: 0;
}
.flow-canvas.is-on .flow-edge-pulse {
  opacity: 1;
  animation: edgePulse 3.6s linear infinite;
}
@keyframes edgePulse {
  0%   { stroke-dashoffset: 100; }
  100% { stroke-dashoffset: 0; }
}

.flow-edge-label {
  position: absolute;
  transform: translate(-50%, -50%);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted-2);
  background: var(--bg-deep);
  padding: 2px 6px;
  border-radius: 2px;
  border: 1px solid var(--line);
  z-index: 2;
  white-space: nowrap;
}
.flow-edge-label.is-yes { color: var(--cyan); border-color: rgba(8,216,255,0.3); }
.flow-edge-label.is-no  { color: rgba(255,180,180,0.8); border-color: rgba(255,180,180,0.25); }

.flow-node {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 175px;
  padding: 12px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(12, 8, 22, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; flex-direction: column; gap: 6px;
  z-index: 3;
  opacity: 0;
  transform-origin: center;
  animation: nodeIn 600ms cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes nodeIn {
  from { opacity: 0; transform: translate(-50%, -40%) scale(0.92); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.flow-node.is-primary {
  border-color: rgba(183, 53, 255, 0.4);
  box-shadow:
    0 0 0 1px rgba(183, 53, 255, 0.15) inset,
    0 12px 36px rgba(116, 50, 255, 0.18);
}
.flow-node.is-primary .flow-node-icon {
  color: var(--violet);
  border-color: rgba(183, 53, 255, 0.4);
  background: rgba(183, 53, 255, 0.08);
}
.flow-node.is-decision {
  border-color: rgba(8, 216, 255, 0.35);
  border-style: dashed;
}
.flow-node.is-decision .flow-node-label {
  color: var(--cyan);
}

.flow-node-icon {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255,255,255,0.02);
  color: var(--cyan);
}
.flow-node-icon svg { width: 16px; height: 16px; }

.flow-node-body { display: flex; flex-direction: column; gap: 4px; }
.flow-node-label {
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 480;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.2;
}
.flow-node-desc {
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.4;
}
.flow-node-tech {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-2);
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px dashed var(--line);
}

.flow-node-pip {
  position: absolute;
  top: 8px; right: 10px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
  animation: pulse 1.6s ease-in-out infinite;
}
.flow-node.is-primary .flow-node-pip { background: var(--violet); box-shadow: 0 0 8px var(--violet); }

/* foot stats */
.flow-foot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.flow-foot-stat {
  padding: 22px 24px;
  display: flex; flex-direction: column; gap: 6px;
  border-right: 1px solid var(--line);
}
.flow-foot-stat:last-child { border-right: 0; }
.flow-foot-stat strong {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 360;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}
.flow-foot-stat span {
  font-size: 0.84rem;
  color: var(--muted);
}

/* legacy how cleanup */
.how-steps, .how-step, .step-num, .how-flow, .flow-track, .flow-pulse { display: none; }

/* ───────── HOW · Simple Product Flow ───────── */
.system-simple {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    radial-gradient(ellipse 70% 65% at 50% 0%, rgba(116,50,255,0.13), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,0.028), rgba(255,255,255,0.01));
  overflow: hidden;
  padding: clamp(22px, 3vw, 36px);
  margin-bottom: 22px;
}
.system-simple::before {
  content: '';
  position: absolute;
  left: clamp(40px, 8vw, 90px);
  right: clamp(40px, 8vw, 90px);
  top: 124px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(8,216,255,0.55), rgba(183,53,255,0.5), transparent);
  opacity: 0.55;
}
.system-glow {
  position: absolute;
  inset: -30% 18% auto;
  height: 240px;
  background: radial-gradient(circle, rgba(8,216,255,0.14), transparent 70%);
  filter: blur(24px);
  pointer-events: none;
}
.system-steps {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.system-step {
  min-height: 230px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(5, 3, 12, 0.72);
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  transform: translateY(10px);
}
.system-simple.is-on .system-step {
  animation: simpleStepIn 650ms cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes simpleStepIn {
  to { opacity: 1; transform: translateY(0); }
}
.system-step.is-primary {
  border-color: rgba(183,53,255,0.42);
  background:
    linear-gradient(180deg, rgba(183,53,255,0.12), rgba(5,3,12,0.76));
  box-shadow: 0 18px 50px rgba(116,50,255,0.16);
}
.system-step-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--muted-2);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}
.system-step-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(8,216,255,0.24);
  border-radius: 6px;
  color: var(--cyan);
  background: rgba(8,216,255,0.055);
  box-shadow: 0 0 28px rgba(8,216,255,0.08);
}
.system-step.is-primary .system-step-icon {
  color: var(--violet);
  border-color: rgba(183,53,255,0.42);
  background: rgba(183,53,255,0.09);
  box-shadow: 0 0 34px rgba(183,53,255,0.14);
}
.system-step-icon svg {
  width: 26px;
  height: 26px;
}
.system-step h3 {
  font-size: clamp(1.3rem, 1.8vw, 1.75rem);
  font-weight: 420;
  letter-spacing: -0.03em;
}
.system-step p {
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.96rem;
}
.system-support {
  position: relative;
  z-index: 2;
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px;
  border: 1px solid rgba(255,255,255,0.075);
  border-radius: 6px;
  background: rgba(255,255,255,0.025);
}
.support-copy {
  display: grid;
  gap: 5px;
  max-width: 640px;
}
.support-copy span {
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.support-copy strong {
  font-family: var(--display);
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  font-weight: 380;
  letter-spacing: -0.03em;
  color: var(--text);
}
.support-copy p {
  color: var(--muted);
  font-size: 0.95rem;
}
.support-icon-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.support-icon-row span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: rgba(255,255,255,0.035);
}
.support-icon-row svg {
  width: 20px;
  height: 20px;
}
.system-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.system-benefit {
  min-height: 82px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-right: 1px solid var(--line);
}
.system-benefit:last-child { border-right: 0; }
.system-benefit span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--cyan);
  border: 1px solid rgba(8,216,255,0.22);
  border-radius: 6px;
  background: rgba(8,216,255,0.04);
  flex-shrink: 0;
}
.system-benefit svg {
  width: 17px;
  height: 17px;
}
.system-benefit strong {
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 390;
  letter-spacing: -0.02em;
  color: var(--text);
}

@media (max-width: 1100px) {
  .flow-canvas { aspect-ratio: auto; min-height: auto; padding: 24px 16px; }
  .flow-svg, .flow-edge-label, .flow-grid-bg { display: none; }
  .flow-node {
    position: relative !important;
    top: auto !important; left: auto !important;
    transform: none !important;
    width: 100%; max-width: 100%;
    margin-bottom: 14px;
    animation: nodeInMobile 500ms cubic-bezier(.2,.8,.2,1) forwards;
  }
  @keyframes nodeInMobile {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .flow-canvas {
    display: flex; flex-direction: column; gap: 0;
  }
  .flow-foot { grid-template-columns: 1fr; }
  .flow-foot-stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .flow-foot-stat:last-child { border-bottom: 0; }
  .system-simple::before { display: none; }
  .system-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .system-support { align-items: flex-start; flex-direction: column; }
  .system-benefits { grid-template-columns: repeat(2, 1fr); }
  .system-benefit:nth-child(2) { border-right: 0; }
  .system-benefit:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}

/* ───────── PROOF ───────── */
.proof {
  text-align: center;
  max-width: 1000px;
  padding-top: clamp(60px, 10vh, 120px);
  padding-bottom: clamp(60px, 10vh, 120px);
}
.proof-statement {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 340;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 32px;
  text-wrap: balance;
}
.proof-statement em {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.proof-body {
  max-width: 600px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ───────── FINAL CTA ───────── */
.cta-final {
  text-align: center;
  max-width: 880px;
  padding-top: clamp(80px, 12vh, 160px);
  padding-bottom: clamp(80px, 12vh, 160px);
  position: relative;
}
.cta-final::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(116,50,255,0.10), transparent 70%);
  z-index: -1;
}
.cta-final .section-num { margin-bottom: 24px; }
.cta-final h2 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  font-weight: 360;
  margin-bottom: 22px;
}
.cta-final h2 em {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cta-final p {
  color: var(--muted);
  font-size: 1.08rem;
  margin-bottom: 36px;
}
.cta-fineprint {
  margin-top: 18px !important;
  font-size: 0.85rem !important;
  color: var(--muted-2) !important;
}

/* ───────── FOOTER ───────── */
.footer {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 36px clamp(24px, 5vw, 56px);
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px;
  color: var(--muted-2);
  font-size: 0.85rem;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-meta { display: flex; gap: 24px; }
.footer-meta a:hover { color: var(--text); }

/* ───────── DEMO MODAL ───────── */
.demo-overlay {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  background: rgba(2,1,6,0.85);
  backdrop-filter: blur(20px);
  animation: fadeIn 280ms ease;
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
.demo-shell {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  padding: 56px 48px;
  text-align: center;
  max-width: 560px;
}
.demo-close {
  position: absolute; top: 20px; right: 20px;
  z-index: 5;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  color: var(--text);
}
.demo-close:hover { border-color: var(--cyan); }
.demo-orb { margin-bottom: 24px; }
.demo-status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255,255,255,0.025);
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}
.status-dot.intro { background: var(--purple); box-shadow: 0 0 10px var(--purple); }
.status-dot.listening { background: var(--cyan); }
.status-dot.speaking { background: var(--violet); box-shadow: 0 0 10px var(--violet); animation: pulse 1s ease-in-out infinite; }

.demo-line {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 380;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text);
  max-width: 460px;
  margin-bottom: 14px;
  text-wrap: pretty;
}
.demo-note {
  color: var(--muted-2);
  font-size: 0.82rem;
}
.demo-transcript {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.demo-transcript-line {
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: left;
  padding: 6px 10px;
  border-radius: 8px;
  margin: 0;
}
.demo-transcript-agent {
  color: var(--text);
  background: rgba(255,255,255,0.04);
}
.demo-transcript-user {
  color: var(--muted);
  background: transparent;
  text-align: right;
}
.demo-error {
  font-size: 0.85rem;
  color: #f87171;
  margin: 0 0 16px;
  max-width: 380px;
  text-align: center;
}
.demo-controls {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.demo-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 180ms, color 180ms;
}
.demo-ctrl:hover { border-color: var(--cyan); color: var(--text); }
.demo-ctrl-muted { border-color: rgba(251,191,36,0.4); color: #fbbf24; }
.demo-ctrl-end { border-color: rgba(248,113,113,0.3); color: #f87171; }
.demo-ctrl-end:hover { border-color: #f87171; background: rgba(248,113,113,0.08); }
.demo-scenarios {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 460px;
}
.demo-scenarios-label {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin: 0;
}
.demo-scenarios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
  width: 100%;
}
.demo-scenario-card {
  padding: 12px 10px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.3;
  cursor: pointer;
  transition: border-color 180ms, background 180ms, transform 100ms;
  text-align: center;
}
.demo-scenario-card:hover {
  border-color: var(--cyan);
  background: rgba(8,216,255,0.06);
  transform: translateY(-1px);
}

/* ───────── RESPONSIVE ───────── */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: auto;
    padding-top: 32px;
  }
  .hero-copy { align-items: center; text-align: center; max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-orb-stage { min-height: 380px; order: -1; }
  .orb-wrap {
    width: clamp(280px, 70vw, 420px) !important;
    height: clamp(280px, 70vw, 420px) !important;
  }
}
@media (max-width: 840px) {
  .nav-links { display: none; }
  .niche-panel { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr; }
  .hero-meta { flex-wrap: wrap; justify-content: center; }
  .meta-sep { display: none; }
  .footer { flex-direction: column; text-align: center; }
  .system-steps { grid-template-columns: 1fr; }
  .system-step { min-height: 0; }
  .system-benefits { grid-template-columns: 1fr; }
  .system-benefit,
  .system-benefit:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .system-benefit:last-child { border-bottom: 0; }
  .support-icon-row { width: 100%; justify-content: space-between; }
}
