/* ============================================================
   Meldwork Landing — complete multi-section page
   Design system: see DESIGN.md. Motion ports React Bits
   components to vanilla JS/CSS: SplitText, DecryptedText,
   CountUp, ScrollReveal, SpotlightCard, TiltedCard, LogoLoop,
   ScrollVelocity, Magnet, GlareHover, Stepper, Accordion,
   ScrollProgress, ScrollSpy, CardSwap.
   ============================================================ */

/* ================= DESIGN TOKENS ================= */

:root {
  /* Dark theme (default) */
  --bg: #08090b;
  --bg-deep: #0c0e11;
  --surface: #111417;
  --surface-raised: #181c20;
  --surface-hover: #1f2429;
  --ink: #f5f6f8;
  --ink-soft: #c0c8cc;
  --muted: #8a9499;
  --faint: #6a7378;
  --coral: #ef5a45;
  --coral-soft: rgba(239, 90, 69, 0.35);
  --coral-glow: rgba(239, 90, 69, 0.18);
  --line: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.12);
  --nav-ink: #26343c;
  --shadow-1: 0 4px 14px rgba(0, 0, 0, 0.16);
  --shadow-2: 0 16px 42px rgba(0, 0, 0, 0.42);
  --shadow-3: 0 30px 90px rgba(0, 0, 0, 0.6);
  --glass-bg: rgba(12, 14, 17, 0.72);
  --glass-border: rgba(255, 255, 255, 0.06);
  --font-sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: "BubbledotICG-FinePos", "Geist Pixel Circle", monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --r-pill: 999px;
  --r-card: 16px;
  --r-card-lg: 22px;
}

[data-theme="light"] {
  --bg: #faf9f7;
  --bg-deep: #f3f1ed;
  --surface: #ffffff;
  --surface-raised: #f5f3f0;
  --surface-hover: #eceae5;
  --ink: #1a1d1f;
  --ink-soft: #4a5054;
  --muted: #7a8084;
  --faint: #9aa0a4;
  --coral: #e8553f;
  --coral-soft: rgba(232, 85, 63, 0.3);
  --coral-glow: rgba(232, 85, 63, 0.12);
  --line: rgba(0, 0, 0, 0.05);
  --line-strong: rgba(0, 0, 0, 0.1);
  --nav-ink: #1a1d1f;
  --shadow-1: 0 2px 10px rgba(0, 0, 0, 0.06);
  --shadow-2: 0 12px 36px rgba(0, 0, 0, 0.1);
  --shadow-3: 0 24px 70px rgba(0, 0, 0, 0.14);
  --glass-bg: rgba(250, 249, 247, 0.78);
  --glass-border: rgba(0, 0, 0, 0.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background 0.4s ease, color 0.4s ease;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
  border-radius: 6px;
}

body.menu-open { overflow: hidden; }

/* ================= SCROLL PROGRESS ================= */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 100;
  background: transparent;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--coral), #ffb29b);
  box-shadow: 0 0 12px var(--coral-soft);
  transition: width 0.06s linear;
}

/* ================= NAV ================= */

.topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.6vw, 18px);
  padding: clamp(12px, 2vh, 22px) clamp(14px, 3vw, 32px);
  transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}
.topnav.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.logo-badge {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(-8px) scale(0.9);
  animation: navItemIn 0.6s var(--ease-spring) 0.1s forwards;
  transition: transform 0.35s var(--ease-spring);
}
.logo-badge::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(239,90,69,0.5), transparent 40%, transparent 60%, rgba(239,90,69,0.3));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}
.logo-badge:hover { transform: scale(1.08) rotate(-3deg); }
.logo-badge:hover::before { opacity: 1; }
.logo-badge img { width: 100%; height: 100%; object-fit: contain; }

@keyframes navItemIn { to { opacity: 1; transform: translateY(0) scale(1); } }

.nav-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
  flex: 0 1 620px;
  height: 42px;
  padding: 4px 6px;
  background: var(--glass-bg);
  border-radius: var(--r-pill);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(-8px);
  animation: navItemIn 0.6s var(--ease-out) 0.2s forwards;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 clamp(10px, 1.4vw, 16px);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  opacity: 0.55;
  border-radius: var(--r-pill);
  transition: opacity 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.nav-link:hover { opacity: 0.85; color: var(--ink); }
.nav-link.active { opacity: 1; color: var(--ink); }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 8px var(--coral), -7px 0 0 var(--coral-soft), 7px 0 0 var(--coral-soft);
  animation: dotIn 0.5s var(--ease-spring);
}
@keyframes dotIn {
  from { opacity: 0; transform: scale(0) translateY(4px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.cta-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  background: rgba(239, 90, 69, 0.12);
  color: var(--coral);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-8px);
  animation: navItemIn 0.6s var(--ease-out) 0.3s forwards;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.3s ease;
}
.cta-dark:hover {
  background: rgba(239, 90, 69, 0.2);
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(239, 90, 69, 0.25);
}
.cta-status {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 3px rgba(239, 90, 69, 0.22);
  animation: statusPulse 1.6s ease-in-out infinite;
}
@keyframes statusPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

/* Theme toggle */
.theme-toggle {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(-8px);
  animation: navItemIn 0.6s var(--ease-out) 0.35s forwards;
  transition: background 0.25s ease, transform 0.25s ease;
}
.theme-toggle:hover { transform: scale(1.08); }
.theme-toggle svg {
  width: 18px;
  height: 18px;
  stroke: var(--ink-soft);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s ease, transform 0.5s var(--ease-spring);
}
[data-theme="light"] .theme-toggle .sun-icon { display: none; }
[data-theme="light"] .theme-toggle .moon-icon { display: block; }
.theme-toggle .sun-icon { display: block; }
.theme-toggle .moon-icon { display: none; }

.burger {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 60;
  flex-shrink: 0;
}
.burger-bar {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s ease, background 0.2s ease;
}
.burger-bar:nth-child(1) { top: 16px; }
.burger-bar:nth-child(2) { top: 22.25px; }
.burger-bar:nth-child(3) { top: 28.5px; }
.burger[aria-expanded="true"] { background: var(--ink); }
.burger[aria-expanded="true"] .burger-bar { background: var(--bg); }
.burger[aria-expanded="true"] .burger-bar:nth-child(1) { transform: translateY(6.25px) rotate(45deg); }
.burger[aria-expanded="true"] .burger-bar:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger-bar:nth-child(3) { transform: translateY(-6.25px) rotate(-45deg); }

.overlay[hidden], .mobile-menu[hidden] { display: none !important; }

.overlay {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: overlayIn 0.28s ease both;
}
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }

.mobile-menu {
  position: fixed;
  z-index: 50;
  top: 78px;
  left: 50%;
  transform: translateX(-50%);
  width: min(340px, calc(100vw - 28px));
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 18px 16px;
  background: var(--surface);
  border-radius: 28px;
  box-shadow: var(--shadow-3);
  animation: menuIn 0.38s var(--ease-out) both;
}
@keyframes menuIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-14px) scale(0.97); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}
.m-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 11px 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(8px);
  animation: linkIn 0.4s var(--ease-out) forwards;
}
.m-link:nth-child(1) { animation-delay: 0.06s; }
.m-link:nth-child(2) { animation-delay: 0.10s; }
.m-link:nth-child(3) { animation-delay: 0.14s; }
.m-link:nth-child(4) { animation-delay: 0.18s; }
.m-link:nth-child(5) { animation-delay: 0.22s; }
.m-link:nth-child(6) { animation-delay: 0.26s; }
.m-link:nth-child(7) { animation-delay: 0.30s; }
@keyframes linkIn { to { opacity: 1; transform: translateY(0); } }
.m-signin {
  margin-top: 8px;
  padding: 12px 0;
  background: var(--surface-hover);
  color: var(--ink);
  border-radius: var(--r-pill);
  font-weight: 600;
}

/* ================= HERO ================= */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 110px clamp(14px, 3vw, 32px) 100px;
}

.bg { position: absolute; inset: 0; background: var(--bg-deep); }

.bg-still, .bg-canvas, .bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bg-still { z-index: 0; }
.bg-canvas { z-index: 1; pointer-events: none; }
.bg-video {
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.1s ease;
}

.bg-veil {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    radial-gradient(120% 90% at 50% 42%, rgba(0,0,0,0) 0%, rgba(0,0,0,0.4) 78%, rgba(0,0,0,0.72) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.1) 30%, rgba(0,0,0,0.05) 60%, rgba(0,0,0,0.78) 100%);
}
[data-theme="light"] .bg-veil {
  background:
    radial-gradient(120% 90% at 50% 42%, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.85) 78%, rgba(250,249,247,0.95) 100%),
    linear-gradient(180deg, rgba(255,255,255,0.75) 0%, rgba(255,255,255,0.4) 30%, rgba(255,255,255,0.35) 60%, rgba(250,249,247,0.92) 100%);
}
.bg-vignette {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    radial-gradient(60% 60% at 50% 50%, transparent 60%, rgba(0,0,0,0.45) 100%);
}
[data-theme="light"] .bg-vignette {
  background:
    radial-gradient(60% 60% at 50% 50%, transparent 60%, rgba(250,249,247,0.5) 100%);
}

.hero-inner {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 980px;
  min-width: 0;
  will-change: transform, opacity;
}

.eyebrow {
  margin: 0 0 clamp(18px, 2.6vh, 28px);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--coral);
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.eyebrow.is-scrambling { color: var(--ink-soft); }
.eyebrow .ch {
  display: inline-block;
  transition: transform 0.4s var(--ease-out), opacity 0.4s ease, color 0.4s ease;
}

.headline {
  margin: 0;
  width: 100%;
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  font-size: clamp(28px, 5.4vw, 72px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  overflow: hidden;
}

.hl-line { display: block; white-space: normal; }
.hl-line .word { display: inline-block; white-space: nowrap; vertical-align: baseline; }
.hl-line .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em);
  filter: blur(4px);
  transition: opacity 0.6s var(--ease-out), transform 0.7s var(--ease-out), filter 0.6s var(--ease-out);
  transition-delay: var(--cd, 0s);
}
.headline.play .ch { opacity: 1; transform: translateY(0); filter: blur(0); }

.subhead {
  margin: clamp(18px, 2.6vh, 26px) auto 0;
  max-width: min(640px, 94%);
  color: var(--ink-soft);
  opacity: 0.85;
  font-size: clamp(14.5px, 1.5vw, 16.5px);
  line-height: 1.6;
}
.subhead strong { color: var(--ink); font-weight: 600; }

.cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 24px);
  flex-wrap: wrap;
  margin-top: clamp(22px, 3.2vh, 34px);
}

.cta-primary {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 11px 26px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--r-pill);
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow:
    0 0 0 1px var(--line-strong),
    0 4px 20px rgba(0,0,0,0.15),
    0 0 44px var(--coral-glow);
  transition: box-shadow 0.3s ease;
  will-change: transform;
  text-align: left;
}
[data-theme="light"] .cta-primary {
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.08),
    0 4px 20px rgba(0,0,0,0.12),
    0 0 40px var(--coral-glow);
}
.cta-primary::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -75%;
  width: 45%;
  background: linear-gradient(105deg, transparent 0%, rgba(239, 90, 69, 0.12) 45%, rgba(239, 90, 69, 0.2) 50%, rgba(239, 90, 69, 0.12) 55%, transparent 100%);
  transform: skewX(-18deg);
  animation: ctaShine 3.6s var(--ease-out) infinite;
  pointer-events: none;
}
@keyframes ctaShine {
  0%, 58% { left: -75%; }
  92%, 100% { left: 135%; }
}
.cta-primary .cta-label { font-size: 14.5px; line-height: 1.2; position: relative; z-index: 1; }
.cta-primary .cta-meta { font-size: 11px; color: var(--muted); font-weight: 500; margin-top: 2px; letter-spacing: 0; position: relative; z-index: 1; }
.cta-primary:hover {
  box-shadow:
    0 0 0 1px var(--line-strong),
    0 0 30px rgba(255,255,255,0.3),
    0 0 60px rgba(239,90,69,0.25);
}
[data-theme="light"] .cta-primary:hover {
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.1),
    0 6px 28px rgba(0,0,0,0.18),
    0 0 50px rgba(239,90,69,0.2);
}

.spark {
  position: fixed;
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  background: var(--coral);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999;
  animation: sparkFly 0.55s var(--ease-out) forwards;
}
.spark:nth-child(odd) { background: #ffb29b; }
@keyframes sparkFly {
  from { transform: translate(0, 0) scale(1); opacity: 1; }
  to { transform: translate(var(--tx), var(--ty)) scale(0.15); opacity: 0; }
}

.cta-ghost { color: var(--muted); font-size: 14px; font-weight: 500; transition: color 0.25s ease; display: inline-flex; align-items: center; gap: 4px; }
.cta-ghost span { transition: transform 0.25s ease; }
.cta-ghost:hover { color: var(--ink); }
.cta-ghost:hover span { transform: translate(2px, -2px); }

.trust {
  --trust-size: 38px;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 10px;
  margin-top: clamp(26px, 4vh, 42px);
}
.avatars { display: inline-flex; }
.avatar-ring {
  display: grid;
  place-items: center;
  width: var(--trust-size);
  height: var(--trust-size);
  background: var(--surface);
  border-radius: 50%;
  padding: 5px;
  transition: transform 0.4s var(--ease-out);
}
.avatar-ring + .avatar-ring { margin-left: calc(var(--trust-size) * -0.42); }
.avatar-ring:nth-child(1) { z-index: 1; }
.avatar-ring:nth-child(2) { z-index: 2; }
.avatar-ring:nth-child(3) { z-index: 3; }
.avatar-ring:nth-child(4) { z-index: 4; }
.avatar-ring:nth-child(5) { z-index: 5; }
.avatar-ring:nth-child(6) { z-index: 6; }
.avatar-dot { display: grid; place-items: center; width: 100%; height: 100%; background: var(--surface-raised); border-radius: 50%; overflow: hidden; }
.avatar-dot img { width: 62%; height: 62%; object-fit: contain; }
.trust:hover .avatar-ring:nth-child(odd) { transform: translateY(-2px); }
.trust:hover .avatar-ring:nth-child(even) { transform: translateY(-4px); }
.trust-pill {
  display: inline-flex;
  align-items: center;
  height: var(--trust-size);
  margin-left: calc(var(--trust-size) * -0.42);
  padding: 0 18px 0 calc(var(--trust-size) * 0.62);
  background: var(--surface);
  border-radius: var(--r-pill);
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}

.hero-stats {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: clamp(20px, 3.4vh, 34px);
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2.6vw, 30px);
  width: min(940px, calc(100% - 28px));
}
.stat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; min-width: 0; }
.stat-glyph { font-family: var(--font-display); color: var(--coral); font-size: clamp(20px, 2.6vw, 30px); line-height: 1.2; }
.stat-value { display: inline-flex; align-items: baseline; color: var(--ink); font-size: clamp(18px, 2.1vw, 26px); font-weight: 600; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.stat-suffix { color: var(--muted); font-size: 0.62em; font-weight: 500; margin-left: 2px; }
.stat-label { color: var(--muted); font-size: clamp(10.5px, 1.1vw, 12.5px); }

.scroll-cue {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: 22px;
  height: 34px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-pill);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}
[data-theme="light"] .scroll-cue { border-color: rgba(0,0,0,0.2); }
.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 3px;
  background: var(--coral);
  animation: cue 1.8s var(--ease-out) infinite;
}
.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 3px;
  background: var(--coral);
  animation: cue 1.8s var(--ease-out) infinite;
}
@keyframes cue {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

.hero-inner > *:not(.headline) {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(5px);
  animation: riseIn 0.9s var(--ease-out) forwards;
}
.hero-inner > .eyebrow { animation-delay: 0.1s; }
.hero-inner > .subhead { animation-delay: 0.55s; }
.hero-inner > .cta-row { animation-delay: 0.7s; }
.hero-inner > .trust { animation-delay: 0.85s; }
.hero-stats { opacity: 0; animation: statFade 0.9s var(--ease-out) 1s forwards; }
@keyframes riseIn { to { opacity: 1; transform: translateY(0); filter: blur(0); } }
@keyframes statFade { to { opacity: 1; } }

/* ================= SECTIONS ================= */

.section {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(96px, 13vh, 150px) clamp(18px, 4vw, 40px) 0;
}

.section .eyebrow { margin-bottom: 14px; }

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 3.6vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 760px;
}

.section-sub {
  margin: 16px 0 0;
  max-width: 640px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}
.section-sub a { color: var(--coral); }
.section-sub a:hover { text-decoration: underline; }

.section-sub.centered,
.agents .section-sub,
.workflow .section-sub,
.modes .section-sub,
.capabilities .section-sub,
.scenario .section-sub,
.compare .section-sub,
.faq .section-sub {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.agents .eyebrow, .agents .section-title,
.workflow .eyebrow, .workflow .section-title,
.modes .eyebrow, .modes .section-title,
.capabilities .eyebrow, .capabilities .section-title,
.scenario .eyebrow, .scenario .section-title,
.compare .eyebrow, .compare .section-title,
.boundary .eyebrow, .boundary .section-title,
.faq .eyebrow, .faq .section-title,
.product .eyebrow, .product .section-title {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ScrollReveal port */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(6px);
  transition: opacity 0.85s var(--ease-out) var(--d, 0s), transform 0.85s var(--ease-out) var(--d, 0s), filter 0.85s var(--ease-out) var(--d, 0s);
}
.reveal.revealed { opacity: 1; transform: translateY(0); filter: blur(0); }

/* ---- LogoLoop marquee ---- */
.marquee {
  margin-top: clamp(40px, 6vh, 64px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: loop 42s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes loop { to { transform: translateX(-50%); } }

.logo-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--surface);
  border-radius: var(--r-pill);
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s var(--ease-out);
}
.logo-chip:hover { background: var(--surface-hover); color: var(--ink); transform: translateY(-2px); }
.logo-chip img { width: 22px; height: 22px; object-fit: contain; }

/* ---- Definition — MagicBento-style asymmetric bento ---- */
.definition { padding-bottom: clamp(56px, 8vh, 96px); }
.geo-bento {
  margin-top: clamp(36px, 5vh, 56px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.8vw, 20px);
}
.geo-tile {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 28px;
  background: var(--surface);
  border-radius: var(--r-card-lg);
  box-shadow: var(--shadow-1);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease;
}
.geo-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.geo-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(440px circle at var(--sx, 50%) var(--sy, 50%), var(--coral-glow), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.geo-tile:hover::before { opacity: 1; }
.geo-tile::after {
  content: "";
  position: absolute;
  top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  pointer-events: none;
}
.geo-tile--def {
  grid-column: span 3;
  justify-content: center;
  padding: clamp(30px, 4.4vw, 48px) clamp(26px, 4.2vw, 52px);
  background:
    radial-gradient(640px 220px at 88% -30%, var(--coral-glow), transparent 70%),
    radial-gradient(500px 200px at 0% 130%, rgba(255, 138, 110, 0.07), transparent 70%),
    var(--surface);
}
.geo-def-text {
  margin: 0;
  max-width: 900px;
  font-size: clamp(18px, 2.3vw, 24px);
  line-height: 1.62;
  color: var(--ink-soft);
  letter-spacing: -0.01em;
}
.geo-def-text strong { color: var(--ink); font-weight: 600; }

/* GradientText port — animated gradient sweep on live text */
.gradient-text {
  background: linear-gradient(90deg, var(--coral) 25%, #ff9d7e 45%, var(--coral) 65%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradient-sweep 5s linear infinite;
  font-weight: 600;
}
@keyframes gradient-sweep { to { background-position: -220% 0; } }

.geo-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral);
}
.geo-kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--coral);
  border-radius: 2px;
  opacity: 0.8;
}
.geo-num {
  font-family: var(--font-display);
  font-size: clamp(42px, 4.8vw, 58px);
  line-height: 1;
  color: var(--ink);
  margin: 4px 0 2px;
}
.geo-num em { font-style: normal; color: var(--coral); }
.geo-tile--wide { grid-column: span 2; }
.geo-fact-label { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.geo-fact-value { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--ink-soft); }
.geo-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.geo-chip {
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: var(--surface-raised);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 600;
  transition: box-shadow 0.3s ease, color 0.3s ease, transform 0.3s var(--ease-out);
}
.geo-chip:hover { box-shadow: inset 0 0 0 1px var(--coral-soft); color: var(--ink); transform: translateY(-1px); }
.geo-chip i { font-style: normal; color: var(--coral); margin-right: 3px; }

/* ---- Workflow steps ---- */
.steps {
  position: relative;
  margin-top: clamp(48px, 7vh, 80px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2.6vw, 32px);
}
.step-line {
  position: absolute;
  top: 26px;
  left: 12.5%;
  width: 75%;
  height: 8px;
  overflow: visible;
}
.step-line path {
  fill: none;
  stroke: url(#stepGrad);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.6s var(--ease-out) 0.2s;
}
.steps.revealed .step-line path { stroke-dashoffset: 0; }

.step { position: relative; padding-top: 60px; }
.step-num {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--coral), #ff8a6e);
  color: #fff;
  font-family: var(--font-display);
  font-size: 17px;
  box-shadow: 0 10px 26px var(--coral-soft), 0 0 0 0 var(--coral-glow);
  opacity: 0;
  transform: scale(0.4) rotate(-14deg);
  transition:
    opacity 0.45s ease,
    transform 0.6s var(--ease-spring),
    box-shadow 0.3s ease;
  transition-delay: calc(var(--d, 0s) + 0.25s);
}
.step.revealed .step-num { opacity: 1; transform: none; }
.step:hover .step-num { box-shadow: 0 10px 26px var(--coral-soft), 0 0 0 8px var(--coral-glow); transform: scale(1.06); }
.step h3 { margin: 0 0 8px; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ---- Mode cards (no borders, elevation only) ---- */
.mode-grid {
  margin-top: clamp(48px, 7vh, 72px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.2vw, 24px);
}
.mode-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border-radius: var(--r-card-lg);
  padding: clamp(24px, 3vw, 32px);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease;
}
.mode-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.mode-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(360px circle at var(--sx, 50%) var(--sy, 50%), rgba(239,90,69,0.12), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.mode-card:hover::before { opacity: 1; }

/* StarBorder port — rotating beam orbiting the card rim */
@property --beam {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.mode-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--beam),
    transparent 0turn,
    transparent 0.6turn,
    rgba(239, 90, 69, 0.55) 0.8turn,
    #ffb49e 0.88turn,
    transparent 1turn
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0.4;
  transition: opacity 0.35s ease;
  pointer-events: none;
  animation: beam-rotate 4.5s linear infinite;
}
.mode-card:hover::after { opacity: 1; }
@keyframes beam-rotate { to { --beam: 360deg; } }

.mode-card { display: flex; flex-direction: column; align-items: flex-start; }
.mode-glyph-wrap {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--coral-soft), transparent 85%);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: box-shadow 0.35s ease, transform 0.35s var(--ease-out);
}
.mode-card:hover .mode-glyph-wrap { box-shadow: inset 0 0 0 1px var(--coral-soft), 0 8px 20px var(--coral-glow); transform: translateY(-2px); }
.mode-glyph { font-family: var(--font-display); font-size: 26px; color: var(--coral); }
.mode-card h3 { margin: 16px 0 10px; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.mode-card p { margin: 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.65; }
.mode-best {
  display: inline-block;
  margin-top: auto;
  padding: 8px 14px;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line);
  border-radius: var(--r-pill);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  transition: box-shadow 0.3s ease, color 0.3s ease;
}
.mode-card p { margin-bottom: 20px; }
.mode-card:hover .mode-best { box-shadow: inset 0 0 0 1px var(--coral-soft); color: var(--ink-soft); }

/* ---- Capabilities (no borders, elevation only) ---- */
.cap-grid {
  margin-top: clamp(48px, 7vh, 72px);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2.2vw, 24px);
}
.cap-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border-radius: var(--r-card-lg);
  padding: clamp(22px, 2.6vw, 30px);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease;
  transform-style: preserve-3d;
  perspective: 800px;
  will-change: transform;
}
.cap-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(360px circle at var(--sx, 50%) var(--sy, 50%), rgba(239,90,69,0.14), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.cap-card:hover::before { opacity: 1; }
.cap-card:hover { box-shadow: var(--shadow-2); }
.cap-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    at var(--sx, 50%) var(--sy, 50%),
    rgba(239, 90, 69, 0.55),
    rgba(239, 90, 69, 0.12) 18%,
    transparent 38%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.cap-card:hover::after { opacity: 1; }

.cap-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-deep);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}
.cap-icon span {
  display: block;
  width: 22px;
  height: 22px;
  position: relative;
}
.cap-gate::before,
.cap-gate::after {
  content: "";
  position: absolute;
  border-radius: 2px;
}
.cap-gate::before {
  inset: 0 0 8px 0;
  border: 2px solid var(--coral);
  border-bottom: none;
  border-radius: 4px 4px 0 0;
}
.cap-gate::after {
  left: 50%;
  top: 11px;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  background: var(--coral);
  border-radius: 50%;
  animation: gatePulse 1.8s ease-in-out infinite;
}
@keyframes gatePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,90,69,0.5); }
  50% { box-shadow: 0 0 0 6px rgba(239,90,69,0); }
}
.cap-snap {
  position: relative;
  background: var(--bg-deep);
  border: 1.5px solid var(--coral);
  border-radius: 3px;
}
.cap-snap::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px dashed rgba(239,90,69,0.5);
  border-radius: 2px;
}
.cap-trail {
  background: var(--bg-deep);
  position: relative;
  border-radius: var(--r-pill);
  overflow: hidden;
}
.cap-trail::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, var(--coral) 50%, transparent 100%);
  width: 50%;
  animation: trailMove 2.4s linear infinite;
}
@keyframes trailMove {
  from { transform: translateX(-100%); }
  to   { transform: translateX(200%); }
}
.cap-lock {
  position: relative;
  border: 2px solid var(--coral);
  border-radius: 4px 4px 2px 2px;
}
.cap-lock::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  width: 12px;
  height: 9px;
  margin-left: -6px;
  border: 2px solid var(--coral);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
}

.cap-card h3 { margin: 0 0 10px; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.cap-card p { margin: 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.65; }
.cap-tag {
  display: inline-block;
  margin-top: 18px;
  padding: 6px 12px;
  background: var(--surface-hover);
  border-radius: var(--r-pill);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ---- Scenario (redesigned, no borders) ---- */
.scenario-stage {
  margin-top: clamp(40px, 6vh, 60px);
  position: relative;
  padding: 0;
  background: var(--surface);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-3);
}
.scenario-stage::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle, rgba(239,90,69,0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* macOS window chrome */
.mac-titlebar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 13px 20px;
  background: linear-gradient(180deg, var(--surface-raised), var(--surface));
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 2;
}
.mac-lights { display: flex; gap: 8px; flex-shrink: 0; }
.mac-lights i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transition: filter 0.25s ease, transform 0.25s ease;
}
.light-r { background: #ff5f57; box-shadow: inset 0 0 2px rgba(0,0,0,0.18); }
.light-y { background: #febc2e; box-shadow: inset 0 0 2px rgba(0,0,0,0.18); }
.light-g { background: #28c840; box-shadow: inset 0 0 2px rgba(0,0,0,0.18); }
.scenario-stage:hover .mac-lights i { filter: saturate(1.25) brightness(1.08); }

.titlebar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* macOS segmented control */
.seg-control {
  display: inline-flex;
  padding: 3px;
  border-radius: 9px;
  background: var(--bg-deep);
  box-shadow: inset 0 0 0 1px var(--line);
}
.seg-btn {
  padding: 5px 14px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.seg-btn:hover { color: var(--ink-soft); }
.seg-btn.is-on {
  background: var(--surface-raised);
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28), inset 0 0 0 1px var(--line-strong);
}
[data-theme="light"] .seg-btn.is-on { box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1), inset 0 0 0 1px var(--line-strong); }

.scenario-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  background: rgba(239,90,69,0.1);
  border-radius: var(--r-pill);
  color: var(--coral);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.meta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  animation: statusPulse 1.4s ease-in-out infinite;
}
.meta-name { font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.meta-round {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--coral);
  padding: 5px 12px;
  background: rgba(239,90,69,0.06);
  border-radius: var(--r-pill);
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.scenario-body { position: relative; z-index: 1; padding: clamp(20px, 3vw, 32px); }

/* Sequence mode — full transcript, auto playback disabled */
.scenario-stage.is-order .t-step { opacity: 1; transform: translateX(0); }
.scenario-stage.is-order .t-node { background: var(--surface-hover); }
.scenario-stage.is-order .scenario-controls { display: none; }

.timeline-track {
  position: relative;
  padding-left: 28px;
}
.timeline-rail {
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  display: flex;
  flex-direction: column;
}
.rail-line {
  position: absolute;
  inset: 0;
  background: var(--line);
  border-radius: 2px;
}
.rail-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(180deg, var(--coral), #ffb29b);
  border-radius: 2px;
  transition: height 0.35s var(--ease-out);
  box-shadow: 0 0 12px var(--coral-glow);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  min-height: 200px;
}
.t-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
  position: relative;
}
.t-step.is-visible { opacity: 0.42; transform: translateX(0); }
.t-step.is-active { opacity: 1; transform: translateX(0); }

.t-node {
  position: absolute;
  left: -28px;
  top: 18px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  z-index: 2;
  transition: box-shadow 0.35s ease, transform 0.35s var(--ease-out), background 0.35s ease;
}
.t-step.is-visible .t-node { background: var(--surface-hover); }
.t-step.is-active .t-node {
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(239,90,69,0.15), 0 0 16px var(--coral-glow);
  transform: scale(1.15);
}
.t-step.is-active .t-node::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1.5px solid var(--coral);
  border-radius: 50%;
  animation: nodePulseRing 1.8s ease-in-out infinite;
}
@keyframes nodePulseRing {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.4); opacity: 0; }
}

.t-time {
  flex-shrink: 0;
  width: 72px;
  font-family: var(--font-display);
  font-size: 11.5px;
  color: var(--muted);
  padding-top: 14px;
  letter-spacing: 0.02em;
  transition: color 0.35s ease;
}
.t-step.is-active .t-time { color: var(--coral); }

.t-bubble {
  flex: 1;
  background: var(--bg-deep);
  border-radius: 14px;
  padding: 16px 20px;
  position: relative;
  transition: box-shadow 0.28s ease, transform 0.28s var(--ease-out), opacity 0.25s ease;
  overflow: hidden;
}
.t-step.is-active .t-bubble {
  box-shadow:
    0 0 0 1px rgba(239, 90, 69, 0.08),
    0 8px 28px rgba(0, 0, 0, 0.2),
    0 0 40px rgba(239, 90, 69, 0.03);
  transform: translateY(-1px);
}
.t-step.is-active .t-bubble::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -20%;
  width: 40%;
  height: 200%;
  background: linear-gradient(105deg, transparent 40%, rgba(239,90,69,0.06) 50%, transparent 60%);
  animation: bubbleSweep 2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes bubbleSweep {
  0%, 100% { transform: translateX(-30%); opacity: 0; }
  50% { transform: translateX(250%); opacity: 1; }
}
.t-bubble header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.t-bubble header img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 4px;
  background: var(--surface);
  padding: 1px;
  transition: box-shadow 0.35s ease;
}
.t-step.is-active .t-bubble header img {
  box-shadow: 0 0 0 2px rgba(239, 90, 69, 0.3), 0 0 12px var(--coral-glow);
}
.t-bubble header strong { color: var(--ink); font-weight: 600; font-size: 13.5px; }
.t-bubble p { margin: 0; color: var(--ink-soft); font-size: 13.5px; line-height: 1.6; }
.t-bubble strong { color: var(--ink); font-weight: 600; }
.you-dot, .gate-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.you-dot::after { content: "Y"; color: #fff; }
.gate-dot { background: var(--coral); box-shadow: 0 0 10px var(--coral-glow); position: relative; }
.gate-dot::after { content: ""; position: absolute; inset: -3px; border: 1px solid var(--coral); border-radius: 50%; animation: gatePulseRing 1.6s ease-in-out infinite; }
@keyframes gatePulseRing {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 0; }
}

/* Per-agent accent system: tinted bubble wash + matching role badge */
.t-bubble-codex {
  background: linear-gradient(135deg, rgba(108, 140, 255, 0.07), var(--bg-deep) 60%);
  box-shadow: inset 3px 0 0 rgba(108, 140, 255, 0.55);
}
.t-bubble-hermes {
  background: linear-gradient(135deg, rgba(255, 157, 82, 0.07), var(--bg-deep) 60%);
  box-shadow: inset 3px 0 0 rgba(255, 157, 82, 0.55);
}
.t-bubble-ocr {
  background: linear-gradient(135deg, rgba(106, 212, 139, 0.07), var(--bg-deep) 60%);
  box-shadow: inset 3px 0 0 rgba(106, 212, 139, 0.55);
}
.t-bubble-you {
  background: linear-gradient(135deg, rgba(239, 90, 69, 0.06), var(--bg-deep) 60%);
  box-shadow: inset 3px 0 0 rgba(239, 90, 69, 0.45);
}
.t-bubble-codex .t-role { color: #93a9ff; background: rgba(108, 140, 255, 0.1); }
.t-bubble-hermes .t-role { color: #ffb27e; background: rgba(255, 157, 82, 0.1); }
.t-bubble-ocr .t-role { color: #8ce0ac; background: rgba(106, 212, 139, 0.1); }
.t-bubble-you .t-role, .t-bubble-gate .t-role { color: var(--coral); background: rgba(239, 90, 69, 0.1); }
.t-role {
  margin-left: auto;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  white-space: nowrap;
}
.t-step.is-active .t-role { filter: brightness(1.12); }
.t-bubble-gate {
  background: linear-gradient(135deg, rgba(239,90,69,0.08), rgba(239,90,69,0.02));
  box-shadow: inset 3px 0 0 var(--coral), 0 0 24px rgba(239,90,69,0.06);
}
.t-step.is-active .t-bubble-gate {
  box-shadow:
    inset 3px 0 0 var(--coral),
    0 8px 28px rgba(0, 0, 0, 0.2),
    0 0 50px rgba(239, 90, 69, 0.08);
}

.scenario-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--muted);
}
.rail-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-deep);
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.rail-btn:hover {
  background: rgba(239,90,69,0.1);
  color: var(--coral);
  transform: scale(1.06);
}
.rail-btn:active { transform: scale(0.95); }

/* ---- CardSwap screenshots (React Bits port) ---- */
.card-swap-stage {
  margin-top: clamp(48px, 7vh, 72px);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.card-swap-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cs-info-item {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  transition: opacity 0.4s ease, transform 0.4s var(--ease-out);
}
.cs-info-item:first-child { border-top: none; padding-top: 0; }
.cs-info-item.is-active { opacity: 1; transform: translateX(0); }
.cs-info-item:not(.is-active) { opacity: 0.35; transform: translateX(-6px); }
.cs-info-item h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.cs-info-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}
.cs-info-item.is-active h3 { color: var(--coral); }

/* React Bits CardSwap — layout box (visual bounds only) */
.card-swap-3d {
  position: relative;
  width: 100%;
  height: clamp(380px, 44vw, 500px);
}
/* Clip envelope: extends beyond the visual box so elastic overshoot,
   the drop phase and card shadows never touch the clip boundary.
   Fade masks sit at the far edges of the envelope, not the visual box. */
.card-swap-clip {
  position: absolute;
  inset: -80px -56px -64px;
  perspective: 900px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 13%, #000 91%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 13%, #000 91%, transparent 100%);
}
.cs-card {
  position: absolute;
  top: 56%;
  left: 50%;
  /* size relative to the container column, not the viewport —
     prevents the stack from being clipped by overflow:hidden */
  width: min(440px, 76%);
  max-height: 82%;
  aspect-ratio: 29 / 25;
  height: auto;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 50px rgba(0,0,0,0.35);
  background: var(--bg-deep);
  transform-style: preserve-3d;
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  /* initial transform set by JS via makeSlot */
  transform: translate(-50%, -50%);
  transition: box-shadow 0.4s ease;
}
[data-theme="light"] .cs-card {
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.cs-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cs-card .cs-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.75));
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
[data-theme="light"] .cs-card .cs-caption {
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.9));
  color: var(--ink);
}

.product-foot {
  margin: clamp(28px, 4vh, 40px) auto 0;
  max-width: 720px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

/* ---- Why (no borders) ---- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.why-left { position: sticky; top: 120px; }
.why-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.why-list li {
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 22px 24px;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease;
}
.why-list li:hover { transform: translateX(6px); box-shadow: var(--shadow-1); }
.why-list h3 { margin: 0 0 8px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.why-list h3::before { content: "● "; color: var(--coral); font-size: 9px; vertical-align: 2px; }
.why-list p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

/* ---- Comparison table (no borders, seamless) ---- */
.cmp-table {
  margin-top: clamp(48px, 7vh, 72px);
  border-radius: var(--r-card-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.cmp-row {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 1.7fr;
  gap: 18px;
  padding: 18px 24px;
  align-items: start;
  transition: background 0.25s ease;
}
.cmp-row + .cmp-row { border-top: 1px solid var(--line); }
.cmp-row:not(.cmp-head):hover { background: rgba(239,90,69,0.04); }
.cmp-row:not(.cmp-head)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 30%;
  bottom: 30%;
  width: 2px;
  background: var(--coral);
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.25s ease, top 0.3s var(--ease-out), bottom 0.3s var(--ease-out);
}
.cmp-row:not(.cmp-head):hover::before { opacity: 1; top: 14%; bottom: 14%; }
.cmp-head {
  background: var(--bg-deep);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.cmp-cat { font-weight: 600; color: var(--ink); font-size: 14.5px; }
.cmp-row > div:not(.cmp-cat) { color: var(--ink-soft); font-size: 14px; line-height: 1.55; }

/* ---- Boundary (no borders) ---- */
.bnd-grid {
  margin-top: clamp(48px, 7vh, 72px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.2vw, 26px);
}
.bnd-col {
  background: var(--surface);
  border-radius: var(--r-card-lg);
  padding: clamp(22px, 2.8vw, 30px);
  box-shadow: var(--shadow-1);
}
.bnd-col h3 {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.bnd-glyph {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  position: relative;
}
.bnd-yes { background: rgba(106, 212, 139, 0.18); }
.bnd-yes::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  width: 4px;
  height: 9px;
  border: solid #6ad48b;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.bnd-no { background: rgba(239,90,69,0.12); }
.bnd-no::before, .bnd-no::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 10px;
  width: 10px;
  height: 2px;
  background: var(--coral);
}
.bnd-no::before { transform: rotate(45deg); }
.bnd-no::after { transform: rotate(-45deg); }

.bnd-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bnd-col li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.bnd-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--coral);
  border-radius: 50%;
  opacity: 0.6;
}
.bnd-col:last-child li::before { opacity: 1; background: var(--coral); }

/* ---- FAQ accordion (no borders) ---- */
.acc-list {
  list-style: none;
  margin: clamp(40px, 6vh, 60px) auto 0;
  padding: 0;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.acc-item {
  background: var(--surface);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}
.acc-item.is-open { box-shadow: var(--shadow-1); }
.acc-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  transition: color 0.2s ease;
}
.acc-trigger:hover { color: var(--coral); }
.acc-icon {
  position: relative;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}
.acc-icon::before, .acc-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease-out);
  transform: translate(-50%, -50%);
}
.acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc-item.is-open .acc-icon::after { transform: translate(-50%, -50%) rotate(0); }

.acc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out);
}
.acc-panel p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.65;
}
.acc-panel p a { color: var(--coral); }
.acc-panel p a:hover { text-decoration: underline; }

/* ---- ScrollVelocity marquee (no borders) ---- */
.velocity {
  margin-top: clamp(96px, 14vh, 160px);
  overflow: hidden;
  padding: clamp(28px, 5vh, 48px) 0;
}
.velocity-track {
  display: flex;
  gap: 0.6em;
  width: max-content;
  font-family: var(--font-display);
  font-size: clamp(34px, 6vw, 76px);
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  will-change: transform;
}
.velocity-track i { font-style: normal; color: var(--coral); -webkit-text-stroke: 0; }

/* ---- Final CTA ---- */
.cta-final {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(96px, 16vh, 180px) 20px clamp(40px, 6vh, 64px);
}
.final-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 4.6vw, 58px);
  letter-spacing: -0.03em;
  line-height: 1.12;
  overflow: hidden;
}
.final-title .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em);
  filter: blur(4px);
  transition: opacity 0.6s var(--ease-out), transform 0.7s var(--ease-out), filter 0.6s var(--ease-out);
  transition-delay: var(--cd, 0s);
}
.final-title.play .ch { opacity: 1; transform: translateY(0); filter: blur(0); }
.final-sub { margin: 18px 0 0; color: var(--muted); font-size: 15px; }
.cta-final .cta-row { margin-top: 30px; }

.foot-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin-top: clamp(72px, 12vh, 120px);
  color: var(--faint);
  font-size: 12px;
}
.foot-wordmark { height: 22px; width: auto; opacity: 0.85; }
.foot-link { color: var(--muted); }
.foot-link:hover { color: var(--coral); }

/* ================= RESPONSIVE ================= */

@media (max-width: 1024px) {
  .mode-grid { grid-template-columns: 1fr; max-width: 640px; margin-left: auto; margin-right: auto; }
  .cap-grid { grid-template-columns: 1fr; max-width: 640px; margin-left: auto; margin-right: auto; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step-line { display: none; }
  .why-grid { grid-template-columns: 1fr; }
  .why-left { position: static; }
  .bnd-grid { grid-template-columns: 1fr; }
  .cmp-row { grid-template-columns: 1fr 1fr; }
  .cmp-row > div:nth-child(3) { grid-column: span 2; padding-top: 6px; border-top: 1px dashed var(--line); }
  .cmp-head > div:nth-child(3) { display: none; }
  .card-swap-stage { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav-pill { display: none; }
  .burger { display: block; }
  .cta-dark { padding: 0 14px; font-size: 12.5px; }
}

@media (max-width: 720px) {
  .topnav { justify-content: space-between; }
  .hero { padding: 100px 18px 96px; }
  .headline { font-size: clamp(26px, 7.4vw, 44px); letter-spacing: -0.05em; }
  .hl-line { white-space: normal; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 14px 8px; bottom: 22px; }
  .trust { --trust-size: 32px; }
  .trust-pill { margin-left: 0; padding: 9px 16px; height: auto; white-space: normal; text-align: center; max-width: 92vw; font-size: 12px; }
  .steps { grid-template-columns: 1fr; }
  .geo-facts { grid-template-columns: 1fr; }
  .card-swap-3d { height: 320px; }
  .cs-card[data-pos="2"], .cs-card[data-pos="3"] { display: none; }
  .cmp-row { grid-template-columns: 1fr; padding: 14px 18px; }
  .cmp-row > div:nth-child(3) { grid-column: auto; padding-top: 0; border-top: none; }
  .cmp-head > div:nth-child(3) { display: block; }
  .scroll-cue { display: none; }
  .t-step { flex-direction: column; gap: 4px; }
  .t-time { width: auto; padding-top: 0; }
  .scenario-controls { font-size: 11px; }
  .t-role { display: none; }
  .meta-round { font-size: 11.5px; }
  .mac-titlebar { gap: 10px; padding: 12px 16px; }
  .titlebar-right { margin-left: 0; width: 100%; justify-content: space-between; }
  .section { padding-top: clamp(72px, 11vh, 110px); }
  .why-left { position: static; }
}

@media (max-width: 420px) {
  .headline { font-size: 26px; letter-spacing: -0.06em; }
  .nav-pill, .topnav > .cta-dark { display: none; }
  .burger { display: block; }
}

/* ================= REDUCED MOTION ================= */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-delay: 0s !important;
    transition-duration: 0.001s !important;
  }
  .reveal, .hero-inner > *, .hero-stats { opacity: 1 !important; transform: none !important; filter: none !important; }
  .hl-line .ch, .final-title .ch { opacity: 1; transform: none; filter: none; }
  .marquee-track { animation: none; }
  .velocity-track { transform: none !important; }
  .scroll-progress span { transition: none; }
  .cta-primary::after, .spark { display: none; }
  .bg-video { display: none; }
  .cs-card { transition: none !important; }
  .t-bubble::after, .logo-badge::before { display: none; }
  .logo-badge, .nav-pill, .cta-dark, .theme-toggle { opacity: 1 !important; transform: none !important; }
}