/* UltraMate Official Website — Night Relay Design System
 * Visual kinship with MagicSpeak V3 ("Night Signal"), tailored for remote AI Agent orchestration.
 * Strictly follows Geist / Noto Sans SC / Geist Mono typography, Tailwind scale steps,
 * named text styles, spacing tokens, nested corner radii, and cubic-bezier(0.22,1,0.36,1) motion.
 */

:root {
  /* Core dark surfaces (flat backgrounds, layered contrast) */
  --bg: #05060A;
  --surface-1: #0D1018;
  --surface-2: #141824;
  --surface-3: #1C2232;
  --fg: #ECEEF5;
  --fg-soft: rgba(236, 238, 245, 0.78);
  --mute: rgba(236, 238, 245, 0.56);
  --mute-low: rgba(236, 238, 245, 0.34);
  --border: rgba(236, 238, 245, 0.1);
  --border-strong: rgba(236, 238, 245, 0.18);

  /* Signal accents */
  --cyan: #5BE7FF;
  --cobalt: #537BFF;
  --amber: #FF8C3A;
  --emerald: #34D399;
  --rose: #FB7185;

  /* Spacing tokens (strict B2 scale) */
  --sp-0: 0px;
  --sp-25: 2px;
  --sp-50: 4px;
  --sp-75: 8px;
  --sp-100: 12px;
  --sp-200: 16px;
  --sp-300: 24px;
  --sp-400: 32px;
  --sp-500: 40px;
  --sp-600: 48px;
  --sp-700: 64px;
  --sp-800: 80px;
  --sp-900: 96px;

  /* Radii (Tailwind standard steps) */
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 8px;
  --r-xl: 12px;
  --r-2xl: 16px;
  --r-3xl: 24px;
  --r-full: 9999px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Container */
  --max: 1120px;
  --font-sans: "Geist", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

/* Base reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: clip;
  background: var(--bg);
  color: var(--fg);
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
a,
input {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

a {
  text-decoration: none;
}

code,
pre,
kbd,
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

::selection {
  background: rgba(91, 231, 255, 0.26);
  color: var(--fg);
}

/* Named Typography Styles (B1) */
.heading-1 {
  font-size: 60px;
  line-height: 60px;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.heading-2 {
  font-size: 48px;
  line-height: 48px;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.heading-3 {
  font-size: 36px;
  line-height: 40px;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.heading-4 {
  font-size: 30px;
  line-height: 36px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.heading-5 {
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.heading-6 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.title-1 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.title-2 {
  font-size: 18px;
  line-height: 28px;
  font-weight: 500;
}

.title-3 {
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
}

.title-4 {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

.title-5 {
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
}

.body-2 {
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  text-wrap: pretty;
}

.body-3 {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  text-wrap: pretty;
}

.body-5 {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  text-wrap: pretty;
}

.body-6 {
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  text-wrap: pretty;
}

.button-md {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}

.button-sm {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.caption-1 {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

.caption-2 {
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}

.caption-3 {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
}

.caption-4 {
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
}

.caption-5 {
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
}

/* Skip to content */
.skip {
  position: fixed;
  left: var(--sp-200);
  top: var(--sp-200);
  z-index: 120;
  padding: var(--sp-75) var(--sp-200);
  border-radius: var(--r-full);
  background: var(--fg);
  color: var(--bg);
  transform: translateY(-160%);
  opacity: 0;
  transition: transform 300ms var(--ease), opacity 300ms var(--ease);
}

.skip:focus-visible {
  transform: none;
  opacity: 1;
}

.kicker {
  margin: 0 0 var(--sp-100);
  color: var(--cyan);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-75);
  min-height: 48px;
  padding: var(--sp-75) var(--sp-300);
  border-radius: var(--r-full);
  background: var(--fg);
  color: var(--bg);
  white-space: nowrap;
  transition: transform 300ms var(--ease), opacity 300ms var(--ease), background-color 300ms var(--ease), border-color 300ms var(--ease);
}

.btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn:active {
  transform: scale(0.98);
}

.btn-sm {
  min-height: 36px;
  padding: var(--sp-75) var(--sp-200);
}

.btn-ghost {
  background: rgba(236, 238, 245, 0.06);
  color: var(--fg);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  background: rgba(236, 238, 245, 0.12);
  opacity: 1;
}

/* MagicSpeak iconic rotating conic border button */
.btn-glow {
  position: relative;
  isolation: isolate;
  z-index: 0;
  overflow: hidden;
  padding: var(--sp-100) var(--sp-300);
}

.btn-glow::before,
.btn-glow::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.btn-glow::before {
  width: 220%;
  aspect-ratio: 1;
  left: 50%;
  top: 50%;
  background: conic-gradient(from 0deg, var(--cyan), var(--cobalt), var(--cyan));
  z-index: -2;
  animation: glow-spin 7s linear infinite;
  transform: translate(-50%, -50%);
}

.btn-glow::after {
  inset: 1.5px;
  border-radius: inherit;
  background: var(--fg);
  z-index: -1;
}

.btn-glyph {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

/* Floating Capsule Navigation (MagicSpeak + B7) */
.nav {
  position: fixed;
  top: var(--sp-200);
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  padding: 0 var(--sp-200);
  pointer-events: none;
}

.nav-capsule {
  pointer-events: auto;
  position: relative;
  z-index: 2;
  width: min(var(--max), 100%);
  display: flex;
  align-items: center;
  gap: var(--sp-200);
  min-height: 56px;
  padding: var(--sp-75) var(--sp-100) var(--sp-75) var(--sp-200);
  border-radius: var(--r-full);
  background: rgba(8, 10, 16, 0.72);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-100);
  font-weight: 600;
  letter-spacing: -0.02em;
  flex: 0 0 auto;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: var(--r-lg);
}

.brand-tag {
  padding: var(--sp-25) var(--sp-75);
  border-radius: var(--r-full);
  border: 1px solid rgba(91, 231, 255, 0.28);
  color: var(--cyan);
  background: rgba(91, 231, 255, 0.08);
}

.nav-links {
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: var(--sp-300);
}

.nav-links a {
  color: var(--mute);
  padding: var(--sp-50) var(--sp-75);
  border-radius: var(--r-full);
  transition: color 300ms var(--ease), background-color 300ms var(--ease);
}

.nav-links a:hover,
.nav-links a.is-active,
.nav-links a[aria-current="page"] {
  color: var(--fg);
  background: rgba(236, 238, 245, 0.07);
}

.nav-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--sp-75);
}

/* Language Dropdown */
.lang-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-full);
  color: var(--mute);
  transition: color 300ms var(--ease), background-color 300ms var(--ease);
}

.lang-btn:hover,
.lang-dropdown.is-open .lang-btn {
  color: var(--fg);
  background: rgba(236, 238, 245, 0.08);
}

.lang-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 70;
  min-width: 148px;
  padding: var(--sp-75);
  display: grid;
  gap: var(--sp-50);
  border-radius: var(--r-2xl);
  background: rgba(13, 16, 24, 0.96);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.56);
}

.lang-menu[hidden] {
  display: none;
}

.lang-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-75) var(--sp-100);
  border-radius: var(--r-lg);
  color: var(--mute);
  transition: color 300ms var(--ease), background-color 300ms var(--ease);
}

.lang-menu a:hover {
  color: var(--fg);
  background: rgba(236, 238, 245, 0.07);
}

.lang-menu a[aria-current="page"] {
  color: var(--fg);
  background: rgba(91, 231, 255, 0.12);
}

.lang-menu a[aria-current="page"]::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: var(--r-full);
  background: var(--cyan);
}

/* Mobile menu button & full-height panel */
.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  position: relative;
  border-radius: var(--r-full);
}

.menu-btn span {
  position: absolute;
  width: 16px;
  height: 1.5px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 500ms var(--ease);
}

.menu-btn span:first-child {
  transform: translateY(-4px);
}

.menu-btn span:last-child {
  transform: translateY(4px);
}

.nav.is-open .menu-btn span:first-child {
  transform: rotate(45deg);
}

.nav.is-open .menu-btn span:last-child {
  transform: rotate(-45deg);
}

.nav-panel[hidden] {
  display: flex !important;
}

.nav-panel {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-600);
  padding: var(--sp-900) var(--sp-400) var(--sp-500);
  background: rgba(5, 6, 10, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 400ms var(--ease), visibility 400ms var(--ease);
}

.nav.is-open .nav-panel {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.nav-panel nav {
  display: flex;
  flex-direction: column;
  gap: var(--sp-200);
}

.nav-panel nav a {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease), color 300ms var(--ease);
}

.nav.is-open .nav-panel nav a {
  opacity: 1;
  transform: none;
}

.nav.is-open .nav-panel nav a:nth-child(1) { transition-delay: 60ms; }
.nav.is-open .nav-panel nav a:nth-child(2) { transition-delay: 120ms; }
.nav.is-open .nav-panel nav a:nth-child(3) { transition-delay: 180ms; }
.nav.is-open .nav-panel nav a:nth-child(4) { transition-delay: 240ms; }
.nav.is-open .nav-panel nav a:nth-child(5) { transition-delay: 300ms; }
.nav.is-open .nav-panel nav a:nth-child(6) { transition-delay: 360ms; }

.nav-panel .lang-pills {
  flex-direction: row;
  align-items: center;
  gap: var(--sp-100);
}

.lang-pills {
  display: flex;
  align-items: center;
  gap: var(--sp-75);
}

.lang-pills a {
  padding: var(--sp-75) var(--sp-200);
  border-radius: var(--r-full);
  color: var(--mute);
  border: 1px solid var(--border);
  transition: color 300ms var(--ease), border-color 300ms var(--ease), background-color 300ms var(--ease);
}

.lang-pills a[aria-current="page"] {
  color: var(--fg);
  border-color: rgba(91, 231, 255, 0.35);
  background: rgba(91, 231, 255, 0.1);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 128px var(--sp-300) var(--sp-800);
  overflow: clip;
}

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

.hero-halo {
  position: absolute;
  width: min(760px, 84vw);
  height: min(420px, 50vh);
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(closest-side, rgba(91, 231, 255, 0.14), transparent 70%),
    radial-gradient(closest-side at 72% 38%, rgba(83, 123, 255, 0.16), transparent 68%);
  filter: blur(12px);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-75);
  padding: var(--sp-50) var(--sp-200);
  margin-bottom: var(--sp-300);
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  background: rgba(13, 16, 24, 0.8);
  color: var(--fg-soft);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--r-full);
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(91, 231, 255, 0.8);
  animation: pulse 2s var(--ease) infinite;
}

.hero-title {
  margin: 0;
  max-width: 680px;
  font-size: 36px;
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

@media (min-width: 480px) {
  .hero-title {
    font-size: 48px;
    line-height: 1.08;
  }
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 72px;
    line-height: 1.04;
    max-width: 820px;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 96px;
    line-height: 1.03;
    max-width: 960px;
  }
}

.hero-line {
  display: block;
}

.hero-line-primary .hero-ch {
  background: linear-gradient(90deg, #FFFFFF 0%, #9B9B9B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-line-accent .hero-ch {
  color: var(--cyan);
}

.hero-ch {
  display: inline-block;
  white-space: pre;
  will-change: transform, opacity, filter;
}

.hero-caret {
  display: inline-block;
  width: 3px;
  height: 0.78em;
  margin-left: 2px;
  background: var(--cyan);
  border-radius: 2px;
  vertical-align: -0.08em;
  animation: blink 1.1s steps(1) infinite;
  box-shadow: 0 0 18px rgba(91, 231, 255, 0.72);
}

html[lang="zh-Hans"] .hero-caret {
  margin-left: -0.22em;
}

.js:not(.reduced):not(.booted) .hero-ch {
  opacity: 0;
  transform: translateY(40%);
  filter: blur(8px);
}

.js.booted .hero-ch {
  opacity: 1;
  transform: none;
  filter: none;
  transition: transform 800ms var(--ease), opacity 800ms var(--ease), filter 800ms var(--ease);
  transition-delay: calc(var(--i) * 28ms);
}

.hero-sub {
  margin: var(--sp-300) auto 0;
  max-width: 680px;
  color: var(--mute);
  font-size: 18px;
  line-height: 28px;
  text-wrap: pretty;
}

.hero-cta {
  margin-top: var(--sp-400);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--sp-200);
  flex-wrap: wrap;
}

.hero-proof {
  margin: var(--sp-300) 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--sp-75);
  color: var(--mute);
  list-style: none;
  padding: 0;
}

.hero-proof li {
  display: inline-flex;
  align-items: center;
  padding: var(--sp-50) var(--sp-100);
  border-radius: var(--r-full);
  background: rgba(236, 238, 245, 0.04);
  border: 1px solid rgba(236, 238, 245, 0.08);
}

.proof-sep {
  width: 3px;
  height: 3px;
  border-radius: var(--r-full);
  background: rgba(236, 238, 245, 0.3);
}

/* ============================================================
   INTERACTIVE LIVE STAGE (#demo — iPhone <-> ZDR Relay <-> Mac)
   ============================================================ */
.stage-section {
  width: min(1220px, 100%);
  margin: 0 auto;
  padding: var(--sp-900) var(--sp-300) var(--sp-800);
  scroll-margin-top: 96px;
}

.stage-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--sp-500);
}

.stage-header h2 {
  margin: 0;
}

.stage-header p {
  margin: var(--sp-100) 0 0;
  color: var(--mute);
}

.stage-shell {
  position: relative;
  border-radius: 28px;
  padding: 24px 24px 20px;
  background:
    radial-gradient(620px 360px at 18% 0%, rgba(91, 231, 255, 0.08), transparent 65%),
    radial-gradient(560px 340px at 84% 100%, rgba(83, 123, 255, 0.09), transparent 65%),
    var(--surface-1);
  border: 1px solid rgba(236, 238, 245, 0.12);
  box-shadow: 0 36px 96px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.stage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: stretch;
}

@media (min-width: 1020px) {
  .stage-grid {
    grid-template-columns: 310px 166px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
  }
}

/* ---------- Realistic Titanium iPhone Shell ---------- */
.iphone-device {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}

.iphone-frame {
  position: relative;
  border-radius: 40px;
  padding: 6px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(160, 174, 210, 0.14) 36%,
    rgba(30, 36, 52, 0.8) 70%,
    rgba(91, 231, 255, 0.22) 100%
  );
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(0, 0, 0, 0.8),
    inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

.iphone-frame::before,
.iphone-frame::after {
  content: "";
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: rgba(200, 212, 240, 0.26);
}

.iphone-frame::before {
  left: -2px;
  top: 96px;
  height: 44px;
  box-shadow: 0 54px 0 rgba(200, 212, 240, 0.22);
}

.iphone-frame::after {
  right: -2px;
  top: 122px;
  height: 62px;
}

.iphone-screen {
  border-radius: 34px;
  background: linear-gradient(180deg, #090C14 0%, #07090F 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 11px 8px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 512px;
  overflow: hidden;
  position: relative;
}

.iphone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 2px 6px 0;
  color: rgba(236, 238, 245, 0.82);
}

.iphone-time {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.iphone-sys-icons {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(236, 238, 245, 0.82);
}

.dynamic-island {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-full);
  background: #000000;
  border: 1px solid rgba(91, 231, 255, 0.3);
  color: var(--cyan);
  font-size: 11px;
  line-height: 14px;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7), 0 0 12px rgba(91, 231, 255, 0.14);
  transition: border-color 360ms var(--ease), color 360ms var(--ease), box-shadow 360ms var(--ease), transform 360ms var(--ease);
  max-width: 176px;
}

.island-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dynamic-island .island-check {
  display: none;
  font-weight: 700;
}

.dynamic-island.is-done {
  border-color: rgba(52, 211, 153, 0.48);
  color: var(--emerald);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7), 0 0 14px rgba(52, 211, 153, 0.22);
}

.dynamic-island.is-done .island-bars {
  display: none;
}

.dynamic-island.is-done .island-check {
  display: inline;
}

.dynamic-island.is-amber {
  border-color: rgba(255, 140, 58, 0.45);
  color: var(--amber);
}

.dynamic-island.is-amber .island-bars i {
  background: var(--amber);
}

.island-bars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 10px;
  flex-shrink: 0;
}

.island-bars i {
  display: block;
  width: 2px;
  height: 100%;
  border-radius: 2px;
  background: var(--cyan);
  animation: wave-bar 1.1s var(--ease) infinite;
}

.island-bars i:nth-child(2) { animation-delay: 140ms; }
.island-bars i:nth-child(3) { animation-delay: 280ms; }

.iphone-appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(22, 27, 41, 0.85);
  border: 1px solid rgba(236, 238, 245, 0.08);
}

.iphone-appbar-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.iphone-back {
  color: var(--mute);
  flex-shrink: 0;
}

.iphone-title-col {
  min-width: 0;
}

.iphone-session-title {
  font-size: 13px;
  line-height: 17px;
  font-weight: 600;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.iphone-e2ee-sub {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  font-size: 11px;
  line-height: 14px;
  color: var(--mute);
}

.e2ee-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--r-full);
  background: var(--emerald);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.7);
  flex-shrink: 0;
}

.engine-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--r-full);
  background: rgba(83, 123, 255, 0.16);
  border: 1px solid rgba(83, 123, 255, 0.36);
  color: #C7D7FF;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 500;
}

.iphone-feed {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 2px 0;
  min-height: 312px;
  overflow: hidden;
}

.msg-step {
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  transition: opacity 380ms var(--ease), transform 420ms var(--ease);
}

.msg-step.is-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.chat-bubble {
  padding: 10px 11px;
  border-radius: 15px;
  border: 1px solid rgba(236, 238, 245, 0.09);
  background: rgba(20, 25, 38, 0.92);
  font-size: 12.5px;
  line-height: 18px;
}

.chat-bubble.is-user {
  align-self: flex-end;
  max-width: 92%;
  background: linear-gradient(135deg, rgba(83, 123, 255, 0.28), rgba(53, 86, 214, 0.24));
  border-color: rgba(114, 150, 255, 0.42);
  border-bottom-right-radius: 5px;
}

.chat-bubble.is-agent {
  align-self: flex-start;
  width: 100%;
  border-bottom-left-radius: 5px;
}

.chat-bubble.is-decision {
  border-color: rgba(91, 231, 255, 0.34);
  background: linear-gradient(180deg, rgba(16, 24, 38, 0.96), rgba(11, 16, 28, 0.96));
}

.chat-bubble.is-success {
  border-color: rgba(52, 211, 153, 0.34);
  background: rgba(16, 32, 28, 0.62);
}

.bubble-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 5px;
  font-size: 11px;
  font-weight: 600;
}

.bubble-file-tag {
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(236, 238, 245, 0.07);
  color: var(--mute);
  font-size: 10.5px;
  font-weight: 500;
}

.decision-actions {
  margin-top: 9px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.decision-btn {
  position: relative;
  overflow: hidden;
  padding: 7px 8px;
  border-radius: 10px;
  border: 1px solid rgba(236, 238, 245, 0.16);
  background: rgba(236, 238, 245, 0.05);
  color: var(--fg);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  text-align: center;
  transition: background-color 260ms var(--ease), border-color 260ms var(--ease), color 260ms var(--ease), transform 200ms var(--ease), box-shadow 260ms var(--ease);
}

.decision-btn:hover {
  border-color: rgba(91, 231, 255, 0.5);
  background: rgba(91, 231, 255, 0.08);
}

.decision-btn.is-selected {
  background: rgba(91, 231, 255, 0.18);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 16px rgba(91, 231, 255, 0.2);
}

.decision-btn.is-tapping {
  transform: scale(0.95);
}

.decision-btn.is-tapping::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(91, 231, 255, 0.45), transparent 70%);
  animation: tap-flash 450ms var(--ease) forwards;
}

/* Mini Red-Box Annotated Preview inside iPhone */
.mini-shot-card {
  margin-top: 7px;
  border-radius: 10px;
  background: #070A12;
  border: 1px solid rgba(236, 238, 245, 0.12);
  padding: 8px;
  position: relative;
}

.mini-shot-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--mute);
  margin-bottom: 6px;
}

.mini-shot-ui {
  position: relative;
  border-radius: 7px;
  background: #101523;
  padding: 7px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mini-shot-btn {
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(91, 231, 255, 0.18);
  color: var(--cyan);
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: padding 380ms var(--ease), background-color 380ms var(--ease), color 380ms var(--ease);
}

.mini-redbox {
  position: absolute;
  right: 4px;
  top: 3px;
  bottom: 3px;
  width: 82px;
  border: 1.5px solid var(--rose);
  border-radius: 6px;
  box-shadow: 0 0 12px rgba(251, 113, 133, 0.38);
  pointer-events: none;
  transition: border-color 380ms var(--ease), box-shadow 380ms var(--ease);
}

.mini-redbox-tag {
  position: absolute;
  top: -15px;
  right: 0;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--rose);
  color: #05060A;
  font-size: 9.5px;
  font-weight: 700;
  white-space: nowrap;
}

.mini-shot-card.is-fixed .mini-redbox {
  border-color: var(--emerald);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.35);
}

.mini-shot-card.is-fixed .mini-redbox-tag {
  background: var(--emerald);
}

.mini-shot-card.is-fixed .mini-shot-btn {
  padding: 3px 11px;
  background: rgba(52, 211, 153, 0.2);
  color: var(--emerald);
}

.iphone-composer {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 7px 6px 10px;
  border-radius: var(--r-full);
  background: rgba(20, 24, 36, 0.95);
  border: 1px solid rgba(236, 238, 245, 0.1);
}

.composer-plus {
  width: 20px;
  height: 20px;
  border-radius: var(--r-full);
  background: rgba(236, 238, 245, 0.08);
  color: var(--mute);
  display: grid;
  place-items: center;
  font-size: 13px;
  flex-shrink: 0;
}

.composer-placeholder {
  flex: 1;
  font-size: 11.5px;
  color: var(--mute-low);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.composer-send {
  width: 22px;
  height: 22px;
  border-radius: var(--r-full);
  background: rgba(91, 231, 255, 0.2);
  color: var(--cyan);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background-color 240ms var(--ease), transform 240ms var(--ease);
}

.composer-send.is-pulse {
  background: var(--cyan);
  color: #05060A;
  transform: scale(1.12);
}

.iphone-tabbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding-top: 6px;
  border-top: 1px solid rgba(236, 238, 245, 0.08);
}

.iphone-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 0;
  border-radius: 10px;
  color: var(--mute);
  font-size: 10.5px;
  line-height: 13px;
}

.iphone-tab.is-on {
  color: var(--cyan);
}

.iphone-home-bar {
  width: 96px;
  height: 4px;
  margin: 2px auto 0;
  border-radius: var(--r-full);
  background: rgba(236, 238, 245, 0.28);
}

/* ---------- Middle ZDR Bi-Directional Optical Bridge ---------- */
.relay-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px 0;
}

.relay-conduit {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.relay-track {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.relay-dir {
  font-size: 11px;
  line-height: 14px;
  color: var(--mute);
  letter-spacing: 0.01em;
}

.relay-rail {
  position: relative;
  width: 100%;
  height: 6px;
  border-radius: var(--r-full);
  background: rgba(236, 238, 245, 0.06);
  overflow: hidden;
}

.relay-rail::before {
  content: "";
  position: absolute;
  inset: 2.5px 0;
  background: linear-gradient(90deg, transparent, rgba(91, 231, 255, 0.3), transparent);
}

.relay-track.is-downlink .relay-rail::before {
  background: linear-gradient(90deg, transparent, rgba(52, 211, 153, 0.3), transparent);
}

.relay-beam {
  position: absolute;
  top: 1px;
  left: -46px;
  width: 46px;
  height: 4px;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, transparent, var(--cyan), #FFFFFF);
  box-shadow: 0 0 14px var(--cyan);
  opacity: 0;
}

.relay-track.is-downlink .relay-beam {
  left: auto;
  right: -46px;
  background: linear-gradient(270deg, transparent, var(--emerald), #FFFFFF);
  box-shadow: 0 0 14px var(--emerald);
}

.relay-track.is-uplink.is-firing .relay-beam {
  animation: beam-right 720ms var(--ease) forwards;
}

.relay-track.is-downlink.is-firing .relay-beam {
  animation: beam-left 720ms var(--ease) forwards;
}

.relay-core {
  width: 100%;
  padding: 14px 10px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(14, 19, 32, 0.96), rgba(9, 12, 20, 0.96));
  border: 1px solid rgba(91, 231, 255, 0.24);
  text-align: center;
  transition: border-color 320ms var(--ease), box-shadow 320ms var(--ease);
}

.relay-core.is-tx {
  border-color: rgba(91, 231, 255, 0.68);
  box-shadow: 0 0 26px rgba(91, 231, 255, 0.2);
}

.relay-core.is-rx {
  border-color: rgba(52, 211, 153, 0.68);
  box-shadow: 0 0 26px rgba(52, 211, 153, 0.2);
}

.relay-lock-ring {
  width: 36px;
  height: 36px;
  margin: 0 auto 8px;
  border-radius: var(--r-full);
  border: 1px solid rgba(91, 231, 255, 0.3);
  background: rgba(91, 231, 255, 0.08);
  display: grid;
  place-items: center;
  color: var(--cyan);
  transition: transform 320ms var(--ease), color 320ms var(--ease), border-color 320ms var(--ease);
}

.relay-core.is-rx .relay-lock-ring {
  color: var(--emerald);
  border-color: rgba(52, 211, 153, 0.45);
}

.relay-core.is-tx .relay-lock-ring,
.relay-core.is-rx .relay-lock-ring {
  transform: scale(1.08);
}

.relay-lock {
  width: 18px;
  height: 18px;
}

.relay-title {
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  color: var(--fg);
}

.relay-sub {
  margin-top: 2px;
  font-size: 11.5px;
  line-height: 16px;
  color: var(--mute);
}

.relay-cipher {
  margin-top: 9px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(236, 238, 245, 0.05);
  border: 1px solid rgba(236, 238, 245, 0.08);
  color: var(--cyan);
  font-size: 11px;
  line-height: 15px;
  white-space: nowrap;
}

/* ---------- Realistic macOS UltraMate Workbench ---------- */
.mac-mock {
  border-radius: 18px;
  background: #0A0D15;
  border: 1px solid rgba(236, 238, 245, 0.13);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  min-height: 512px;
  display: flex;
  flex-direction: column;
}

.mac-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #151926 0%, #101420 100%);
  border-bottom: 1px solid rgba(236, 238, 245, 0.09);
}

.mac-topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mac-dots {
  display: inline-flex;
  gap: 6px;
  flex-shrink: 0;
}

.mac-dots i {
  width: 10px;
  height: 10px;
  border-radius: var(--r-full);
  background: #FF5F57;
}

.mac-dots i:nth-child(2) { background: #FEBC2E; }
.mac-dots i:nth-child(3) { background: #28C840; }

.mac-workspace-pill {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mac-branch-tag {
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(236, 238, 245, 0.06);
  border: 1px solid rgba(236, 238, 245, 0.09);
  color: var(--mute);
  font-size: 11px;
  flex-shrink: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--r-full);
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.32);
  color: var(--emerald);
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 280ms var(--ease), border-color 280ms var(--ease), color 280ms var(--ease);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--r-full);
  background: currentColor;
  animation: pulse 1.8s var(--ease) infinite;
}

.status-pill.is-amber {
  background: rgba(255, 140, 58, 0.14);
  border-color: rgba(255, 140, 58, 0.36);
  color: var(--amber);
}

.status-pill.is-cyan {
  background: rgba(91, 231, 255, 0.12);
  border-color: rgba(91, 231, 255, 0.36);
  color: var(--cyan);
}

.mac-workbench {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 680px) {
  .mac-workbench {
    grid-template-columns: 38px minmax(0, 0.94fr) minmax(0, 1.06fr);
  }
}

.mac-rail {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  background: #0D111B;
  border-right: 1px solid rgba(236, 238, 245, 0.08);
}

@media (min-width: 680px) {
  .mac-rail {
    display: flex;
  }
}

.mac-rail-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--mute-low);
}

.mac-rail-btn.is-on {
  background: rgba(91, 231, 255, 0.12);
  color: var(--cyan);
}

.mac-main {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-bottom: 1px solid rgba(236, 238, 245, 0.08);
  min-width: 0;
}

@media (min-width: 680px) {
  .mac-main {
    border-bottom: 0;
    border-right: 1px solid rgba(236, 238, 245, 0.08);
  }
}

.mac-stream-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  white-space: nowrap;
}

.mac-engine-meta {
  font-size: 11px;
  color: var(--mute-low);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mac-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.acp-step {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(18, 22, 34, 0.85);
  border: 1px solid rgba(236, 238, 245, 0.08);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 360ms var(--ease), transform 380ms var(--ease), border-color 300ms var(--ease);
}

.acp-step.is-in {
  opacity: 1;
  transform: translateY(0);
}

.acp-step.is-running {
  border-color: rgba(91, 231, 255, 0.35);
  background: rgba(15, 25, 38, 0.9);
}

.acp-step.is-done {
  border-color: rgba(52, 211, 153, 0.22);
}

.acp-icon {
  width: 18px;
  height: 18px;
  border-radius: var(--r-full);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.acp-step.is-done .acp-icon {
  background: rgba(52, 211, 153, 0.16);
  color: var(--emerald);
}

.acp-step.is-running .acp-icon {
  background: rgba(91, 231, 255, 0.16);
  color: var(--cyan);
}

.acp-step.is-wait .acp-icon {
  background: rgba(255, 140, 58, 0.16);
  color: var(--amber);
}

.acp-body {
  min-width: 0;
  flex: 1;
}

.acp-title {
  font-size: 12px;
  line-height: 17px;
  font-weight: 500;
  color: var(--fg);
}

.acp-sub {
  margin-top: 2px;
  font-size: 11px;
  line-height: 15px;
  color: var(--mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mac-side {
  padding: 14px;
  background: rgba(15, 19, 30, 0.65);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.mac-pane-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 2px;
}

.mac-pane-tab {
  padding: 4px 9px;
  border-radius: 7px;
  color: var(--mute);
  border: 1px solid transparent;
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 220ms var(--ease), background-color 220ms var(--ease), border-color 220ms var(--ease);
}

.mac-pane-tab:hover {
  color: var(--fg);
}

.mac-pane-tab.is-on {
  color: var(--fg);
  background: rgba(91, 231, 255, 0.13);
  border-color: rgba(91, 231, 255, 0.34);
}

.mac-pane-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

/* Diff Editor inside Mac Side Pane */
.diff-editor {
  border-radius: 10px;
  background: #06080E;
  border: 1px solid rgba(236, 238, 245, 0.09);
  overflow: hidden;
  font-size: 11px;
  line-height: 19px;
}

.diff-file-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(236, 238, 245, 0.04);
  border-bottom: 1px solid rgba(236, 238, 245, 0.07);
  color: var(--fg-soft);
}

.diff-file-bar > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.diff-file-bar > span:last-child {
  flex-shrink: 0;
  white-space: nowrap;
}

.diff-stat-add { color: var(--emerald); }
.diff-stat-del { color: var(--rose); margin-left: 5px; }

.diff-line {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 6px;
  padding: 2px 10px 2px 6px;
  white-space: nowrap;
  overflow: hidden;
}

.diff-ln {
  color: var(--mute-low);
  text-align: right;
  user-select: none;
}

.diff-line.is-add {
  background: rgba(52, 211, 153, 0.11);
  border-left: 2px solid var(--emerald);
  color: #8AF0C4;
}

.diff-line.is-del {
  background: rgba(251, 113, 133, 0.11);
  border-left: 2px solid var(--rose);
  color: #FCA5B3;
}

.diff-line.is-ctx {
  border-left: 2px solid transparent;
  color: var(--mute);
}

/* Live Doc / Browser / Terminal Cards inside Mac Side Pane */
.mac-doc-card,
.mac-browser-card,
.mac-term-card {
  border-radius: 10px;
  background: #06080E;
  border: 1px solid rgba(236, 238, 245, 0.09);
  padding: 10px;
  display: grid;
  gap: 8px;
}

.mac-doc-cursor {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(91, 231, 255, 0.16);
  color: var(--cyan);
  font-size: 11px;
  font-weight: 600;
  width: fit-content;
}

.mac-browser-url {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  border-radius: 7px;
  background: rgba(236, 238, 245, 0.05);
  font-size: 11px;
  color: var(--fg-soft);
}

.mac-browser-viewport {
  border-radius: 8px;
  background: #0F1422;
  border: 1px solid rgba(236, 238, 245, 0.08);
  padding: 10px;
  display: grid;
  gap: 8px;
}

.stage-controls {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(236, 238, 245, 0.09);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.scene-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.scene-btn {
  padding: 7px 14px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  color: var(--mute);
  background: transparent;
  transition: color 260ms var(--ease), border-color 260ms var(--ease), background-color 260ms var(--ease);
}

.scene-btn:hover {
  color: var(--fg);
  border-color: var(--border-strong);
}

.scene-btn[aria-pressed="true"] {
  color: var(--bg);
  background: var(--fg);
  border-color: var(--fg);
}

.stage-playback {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.stage-hint {
  color: var(--mute-low);
  margin-right: 4px;
}

.playback-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  color: var(--fg-soft);
  transition: background-color 260ms var(--ease), border-color 260ms var(--ease);
}

.playback-btn:hover {
  background: rgba(236, 238, 245, 0.08);
  border-color: var(--border-strong);
}

.stage-progress-bar {
  margin-top: 14px;
  height: 2px;
  border-radius: var(--r-full);
  background: rgba(236, 238, 245, 0.07);
  overflow: hidden;
}

.stage-progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--cobalt), var(--cyan));
  transform-origin: left center;
  transform: scaleX(0);
}

.stage-shell.is-paused .island-bars i,
.stage-shell.is-paused .status-dot {
  animation-play-state: paused;
}

/* ============================================================
   TAGLINE REVEAL SECTION (Mandatory B11 + MagicSpeak V3)
   ============================================================ */
.tagline {
  padding: 14vh var(--sp-300) 14vh;
}

.tagline-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.tagline-text {
  margin: 0;
  max-width: 760px;
  font-size: 36px;
  line-height: 40px;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

@media (min-width: 720px) {
  .tagline-text {
    font-size: 60px;
    line-height: 1.12;
  }
}

.tag-line {
  display: block;
}

.t-word {
  display: inline-block;
  white-space: pre;
  transition: opacity 500ms var(--ease), color 500ms var(--ease);
}

.js:not(.reduced) .t-word {
  opacity: 0.28;
}

.js:not(.reduced) .t-word.lit {
  opacity: 1;
  color: var(--fg);
  animation: tag-flash 650ms var(--ease);
}

.js:not(.reduced) .t-word.lit.is-accent {
  color: var(--cyan);
}

/* ============================================================
   STICKY HORIZONTAL FEATURES STORY (400vh Desktop / Stacked Mobile)
   ============================================================ */
.features {
  position: relative;
  overflow-x: clip;
  scroll-margin-top: 72px;
}

.features-pin {
  padding: var(--sp-600) var(--sp-300);
  position: relative;
}

.features-track {
  display: grid;
  gap: var(--sp-800);
}

.feature-panel {
  display: grid;
  gap: var(--sp-400);
  align-items: center;
}

.feature-copy {
  min-width: 0;
}

.feature-copy h2 {
  margin: 0 0 var(--sp-200);
}

.feature-copy p {
  margin: 0;
  color: var(--mute);
  max-width: 30em;
}

.feature-bullets {
  margin: var(--sp-300) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--sp-100);
}

.feature-bullets li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-100);
  color: var(--fg-soft);
}

.bullet-dot {
  width: 6px;
  height: 6px;
  margin-top: 7px;
  border-radius: var(--r-full);
  background: var(--cyan);
  flex: 0 0 auto;
}

.shot-frame {
  border-radius: var(--r-3xl);
  padding: var(--sp-100);
  background: linear-gradient(135deg, rgba(91, 231, 255, 0.36), rgba(83, 123, 255, 0.24));
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.shot-card {
  border-radius: var(--r-xl); /* Nested radius: 24px - 12px = 12px */
  background: #0A0D16;
  border: 1px solid rgba(236, 238, 245, 0.1);
  overflow: hidden;
}

.shot-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-100) var(--sp-200);
  border-bottom: 1px solid var(--border);
  background: #101420;
}

.shot-content {
  padding: var(--sp-300);
  display: grid;
  gap: var(--sp-200);
}

/* Feature 1: Interactive Multi-Engine Switcher */
.engine-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-100);
}

@media (min-width: 560px) {
  .engine-tabs {
    grid-template-columns: repeat(4, 1fr);
  }
}

.engine-tab {
  padding: var(--sp-100);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: var(--surface-2);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: var(--sp-50);
  transition: border-color 300ms var(--ease), background-color 300ms var(--ease), transform 300ms var(--ease);
}

.engine-tab:hover {
  border-color: var(--border-strong);
}

.engine-tab[aria-pressed="true"] {
  border-color: rgba(91, 231, 255, 0.55);
  background: rgba(91, 231, 255, 0.1);
}

.engine-detail-box {
  padding: var(--sp-200);
  border-radius: var(--r-xl);
  background: #06080E;
  border: 1px solid var(--border);
  display: grid;
  gap: var(--sp-100);
}

.progress-track {
  height: 4px;
  border-radius: var(--r-full);
  background: rgba(236, 238, 245, 0.08);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: var(--r-full);
  background: var(--cyan);
  transition: transform 500ms var(--ease);
  transform-origin: left center;
}

/* Feature 2: Collaborative Docs Sync */
.doc-preview {
  display: grid;
  gap: var(--sp-200);
}

.doc-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-100);
  flex-wrap: wrap;
}

.doc-canvas {
  padding: var(--sp-200);
  border-radius: var(--r-xl);
  background: #0E121D;
  border: 1px solid var(--border);
  display: grid;
  gap: var(--sp-100);
}

.doc-highlight {
  padding: var(--sp-100) var(--sp-200);
  border-radius: var(--r-lg);
  background: rgba(91, 231, 255, 0.08);
  border: 1px solid rgba(91, 231, 255, 0.25);
}

.doc-comment {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-100);
  padding: var(--sp-100) var(--sp-200);
  border-radius: var(--r-lg);
  background: rgba(83, 123, 255, 0.1);
  border: 1px solid rgba(83, 123, 255, 0.28);
}

/* Feature 3: Insights Dashboard Mock */
.insights-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-100);
  flex-wrap: wrap;
}

.seg-switch {
  display: inline-flex;
  padding: var(--sp-50);
  border-radius: var(--r-full);
  background: rgba(236, 238, 245, 0.05);
  border: 1px solid var(--border);
  gap: var(--sp-50);
}

.seg-switch button {
  padding: var(--sp-50) var(--sp-100);
  border-radius: var(--r-full);
  color: var(--mute);
  transition: color 300ms var(--ease), background-color 300ms var(--ease);
}

.seg-switch button[aria-pressed="true"] {
  background: rgba(236, 238, 245, 0.14);
  color: var(--fg);
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-100);
}

.kpi-tile {
  padding: var(--sp-100);
  border-radius: var(--r-xl);
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.kpi-tile strong {
  display: block;
  margin-top: var(--sp-50);
  color: var(--cyan);
}

.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--sp-50);
  padding: var(--sp-100);
  border-radius: var(--r-xl);
  background: #06080E;
  border: 1px solid var(--border);
}

.hm-cell {
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  background: rgba(91, 231, 255, 0.08);
}

.hm-cell.l1 { background: rgba(91, 231, 255, 0.22); }
.hm-cell.l2 { background: rgba(91, 231, 255, 0.45); }
.hm-cell.l3 { background: rgba(91, 231, 255, 0.78); }
.hm-cell.l4 { background: var(--cobalt); }

/* Feature 4: 4-Pane Desktop + iPad Split */
.pane-preview-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-75);
}

.pane-preview-btn {
  padding: var(--sp-50) var(--sp-100);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  color: var(--mute);
  background: var(--surface-2);
  transition: color 300ms var(--ease), border-color 300ms var(--ease), background-color 300ms var(--ease);
}

.pane-preview-btn[aria-pressed="true"] {
  color: var(--cyan);
  border-color: rgba(91, 231, 255, 0.48);
  background: rgba(91, 231, 255, 0.1);
}

.pane-stage-box {
  padding: var(--sp-200);
  border-radius: var(--r-xl);
  background: #06080E;
  border: 1px solid var(--border);
  min-height: 164px;
  display: grid;
  gap: var(--sp-100);
}

.engine-tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tool-tag {
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(236, 238, 245, 0.05);
  border: 1px solid rgba(236, 238, 245, 0.09);
  color: var(--mute);
}

.tool-tag.is-done {
  color: var(--emerald);
  border-color: rgba(52, 211, 153, 0.25);
  background: rgba(52, 211, 153, 0.08);
}

.tool-tag.is-active {
  color: var(--cyan);
  border-color: rgba(91, 231, 255, 0.3);
  background: rgba(91, 231, 255, 0.1);
}

.doc-split-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 560px) {
  .doc-split-grid {
    grid-template-columns: 136px minmax(0, 1fr);
  }
}

.doc-outline {
  padding: 12px;
  border-radius: var(--r-xl);
  background: #070A12;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.doc-outline-title {
  color: var(--mute-low);
  font-weight: 600;
  margin-bottom: 2px;
}

.outline-item {
  padding: 4px 7px;
  border-radius: 6px;
  color: var(--mute);
}

.outline-item.is-on {
  color: var(--cyan);
  background: rgba(91, 231, 255, 0.1);
}

.engine-mix-bars {
  display: grid;
  gap: 7px;
  padding: 10px 12px;
  border-radius: var(--r-xl);
  background: #06080E;
  border: 1px solid var(--border);
}

.mix-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
  color: var(--fg-soft);
}

.mix-track {
  height: 5px;
  border-radius: var(--r-full);
  background: rgba(236, 238, 245, 0.08);
  overflow: hidden;
}

.mix-fill {
  display: block;
  height: 100%;
  border-radius: var(--r-full);
  transition: width 460ms var(--ease);
}

.mix-fill.is-cyan { background: var(--cyan); }
.mix-fill.is-cobalt { background: var(--cobalt); }
.mix-fill.is-emerald { background: var(--emerald); }

.pane-visual-snippet {
  padding: 9px 11px;
  border-radius: 9px;
  background: #0C101B;
  border: 1px solid rgba(236, 238, 245, 0.08);
  display: grid;
  gap: 4px;
}

.snippet-line {
  color: var(--mute);
  display: block;
}

.snippet-line.is-cyan { color: var(--cyan); }
.snippet-line.is-add { color: var(--emerald); }
.snippet-line.is-del { color: var(--rose); }

.features-progress {
  display: none;
}

@media (min-width: 720px) {
  .feature-panel {
    grid-template-columns: minmax(320px, 5fr) minmax(0, 7fr);
    gap: var(--sp-600);
  }
}

@media (min-width: 900px) {
  .js.ready:not(.reduced) .features {
    height: 400vh;
  }

  .js.ready:not(.reduced) .features-pin {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    padding: 0;
  }

  .js.ready:not(.reduced) .features-track {
    display: flex;
    gap: 0;
    width: 400vw;
    height: 100%;
    will-change: transform;
  }

  .js.ready:not(.reduced) .feature-panel {
    flex: 0 0 100vw;
    width: 100vw;
    height: 100%;
    grid-template-columns: minmax(340px, 5fr) minmax(0, 7fr);
    gap: var(--sp-700);
    padding-left: max(40px, calc((100vw - 1120px) / 2));
    padding-right: max(40px, calc((100vw - 1120px) / 2));
  }

  .js.ready:not(.reduced) .features-progress {
    display: flex;
    gap: var(--sp-75);
    position: absolute;
    left: 50%;
    bottom: var(--sp-400);
    transform: translateX(-50%);
    width: min(260px, 42vw);
    z-index: 4;
  }

  .js.ready:not(.reduced) .features-progress button {
    flex: 1 1 0;
    height: 16px;
    display: flex;
    align-items: center;
  }

  .js.ready:not(.reduced) .features-progress button i {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: var(--r-full);
    background: rgba(236, 238, 245, 0.2);
    transition: background-color 300ms var(--ease);
  }

  .js.ready:not(.reduced) .features-progress button.is-on i {
    background: var(--cyan);
  }
}

/* ============================================================
   BENTO CAPABILITY GRID (2x3 with mouse-following radial border glow)
   ============================================================ */
.bento {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: var(--sp-900) var(--sp-300) var(--sp-800);
  scroll-margin-top: 96px;
}

.section-head {
  max-width: 680px;
  margin-bottom: var(--sp-500);
}

.section-head h2 {
  margin: 0;
}

.section-head p {
  margin: var(--sp-100) 0 0;
  color: var(--mute);
}

.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-200);
}

@media (min-width: 720px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .bento-grid {
    grid-template-columns: 1.18fr 1fr 1.1fr;
  }
}

.bento-card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  overflow: hidden;
  border-radius: var(--r-3xl);
  padding: var(--sp-300);
  background: var(--surface-1);
  border: 1px solid var(--border);
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-100);
}

.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(200px circle at var(--mx) var(--my), rgba(91, 231, 255, 0.85), rgba(83, 123, 255, 0.25) 40%, transparent 72%);
  -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 300ms var(--ease);
  pointer-events: none;
}

.bento-card:hover::before {
  opacity: 1;
}

.bento-icon {
  width: 28px;
  height: 28px;
  color: var(--cyan);
}

.bento-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bento-card h3 {
  margin: var(--sp-50) 0 0;
}

.bento-card p {
  margin: 0;
  color: var(--mute);
}

.mini {
  margin-top: auto;
  padding-top: var(--sp-200);
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: var(--sp-100);
}

/* Bento micro-animations */
.mini-qr {
  position: relative;
  width: 100%;
  padding: var(--sp-100);
  border-radius: var(--r-lg);
  background: #090C13;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
}

.qr-grid {
  width: 36px;
  height: 36px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  position: relative;
}

.qr-grid i {
  border-radius: 1px;
  background: rgba(91, 231, 255, 0.25);
}

.qr-grid i.on {
  background: var(--cyan);
}

.qr-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: scan-y 2.4s var(--ease) infinite;
}

.mini-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-75);
}

.m-pill {
  padding: var(--sp-50) var(--sp-100);
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  background: #090C13;
}

.m-pill.allow {
  border-color: rgba(52, 211, 153, 0.35);
  color: var(--emerald);
}

.m-pill.deny {
  border-color: rgba(251, 113, 133, 0.35);
  color: var(--rose);
  text-decoration: line-through;
}

.mini-keys {
  display: flex;
  gap: var(--sp-75);
}

.k-cap {
  padding: var(--sp-50) var(--sp-100);
  border-radius: var(--r-lg);
  border: 1px solid var(--border-strong);
  background: #090C13;
  color: var(--fg);
  animation: key-glow 3.6s var(--ease) infinite;
}

.k-cap:nth-child(2) { animation-delay: 1.2s; }
.k-cap:nth-child(3) { animation-delay: 2.4s; }

.mini-tunnel {
  width: 100%;
  padding: var(--sp-100);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: #090C13;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-75);
}

.tunnel-track {
  flex: 1;
  height: 2px;
  background: rgba(91, 231, 255, 0.22);
  position: relative;
  overflow: hidden;
}

.tunnel-track::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 100%;
  background: var(--cyan);
  animation: packet-fly 1.8s var(--ease) infinite;
}

.bento-card.off .qr-scan,
.bento-card.off .k-cap,
.bento-card.off .tunnel-track::after {
  animation-play-state: paused;
}

/* ============================================================
   SECURITY & ZDR METRICS (#security)
   ============================================================ */
.security {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: var(--sp-900) var(--sp-300) var(--sp-800);
  scroll-margin-top: 96px;
}

.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-400);
  margin-top: var(--sp-300);
}

@media (min-width: 720px) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-400);
  }
}

.stat {
  padding: var(--sp-300);
  border-radius: var(--r-3xl);
  background: var(--surface-1);
  border: 1px solid var(--border);
}

.stat-value {
  margin: 0;
  font-size: 60px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

@media (min-width: 900px) {
  .stat-value {
    font-size: 72px;
  }
}

.stat-value small {
  margin-left: var(--sp-75);
  font-size: 20px;
  color: var(--fg);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.stat-label {
  margin: var(--sp-200) 0 0;
  color: var(--mute);
}

.crypto-bar {
  margin-top: var(--sp-300);
  padding: var(--sp-300);
  border-radius: var(--r-2xl);
  background: var(--surface-1);
  border: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-200);
}

.crypto-note {
  margin: 0;
  color: var(--mute);
  max-width: 52em;
}

.text-link {
  color: var(--cyan);
  border-bottom: 1px solid rgba(91, 231, 255, 0.35);
  transition: opacity 300ms var(--ease);
}

.text-link:hover {
  opacity: 0.8;
}

/* ============================================================
   ARCHITECTURE COMPARISON (#compare)
   ============================================================ */
.compare {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: var(--sp-900) var(--sp-300) var(--sp-800);
  scroll-margin-top: 96px;
}

.compare-wrap {
  border-radius: var(--r-3xl);
  border: 1px solid var(--border);
  background: var(--surface-1);
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  text-align: left;
}

.compare-table th,
.compare-table td {
  padding: var(--sp-200) var(--sp-300);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.compare-table tr:last-child td {
  border-bottom: 0;
}

.compare-table thead th {
  color: var(--mute);
  background: rgba(236, 238, 245, 0.02);
}

.compare-table thead th.col-um,
.compare-table tbody td.col-um {
  background: rgba(91, 231, 255, 0.05);
  color: var(--fg);
}

.compare-table thead th.col-um {
  color: var(--cyan);
}

.cmp-yes {
  color: var(--cyan);
  font-weight: 500;
}

.cmp-mid {
  color: var(--fg-soft);
}

.cmp-no {
  color: var(--mute);
}

/* ============================================================
   DEPLOYMENT MODES (#deploy — honest 3-column counterpart to MagicSpeak Pricing)
   ============================================================ */
.deploy {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: var(--sp-900) var(--sp-300) var(--sp-800);
  scroll-margin-top: 96px;
}

.deploy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-200);
}

@media (min-width: 840px) {
  .deploy-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.deploy-card {
  display: flex;
  flex-direction: column;
  padding: var(--sp-300);
  border-radius: var(--r-3xl);
  background: var(--surface-1);
  border: 1px solid var(--border);
}

.deploy-card.featured {
  border-color: rgba(91, 231, 255, 0.45);
  background: #0E1522;
  box-shadow: 0 24px 60px -28px rgba(91, 231, 255, 0.35);
}

.deploy-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-100);
}

.deploy-card-head h3 {
  margin: 0;
}

.deploy-badge {
  padding: var(--sp-25) var(--sp-100);
  border-radius: var(--r-full);
  background: rgba(91, 231, 255, 0.16);
  border: 1px solid rgba(91, 231, 255, 0.35);
  color: var(--cyan);
}

.deploy-tier {
  margin: var(--sp-200) 0 0;
}

.deploy-sub {
  margin: var(--sp-75) 0 0;
  color: var(--mute);
}

.deploy-list {
  list-style: none;
  margin: var(--sp-300) 0 var(--sp-400);
  padding: var(--sp-300) 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--sp-100);
  flex: 1 1 auto;
}

.deploy-list li {
  position: relative;
  padding-left: var(--sp-200);
  color: var(--fg-soft);
}

.deploy-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: var(--r-full);
  background: var(--cyan);
}

.cli-banner {
  margin-top: var(--sp-200);
  padding: var(--sp-300);
  border-radius: var(--r-2xl);
  background: var(--surface-1);
  border: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-200);
}

.cli-cmd {
  display: flex;
  align-items: center;
  gap: var(--sp-100);
  padding: var(--sp-100) var(--sp-200);
  border-radius: var(--r-xl);
  background: #06080E;
  border: 1px solid var(--border);
  color: var(--cyan);
  max-width: 100%;
  overflow-x: auto;
}

/* ============================================================
   FAQ ACCORDION (#faq)
   ============================================================ */
.faq {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: var(--sp-900) var(--sp-300) var(--sp-900);
  display: grid;
  gap: var(--sp-400);
  scroll-margin-top: 96px;
}

@media (min-width: 760px) {
  .faq {
    grid-template-columns: 0.78fr 1.22fr;
    gap: var(--sp-600);
    align-items: start;
  }
}

.faq-head h2 {
  margin: 0;
}

.faq-head p {
  margin: var(--sp-100) 0 0;
  color: var(--mute);
}

.faq-item {
  border-top: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-200);
  padding: var(--sp-300) 0;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-right: 1.5px solid var(--fg);
  border-bottom: 1.5px solid var(--fg);
  transform: rotate(45deg);
  transition: transform 500ms var(--ease);
}

.faq-item.is-open summary::after,
.faq-item[open] summary::after {
  transform: rotate(225deg);
}

.faq-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 500ms var(--ease);
}

.faq-item[open] .faq-body,
.faq-item.is-open .faq-body {
  grid-template-rows: 1fr;
}

.js.ready .faq-item[open] .faq-body {
  grid-template-rows: 0fr;
}

.js.ready .faq-item.is-open .faq-body {
  grid-template-rows: 1fr;
}

.faq-body-inner {
  overflow: hidden;
}

.faq-body p {
  margin: 0 0 var(--sp-300);
  color: var(--mute);
  max-width: 44em;
}

/* ============================================================
   FINAL DOWNLOAD / EARLY ACCESS CTA (#download)
   ============================================================ */
.download {
  position: relative;
  min-height: 76svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--sp-900) var(--sp-300);
  overflow: clip;
  scroll-margin-top: 72px;
}

.download-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.download h2 {
  margin: 0 0 var(--sp-200);
}

.download p.download-sub {
  margin: 0 0 var(--sp-400);
  color: var(--mute);
}

.waitlist-form {
  width: min(480px, 100%);
  display: flex;
  flex-direction: column;
  gap: var(--sp-100);
}

.waitlist-row {
  display: flex;
  flex-direction: column;
  gap: var(--sp-100);
}

@media (min-width: 520px) {
  .waitlist-row {
    flex-direction: row;
  }
}

.waitlist-input {
  flex: 1;
  min-height: 48px;
  padding: var(--sp-100) var(--sp-200);
  border-radius: var(--r-full);
  background: rgba(13, 16, 24, 0.9);
  border: 1px solid var(--border-strong);
  color: var(--fg);
  transition: border-color 300ms var(--ease);
}

.waitlist-input::placeholder {
  color: var(--mute-low);
}

.waitlist-input:focus {
  border-color: var(--cyan);
}

.waitlist-input[aria-invalid="true"] {
  border-color: var(--rose);
}

.form-feedback {
  min-height: 20px;
  margin: 0;
  text-align: left;
  padding-left: var(--sp-200);
}

.form-feedback.is-error {
  color: var(--rose);
}

.form-feedback.is-success {
  color: var(--emerald);
}

.waitlist-form button[disabled] {
  opacity: 0.68;
  cursor: wait;
}

.reqs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--sp-75);
  margin: var(--sp-400) 0 0;
  padding: 0;
  list-style: none;
  color: var(--mute);
}

.reqs li {
  padding: var(--sp-50) var(--sp-100);
  border-radius: var(--r-full);
  background: rgba(236, 238, 245, 0.04);
  border: 1px solid rgba(236, 238, 245, 0.08);
}

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-200) var(--sp-400);
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: var(--sp-400) 0 var(--sp-600);
  border-top: 1px solid var(--border);
  color: var(--mute);
}

.foot p {
  margin: 0;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-300);
}

.foot nav a:hover {
  color: var(--fg);
}

/* ============================================================
   SCROLL REVEAL (B7 IntersectionObserver)
   ============================================================ */
.js:not(.reduced) .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

.js:not(.reduced) .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   DOCUMENTATION / PRIVACY / 404 SUBPAGES
   ============================================================ */
.doc-page {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 136px var(--sp-300) var(--sp-900);
}

.doc-page h1 {
  margin: 0 0 var(--sp-200);
}

.doc-page .doc-lead {
  margin: 0 0 var(--sp-600);
  color: var(--mute);
}

.doc-section {
  padding: var(--sp-400) 0;
  border-top: 1px solid var(--border);
}

.doc-section h2 {
  margin: 0 0 var(--sp-200);
}

.doc-section p,
.doc-section li {
  color: var(--fg-soft);
}

.doc-section ul {
  margin: var(--sp-100) 0 0;
  padding-left: var(--sp-300);
  display: grid;
  gap: var(--sp-100);
}

.notfound-wrap {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: var(--sp-600) var(--sp-300);
  text-align: center;
}

.notfound-card {
  max-width: 480px;
  padding: var(--sp-600) var(--sp-400);
  border-radius: var(--r-3xl);
  background: var(--surface-1);
  border: 1px solid var(--border);
  display: grid;
  gap: var(--sp-200);
  justify-items: center;
}

/* ============================================================
   RESPONSIVE NAVIGATION (< 900px)
   ============================================================ */
@media (max-width: 899px) {
  .js.ready .nav-links {
    display: none;
  }

  .js.ready .menu-btn {
    display: grid;
  }

  .js.ready .nav-end .lang-dropdown {
    display: none;
  }

  .brand-tag {
    display: none;
  }
}

@media (max-width: 480px) {
  .nav-capsule {
    padding: var(--sp-75) var(--sp-75) var(--sp-75) var(--sp-200);
  }

  .stage-shell {
    padding: var(--sp-200);
  }

  .kpi-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   KEYFRAMES & REDUCED MOTION
   ============================================================ */
@keyframes blink {
  50% { opacity: 0; }
}

@keyframes glow-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes pulse {
  50% { transform: scale(1.3); opacity: 0.55; }
}

@keyframes wave-bar {
  0%, 100% { transform: scaleY(0.35); }
  50% { transform: scaleY(1); }
}

@keyframes beam-right {
  0% { transform: translateX(0); opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateX(220px); opacity: 0; }
}

@keyframes beam-left {
  0% { transform: translateX(0); opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateX(-220px); opacity: 0; }
}

@keyframes tap-flash {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes scan-y {
  0%, 100% { transform: translateY(2px); }
  50% { transform: translateY(30px); }
}

@keyframes key-glow {
  0%, 100% { border-color: var(--border-strong); color: var(--mute); }
  25%, 40% { border-color: var(--cyan); color: var(--cyan); }
}

@keyframes tag-flash {
  0%, 15% { text-shadow: 0 0 18px rgba(91, 231, 255, 0.8); }
  100% { text-shadow: none; }
}

.page-hidden *,
.page-hidden *::before,
.page-hidden *::after {
  animation-play-state: paused !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js .t-word,
  .js .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .features,
  .js.ready .features {
    height: auto !important;
  }

  .features-pin,
  .js.ready .features-pin {
    position: static !important;
    height: auto !important;
    overflow: visible !important;
  }

  .features-track,
  .js.ready .features-track {
    display: grid !important;
    width: auto !important;
    height: auto !important;
    transform: none !important;
  }

  .features-progress {
    display: none !important;
  }
}
