:root {
  --bg: #04070d;
  --text: #e8f3f8;
  --cyan: #5ce1f0;
  --line: rgba(140, 220, 240, 0.32);
  --gutter: clamp(16px, 4vw, 56px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 16px/1.5 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
img { display: block; }

.stage {
  position: relative;
  height: 100vh; height: 100svh;
  overflow: hidden;
  background: radial-gradient(120% 80% at 50% 35%, #0b2433 0%, transparent 60%), linear-gradient(#020408, #071420 60%, #04070d);
}
#scene {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 2s ease;
}
.stage.ready #scene { opacity: 1; }
.shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4,7,13,.55) 0%, transparent 16%),
    linear-gradient(0deg, rgba(4,7,13,.6) 0%, transparent 22%);
}

.brand {
  position: absolute; top: clamp(18px, 3.2vh, 34px); left: var(--gutter);
  display: flex; align-items: center; gap: 14px;
  animation: fade 1.6s .3s ease both;
}
.brand span { font: 500 14px/1 'IBM Plex Sans', system-ui, sans-serif; letter-spacing: .42em; color: #e6ecf0; }

.cta {
  position: absolute; left: 50%; bottom: clamp(32px, 7vh, 72px);
  translate: -50% 0;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 28px 15px 24px;
  white-space: nowrap;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(4, 10, 18, 0.35);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  color: var(--text); text-decoration: none;
  font: 500 13px/1 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .2em; text-transform: uppercase;
  transition: border-color .3s, box-shadow .3s, background .3s;
  animation: fade 1.6s .9s ease both;
}
.cta::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 12px var(--cyan);
  animation: pulse 2.4s ease-in-out infinite;
}
.cta:hover, .cta:focus-visible {
  border-color: var(--cyan);
  background: rgba(10, 40, 52, 0.45);
  box-shadow: 0 0 40px -8px rgba(92, 225, 240, .6);
  outline: none;
}

.stage.no-webgl { background: url('/assets/og.jpg') center/cover, var(--bg); }
.stage.no-webgl #scene { display: none; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

@media (prefers-reduced-motion: reduce) {
  .brand, .cta, .cta::before { animation: none; }
}

/* capture mode: canvas only, for video export */
.capture .stage > *:not(canvas) { display: none !important; }
.capture #scene { opacity: 1; transition: none; }
