/* BAOS — premium futuristic landing */

:root {
  --bg: #030308;
  --bg-elevated: #0a0a12;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.07);
  --text: #f4f4f8;
  --text-muted: rgba(244, 244, 248, 0.55);
  --text-dim: rgba(244, 244, 248, 0.35);
  --accent: #a8b4ff;
  --accent-soft: rgba(168, 180, 255, 0.35);
  --accent-glow: rgba(140, 160, 255, 0.25);
  --violet: #8b7cf6;
  --cyan: #6ee7f7;
  --success: #6ee7b7;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(168, 180, 255, 0.25);
  color: #fff;
}

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

/* Background layers */
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}

.ambient-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.45;
  animation: glow-drift 18s var(--ease-smooth) infinite alternate;
}

.glow-a {
  width: 55vw;
  height: 55vw;
  max-width: 680px;
  max-height: 680px;
  top: -15%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(139, 124, 246, 0.35) 0%, transparent 70%);
}

.glow-b {
  width: 40vw;
  height: 40vw;
  max-width: 500px;
  max-height: 500px;
  bottom: 10%;
  right: -5%;
  background: radial-gradient(circle, rgba(110, 231, 247, 0.12) 0%, transparent 70%);
  animation-delay: -6s;
}

@keyframes glow-drift {
  0% { transform: translateX(-50%) translateY(0); opacity: 0.4; }
  100% { transform: translateX(-48%) translateY(4%); opacity: 0.55; }
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  background: rgba(3, 3, 8, 0.55);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--glass-border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: var(--text);
  text-decoration: none;
}

.nav-orb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0%, var(--accent) 40%, var(--violet) 100%);
  box-shadow: 0 0 24px var(--accent-glow);
  animation: orb-pulse 4s ease-in-out infinite;
}

@keyframes orb-pulse {
  0%, 100% { box-shadow: 0 0 20px var(--accent-glow); transform: scale(1); }
  50% { box-shadow: 0 0 32px rgba(168, 180, 255, 0.4); transform: scale(1.04); }
}

.nav-links {
  display: none;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s var(--ease-smooth);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 0.5rem 1.1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border-radius: 100px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  transition: border-color 0.35s, background 0.35s, box-shadow 0.35s, transform 0.35s var(--ease-out-expo);
}

.nav-cta:hover {
  border-color: var(--accent-soft);
  background: var(--glass-strong);
  box-shadow: 0 0 32px var(--accent-glow);
  transform: translateY(-1px);
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: calc(var(--nav-h) + 3rem) clamp(1.25rem, 4vw, 2.5rem) 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-copy {
  max-width: 900px;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.hero-eyebrow {
  margin: 0 0 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hero-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 6.5vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero-title .line {
  display: block;
}

.hero-title .accent {
  background: linear-gradient(135deg, #fff 0%, var(--accent) 50%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  margin: 0 0 1.75rem;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 100px;
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s, border-color 0.3s;
}

.btn-hero.primary {
  color: #030308;
  background: linear-gradient(135deg, #fff 0%, #c4ceff 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 40px -10px var(--accent-glow);
}

.btn-hero.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px -12px rgba(168, 180, 255, 0.45);
}

.btn-hero.ghost {
  color: var(--text-muted);
  border: 1px solid var(--glass-border);
  background: var(--glass);
}

.btn-hero.ghost:hover {
  color: var(--text);
  border-color: var(--accent-soft);
  transform: translateY(-2px);
}

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

/* Hero stage — fake AI interface */
.hero-stage {
  width: 100%;
  max-width: 920px;
  perspective: 1200px;
}

.stage-frame {
  position: relative;
  padding: 1px;
  border-radius: 22px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.02) 40%,
    rgba(168, 180, 255, 0.1) 100%
  );
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 48px 120px -24px rgba(0, 0, 0, 0.75),
    0 0 100px -24px var(--accent-glow);
  transform-style: preserve-3d;
  animation: frame-breathe 6s ease-in-out infinite;
}

@keyframes frame-breathe {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset, 0 48px 120px -24px rgba(0, 0, 0, 0.75), 0 0 80px -28px var(--accent-glow); }
  50% { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 52px 130px -20px rgba(0, 0, 0, 0.8), 0 0 110px -20px rgba(168, 180, 255, 0.35); }
}

.stage-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  z-index: 6;
}

.stage-shine::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 50%;
  height: 200%;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.06) 50%, transparent 60%);
  animation: shine-sweep 7s ease-in-out infinite;
}

@keyframes shine-sweep {
  0%, 100% { transform: translateX(0) rotate(12deg); opacity: 0; }
  45% { opacity: 1; }
  55% { transform: translateX(280%) rotate(12deg); opacity: 0; }
}

.hud-label {
  position: absolute;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(168, 180, 255, 0.45);
  z-index: 6;
  pointer-events: none;
  font-family: "SF Mono", "Cascadia Code", Consolas, monospace;
}

.hud-label-tl { top: 18px; left: 44px; }
.hud-label-tr { top: 18px; right: 44px; }

.hud {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: rgba(168, 180, 255, 0.35);
  border-style: solid;
  border-width: 0;
  z-index: 5;
  pointer-events: none;
}

.hud-tl { top: 12px; left: 12px; border-top-width: 1px; border-left-width: 1px; }
.hud-tr { top: 12px; right: 12px; border-top-width: 1px; border-right-width: 1px; }
.hud-bl { bottom: 12px; left: 12px; border-bottom-width: 1px; border-left-width: 1px; }
.hud-br { bottom: 12px; right: 12px; border-bottom-width: 1px; border-right-width: 1px; }

.stage-desktop {
  position: relative;
  min-height: clamp(380px, 58vw, 480px);
  border-radius: 21px;
  background:
    radial-gradient(ellipse 70% 45% at 50% 15%, rgba(139, 124, 246, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(110, 231, 247, 0.05) 0%, transparent 45%),
    linear-gradient(180deg, rgba(10, 10, 18, 0.97) 0%, rgba(4, 4, 10, 0.99) 100%);
  overflow: hidden;
}

.stage-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(168, 180, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 180, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}

.stage-scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
  opacity: 0.5;
}

.stage-orb {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 120px;
  height: 120px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
}

.stage-orb .orb-core {
  position: absolute;
  inset: 35%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0%, var(--accent) 45%, var(--violet) 100%);
  box-shadow: 0 0 40px rgba(168, 180, 255, 0.5);
}

.stage-orb .orb-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(168, 180, 255, 0.25);
}

.stage-orb .orb-ring-1 {
  animation: orb-spin 12s linear infinite;
}

.stage-orb .orb-ring-2 {
  inset: 12%;
  animation: orb-spin 18s linear infinite reverse;
  border-color: rgba(110, 231, 247, 0.2);
}

.stage-orb.active .orb-core {
  animation: orb-core-pulse 1.2s ease-in-out infinite;
}

@keyframes orb-spin {
  to { transform: rotate(360deg); }
}

@keyframes orb-core-pulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.08); filter: brightness(1.15); }
}

.pipeline {
  position: absolute;
  top: 52px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0;
  z-index: 4;
  padding: 0.35rem 0.65rem;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
}

.pipe-step {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0.2rem 0.45rem;
  border-radius: 100px;
  transition: color 0.35s, background 0.35s, box-shadow 0.35s;
}

.pipe-step.active {
  color: var(--text);
  background: rgba(168, 180, 255, 0.15);
  box-shadow: 0 0 16px var(--accent-glow);
}

.pipe-step.done {
  color: var(--success);
}

.pipe-line {
  width: 12px;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.confidence-bar {
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.confidence-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  transition: width 0.5s var(--ease-out-expo);
}

.intent-badge {
  margin-left: auto;
  padding: 0.15rem 0.45rem;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(168, 180, 255, 0.12);
  border-radius: 4px;
  border: 1px solid var(--accent-soft);
}

.desktop-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.25);
}

.desktop-bar .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.desktop-bar .dot:nth-child(1) { background: rgba(255, 95, 95, 0.5); }
.desktop-bar .dot:nth-child(2) { background: rgba(255, 200, 80, 0.45); }
.desktop-bar .dot:nth-child(3) { background: rgba(110, 231, 183, 0.45); }

.desktop-title {
  flex: 1;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.desktop-status {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--success);
  text-transform: uppercase;
}

.desktop-status .pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulse-live 2s ease-in-out infinite;
}

@keyframes pulse-live {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* Floating cards */
.float-card {
  position: absolute;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  transition: box-shadow 0.5s var(--ease-smooth);
}

.float-card.active {
  border-color: var(--accent-soft);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), 0 0 24px var(--accent-glow);
}

.card-label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.card-voice {
  top: 22%;
  left: 5%;
  width: min(210px, 44%);
  z-index: 3;
}

.waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 36px;
  margin-bottom: 0.4rem;
}

.waveform span {
  display: block;
  width: 3px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), var(--violet));
  opacity: 0.4;
  transform-origin: center bottom;
  transition: height 0.15s ease, opacity 0.15s ease;
}

.waveform.active span {
  opacity: 0.9;
  animation: wave-bar 0.8s ease-in-out infinite alternate;
}

.waveform.active span:nth-child(odd) { animation-delay: 0.05s; }
.waveform.active span:nth-child(3n) { animation-delay: 0.12s; }
.waveform.active span:nth-child(5n) { animation-delay: 0.2s; }

@keyframes wave-bar {
  0% { height: 6px; }
  100% { height: 28px; }
}

.voice-caption {
  margin: 0;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.card-command {
  top: 14%;
  right: 4%;
  width: min(260px, 50%);
  z-index: 4;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.card-icon {
  color: var(--accent);
}

.command-line {
  margin: 0 0 0.6rem;
  font-family: "SF Mono", "Cascadia Code", "Consolas", monospace;
  font-size: 0.78rem;
  color: var(--text);
  min-height: 1.2em;
}

.command-line::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 0.9em;
  margin-left: 2px;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: cursor-blink 1s step-end infinite;
}

.command-line.done::after {
  display: none;
}

@keyframes cursor-blink {
  50% { opacity: 0; }
}

.command-progress {
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.command-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--violet), var(--accent));
  transition: width 0.4s var(--ease-out-expo);
}

.card-thinking {
  bottom: 30%;
  left: 5%;
  width: min(200px, 40%);
  z-index: 3;
}

.thinking-dots {
  display: flex;
  gap: 4px;
  margin-bottom: 0.5rem;
}

.thinking-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.35;
  animation: think-dot 1.4s ease-in-out infinite;
}

.thinking-dots span:nth-child(2) { animation-delay: 0.2s; }
.thinking-dots span:nth-child(3) { animation-delay: 0.4s; }

.thinking-dots.active span {
  opacity: 1;
}

@keyframes think-dot {
  0%, 100% { transform: translateY(0); opacity: 0.35; }
  50% { transform: translateY(-4px); opacity: 1; }
}

.thinking-stream {
  font-family: monospace;
  font-size: 0.6rem;
  line-height: 1.5;
  color: var(--text-dim);
  min-height: 2.4em;
}

.card-result {
  bottom: 12%;
  right: 5%;
  width: min(170px, 36%);
  text-align: center;
  z-index: 3;
}

.card-browser {
  top: 38%;
  left: 50%;
  transform: translateX(-50%);
  width: min(280px, 58%);
  padding: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  z-index: 2;
  transition: opacity 0.5s var(--ease-out-expo), visibility 0.5s, transform 0.6s var(--ease-out-expo);
}

.card-browser.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
  border-color: rgba(255, 95, 95, 0.25);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45), 0 0 30px rgba(255, 60, 60, 0.08);
}

.browser-chrome {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.65rem;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--glass-border);
}

.browser-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.browser-dot:nth-child(1) { background: rgba(255, 95, 95, 0.55); }
.browser-dot:nth-child(2) { background: rgba(255, 200, 80, 0.5); }
.browser-dot:nth-child(3) { background: rgba(110, 231, 183, 0.5); }

.browser-url {
  flex: 1;
  font-family: monospace;
  font-size: 0.6rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-body {
  padding: 1rem;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(20, 20, 28, 0.6) 0%, rgba(8, 8, 14, 0.8) 100%);
}

.browser-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
}

.browser-logo {
  font-size: 1.75rem;
  color: #ff4444;
  text-shadow: 0 0 20px rgba(255, 68, 68, 0.4);
}

.browser-placeholder span:last-child {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.action-log {
  position: absolute;
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%);
  width: min(340px, 78%);
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  z-index: 5;
  max-height: 88px;
  overflow: hidden;
}

.log-header {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
}

.log-lines {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.log-line {
  font-family: monospace;
  font-size: 0.58rem;
  color: var(--text-dim);
  opacity: 0;
  transform: translateX(-6px);
  animation: log-in 0.4s var(--ease-out-expo) forwards;
}

.log-line.success {
  color: var(--success);
}

@keyframes log-in {
  to { opacity: 1; transform: translateX(0); }
}

.result-icon {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  color: var(--text-dim);
  transition: color 0.4s, transform 0.5s var(--ease-out-expo);
}

.result-icon.success {
  color: var(--success);
  transform: scale(1.1);
}

.result-text {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.card-hud-mini {
  top: 22%;
  left: 50%;
  transform: translateX(-50%);
  bottom: auto;
  display: flex;
  gap: 1.25rem;
  padding: 0.45rem 0.9rem;
  z-index: 3;
}

.mini-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
}

.mini-stat span {
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.mini-stat strong {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
}

.cursor-ring {
  position: absolute;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border-radius: 50%;
  border: 1px solid rgba(168, 180, 255, 0.5);
  pointer-events: none;
  z-index: 9;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.3s, transform 0.3s var(--ease-out-expo);
}

.cursor-ring.visible {
  opacity: 1;
  transform: scale(1);
  animation: ring-pulse 1.5s ease-in-out infinite;
}

@keyframes ring-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(168, 180, 255, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(168, 180, 255, 0); }
}

.stage-cursor {
  position: absolute;
  width: 22px;
  height: 22px;
  margin: -2px 0 0 -2px;
  color: #fff;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
  pointer-events: none;
  z-index: 11;
  opacity: 0;
}

.stage-cursor.visible {
  opacity: 1;
}

.thinking-stream .trace-line {
  display: block;
  opacity: 0;
  animation: trace-in 0.35s var(--ease-out-expo) forwards;
}

@keyframes trace-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.float-card.flash {
  animation: card-flash 0.6s ease-out;
}

@keyframes card-flash {
  0% { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35); }
  40% { box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), 0 0 32px var(--accent-glow); }
  100% { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35); }
}

@media (max-width: 520px) {
  .stage-desktop {
    min-height: 400px;
  }

  .pipeline {
    top: 48px;
    transform: translateX(-50%) scale(0.92);
  }

  .pipe-step {
    font-size: 0.5rem;
    padding: 0.15rem 0.3rem;
  }

  .pipe-line {
    width: 6px;
  }

  .card-voice {
    top: 18%;
    left: 3%;
    width: 48%;
  }

  .card-command {
    top: 12%;
    right: 2%;
    width: 54%;
  }

  .card-thinking {
    bottom: 34%;
    left: 3%;
    width: 46%;
  }

  .card-result {
    bottom: 14%;
    right: 3%;
    width: 42%;
  }

  .card-hud-mini {
    top: 18%;
    gap: 0.5rem;
    padding: 0.35rem 0.6rem;
  }

  .card-browser {
    width: 72%;
    top: 42%;
  }

  .action-log {
    width: 88%;
    max-height: 72px;
  }

  .stage-orb {
    width: 80px;
    height: 80px;
    opacity: 0.7;
  }

  .mini-stat span {
    font-size: 0.5rem;
  }
}

.hero-scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.scroll-dot {
  animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* Capabilities */
.capabilities {
  position: relative;
  z-index: 1;
  padding: clamp(5rem, 12vw, 8rem) clamp(1.25rem, 4vw, 2.5rem);
}

.section-head {
  max-width: 520px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  font-size: 1rem;
  color: var(--text-muted);
}

.cap-grid {
  display: grid;
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .cap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .cap-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

.cap-card {
  position: relative;
  padding: 1.75rem 1.5rem;
  border-radius: 16px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    transform 0.55s var(--ease-out-expo),
    border-color 0.4s,
    box-shadow 0.55s var(--ease-out-expo);
}

.cap-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(168, 180, 255, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.cap-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-soft);
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.5), 0 0 40px -10px var(--accent-glow);
}

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

.cap-card:hover .cap-icon {
  transform: scale(1.08);
  filter: drop-shadow(0 0 12px var(--accent-glow));
}

.cap-icon {
  transition: transform 0.5s var(--ease-out-expo), filter 0.5s;
}

.cap-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  color: var(--accent);
}

.cap-icon svg {
  width: 100%;
  height: 100%;
}

.cap-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}

.cap-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Beta / waitlist */
.beta {
  position: relative;
  z-index: 1;
  padding: clamp(4rem, 10vw, 7rem) clamp(1.25rem, 4vw, 2.5rem) clamp(6rem, 14vw, 9rem);
}

.beta-inner {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(2.5rem, 6vw, 3.5rem) clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 24px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 32px 80px -24px rgba(0, 0, 0, 0.6);
}

.beta-inner h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
}

.beta-lead {
  margin: 0 0 2rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.beta-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 480px) {
  .beta-form {
    flex-direction: row;
  }
}

.beta-form input {
  flex: 1;
  min-width: 0;
  padding: 0.9rem 1.15rem;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--text);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.beta-form input::placeholder {
  color: var(--text-dim);
}

.beta-form input:focus {
  border-color: var(--accent-soft);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.35rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: #030308;
  background: linear-gradient(135deg, #fff 0%, var(--accent) 120%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -8px var(--accent-glow);
}

.btn-submit:active {
  transform: translateY(0);
}

.beta-form-msg {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--success);
}

.beta-form-msg.error {
  color: #f87171;
}

.btn-discord {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 100px;
  border: 1px solid var(--glass-border);
  background: transparent;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}

.btn-discord:hover {
  color: var(--text);
  border-color: rgba(88, 101, 242, 0.4);
  background: rgba(88, 101, 242, 0.08);
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  padding: 2rem clamp(1.25rem, 4vw, 2.5rem);
  border-top: 1px solid var(--glass-border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--text-muted);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Scroll reveal initial state */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
}

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

  .glow,
  .nav-orb,
  .waveform.active span,
  .thinking-dots span,
  .scroll-dot,
  .desktop-status .pulse,
  .stage-frame,
  .stage-shine::after,
  .stage-orb .orb-ring-1,
  .stage-orb .orb-ring-2,
  .cursor-ring.visible {
    animation: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
