:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --surface-2: #151515;
  --text: #f5f5f5;
  --muted: #a3a3a3;
  --border: rgba(245, 245, 245, 0.12);
  --accent: #d6ff00;
  --accent-soft: rgba(214, 255, 0, 0.12);
  --glow: 0 0 30px rgba(214, 255, 0, 0.08);
  --scroll-progress: 0;
  --scroll-shift: 0px;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 50% calc(8% + var(--scroll-shift)), rgba(214, 255, 0, 0.11), transparent 28%),
    linear-gradient(180deg, #0a0a0a 0%, #090909 55%, #050505 100%);
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  min-height: 100vh;
}

.font-display {
  font-family: "Sora", sans-serif;
}

.page-shell {
  position: relative;
  isolation: isolate;
}

.page-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 100%);
  z-index: -2;
}

.page-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% calc(20% + (var(--scroll-progress) * 10%)), rgba(214, 255, 0, 0.09), transparent 18%),
    radial-gradient(circle at 85% calc(14% + (var(--scroll-progress) * 14%)), rgba(214, 255, 0, 0.06), transparent 14%);
  z-index: -1;
}

.glass-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  box-shadow: var(--glow);
  backdrop-filter: blur(16px);
}

.accent-line {
  width: 5rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(214, 255, 0, 0), rgba(214, 255, 0, 1), rgba(214, 255, 0, 0));
}

.accent-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 9999px;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(214, 255, 0, 0.45);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(214, 255, 0, 0.2);
  background: rgba(214, 255, 0, 0.05);
  color: var(--text);
  padding: 0.625rem 1rem;
  border-radius: 9999px;
}

.hero-title {
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.cta-primary {
  background: var(--accent);
  color: #0a0a0a;
  box-shadow: 0 0 28px rgba(214, 255, 0, 0.16);
}

.cta-primary:hover {
  background: #e0ff42;
}

.cta-secondary:hover,
.nav-link:hover {
  border-color: rgba(245, 245, 245, 0.22);
  color: var(--text);
}

.cta-secondary {
  background: rgba(255, 255, 255, 0.02);
}

.nav-link.active {
  color: var(--text);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.85rem;
  height: 1px;
  background: rgba(214, 255, 0, 0.7);
  box-shadow: 0 0 16px rgba(214, 255, 0, 0.25);
}

.grid-card {
  position: relative;
  overflow: hidden;
}

.grid-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(214, 255, 0, 0.08), transparent 35%);
  opacity: 0;
  transition: opacity 180ms ease;
}

.grid-card:hover::before {
  opacity: 1;
}

.section-kicker {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal-delay-1 {
  transition-delay: 120ms;
}

.reveal-delay-2 {
  transition-delay: 240ms;
}

.reveal-delay-3 {
  transition-delay: 360ms;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-card {
  transform: translateY(calc(var(--card-offset, 0) * 1px));
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

body.scrolled header {
  background: rgba(10, 10, 10, 0.92);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

input,
textarea,
select {
  width: 100%;
}

input[type="date"],
input[type="time"] {
  color-scheme: dark;
}

@media (max-width: 767px) {
  .nav-link.active::after {
    display: none;
  }

  .hero-title {
    line-height: 1.02;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .scroll-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.btn-voice.active {
  background: #22c55e;
  color: #000;
}

.btn-voice.speaking {
  animation: pulse-green 1.5s ease-in-out infinite;
}

@keyframes pulse-green {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}
