:root { color-scheme: dark; }
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; background: #000; color: #fff; overflow-x: hidden; }
body {
  font-family: var(--font-primary, 'Inter'), system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }

/* Grain overlay */
.grain::before {
  content: "";
  position: fixed; inset: -50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.6'/></svg>");
  opacity: 0.08;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: overlay;
  animation: grainShift 6s steps(6) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-5%, 3%); }
  40% { transform: translate(4%, -2%); }
  60% { transform: translate(-3%, -4%); }
  80% { transform: translate(2%, 5%); }
  100% { transform: translate(0, 0); }
}

.scene { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: #000; }
.scene .layer { position: absolute; inset: -5%; will-change: transform; }
.scene .sky {
  display: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% 90%, oklch(0.35 0.12 25 / 0.55), transparent 60%),
    radial-gradient(ellipse 60% 40% at 20% 20%, oklch(0.4 0.15 285 / 0.4), transparent 60%),
    linear-gradient(180deg, oklch(0.15 0.04 260) 0%, oklch(0.18 0.06 280) 40%, oklch(0.22 0.08 30) 100%);
  animation: skyShift 18s ease-in-out infinite alternate;
}
.scene.skyline-mode .sky { display: block; }
@keyframes skyShift {
  0% { filter: hue-rotate(0) saturate(1); }
  100% { filter: hue-rotate(-15deg) saturate(1.15); }
}
.scene .skyline {
  bottom: 0; top: auto; height: 45%; inset-inline: -5%;
  background-repeat: no-repeat; background-position: bottom;
  background-size: 120% auto;
  animation: drift 25s ease-in-out infinite alternate;
}
@keyframes drift {
  0% { transform: translateX(-1%) scale(1.02); }
  100% { transform: translateX(1%) scale(1.05); }
}
.scene .media { display: none; }
.scene .media.active { display: block; }
.scene .media img, .scene .media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  animation: slowZoom 40s ease-in-out infinite alternate;
}
@keyframes slowZoom {
  0% { transform: scale(1.05); }
  100% { transform: scale(1.15); }
}
.scene .haze {
  background: radial-gradient(ellipse 80% 30% at 50% 80%, oklch(0.6 0.12 25 / 0.3), transparent 70%);
  mix-blend-mode: screen;
  animation: pulse 8s ease-in-out infinite alternate;
}
@keyframes pulse { 0% { opacity: 0.6; } 100% { opacity: 1; } }
.scene .dim {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.55) 60%, rgba(0, 0, 0, 0.75));
}
.scene .scan {
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.015) 0 2px, transparent 2px 4px);
  mix-blend-mode: overlay;
  pointer-events: none;
}

.stage {
  position: relative; z-index: 3;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start;
  padding: clamp(24px, 5vw, 64px) 20px 80px;
}
.stage-inner {
  width: 100%;
  display: flex; flex-direction: column;
  align-items: center;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}
.anim-in > * { animation: rise 0.7s cubic-bezier(.2, .7, .2, 1) both; }
body.no-anim .anim-in > * { animation: none !important; }

@keyframes liveDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(80, 220, 120, 0.6); }
  50% { box-shadow: 0 0 0 6px rgba(80, 220, 120, 0); }
}
.live-dot { animation: liveDot 2s ease-in-out infinite; }

.live-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  font-size: 12px; letter-spacing: 0.04em;
}
.live-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: oklch(0.75 0.18 145);
}
.live-badge .num { font-variant-numeric: tabular-nums; font-weight: 700; }
.live-row { margin: 4px 0 20px; }

.glyph {
  width: 40px; height: 40px; min-width: 40px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 18px;
  font-family: var(--font-heading, 'Space Grotesk'), sans-serif;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  overflow: hidden;
}
.glyph.rounded { border-radius: 10px; }
.glyph.pill, .glyph.circle { border-radius: 999px; }
.glyph.sharp { border-radius: 0; }
.glyph img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Cinematic */
.cin-btn {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px;
  align-items: center;
  padding: 10px 16px 10px 10px;
  background: rgba(255, 255, 255, 0.96);
  color: #0a0a0a;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  min-height: 60px;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.cin-btn:hover { transform: translateY(-2px); background: #fff; box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35); }
.cin-btn .label { font-weight: 600; font-size: 15px; }
.cin-btn .sub { font-size: 12px; opacity: 0.55; margin-top: 2px; }
.cin-btn .center { text-align: center; }
.cin-btn .arrow { opacity: 0.3; font-size: 18px; }

/* Neon */
.neon-btn {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px;
  align-items: center; padding: 12px 18px;
  background: rgba(10, 0, 20, 0.55);
  color: #fff;
  border-radius: 4px;
  transition: box-shadow .25s, transform .25s, background .25s;
  font-family: var(--font-heading, 'Space Grotesk'), sans-serif;
}
.neon-btn:hover { transform: translateX(4px); background: rgba(20, 0, 40, 0.7); }
.neon-btn .label { font-weight: 700; font-size: 15px; letter-spacing: 0.02em; }
.neon-btn .sub { font-size: 11px; opacity: 0.55; font-family: var(--font-mono, 'JetBrains Mono'), monospace; margin-top: 2px; letter-spacing: 0.08em; }
.neon-btn .arrow { font-family: var(--font-mono, 'JetBrains Mono'), monospace; font-size: 14px; }

/* Brutalist */
.bru-btn {
  display: grid; grid-template-columns: 48px 1fr auto auto; gap: 14px;
  align-items: center;
  padding: 14px 16px;
  background: transparent;
  color: #fff;
  font-family: var(--font-mono, 'JetBrains Mono'), monospace;
  transition: background .15s, color .15s;
}
.bru-btn + .bru-btn { border-top: 1px solid rgba(255, 255, 255, 0.15); }
.bru-btn:hover, .bru-btn:hover > * { background: #fff; color: #000 !important; }
.bru-btn .idx { font-size: 11px; color: rgba(255, 255, 255, 0.45); }
.bru-btn .label { font-size: 14px; font-weight: 700; letter-spacing: 0.02em; }
.bru-btn .sub { font-size: 11px; opacity: 0.55; margin-top: 2px; }
.bru-btn .open { font-size: 10px; letter-spacing: 0.15em; font-weight: 700; }
.bru-btn .arrow { font-size: 14px; }

/* Glass */
.glass-btn {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px;
  align-items: center;
  padding: 12px 18px 12px 12px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  color: #fff;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: all .25s cubic-bezier(.2, .7, .2, 1);
}
.glass-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}
.glass-btn .label { font-weight: 600; font-size: 15px; }
.glass-btn .sub { font-size: 12px; opacity: 0.6; margin-top: 1px; }
.glass-arrow {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 14px;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

/* Grid */
.grid-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.grid-btn {
  position: relative;
  display: flex; flex-direction: column;
  justify-content: space-between;
  min-height: 120px; padding: 14px;
  background: rgba(15, 15, 20, 0.6);
  backdrop-filter: blur(10px);
  color: #fff;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: all .25s cubic-bezier(.2, .7, .2, 1);
}
.grid-btn:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(25, 25, 32, 0.8);
}
.grid-btn .glow { position: absolute; inset: 0; opacity: 0.9; pointer-events: none; }
.grid-btn .top { position: relative; display: flex; justify-content: space-between; align-items: flex-start; }
.grid-btn .open-pill {
  font-family: var(--font-mono, 'JetBrains Mono'), monospace; font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
  padding: 3px 6px; border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.grid-btn .bot { position: relative; }
.grid-btn .label { font-weight: 700; font-size: 16px; font-family: var(--font-heading, 'Space Grotesk'), sans-serif; }
.grid-btn .sub { font-size: 11px; opacity: 0.55; margin-top: 4px; line-height: 1.4; }

.col { display: flex; flex-direction: column; width: 100%; }
.col.gap10 { gap: 10px; }
.col.gap12 { gap: 12px; }
.center-text { text-align: center; }
.section-title { text-align: center; width: 100%; margin-bottom: 14px; }
.section-title .t { font-weight: 700; font-size: 14px; letter-spacing: 0.02em; }
.section-title .s { font-size: 11px; opacity: 0.5; margin-top: 3px; }
.dots { display: flex; gap: 6px; justify-content: center; margin: 20px 0 14px; }
.dots span {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}
.neon-divider {
  font-family: var(--font-mono, 'JetBrains Mono'), monospace; font-size: 10px;
  color: rgba(255, 255, 255, 0.35); text-align: center;
  letter-spacing: 0.4em; margin: 26px 0 14px;
}
