:root {
  --bg: #0a0a0a;
  --fg: #e8e4dc;
  --accent: #3dff8a;
  --muted: #6b6b6b;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --prose: system-ui, -apple-system, sans-serif;
  --cell-size: clamp(8px, 1.1vw, 14px);
}

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

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--prose);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #7dffb0;
}

.content {
  position: relative;
  z-index: 2;
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(6rem, 18vh, 12rem) 1.5rem 4rem;
}

.content h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.content p {
  margin: 0 0 1.5rem;
  color: color-mix(in srgb, var(--fg) 82%, var(--muted));
  font-size: 1.05rem;
  line-height: 1.6;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.1rem;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 999px;
  color: var(--bg);
  background: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.btn--ghost {
  color: var(--fg);
  background: transparent;
  border-color: color-mix(in srgb, var(--fg) 25%, transparent);
}

.lane-nav {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lane-nav a {
  padding: 0.35rem 0.65rem;
  border: 1px solid color-mix(in srgb, var(--fg) 18%, transparent);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-decoration: none;
  color: var(--muted);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(6px);
}

.lane-nav a[aria-current="page"] {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}

#hero-canvas {
  position: fixed;
  inset: 0;
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  font-family: var(--mono);
  font-size: var(--cell-size);
  line-height: 1.2;
  letter-spacing: 0;
  overflow: hidden;
  background: var(--bg);
}

#hero-webgl,
#hero-video-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  display: block;
  pointer-events: none;
}

.hero-video-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-video-wrap video {
  display: none;
}

.fallback-msg {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  place-items: center;
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  font-family: var(--mono);
}

@media (prefers-reduced-motion: reduce) {
  #hero-canvas,
  #hero-webgl,
  #hero-video-canvas,
  .hero-video-wrap {
    display: none !important;
  }

  body {
    background:
      radial-gradient(ellipse 80% 60% at 50% 0%, #142018 0%, transparent 70%),
      var(--bg);
  }
}