/* Tutor Atlas waitlist v2 — Elaya landing-page-design + cinematic agent hero */

:root {
  --bg: #070b10;
  --bg-elevated: #0e141c;
  --bg-panel: #131a24;
  --bg-soft: #181818;
  --text: #f3f1eb;
  --text-muted: #9aa3ad;
  --text-soft: #6f7883;
  --accent: #c4893a;
  --accent-bright: #e8c07a;
  --accent-hot: #ffd38a;
  --accent-ink: #1a1208;
  --line: rgba(243, 241, 235, 0.1);
  --danger: #d96b6b;
  --glass: rgba(14, 20, 30, 0.62);
  --glass-strong: rgba(7, 11, 16, 0.82);
  --glass-border: rgba(232, 192, 122, 0.18);
  --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.45);
  --ease-fluid: cubic-bezier(0.32, 0.72, 0, 1);
  --font-sans: "Manrope", sans-serif;
  --font-display: "Instrument Serif", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  --space-50: 0.25rem;
  --space-75: 0.5rem;
  --space-100: 0.75rem;
  --space-200: 1rem;
  --space-300: 1.5rem;
  --space-400: 2rem;
  --space-500: 2.5rem;
  --space-600: 3rem;
  --space-700: 4rem;
  --space-800: 5rem;
  --space-900: 6rem;
  --max: 1120px;
  --hero-copy-max: 720px;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent-bright);
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: var(--space-200);
  top: -100px;
  z-index: 1000;
  padding: var(--space-75) var(--space-100);
  border-radius: var(--radius-md);
  background: var(--accent-bright);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: var(--space-200);
}

/* Type */
h1,
h2,
h3,
.brand-hero,
.brand-name,
.tagline-text {
  font-style: normal;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1,
.brand-hero,
.tagline-text {
  font-family: var(--font-display);
  font-weight: 400;
}

h2,
h3,
.brand-name {
  font-family: var(--font-sans);
  font-weight: 600;
}

h1,
h2,
h3,
p {
  margin: 0;
}

p,
li,
label,
summary,
.section-lead,
.hero-lead,
.hero-lead p,
.hero-note,
.form-note {
  text-wrap: pretty;
}

.eyebrow {
  margin: 0 0 var(--space-200);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.section {
  padding: var(--space-800) var(--space-200);
  background: var(--bg);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section h2 {
  max-width: 22ch;
  font-size: clamp(1.75rem, 5.5vw, 2.25rem);
  line-height: 1.15;
  color: var(--text);
}

.section-lead {
  max-width: 42rem;
  margin-top: var(--space-200);
  font-size: 1.125rem;
  line-height: 1.65rem;
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-75);
  min-height: 2.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 700ms var(--ease-fluid),
    background-color 700ms var(--ease-fluid),
    color 700ms var(--ease-fluid),
    border-color 700ms var(--ease-fluid),
    box-shadow 700ms var(--ease-fluid);
}

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

.btn-primary {
  background: #fff;
  color: #0a0a0a;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 12px 40px rgba(232, 192, 122, 0.18);
}

.btn-primary:hover {
  color: #0a0a0a;
  background: var(--accent-hot);
  transform: translateY(-1px);
}

.btn-secondary,
.btn-nav {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
}

.btn-secondary:hover,
.btn-nav:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.12);
}

.btn-block {
  width: 100%;
}

.btn.is-loading {
  opacity: 0.72;
  cursor: wait;
}

/* Fluid island nav */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  pointer-events: none;
  padding:
    calc(var(--space-300) + env(safe-area-inset-top, 0px))
    max(var(--space-200), env(safe-area-inset-right, 0px))
    0
    max(var(--space-200), env(safe-area-inset-left, 0px));
}

.fluid-nav {
  pointer-events: auto;
  width: max-content;
  max-width: calc(100% - 0px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-200);
  padding: 0.5rem 0.5rem 0.5rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(28px) saturate(1.2);
  -webkit-backdrop-filter: blur(28px) saturate(1.2);
  box-shadow: var(--shadow-soft);
  transition: width 700ms var(--ease-fluid), border-radius 700ms var(--ease-fluid);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--text);
  padding-right: var(--space-75);
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.35rem;
  background:
    linear-gradient(135deg, var(--accent-bright) 0 45%, transparent 45%),
    linear-gradient(315deg, var(--accent) 0 50%, #2a3340 50%);
  box-shadow: 0 0 18px rgba(232, 192, 122, 0.35);
  flex-shrink: 0;
}

.brand-name {
  font-size: 0.875rem;
  line-height: 1.25rem;
  letter-spacing: -0.01em;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-75);
  margin-left: auto;
  min-height: 2.25rem;
  padding: 0.375rem 0.75rem;
  border: 0;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.hamburger {
  position: relative;
  width: 1rem;
  height: 0.75rem;
}

.hamburger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 700ms var(--ease-fluid), top 700ms var(--ease-fluid), opacity 700ms var(--ease-fluid);
}

.hamburger span:first-child {
  top: 0.15rem;
}

.hamburger span:last-child {
  top: 0.5rem;
}

.fluid-nav.is-open .hamburger span:first-child {
  top: 0.35rem;
  transform: rotate(45deg);
}

.fluid-nav.is-open .hamburger span:last-child {
  top: 0.35rem;
  transform: rotate(-45deg);
}

.nav-panel {
  display: none;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: var(--space-100);
}

.nav-links a {
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.375rem 0.5rem;
  border-radius: var(--radius-md);
  transition: color 700ms var(--ease-fluid), background-color 700ms var(--ease-fluid);
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 899px) {
  .fluid-nav {
    width: calc(100% - 0px);
    max-width: 28rem;
    justify-content: space-between;
  }

  .fluid-nav.is-open {
    position: fixed;
    inset:
      calc(var(--space-300) + env(safe-area-inset-top, 0px))
      max(var(--space-200), env(safe-area-inset-right, 0px))
      auto
      max(var(--space-200), env(safe-area-inset-left, 0px));
    width: auto;
    max-width: none;
    flex-direction: column;
    align-items: stretch;
    border-radius: var(--radius-2xl);
    padding: var(--space-200);
    background: var(--glass-strong);
    z-index: 60;
  }

  .fluid-nav.is-open .nav-panel {
    display: flex;
    flex-direction: column;
    gap: var(--space-200);
    margin-top: var(--space-200);
    padding-top: var(--space-200);
    border-top: 1px solid var(--line);
  }

  .fluid-nav.is-open .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-75);
  }

  .fluid-nav.is-open .nav-links li {
    opacity: 0;
    transform: translateY(3rem);
    animation: navRise 700ms var(--ease-fluid) forwards;
    animation-delay: calc(100ms + var(--i) * 50ms);
  }

  .fluid-nav.is-open .nav-links a {
    display: block;
    padding: 0.75rem;
    font-size: 1.125rem;
    line-height: 1.75rem;
    color: var(--text);
  }

  .fluid-nav.is-open .btn-nav {
    width: 100%;
  }
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .nav-panel {
    display: flex;
    align-items: center;
    gap: var(--space-200);
  }

  .btn-nav {
    font-size: 0.875rem;
    min-height: 2.25rem;
    padding: 0.375rem 0.875rem;
  }
}

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

/* Hero — one composition, full bleed */
.hero {
  --nav-clearance: calc(6.25rem + env(safe-area-inset-top, 0px));
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding:
    var(--nav-clearance)
    max(var(--space-200), env(safe-area-inset-right, 0px))
    calc(var(--space-700) + env(safe-area-inset-bottom, 0px))
    max(var(--space-200), env(safe-area-inset-left, 0px));
  overflow-x: clip;
  overflow-y: visible;
  background: #05080d;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% 18%, rgba(196, 137, 58, 0.28), transparent 60%),
    radial-gradient(ellipse 70% 45% at 50% 100%, rgba(20, 40, 70, 0.55), transparent 70%),
    linear-gradient(180deg, #04070c 0%, #0a1524 42%, #071018 72%, #05080d 100%);
}

.horizon {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: 0;
  height: 42%;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(8, 18, 30, 0.95), transparent 70%),
    linear-gradient(180deg, transparent, rgba(3, 6, 10, 0.85));
}

.beams {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  gap: clamp(0.5rem, 1.8vw, 1.25rem);
  padding-top: 0;
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 62%, transparent 92%);
}

.beams span {
  width: clamp(2px, 0.45vw, 5px);
  height: 78%;
  margin-top: 0;
  border-radius: var(--radius-full);
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 211, 138, 0.15) 12%,
    rgba(232, 192, 122, 0.75) 38%,
    rgba(196, 137, 58, 0.35) 70%,
    transparent 100%
  );
  box-shadow: 0 0 24px rgba(232, 192, 122, 0.35);
  animation: beamPulse 4.8s var(--ease-fluid) infinite;
  opacity: 0.55;
}

.beams span:nth-child(2),
.beams span:nth-child(6) {
  opacity: 0.85;
  animation-delay: 0.4s;
}

.beams span:nth-child(3),
.beams span:nth-child(5) {
  opacity: 1;
  height: 84%;
  animation-delay: 0.8s;
}

.beams span:nth-child(4) {
  width: clamp(3px, 0.55vw, 6px);
  opacity: 1;
  height: 88%;
  animation-delay: 1.1s;
}

.scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.015) 0 1px,
    transparent 1px 4px
  );
  opacity: 0.35;
  mix-blend-mode: soft-light;
  animation: scanDrift 10s linear infinite;
}

.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
}

.hero-stage {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: start center;
  width: 100%;
  pointer-events: none;
  overflow: visible;
}

.vm-chassis {
  width: min(100%, 34rem);
  max-height: min(52vh, 28rem);
  border-radius: calc(var(--radius-2xl) + 2px);
  border: 1px solid var(--glass-border);
  background: rgba(10, 16, 24, 0.55);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 30px 90px rgba(0, 0, 0, 0.55),
    0 0 80px rgba(196, 137, 58, 0.12);
  overflow: hidden;
  transform: translateY(0);
  animation: chassisFloat 7s var(--ease-fluid) infinite;
}

.vm-chrome {
  display: flex;
  align-items: center;
  gap: var(--space-100);
  padding: 0.625rem 0.875rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.28);
}

.vm-dots {
  display: inline-flex;
  gap: 0.3rem;
}

.vm-dots i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.18);
}

.vm-dots i:first-child { background: #c45c5c; }
.vm-dots i:nth-child(2) { background: #c4a15c; }
.vm-dots i:nth-child(3) { background: #5c9e72; }

.vm-title {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vm-live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--accent-bright);
  text-transform: lowercase;
}

.vm-live i {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: var(--radius-full);
  background: #6dcf8a;
  box-shadow: 0 0 10px rgba(109, 207, 138, 0.8);
  animation: onlinePulse 2.2s var(--ease-fluid) infinite;
}

.vm-body {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-100);
  padding: var(--space-200);
  min-height: 0;
  max-height: calc(min(52vh, 28rem) - 2.75rem);
  overflow: hidden;
}

.agent-figure {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 12rem;
  align-self: stretch;
}

.agent-svg {
  width: min(100%, 11.5rem);
  height: auto;
  max-height: 100%;
  animation: agentBreathe 4.5s var(--ease-fluid) infinite;
  filter: drop-shadow(0 0 28px rgba(232, 192, 122, 0.22));
}

.agent-halo {
  transform-origin: 110px 72px;
  animation: haloSpin 12s linear infinite;
}

.agent-core {
  transform-origin: 110px 168px;
  animation: corePulse 2.8s var(--ease-fluid) infinite;
}

.agent-eye {
  animation: eyeGlow 3.2s var(--ease-fluid) infinite;
}

.agent-pedestal {
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  width: 7rem;
  height: 7rem;
  transform: translateX(-50%);
  pointer-events: none;
}

.pedestal-ring {
  position: absolute;
  inset: 28% 10% auto;
  height: 1.5rem;
  border: 1px solid rgba(232, 192, 122, 0.35);
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(232, 192, 122, 0.2);
  animation: ringPulse 3.6s var(--ease-fluid) infinite;
}

.pedestal-ring.delay {
  animation-delay: 1.2s;
  opacity: 0.55;
}

.holo-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-75);
  padding: var(--space-200);
  border-radius: calc(var(--radius-xl) - 2px);
  border: 1px solid rgba(232, 192, 122, 0.14);
  background: rgba(7, 11, 16, 0.55);
  box-shadow: inset 0 0 40px rgba(196, 137, 58, 0.06);
}

.holo-kicker {
  font-size: 0.75rem;
  line-height: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-bright);
  font-weight: 600;
}

.holo-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--text);
}

.holo-status .pulse {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: var(--radius-full);
  background: var(--accent-bright);
  box-shadow: 0 0 12px rgba(232, 192, 122, 0.8);
  animation: onlinePulse 2s var(--ease-fluid) infinite;
}

.holo-feed {
  list-style: none;
  margin: var(--space-75) 0 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--text-muted);
}

.holo-feed .dim {
  color: var(--text-soft);
}

.holo-feed .ok {
  color: #8fd4a4;
}

.holo-feed .prompt {
  color: var(--accent-bright);
  margin-right: 0.35rem;
}

.cursor {
  display: inline-block;
  width: 0.45rem;
  height: 0.85em;
  margin-left: 0.15rem;
  background: var(--accent-bright);
  vertical-align: text-bottom;
  animation: cursorBlink 1.1s steps(1) infinite;
}

.hero-copy {
  position: relative;
  z-index: 3;
  isolation: isolate;
  max-width: var(--hero-copy-max);
  margin: 0 auto;
  text-align: center;
  padding-inline: var(--space-75);
}

/* Copy-only scrim: darkens busy chassis/holo behind headline without flattening the stage */
.hero-copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -1.25rem -1rem -1.5rem;
  border-radius: var(--radius-2xl);
  background:
    radial-gradient(
      ellipse 92% 85% at 50% 38%,
      rgba(5, 8, 13, 0.9) 0%,
      rgba(5, 8, 13, 0.62) 52%,
      transparent 78%
    ),
    linear-gradient(180deg, rgba(5, 8, 13, 0.25) 0%, rgba(5, 8, 13, 0.78) 100%);
  pointer-events: none;
}

.brand-hero {
  margin-bottom: var(--space-200);
  font-size: 1.5rem;
  line-height: 2rem;
  color: var(--accent-bright);
  letter-spacing: -0.02em;
}

.hero h1 {
  max-width: var(--hero-copy-max);
  margin: 0 auto;
  font-size: clamp(2.25rem, 7vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  background: linear-gradient(90deg, #ffffff 0%, #d0ccc4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: min(34rem, var(--hero-copy-max));
  margin: var(--space-200) auto 0;
  font-size: clamp(1rem, 2.6vw, 1.125rem);
  line-height: 1.55rem;
  color: rgba(243, 241, 235, 0.86);
}

.hero-lead p {
  margin: 0;
}

.hero-lead p + p {
  margin-top: 0.7rem;
}

.hero-actions {
  margin-top: var(--space-300);
  display: flex;
  justify-content: center;
}

.hero-note {
  margin-top: var(--space-200);
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--text-soft);
}

/* Stacked hero (<900px): copy fully above agent, no overlap; agent stays visible */
@media (max-width: 899px) {
  .hero {
    --nav-clearance: calc(5.75rem + env(safe-area-inset-top, 0px));
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-bottom: calc(var(--space-600) + env(safe-area-inset-bottom, 0px));
    min-height: auto;
    overflow: visible;
  }

  .hero-copy {
    order: 1;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: var(--space-100) var(--space-75) var(--space-400);
  }

  .hero-copy::before {
    inset: -0.75rem -0.5rem -1rem;
    background:
      radial-gradient(
        ellipse 95% 90% at 50% 30%,
        rgba(5, 8, 13, 0.72) 0%,
        rgba(5, 8, 13, 0.35) 60%,
        transparent 80%
      );
  }

  .hero-stage {
    order: 2;
    position: relative;
    inset: auto;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    padding: 0 0 var(--space-200);
    place-items: start center;
  }

  .vm-chassis {
    width: 100%;
    max-width: 22rem;
    max-height: none;
    margin-inline: auto;
  }

  .vm-body {
    grid-template-columns: 1fr;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

  .holo-panel {
    min-height: 0;
  }

  .agent-figure {
    min-height: 11.5rem;
  }

  .agent-svg {
    width: min(100%, 9.75rem);
  }

  .beams span {
    height: 58%;
  }

  .hero-actions .btn-primary {
    width: min(100%, 20rem);
    min-height: 3rem;
  }

  .vm-title {
    max-width: 10rem;
  }
}

@media (min-width: 700px) and (max-width: 899px) {
  .vm-chassis {
    max-width: 28rem;
  }

  .hero-copy {
    max-width: 36rem;
    text-align: left;
    padding-inline: var(--space-100);
  }

  .hero-copy::before {
    inset: -0.75rem -1rem -1rem -0.75rem;
    background:
      radial-gradient(
        ellipse 100% 90% at 20% 35%,
        rgba(5, 8, 13, 0.82) 0%,
        rgba(5, 8, 13, 0.4) 58%,
        transparent 80%
      );
  }

  .hero h1,
  .hero-lead {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-actions {
    justify-content: flex-start;
  }
}

/* Narrow phones */
@media (max-width: 379px) {
  .hero {
    --nav-clearance: calc(5.5rem + env(safe-area-inset-top, 0px));
  }

  .brand-name {
    font-size: 0.8125rem;
  }

  .nav-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .agent-svg {
    width: min(100%, 8.75rem);
  }

  .agent-figure {
    min-height: 10.25rem;
  }
}

/* Desktop / wide tablet: copy left, agent right — clear gutter, no underlap */
@media (min-width: 900px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(18rem, 1.08fr) minmax(17rem, 0.92fr);
    align-items: center;
    align-content: stretch;
    column-gap: clamp(1.5rem, 4vw, 3.5rem);
    padding-top: var(--nav-clearance);
    padding-bottom: calc(var(--space-700) + env(safe-area-inset-bottom, 0px));
    padding-left: max(clamp(1.75rem, 5.5vw, 4.75rem), env(safe-area-inset-left, 0px));
    padding-right: max(clamp(1rem, 3vw, 2.5rem), env(safe-area-inset-right, 0px));
  }

  .hero-atmosphere {
    z-index: 0;
  }

  .beams {
    justify-content: flex-end;
    padding-right: clamp(6%, 10vw, 18%);
    opacity: 0.78;
  }

  .hero-stage {
    grid-column: 2;
    grid-row: 1;
    z-index: 1;
    width: 100%;
    place-items: center end;
    align-content: center;
    padding: 0;
    justify-self: end;
  }

  .vm-chassis {
    width: min(100%, 34rem);
    margin-left: auto;
  }

  .hero-copy {
    grid-column: 1;
    grid-row: 1;
    z-index: 3;
    justify-self: start;
    align-self: center;
    width: 100%;
    max-width: min(32rem, 100%);
    margin: 0;
    margin-right: clamp(0.25rem, 1.5vw, 1rem);
    padding: var(--space-400) var(--space-300) var(--space-400) var(--space-100);
    text-align: left;
  }

  .hero-copy::before {
    inset: -0.5rem -2rem -1rem -1.5rem;
    background:
      radial-gradient(
        ellipse 110% 95% at 12% 42%,
        rgba(5, 8, 13, 0.94) 0%,
        rgba(5, 8, 13, 0.72) 40%,
        rgba(5, 8, 13, 0.28) 68%,
        transparent 82%
      ),
      linear-gradient(
        90deg,
        rgba(5, 8, 13, 0.88) 0%,
        rgba(5, 8, 13, 0.55) 55%,
        rgba(5, 8, 13, 0.12) 85%,
        transparent 100%
      );
  }

  .brand-hero,
  .hero h1,
  .hero-lead {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .hero-note {
    max-width: 28rem;
  }
}

@media (min-width: 900px) and (max-width: 1099px) {
  .vm-chassis {
    width: min(100%, 30rem);
    max-height: min(48vh, 26rem);
  }

  .vm-body {
    max-height: calc(min(48vh, 26rem) - 2.75rem);
  }

  .hero-copy {
    max-width: min(28rem, 100%);
    padding-right: var(--space-200);
  }
}

@media (min-width: 1100px) and (max-height: 820px) {
  .vm-chassis {
    max-height: min(46vh, 24rem);
  }

  .vm-body {
    max-height: calc(min(46vh, 24rem) - 2.75rem);
  }

  .agent-figure {
    min-height: 10.5rem;
  }

  .agent-svg {
    width: min(100%, 10rem);
  }
}

/* Sections */
.problem {
  background: #0a0f16;
  padding-inline: 0;
  padding-bottom: 0;
}

.problem > .section-inner {
  padding-inline: var(--space-200);
}

.problem > .section-inner:last-child {
  padding-bottom: var(--space-800);
}

.problem-lead {
  display: grid;
  gap: 0.65rem;
}

.problem-lead p {
  margin: 0;
  max-width: 40rem;
}

.problem-grid,
.benefit-list,
.trust-list,
.steps {
  list-style: none;
  margin: var(--space-500) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-300);
}

.problem-grid h3,
.benefit-list h3,
.trust-list h3,
.steps h3 {
  font-size: 1.25rem;
  line-height: 1.65rem;
  margin-bottom: var(--space-75);
  letter-spacing: -0.01em;
}

.benefit-list h3 {
  font-size: clamp(1.125rem, 2.4vw, 1.25rem);
  max-width: 22ch;
}

.problem-grid p,
.benefit-list p,
.trust-list p,
.steps p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.45rem;
}

.problem-grid p {
  max-width: 36ch;
}

/* Bridge: machine work → human touch (breaks admin grind / channel grind) */
.problem-bridge {
  margin-top: var(--space-400);
  padding: var(--space-700) var(--space-200);
  border-block: 1px solid rgba(255, 255, 255, 0.05);
  background: #05080d;
}

.problem > .section-inner:first-child {
  padding-bottom: var(--space-400);
}

.section-lead p + p {
  margin-top: 0.65em;
}

.tagline-sub {
  margin: var(--space-250) auto 0;
  max-width: 28ch;
  text-align: center;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  line-height: 1.4;
  color: rgba(232, 192, 122, 0.88);
  letter-spacing: -0.01em;
}

/* Fragmented agency / Telegram channels → one agent PA */
.problem-channels {
  margin-top: 0;
  padding-top: var(--space-700);
  border-top: none;
}

.problem-channels h3 {
  margin: 0 0 var(--space-150);
  font-size: clamp(1.2rem, 2.8vw, 1.45rem);
  line-height: 1.35;
  letter-spacing: -0.015em;
  max-width: 28ch;
}

.problem-channels-lead {
  margin: 0 0 var(--space-400);
  max-width: 48ch;
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.55rem;
  display: grid;
  gap: 0.75rem;
}

.problem-channels-lead p {
  margin: 0;
}

.channel-fragment {
  margin: 0;
  border-radius: calc(var(--radius-2xl) + 2px);
  border: 1px solid var(--glass-border);
  background: rgba(10, 16, 24, 0.55);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 20px 48px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

.vm-live.warn {
  color: #e8b07a;
}

.vm-live.warn i {
  background: #e8b07a;
  box-shadow: 0 0 8px rgba(232, 176, 122, 0.55);
}

.channel-fragment-body {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: var(--space-200);
  padding: var(--space-300);
}

.channel-shards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  flex: 1 1 14rem;
  min-width: 0;
}

.channel-shards li {
  display: grid;
  gap: 0.15rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(232, 192, 122, 0.14);
  background: rgba(14, 20, 30, 0.72);
}

.channel-shards .ch-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: #9aa3ad;
  text-transform: lowercase;
}

.channel-shards strong {
  font-size: 0.9375rem;
  color: var(--text);
}

.channel-shards .ch-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: #6f7883;
}

.channel-arrow {
  display: none;
  align-self: center;
  font-size: 1.25rem;
  color: rgba(232, 192, 122, 0.55);
  padding: 0 0.25rem;
}

.channel-pa {
  flex: 1 1 12rem;
  min-width: 0;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(232, 192, 122, 0.38);
  background:
    linear-gradient(160deg, rgba(196, 137, 58, 0.14) 0%, rgba(14, 20, 30, 0.88) 55%);
  box-shadow: 0 0 28px rgba(196, 137, 58, 0.1);
}

.channel-pa-kicker {
  margin: 0 0 0.35rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: #e8c07a;
}

.channel-pa-title {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--text);
  letter-spacing: -0.01em;
}

.channel-pa ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.channel-pa li {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: #8fd4a4;
}

.channel-fragment-caption {
  margin: 0;
  padding: 0.65rem var(--space-300) var(--space-250);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--text-soft);
}

@media (min-width: 700px) {
  .channel-fragment-body {
    flex-wrap: nowrap;
    align-items: center;
  }

  .channel-arrow {
    display: block;
  }

  .channel-shards {
    grid-template-columns: 1fr;
    flex: 1.15 1 0;
  }

  .channel-pa {
    flex: 0.95 1 0;
  }
}

@media (max-width: 699px) {
  .channel-fragment-body {
    flex-direction: column;
  }

  .channel-arrow {
    display: block;
    align-self: center;
    transform: rotate(90deg);
    padding: 0;
  }

  .problem-channels h3 {
    max-width: none;
  }
}

/* Section scenes — same glass / amber language as hero VM */
.scene-feature {
  margin: var(--space-500) 0 0;
  border-radius: calc(var(--radius-2xl) + 2px);
  border: 1px solid var(--glass-border);
  background: rgba(10, 16, 24, 0.55);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 24px 60px rgba(0, 0, 0, 0.35),
    0 0 48px rgba(196, 137, 58, 0.08);
  overflow: hidden;
}

.scene-feature-chrome {
  display: flex;
  align-items: center;
  gap: var(--space-100);
  padding: 0.55rem 0.875rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.28);
}

.scene-feature-chrome.compact {
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.scene-feature-title {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scene-svg {
  width: 100%;
  height: auto;
  display: block;
}

.scene-svg--feature {
  padding: var(--space-100) var(--space-100) var(--space-200);
}

.scene-svg--vault {
  padding: var(--space-100);
}

/* Mobile stacked alternate for dense book-context SVG */
.scene-feature-stack {
  display: none;
}

.scene-stack-agent {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-100);
  padding: var(--space-300) var(--space-200) var(--space-100);
}

.scene-stack-agent-svg {
  width: 5.5rem;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(232, 192, 122, 0.25));
  animation: agentBreathe 4.8s var(--ease-fluid) infinite;
}

.scene-stack-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.25rem;
  color: var(--accent-bright);
}

.scene-stack-status .pulse {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: var(--radius-full);
  background: var(--accent-bright);
  box-shadow: 0 0 10px rgba(232, 192, 122, 0.75);
  animation: onlinePulse 2s var(--ease-fluid) infinite;
}

.scene-stack-cards {
  list-style: none;
  margin: 0;
  padding: 0 var(--space-200) var(--space-300);
  display: grid;
  gap: var(--space-100);
}

.scene-stack-cards li {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(232, 192, 122, 0.2);
  background: rgba(14, 20, 30, 0.82);
}

.scene-stack-cards li.ok {
  border-color: rgba(109, 207, 138, 0.28);
}

.scene-stack-cards .k {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.scene-stack-cards strong {
  font-size: 0.9375rem;
  line-height: 1.35rem;
  font-weight: 600;
  color: var(--text);
}

.scene-stack-cards li.ok .k {
  color: #8fd4a4;
}

.step-scene,
.assign-scene {
  margin: 0 0 var(--space-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(7, 11, 16, 0.35);
  border: 1px solid rgba(232, 192, 122, 0.1);
}

.step-scene .scene-svg,
.assign-scene .scene-svg {
  width: 100%;
  height: auto;
}

.benefit-motif {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: var(--space-200);
  border-radius: var(--radius-md);
  border: 1px solid rgba(232, 192, 122, 0.2);
  background: rgba(14, 20, 30, 0.65);
  box-shadow: inset 0 0 20px rgba(196, 137, 58, 0.06);
}

.benefit-motif svg {
  width: 1.5rem;
  height: 1.5rem;
}

.benefit-list li {
  padding: var(--space-300);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(14, 20, 30, 0.4);
}

@media (min-width: 700px) {
  .problem-grid,
  .benefit-list,
  .trust-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefit-list li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* Keep how-it-works scenes large enough to read on tablet */
@media (min-width: 1000px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.steps li {
  padding: var(--space-300);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  display: flex;
  flex-direction: column;
}

.step-num {
  display: inline-block;
  margin-bottom: var(--space-200);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--accent-bright);
}

/* Trust vault layout */
.trust-layout {
  display: grid;
  gap: var(--space-400);
  align-items: center;
}

.trust-vault {
  margin: 0;
  border-radius: calc(var(--radius-2xl) + 2px);
  border: 1px solid var(--glass-border);
  background: rgba(10, 16, 24, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.35),
    0 0 48px rgba(196, 137, 58, 0.08);
  overflow: hidden;
  max-width: 22rem;
}

.trust-copy .section-lead {
  margin-top: var(--space-200);
}

@media (min-width: 900px) {
  .trust-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
    gap: var(--space-600);
  }

  .trust-vault {
    max-width: none;
    justify-self: end;
    width: 100%;
  }
}

/* Scene motion — subtle, matches hero breathe/pulse */
.scene-agent-breathe {
  transform-box: fill-box;
  transform-origin: center;
  animation: agentBreathe 4.8s var(--ease-fluid) infinite;
}

.scene-eye {
  animation: eyeGlow 3.2s var(--ease-fluid) infinite;
}

.scene-core {
  transform-box: fill-box;
  transform-origin: center;
  animation: corePulse 2.8s var(--ease-fluid) infinite;
}

.scene-float-a,
.scene-float-b,
.scene-float-c,
.scene-float-d {
  animation: sceneFloat 6s var(--ease-fluid) infinite;
}

.scene-float-b { animation-delay: 0.6s; }
.scene-float-c { animation-delay: 1.1s; }
.scene-float-d { animation-delay: 1.6s; }

.scene-write {
  animation: writeSweep 3.4s var(--ease-fluid) infinite;
}

.scene-radar {
  transform-box: fill-box;
  transform-origin: center;
  animation: radarPulse 3.2s var(--ease-fluid) infinite;
}

.scene-radar.delay {
  animation-delay: 1s;
}

.scene-match-glow {
  animation: matchPulse 2.8s var(--ease-fluid) infinite;
}

.scene-confirm-btn {
  animation: confirmGlow 2.6s var(--ease-fluid) infinite;
}

.scene-cal-active {
  animation: calBlink 2.4s var(--ease-fluid) infinite;
}

.scene-copy-chip {
  animation: copyChip 3s var(--ease-fluid) infinite;
}

.scene-vault-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: haloSpin 18s linear infinite;
}

@keyframes sceneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes writeSweep {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.9; }
}

@keyframes radarPulse {
  0% { opacity: 0.55; transform: scale(0.92); }
  70% { opacity: 0; transform: scale(1.15); }
  100% { opacity: 0; transform: scale(1.15); }
}

@keyframes matchPulse {
  0%, 100% { opacity: 0.92; }
  50% { opacity: 1; filter: drop-shadow(0 0 8px rgba(232, 192, 122, 0.35)); }
}

@keyframes confirmGlow {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}

@keyframes calBlink {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

@keyframes copyChip {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}

/* Assignment handling */
.assignments {
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(196, 137, 58, 0.1), transparent 58%),
    linear-gradient(180deg, #080d14 0%, #0a1018 100%);
  border-block: 1px solid rgba(232, 192, 122, 0.08);
}

.assign-flow {
  list-style: none;
  margin: var(--space-500) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-200);
}

.assign-flow li {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-300);
  border-radius: var(--radius-xl);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.assign-scene {
  margin-bottom: var(--space-200);
}

.assign-flow h3 {
  font-size: 1.25rem;
  line-height: 1.75rem;
  margin: 0 0 var(--space-75);
}

.assign-flow p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.5rem;
}

.assign-step {
  display: inline-block;
  margin-top: 0;
  margin-bottom: var(--space-200);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.25rem;
  letter-spacing: 0.06em;
  color: var(--accent-bright);
}

.assign-note {
  margin: var(--space-400) 0 0;
  max-width: 52rem;
  padding: var(--space-200) var(--space-300);
  border-left: 2px solid rgba(232, 192, 122, 0.45);
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.55rem;
}

@media (min-width: 700px) and (max-width: 1099px) {
  .assign-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-200);
  }
}

@media (min-width: 1100px) {
  .assign-flow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-200);
  }
}

/* Tagline reveal */
.tagline-reveal {
  padding: var(--space-900) var(--space-200);
  background: #05080d;
  border-block: 1px solid rgba(255, 255, 255, 0.05);
}

.tagline-reveal.problem-bridge {
  padding: var(--space-700) var(--space-200);
}

.tagline-text {
  max-width: 16ch;
  margin: 0 auto;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  line-height: 1.05;
  text-align: center;
}

.tagline-text span {
  display: inline;
  color: rgba(243, 241, 235, 0.28);
  transition: color 800ms var(--ease-fluid);
}

.tagline-text span.is-lit {
  color: var(--text);
}

/* Waitlist form */
.waitlist {
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(196, 137, 58, 0.12), transparent 60%),
    var(--bg);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-shell {
  max-width: 36rem;
  margin-top: var(--space-500);
  padding: clamp(1.25rem, 4vw, 2rem);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--line);
  background: rgba(14, 20, 30, 0.85);
  box-shadow: var(--shadow-soft);
}

.form-hold {
  margin: 0 0 var(--space-300);
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--accent-bright);
}

.waitlist-form fieldset {
  display: grid;
  gap: var(--space-300);
  border: 0;
  margin: 0;
  padding: 0;
  min-inline-size: 0;
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.waitlist-form {
  display: grid;
  gap: var(--space-300);
}

.field {
  display: grid;
  gap: var(--space-75);
}

.field label {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.req,
.opt {
  margin-left: 0.35rem;
  font-weight: 500;
  color: var(--text-soft);
  font-size: 0.75rem;
}

.field input:not([type="checkbox"]),
.field textarea {
  width: 100%;
  padding: 0.75rem 0.875rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 11, 16, 0.75);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  line-height: 1.5rem;
  transition: border-color 700ms var(--ease-fluid), box-shadow 700ms var(--ease-fluid);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-soft);
}

.field input:not([type="checkbox"]):hover,
.field textarea:hover {
  border-color: rgba(232, 192, 122, 0.35);
}

.field input:not([type="checkbox"]):focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-bright);
  box-shadow: 0 0 0 3px rgba(232, 192, 122, 0.18);
}

.field.is-invalid input:not([type="checkbox"]),
.field.is-invalid textarea {
  border-color: var(--danger);
}

.field-hint,
.field-error {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.field-hint {
  color: var(--text-soft);
}

.field-error {
  color: var(--danger);
}

.checkbox-field {
  grid-template-columns: auto 1fr;
  align-items: start;
  column-gap: var(--space-100);
}

.checkbox-field input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0.15rem 0 0;
  accent-color: var(--accent-bright);
}

.checkbox-field label {
  font-size: 0.9375rem;
  line-height: 1.45rem;
  color: var(--text-muted);
}

.checkbox-field .field-error {
  grid-column: 2;
}

.checkbox-field.is-invalid input[type="checkbox"] {
  outline: 2px solid var(--danger);
  outline-offset: 2px;
}

.form-note {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--text-soft);
}

.form-status {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--text-muted);
}

.form-status.is-error {
  color: var(--danger);
}

.success-panel {
  display: grid;
  gap: var(--space-200);
}

.success-panel h3 {
  font-size: 1.5rem;
  line-height: 2rem;
}

.success-panel p {
  color: var(--text-muted);
}

/* FAQ */
.faq-list {
  margin-top: var(--space-500);
  display: grid;
  gap: var(--space-100);
  max-width: 46rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--bg-elevated);
  padding: 0 var(--space-300);
  transition: border-color 700ms var(--ease-fluid), background-color 700ms var(--ease-fluid);
}

.faq-item[open] {
  border-color: rgba(232, 192, 122, 0.28);
  background: #101722;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: var(--space-300) 0;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.75rem;
}

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

.faq-item p {
  padding: 0 0 var(--space-300);
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.5rem;
}

/* Footer */
.site-footer {
  padding: var(--space-700) var(--space-200) var(--space-500);
  border-top: 1px solid var(--line);
  background: #05080d;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: var(--space-300);
}

.footer-brand {
  display: flex;
  gap: var(--space-100);
  align-items: flex-start;
}

.footer-brand strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5rem;
}

.footer-brand p {
  margin-top: var(--space-50);
  color: var(--text-soft);
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-200);
}

.footer-nav a {
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--text-muted);
}

.footer-copy {
  color: var(--text-soft);
  font-size: 0.875rem;
  line-height: 1.25rem;
}

/* Reveals.
   Revealed is the DEFAULT state, so the page is readable with no JS, a blocked
   script.js, or a browser without IntersectionObserver. script.js opts in to the
   animation by putting .js-reveal on <html>. Never hide .reveal unconditionally. */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(4rem);
  filter: blur(8px);
  transition:
    opacity 900ms var(--ease-fluid),
    transform 900ms var(--ease-fluid),
    filter 900ms var(--ease-fluid);
}

.js-reveal .reveal.is-inview {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .beams span,
  .scanlines,
  .vm-chassis,
  .agent-svg,
  .agent-halo,
  .agent-core,
  .agent-eye,
  .pedestal-ring,
  .vm-live i,
  .holo-status .pulse,
  .cursor,
  .tagline-text span,
  .scene-agent-breathe,
  .scene-eye,
  .scene-core,
  .scene-float-a,
  .scene-float-b,
  .scene-float-c,
  .scene-float-d,
  .scene-write,
  .scene-radar,
  .scene-match-glow,
  .scene-confirm-btn,
  .scene-cal-active,
  .scene-copy-chip,
  .scene-vault-ring {
    animation: none !important;
    transition: none !important;
  }

  .reveal,
  .js-reveal .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .tagline-text span {
    color: var(--text);
  }
}

/* Mobile: keep scenes readable, no crop / no illegible SVG micro-type */
@media (max-width: 599px) {
  .section {
    padding: var(--space-700) var(--space-200);
  }

  .section-lead {
    font-size: 1.0625rem;
    line-height: 1.65rem;
  }

  .scene-feature {
    margin-top: var(--space-400);
  }

  .scene-feature-stack {
    display: block;
  }

  .scene-svg--feature {
    display: none;
  }

  .scene-feature-title {
    max-width: 9.5rem;
  }

  .step-scene,
  .assign-scene {
    margin-bottom: var(--space-200);
  }

  .assign-flow li,
  .steps li,
  .benefit-list li {
    padding: var(--space-200);
  }

  .trust-vault {
    max-width: none;
    width: 100%;
  }

  .tagline-reveal,
  .tagline-reveal.problem-bridge {
    padding: var(--space-600) var(--space-200);
  }

  .problem > .section-inner:last-child {
    padding-bottom: var(--space-700);
  }

  .problem-grid p {
    max-width: none;
  }

  .faq-item summary {
    font-size: 1.0625rem;
    line-height: 1.55rem;
    padding: var(--space-200) 0;
  }
}

/* Short phones: tighten hero stage so CTA stays early in scroll */
@media (max-width: 430px) and (max-height: 780px) {
  .hero {
    padding-bottom: calc(var(--space-500) + env(safe-area-inset-bottom, 0px));
  }

  .hero-copy {
    padding-bottom: var(--space-300);
  }

  .agent-figure {
    min-height: 9.5rem;
  }

  .agent-svg {
    width: min(100%, 8.5rem);
  }

  .holo-feed li:nth-child(n + 4) {
    display: none;
  }
}

/* 404 */
.page-404 {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: var(--space-400);
  background: var(--bg);
}

.not-found {
  max-width: 28rem;
  text-align: center;
  display: grid;
  gap: var(--space-200);
  justify-items: center;
}

.not-found h1 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 2.5rem;
  font-weight: 400;
  background: linear-gradient(90deg, #ffffff 0%, #9b9b9b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.not-found p {
  color: var(--text-muted);
}

/* Motion */
@keyframes beamPulse {
  0%, 100% { opacity: 0.4; filter: brightness(0.95); }
  50% { opacity: 1; filter: brightness(1.15); }
}

@keyframes scanDrift {
  from { transform: translateY(0); }
  to { transform: translateY(4px); }
}

@keyframes chassisFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes agentBreathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.015); }
}

@keyframes corePulse {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes eyeGlow {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; }
}

@keyframes haloSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes ringPulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  70% { transform: scale(1.2); opacity: 0; }
  100% { transform: scale(1.2); opacity: 0; }
}

@keyframes onlinePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.55; }
}

@keyframes cursorBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* Legal pages — privacy.html, terms.html. No JavaScript: nothing here is
   revealed, toggled or animated in, so the page is complete on first paint. */
.legal-header {
  padding: var(--space-300) var(--space-200);
  border-bottom: 1px solid var(--line);
  background: #05080d;
}

.legal-header .brand {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-100);
  text-decoration: none;
}

.legal-main {
  padding: var(--space-700) var(--space-200) var(--space-800);
  background: var(--bg);
}

.legal-inner {
  max-width: 46rem;
  margin: 0 auto;
}

.legal-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 7vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}

.legal-dates {
  margin-top: var(--space-200);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.25rem;
  color: var(--text-muted);
}

.legal-standfirst {
  margin-top: var(--space-300);
  font-size: 1.125rem;
  line-height: 1.65rem;
  color: var(--text-muted);
}

.legal-toc {
  margin-top: var(--space-400);
  padding: var(--space-300);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  background: var(--bg-elevated);
}

.legal-toc h2 {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.legal-toc ol {
  margin: var(--space-200) 0 0;
  padding-left: 1.25rem;
  display: grid;
  gap: var(--space-75);
  color: var(--text-muted);
}

.legal-toc a {
  color: var(--accent-bright);
}

.legal-section {
  margin-top: var(--space-600);
}

.legal-section h2 {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(1.375rem, 4.5vw, 1.625rem);
  line-height: 1.2;
  color: var(--text);
}

.legal-section h3 {
  margin-top: var(--space-400);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.4;
  color: var(--text);
}

.legal-section p,
.legal-section li {
  margin-top: var(--space-200);
  color: var(--text-muted);
  line-height: 1.65rem;
}

.legal-section ul {
  margin: var(--space-200) 0 0;
  padding-left: 1.25rem;
}

.legal-section ul li {
  margin-top: var(--space-75);
}

.legal-section strong {
  color: var(--text);
  font-weight: 600;
}

.legal-section a {
  color: var(--accent-bright);
}

.legal-contact {
  margin-top: var(--space-600);
  padding: var(--space-400);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  background: var(--bg-panel);
}

.legal-contact h2 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--text);
}

.legal-contact p {
  margin-top: var(--space-200);
  color: var(--text-muted);
  line-height: 1.65rem;
}

@media (max-width: 599px) {
  .legal-main {
    padding: var(--space-500) var(--space-200) var(--space-600);
  }

  .legal-section {
    margin-top: var(--space-500);
  }

  .legal-contact {
    padding: var(--space-300);
  }
}
