:root {
  --bg: #07040d;
  --ink: #f4f1fa;
  --muted: #b9b2c9;
  --hot: #ff2e9a;
  --cyan: #28ecff;
  --line: rgba(255, 255, 255, 0.14);
  --nav-h: 64px;
  --player-h: 72px;
  --gutter: clamp(16px, 4vw, 56px);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: "Archivo Black", Impact, "Arial Black", sans-serif;
  --marker: "Permanent Marker", "Archivo Black", Impact, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); }
body { font-family: var(--mono); overflow-x: hidden; }
a { color: inherit; }

/* nav */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter);
  background: linear-gradient(to bottom, rgba(7, 4, 13, 0.85), rgba(7, 4, 13, 0));
}
.logo { font-family: var(--marker); font-size: 28px; text-decoration: none; letter-spacing: 1px; text-shadow: 0 0 12px rgba(255, 46, 154, 0.7); }
.nav nav { display: flex; gap: clamp(14px, 2.4vw, 38px); }
.nav nav a { text-decoration: none; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav nav a[aria-current], .nav nav a:hover { color: var(--ink); border-color: var(--hot); }

/* hero */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; isolation: isolate; }
.stage { position: absolute; inset: 0; z-index: 0; }
.chadbot-canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; }
.hero::after { /* readability scrim behind copy */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(7, 4, 13, 0.82) 0%, rgba(7, 4, 13, 0.45) 34%, rgba(7, 4, 13, 0) 56%),
              linear-gradient(to top, rgba(7, 4, 13, 0.9), rgba(7, 4, 13, 0) 22%);
}
.copy {
  position: absolute; z-index: 2; left: var(--gutter); top: calc(var(--nav-h) + 6vh);
  max-width: min(560px, 46vw); pointer-events: none;
}
.copy a, .copy button { pointer-events: auto; }
.eyebrow { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.eyebrow span { color: var(--hot); }
.title {
  font-family: var(--marker); font-weight: 400; margin: 0; line-height: 0.95;
  font-size: clamp(64px, 10vw, 150px); transform: rotate(-4deg); transform-origin: left;
  text-shadow: 0 0 18px rgba(255, 46, 154, 0.85), 0 0 2px #fff;
}
.tagline { font-family: var(--display); font-size: clamp(30px, 4.2vw, 60px); line-height: 1.0; margin: 18px 0 14px; text-transform: uppercase; }
.tagline span { display: block; }
.tagline .hot { color: var(--hot); text-shadow: 0 0 20px rgba(255, 46, 154, 0.6); }
.sub { color: #e6e1ef; font-size: 15px; line-height: 1.5; margin: 0 0 22px; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 22px;
  font: 600 13px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  border-radius: 2px; cursor: pointer; border: 1px solid transparent; color: var(--ink); background: none;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn-hot { background: var(--hot); box-shadow: 0 0 24px rgba(255, 46, 154, 0.45); }
.btn-hot:hover { transform: translateY(-1px); box-shadow: 0 0 34px rgba(255, 46, 154, 0.7); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.55); }
.btn-ghost:hover { border-color: var(--hot); }
.btn-sm { min-height: 38px; font-size: 11px; }
.join { border-color: var(--hot); }
.btn:focus-visible, .moves button:focus-visible, .icon:focus-visible, .nav a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.platforms { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 26px 0 0; }
.platforms a { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.platforms a:hover { color: var(--cyan); }

/* animation chips */
.moves {
  position: absolute; z-index: 3; right: var(--gutter); bottom: calc(var(--player-h) + 22px);
  display: flex; gap: 6px; padding: 6px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(7, 4, 13, 0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.moves[hidden] { display: none; }
.moves button {
  font: 600 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  background: none; border: 0; padding: 9px 14px; border-radius: 999px; cursor: pointer; min-height: 34px;
}
.moves button[aria-pressed="true"] { color: #fff; background: rgba(255, 46, 154, 0.22); box-shadow: inset 0 0 0 1px var(--hot); }

/* loader / fallback */
.loader { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; z-index: 3; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); transition: opacity .5s ease; }
.loader.done { opacity: 0; pointer-events: none; }
.loader-ring { width: 46px; height: 46px; border-radius: 50%; border: 3px solid rgba(40, 236, 255, .2); border-top-color: var(--cyan); animation: spin 0.9s linear infinite; }
.loader-bar { width: 180px; height: 2px; background: rgba(255,255,255,.12); }
.loader-bar i { display: block; height: 100%; width: 0; background: var(--hot); transition: width .2s; }
@keyframes spin { to { transform: rotate(360deg); } }
.fallback { position: absolute; inset: 0; display: grid; place-items: center end; padding-right: 8vw; z-index: 1; }
.fallback[hidden] { display: none; }
.fallback img { height: 78%; width: auto; object-fit: contain; mix-blend-mode: lighten; }
.fallback p { position: absolute; right: var(--gutter); bottom: calc(var(--player-h) + 20px); font-size: 11px; color: var(--muted); }

/* player */
.player {
  position: fixed; inset: auto 0 0 0; height: var(--player-h); z-index: 20;
  display: flex; align-items: center; gap: 16px; padding: 0 var(--gutter);
  background: rgba(10, 7, 18, 0.88); border-top: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.cover { width: 48px; height: 48px; object-fit: cover; border-radius: 3px; }
.meta { display: grid; line-height: 1.25; min-width: 0; }
.meta small { color: var(--hot); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; }
.meta strong { font-family: var(--display); font-weight: 400; font-size: 16px; white-space: nowrap; }
.meta span { font-size: 10px; letter-spacing: .14em; color: var(--muted); }
.icon { background: none; border: 0; color: var(--ink); font-size: 18px; cursor: pointer; min-width: 40px; min-height: 40px; }
.like[aria-pressed="true"] { color: var(--hot); }
.play { border: 2px solid var(--hot); border-radius: 50%; width: 44px; height: 44px; font-size: 14px; box-shadow: 0 0 16px rgba(255,46,154,.4); }
.time { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.wave { flex: 1; height: 36px; min-width: 60px; }
.pick { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); cursor: pointer; border: 1px dashed var(--line); padding: 8px 10px; border-radius: 3px; white-space: nowrap; }
.pick:hover { color: var(--cyan); }
.pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pick:focus-within { outline: 2px solid var(--cyan); }

/* responsive */
@media (max-width: 1100px) { .nav nav { display: none; } }
@media (max-width: 820px) {
  :root { --nav-h: 56px; --player-h: 64px; }
  .hero { min-height: 680px; }
  .hero::after { background: linear-gradient(to top, rgba(7,4,13,.96) 0%, rgba(7,4,13,.75) 38%, rgba(7,4,13,0) 58%); }
  .copy { top: auto; bottom: calc(var(--player-h) + 18px); max-width: none; right: var(--gutter); }
  .title { font-size: clamp(54px, 16vw, 84px); }
  .tagline { font-size: clamp(22px, 7vw, 32px); margin: 8px 0; }
  .tagline { display: flex; flex-wrap: wrap; gap: 0 .3em; }
  .sub { font-size: 13px; margin-bottom: 14px; }
  .btn { min-height: 44px; padding: 0 16px; font-size: 11px; }
  .platforms { display: none; }
  .eyebrow { font-size: 10px; letter-spacing: .14em; }
  .moves { top: calc(var(--nav-h) + 8px); bottom: auto; right: 50%; transform: translateX(50%); }
  .moves button { padding: 8px 10px; }
  .join { display: none; }
  .player { gap: 10px; }
  .player .like, .player .time, .player .pick { display: none; }
  .fallback { place-items: start center; padding: calc(var(--nav-h) + 50px) 0 0; }
  .fallback img { height: 52%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
