/* ──────────────────────────────────────────────────────────────
   Kabra StuDiO — Late-night neon noir site
   Type: Space Grotesk + JetBrains Mono
   Palette: midnight base, hot magenta + electric blue duotone
   (matches the game's splash + app-icon brand colors)
   ────────────────────────────────────────────────────────────── */

:root {
  /* Surfaces — near-black with a hint of indigo */
  --bg:          oklch(11% 0.020 290);
  --bg-elev:     oklch(15% 0.025 290);
  --bg-card:     oklch(18% 0.028 290);
  --bg-card-2:   oklch(22% 0.030 290);

  /* Text */
  --fg:          oklch(97% 0.005 290);
  --fg-soft:     oklch(82% 0.015 290);
  --fg-dim:      oklch(62% 0.020 290);
  --fg-mute:     oklch(45% 0.022 290);

  /* Borders / rules */
  --line:        oklch(28% 0.025 290);
  --line-soft:   oklch(22% 0.022 290);

  /* Brand accents — magenta primary, blue secondary (matches splash) */
  --accent:      oklch(72% 0.215 350);          /* hot magenta */
  --accent-2:    oklch(72% 0.180 245);          /* electric blue */
  --accent-glow: oklch(72% 0.215 350 / .38);
  --accent-2-glow: oklch(72% 0.180 245 / .38);
  --accent-ink:  oklch(12% 0.030 290);

  /* Misc */
  --max:  1320px;
  --gut:  clamp(20px, 4vw, 56px);
  --radius: 14px;
  --radius-lg: 22px;

  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background: transparent;
  overflow-x: hidden;
  position: relative;
}
/* Fixed neon-room backdrop — stays static while the page scrolls over it */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("assets/web-background.png") center center / cover no-repeat;
  z-index: -3;
  pointer-events: none;
}
/* Dark veil + brand glows over the backdrop, also fixed */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 86% -5%, var(--accent-glow), transparent 60%),
    radial-gradient(ellipse 70% 50% at -10% 35%, var(--accent-2-glow), transparent 65%),
    linear-gradient(180deg, oklch(10% 0.02 290 / .30), oklch(9% 0.02 290 / .46));
  z-index: -2;
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.dim  { color: var(--fg-mute); }
.accent { color: var(--accent); }
em    { font-style: italic; }

/* ────────  NAV  ──────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px var(--gut);
  background: oklch(11% 0.020 290 / .72);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--fg);
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
  box-shadow: 0 0 0 1px oklch(28% 0.04 350 / .35), 0 0 24px var(--accent-glow);
}
.brand-mark img {
  width: 110%; height: 110%;
  object-fit: cover;
  object-position: center 30%;
}
.brand-wm { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .14em;
}
.brand-sub {
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  letter-spacing: .15em;
  color: var(--fg-mute);
  margin-top: 4px;
}
.nav-links {
  display: flex;
  gap: 26px;
  font-size: 13.5px;
  color: var(--fg-soft);
}
.nav-links a { transition: color .15s; }
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--fg);
  background: var(--bg-elev);
  transition: border-color .15s, transform .15s;
}
.nav-cta:hover { border-color: var(--accent); transform: translateY(-1px); }
.nav-cta .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.nav-cta .arr { color: var(--fg-mute); }

@media (max-width: 920px) {
  .nav-links { display: none; }
}

/* ────────  HERO  ──────── */
.hero {
  position: relative;
  min-height: calc(100vh - 65px);
  padding: clamp(40px, 7vw, 96px) var(--gut) clamp(40px, 6vw, 80px);
  display: grid;
  grid-template-columns: 1.15fr .9fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(100deg, oklch(10% 0.02 290 / .62) 0%, oklch(10% 0.02 290 / .18) 52%, transparent 100%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
  opacity: .3;
  z-index: -2;
}
.hero-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 78% 50%, var(--accent-glow), transparent 50%),
    radial-gradient(circle at 8% 90%, var(--accent-2-glow), transparent 55%);
  z-index: -1;
  pointer-events: none;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(20px, 3vw, 32px);
  flex-wrap: wrap;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--accent);
  background: oklch(72% 0.215 350 / .1);
}
.pill-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .35; }
}
.mono-dim {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--fg-mute);
  text-transform: uppercase;
}

.hero-title {
  font-weight: 700;
  font-size: clamp(56px, 9.5vw, 156px);
  line-height: .88;
  letter-spacing: -0.03em;
  margin: 0;
  text-transform: uppercase;
}
.hero-line { display: block; }
.line-1 {
  color: var(--fg);
  text-shadow:
    0 0 32px oklch(72% 0.215 350 / .35),
    0 0 60px oklch(72% 0.215 350 / .25);
}
.line-1 .ord {
  display: inline-block;
  vertical-align: top;
  font-size: 0.35em;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0;
  margin-left: .08em;
  margin-top: .35em;
  color: var(--accent);
  font-weight: 500;
}
.line-2 {
  color: var(--accent-2);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.04em;
  text-shadow:
    0 0 30px var(--accent-2-glow),
    0 0 60px var(--accent-2-glow);
}
.line-2 em { font-style: italic; }

.hero-lede {
  max-width: 50ch;
  margin: clamp(20px, 3vw, 32px) 0 clamp(28px, 3.5vw, 40px);
  font-size: clamp(15px, 1.15vw, 18px);
  color: var(--fg-soft);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: clamp(36px, 5vw, 60px);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 500;
  transition: transform .15s, border-color .15s, background .15s;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid var(--accent);
  box-shadow:
    0 0 0 1px var(--accent-glow),
    0 10px 40px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  background: var(--accent-ink);
  color: var(--accent);
  border-radius: 50%;
  font-size: 10px;
}
.btn-eyebrow {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .7;
  margin-bottom: 1px;
}
.btn-title { font-weight: 600; font-size: 14px; }

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost .arr { color: var(--fg-mute); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: clamp(28px, 5vw, 64px);
  border-top: 1px solid var(--line-soft);
  padding-top: clamp(20px, 3vw, 28px);
  max-width: 560px;
}
.stat-num {
  display: block;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.stat-lbl {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

/* Hero art — real app icon */
.hero-art {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  min-height: 540px;
}
.hero-icon-stage {
  position: relative;
  width: min(440px, 80%);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-14px) rotate(2deg); }
}
.hero-icon {
  width: 100%; height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 30px 60px oklch(72% 0.215 350 / .45));
}
.hero-icon-glow {
  position: absolute;
  inset: 5%;
  background: radial-gradient(circle, var(--accent-glow), transparent 60%);
  filter: blur(50px);
  z-index: 0;
}
.hero-art-tag {
  display: flex;
  gap: 16px;
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--fg-mute);
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { min-height: 360px; order: -1; }
  .hero-icon-stage { width: min(340px, 70%); }
}

/* ────────  TICKER  ──────── */
.ticker {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: oklch(14% 0.022 290 / .72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  padding: 14px 0;
}
.ticker-track {
  display: inline-flex;
  gap: 28px;
  white-space: nowrap;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  letter-spacing: .25em;
  color: var(--fg-dim);
  animation: ticker 40s linear infinite;
}
.ticker-track span:nth-child(4n+1) { color: var(--accent); }
.ticker-track span:nth-child(4n+3) { color: var(--accent-2); }
.ticker-track span { padding: 0 2px; }
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ────────  SECTIONS  ──────── */
section { padding: clamp(72px, 9vw, 140px) var(--gut); position: relative; }
.section-head { max-width: var(--max); margin: 0 auto clamp(36px, 5vw, 64px); }
.eyebrow {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--accent);
  margin-bottom: 18px;
  text-transform: uppercase;
}
.section-title {
  font-size: clamp(36px, 5.5vw, 76px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
  margin: 0 0 18px;
  text-wrap: balance;
}
.section-title .accent {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
  text-shadow: 0 0 30px var(--accent-glow);
}
.section-title .ord {
  font-size: 0.45em;
  vertical-align: top;
  margin-top: .25em;
  margin-left: .04em;
  font-family: "JetBrains Mono", monospace;
  color: var(--fg-mute);
  font-weight: 500;
  display: inline-block;
}
.section-sub {
  max-width: 56ch;
  color: var(--fg-soft);
  font-size: clamp(15px, 1.1vw, 17px);
  margin: 0;
  text-wrap: pretty;
}

/* ────────  STUDIO  ──────── */
.studio { border-top: 1px solid var(--line-soft); }
.studio-body {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.studio-copy { font-size: 16px; color: var(--fg-soft); }
.studio-copy .lead {
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.35;
  color: var(--fg);
  margin: 0 0 22px;
  text-wrap: pretty;
}
.studio-copy p { margin: 0 0 16px; max-width: 56ch; }

.studio-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 32px;
  margin: 36px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
}
.studio-facts > div { display: flex; flex-direction: column; gap: 4px; }
.studio-facts dt {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.studio-facts dd {
  margin: 0;
  font-size: 16px;
  color: var(--fg);
  font-weight: 500;
}

.studio-card {
  position: relative;
  background: #000;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  aspect-ratio: 1 / 1.05;
  overflow: hidden;
  box-shadow:
    0 0 0 1px oklch(28% 0.04 350 / .25),
    0 30px 80px -20px var(--accent-glow);
}
.studio-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(circle at 85% 15%, var(--accent-glow), transparent 50%),
    radial-gradient(circle at 15% 85%, var(--accent-2-glow), transparent 50%);
  opacity: .55;
  pointer-events: none;
  z-index: 0;
}
.studio-card > * { position: relative; z-index: 1; }
.studio-card-top, .studio-card-bottom {
  display: flex;
  justify-content: space-between;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: var(--fg-mute);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.studio-mark {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.studio-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 880px) {
  .studio-body { grid-template-columns: 1fr; }
  .studio-card { max-width: 420px; aspect-ratio: 1; }
}

/* ────────  GAME SHOWCASE  ──────── */
.game {
  border-top: 1px solid var(--line-soft);
  background: transparent;
}
.game-feature {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.game-art-frame {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  box-shadow:
    0 30px 80px -20px var(--accent-glow),
    0 0 0 1px oklch(28% 0.04 350 / .25);
  aspect-ratio: 9 / 16;
  max-height: 720px;
}
.game-art-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.game-art-frame figcaption {
  position: absolute;
  bottom: 14px; left: 14px;
  background: oklch(11% 0.020 290 / .8);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 9.5px;
  letter-spacing: .14em;
  backdrop-filter: blur(8px);
}
.game-copy h3 {
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 14px 0 18px;
  line-height: 1.05;
}
.game-copy p {
  font-size: clamp(15px, 1.1vw, 17px);
  color: var(--fg-soft);
  max-width: 52ch;
  margin: 0 0 14px;
  text-wrap: pretty;
}
.callout {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-left: 2px solid var(--accent);
  background: oklch(72% 0.215 350 / .08);
  border-radius: 0 8px 8px 0;
  margin: 18px 0;
  font-size: 14.5px;
  color: var(--fg);
}
.callout .mono { color: var(--accent); flex-shrink: 0; }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--accent);
  font-weight: 500;
  font-size: 14.5px;
  border-bottom: 1px solid transparent;
  transition: border-color .15s;
}
.link-arrow:hover { border-bottom-color: var(--accent); }

@media (max-width: 920px) {
  .game-feature { grid-template-columns: 1fr; }
  .game-art-frame { max-width: 460px; margin: 0 auto; }
}

/* ────────  FEATURES GRID  ──────── */
.features { border-top: 1px solid var(--line-soft); }
.feature-grid {
  max-width: var(--max);
  margin: 0 auto;
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feat {
  background: var(--bg-elev);
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
  transition: background .2s;
  position: relative;
}
.feat:hover { background: var(--bg-card); }
.feat:hover .feat-num { color: var(--accent); }
.feat-num { font-size: 13px; color: var(--fg-mute); transition: color .2s; }
.feat h4 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.feat p {
  margin: 0;
  color: var(--fg-soft);
  font-size: 14.5px;
  line-height: 1.5;
  text-wrap: pretty;
}

@media (max-width: 920px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* ────────  TABLE THEMES  ──────── */
.themes {
  border-top: 1px solid var(--line-soft);
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, var(--accent-2-glow), transparent 60%);
}
.themes-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
}
.themes-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  letter-spacing: .14em;
  text-align: right;
}
.themes-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
.theme-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .25s;
}
.theme-card:hover { transform: translateY(-4px); }
.theme-img {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.7);
  transition: box-shadow .25s, border-color .25s;
}
.theme-card:hover .theme-img {
  border-color: var(--accent);
  box-shadow:
    0 25px 60px -15px var(--accent-glow),
    0 0 0 1px var(--accent-glow);
}
.theme-img img { width: 100%; height: 100%; object-fit: cover; }
.theme-card figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.theme-name {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.theme-tag {
  color: var(--fg-mute);
  font-size: 9.5px;
  letter-spacing: .14em;
  text-align: right;
}

@media (max-width: 1080px) {
  .themes-grid { grid-template-columns: repeat(2, 1fr); }
  .themes-head { grid-template-columns: 1fr; }
  .themes-meta { align-items: flex-start; text-align: left; }
}
@media (max-width: 520px) {
  .themes-grid { grid-template-columns: 1fr; }
  .theme-img { aspect-ratio: 16 / 19; }
}

/* ────────  CARD SKINS  ──────── */
.skins { border-top: 1px solid var(--line-soft); }
.skins-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(14px, 1.8vw, 26px);
}
.skin-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  transition: transform .25s;
}
.skin-card:hover { transform: translateY(-6px); }
/* full, uncropped card art */
.skin-back {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 941 / 1672;
  object-fit: contain;
  border-radius: 14px;
  box-shadow:
    0 24px 55px -18px rgba(0,0,0,.75),
    0 0 0 1px oklch(28% 0.04 290 / .5);
  transition: box-shadow .25s, transform .25s;
}
.skin-card:hover .skin-back {
  box-shadow:
    0 30px 70px -16px var(--accent-glow),
    0 0 0 1px var(--accent-glow);
}
.skin-card figcaption {
  display: flex;
  align-items: baseline;
  gap: 10px;
  width: 100%;
  justify-content: center;
}
.skin-num { font-size: 11px; }
.skin-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

@media (max-width: 1000px) { .skins-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px)  { .skins-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 380px)  { .skins-grid { grid-template-columns: 1fr; max-width: 280px; } }

/* ────────  TRAINING  ──────── */
.training {
  border-top: 1px solid var(--line-soft);
  background: transparent;
}
.training-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}
.training-copy .eyebrow { margin-bottom: 18px; }
.training-copy .section-title { margin-bottom: 22px; }
.training-copy > p {
  font-size: clamp(15px, 1.1vw, 17px);
  color: var(--fg-soft);
  max-width: 52ch;
  margin: 0 0 24px;
  text-wrap: pretty;
}
.training-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
  color: var(--fg-soft);
}
.training-list li {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border-left: 1px solid var(--line);
  background: oklch(15% 0.025 290 / .5);
  border-radius: 0 8px 8px 0;
}
.training-art {
  margin: 0;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  box-shadow:
    0 30px 80px -20px var(--accent-2-glow),
    0 0 0 1px oklch(28% 0.04 245 / .25);
}
.training-art img { width: 100%; height: auto; display: block; }
.training-art figcaption {
  position: absolute;
  bottom: 14px; left: 14px;
  background: oklch(11% 0.020 290 / .85);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 9.5px;
  letter-spacing: .14em;
  backdrop-filter: blur(8px);
}

@media (max-width: 920px) {
  .training-grid { grid-template-columns: 1fr; }
}

/* ────────  CTA STRIP  ──────── */
.cta-strip {
  border-top: 1px solid var(--line-soft);
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, var(--accent-glow), transparent 70%);
}
.cta-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.cta-icon {
  width: clamp(80px, 10vw, 140px);
  height: auto;
  filter: drop-shadow(0 10px 30px var(--accent-glow));
}
.cta-text .section-title { font-size: clamp(28px, 4vw, 54px); }
.cta-text .section-sub { margin-top: 8px; }
.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  background: var(--fg);
  color: var(--bg);
  border-radius: 14px;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,.6);
}
.play-badge:hover { transform: translateY(-2px); box-shadow: 0 30px 80px -20px var(--accent-glow); }
.play-tri { color: var(--bg); }
.play-text { display: flex; flex-direction: column; line-height: 1; }
.play-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: .14em;
  opacity: .65;
  margin-bottom: 4px;
}
.play-title { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }

@media (max-width: 880px) {
  .cta-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .cta-icon { width: 120px; }
}

/* ────────  FOOTER  ──────── */
.footer {
  border-top: 1px solid var(--line-soft);
  padding: clamp(48px, 6vw, 80px) var(--gut) clamp(28px, 3vw, 40px);
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-soft);
}
.foot-brand { display: flex; flex-direction: column; gap: 14px; max-width: 32ch; }
.foot-brand p { margin: 0; color: var(--fg-mute); line-height: 1.5; }
.brand-foot .brand-mark { width: 34px; height: 34px; }
.foot-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
}
.foot-col a { color: var(--fg-soft); }
.foot-col a:hover { color: var(--accent); }
.foot-h { color: var(--fg-mute); }

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.social {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-elev);
  color: var(--fg-soft);
  font-size: 13px;
  transition: border-color .15s, color .15s, transform .15s;
}
.social svg { color: var(--fg-dim); transition: color .15s; }
.social:hover {
  border-color: var(--accent);
  color: var(--fg);
  transform: translateY(-1px);
}
.social:hover svg { color: var(--accent); }

.foot-bottom {
  max-width: var(--max);
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--fg-mute);
}
.foot-legal {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.foot-legal a {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--fg-soft);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  transition: color .15s, border-color .15s;
}
.foot-legal a:hover { color: var(--accent); border-color: var(--accent); }

@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.arr { font-family: "JetBrains Mono", monospace; }

/* ────────  TRAILER  ──────── */
.trailer {
  border-top: 1px solid var(--line-soft);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, var(--accent-2-glow), transparent 65%);
}
.trailer-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: end;
}
.yt-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--fg);
  background: var(--bg-elev);
  white-space: nowrap;
  transition: border-color .15s, transform .15s;
}
.yt-link:hover { border-color: var(--accent); transform: translateY(-1px); }
.yt-glyph { color: #ff0033; display: inline-flex; }
.trailer-frame {
  max-width: 1040px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  box-shadow:
    0 40px 100px -30px var(--accent-glow),
    0 0 0 1px oklch(28% 0.04 350 / .25);
  position: relative;
}
.trailer-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  object-fit: cover;
}
.trailer-frame figcaption {
  position: absolute;
  top: 14px; left: 14px;
  background: oklch(11% 0.020 290 / .82);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 9.5px;
  letter-spacing: .14em;
  backdrop-filter: blur(8px);
  pointer-events: none;
}

@media (max-width: 720px) {
  .trailer-head { grid-template-columns: 1fr; }
}

/* ────────  SOUNDTRACK  ──────── */
.music {
  border-top: 1px solid var(--line-soft);
  background: transparent;
}
.music-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 44px);
}
.music-head { max-width: 60ch; }
.music-head .section-title { margin-bottom: 20px; }
.music-head .section-sub { margin-bottom: 24px; }
.music-now {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: oklch(72% 0.215 350 / .07);
  color: var(--accent);
  font-size: 11px;
}
.music-now .mono { color: var(--accent); }

/* equalizer animation */
.eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 16px; }
.eq i {
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
  animation: eq 0.9s ease-in-out infinite;
}
.eq i:nth-child(1) { height: 40%; animation-delay: -0.2s; }
.eq i:nth-child(2) { height: 100%; animation-delay: -0.5s; }
.eq i:nth-child(3) { height: 60%; animation-delay: -0.1s; }
.eq i:nth-child(4) { height: 90%; animation-delay: -0.7s; }
.eq i:nth-child(5) { height: 50%; animation-delay: -0.35s; }
.eq-sm { height: 14px; }
@keyframes eq {
  0%, 100% { transform: scaleY(0.35); }
  50%      { transform: scaleY(1); }
}

.tracklist {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elev);
}
.track {
  display: grid;
  grid-template-columns: 28px 26px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line-soft);
  transition: background .18s;
  cursor: pointer;
}
.track:last-child { border-bottom: none; }
.track:hover { background: var(--bg-card); }
.track-no { color: var(--fg-mute); }
.track-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-mute);
  font-size: 11px;
}
.track:hover .track-play { color: var(--accent); }
.track-play .eq-sm { display: none; }
.track-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.track-title { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.track-genre { font-size: 10px; }
.track-time { font-size: 12px; }
.track-active { background: oklch(72% 0.215 350 / .08); }
.track-active .track-no,
.track-active .track-title { color: var(--accent); }
/* swap play glyph → equalizer on the active, playing row */
.player.is-playing .track-active .play-glyph { display: none; }
.player.is-playing .track-active .eq-sm { display: inline-flex; }

/* ───── PLAYER SHELL ───── */
.player {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-elev), oklch(13% 0.022 290));
  box-shadow: 0 34px 90px -36px var(--accent-glow), 0 0 0 1px oklch(28% 0.04 350 / .18);
}

/* visualizer */
.viz-wrap {
  position: relative;
  height: 230px;
  background:
    radial-gradient(ellipse 60% 90% at 50% 130%, oklch(24% 0.08 330 / .55), transparent 70%),
    radial-gradient(ellipse 50% 80% at 50% 130%, oklch(24% 0.07 250 / .4), transparent 75%),
    #06050b;
  border-bottom: 1px solid var(--line);
  transition: height .3s ease;
  overflow: hidden;
}
.viz { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.viz-idle {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-mute);
  font-size: 12px; letter-spacing: .35em;
  pointer-events: none;
  transition: opacity .3s;
}
.player.is-playing .viz-idle { opacity: 0; }
.viz-toggle { position: absolute; top: 12px; right: 12px; z-index: 3; }
.viz-wrap.viz-off { height: 60px; }
.viz-wrap.viz-off .viz,
.viz-wrap.viz-off .viz-idle { display: none; }
.viz-wrap.viz-off::before {
  content: "VISUALIZER OFF";
  position: absolute; inset: 0;
  display: flex; align-items: center; padding-left: 22px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: .22em;
  color: var(--fg-mute);
}

/* toggle switch */
.switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 13px 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: oklch(8% 0.015 290 / .6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  transition: border-color .15s;
}
.switch:hover { border-color: var(--accent); }
.switch-track {
  position: relative;
  width: 34px; height: 18px;
  border-radius: 999px;
  background: var(--accent);
  transition: background .2s;
}
.switch-thumb {
  position: absolute; top: 2px; left: 18px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: left .2s;
}
.switch[aria-checked="false"] .switch-track { background: var(--line); }
.switch[aria-checked="false"] .switch-thumb { left: 2px; }
.switch-label { color: var(--fg-soft); font-size: 10px; letter-spacing: .14em; }

/* transport bar */
.player-bar {
  display: grid;
  grid-template-columns: auto minmax(120px, 0.9fr) minmax(0, 1.5fr);
  gap: 22px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.pbtns { display: flex; align-items: center; gap: 8px; }
.pbtn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--fg);
  font-size: 13px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color .15s, color .15s, transform .12s;
}
.pbtn:hover { border-color: var(--accent); color: var(--accent); }
.pbtn:active { transform: scale(.94); }
.pbtn-main {
  width: 48px; height: 48px;
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  font-size: 15px;
  box-shadow: 0 0 26px var(--accent-glow);
}
.pbtn-main:hover { color: var(--accent-ink); filter: brightness(1.06); }
.np-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.np-title {
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.np-genre { font-size: 10px; }
.seek { display: flex; align-items: center; gap: 12px; min-width: 0; }
.seekbar {
  -webkit-appearance: none; appearance: none;
  flex: 1; height: 5px; border-radius: 999px;
  background: var(--line);
  accent-color: var(--accent);
  cursor: pointer;
}
.seekbar::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  cursor: pointer;
}
.seekbar::-moz-range-thumb {
  width: 13px; height: 13px; border: none; border-radius: 50%;
  background: var(--accent); cursor: pointer;
}
.time { font-size: 11px; min-width: 34px; text-align: center; }

/* tracklist inside the player — two columns */
.player .tracklist {
  border: none;
  border-radius: 0;
  background: transparent;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.player .track:nth-child(odd) { border-right: 1px solid var(--line-soft); }

.music-foot {
  max-width: var(--max);
  margin: clamp(28px, 4vw, 48px) auto 0;
  text-align: center;
  font-size: 10px;
  letter-spacing: .14em;
}

@media (max-width: 760px) {
  .player-bar {
    grid-template-columns: auto 1fr;
    gap: 14px 18px;
  }
  .seek { grid-column: 1 / -1; }
  .player .tracklist { grid-template-columns: 1fr; }
  .player .track:nth-child(odd) { border-right: none; }
  .viz-wrap { height: 180px; }
}

/* ────────  REWARDS / FAIR PLAY  ──────── */
.rewards {
  border-top: 1px solid var(--line-soft);
  background:
    radial-gradient(ellipse 70% 60% at 80% 0%, var(--accent-glow), transparent 60%);
}
.rewards-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: clamp(20px, 2.5vw, 32px);
  align-items: stretch;
}
.reward-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(22px, 2.5vw, 30px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  transition: border-color .2s, transform .2s;
}
.reward-card:hover { transform: translateY(-4px); border-color: var(--line); }
.reward-tag {
  align-self: flex-start;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 9.5px;
  letter-spacing: .16em;
  color: var(--fg-dim);
}
.reward-card h3 {
  margin: 0;
  font-size: clamp(20px, 1.8vw, 25px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.reward-card p {
  margin: 0;
  color: var(--fg-soft);
  font-size: 14.5px;
  line-height: 1.5;
  text-wrap: pretty;
}
.reward-art {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.reward-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.reward-body { display: flex; flex-direction: column; gap: 12px; }

.reward-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13.5px;
  color: var(--fg-soft);
  margin-top: auto;
}
.reward-points li { display: flex; gap: 10px; }

.reward-price {
  border-color: var(--accent);
  background:
    radial-gradient(circle at 80% 0%, oklch(72% 0.215 350 / .14), transparent 60%),
    var(--bg-elev);
  box-shadow: 0 30px 70px -30px var(--accent-glow);
}
.price-row { display: flex; align-items: baseline; gap: 8px; }
.price-now {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fg);
  line-height: 1;
}
.price-unit { color: var(--fg-mute); font-size: 12px; }
.price-compare {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  letter-spacing: .04em;
}
.price-old { color: var(--fg-mute); text-decoration: line-through; text-transform: none; }
.price-save { letter-spacing: .04em; }
.reward-btn { justify-content: center; margin-top: 4px; }
.reward-btn span { font-weight: 600; }

@media (max-width: 880px) { .rewards-grid { grid-template-columns: 1fr; max-width: 480px; } }

@media (prefers-reduced-motion: reduce) {
  .eq i, .hero-icon-stage, .pill-dot, .ticker-track { animation: none !important; }
}

/* ────────  MOBILE PASS  ──────── */
@media (max-width: 760px) {
  .hero-meta { gap: 10px; }
  .hero-title { font-size: clamp(46px, 13.5vw, 96px); }
  .hero-lede { font-size: 15px; }
  .trailer-frame { border-radius: 16px; }
}

@media (max-width: 560px) {
  :root { --gut: 18px; }

  /* tighten vertical rhythm */
  section { padding-top: 56px; padding-bottom: 56px; }
  .section-head { margin-bottom: 32px; }
  .section-title { font-size: clamp(30px, 9vw, 50px); }

  /* hero */
  .hero { min-height: auto; padding-top: 44px; padding-bottom: 52px; gap: 20px; }
  .hero-title { font-size: clamp(44px, 15vw, 92px); }
  .hero-art { min-height: 240px; }
  .hero-icon-stage { width: min(240px, 70%); }
  .hero-actions { gap: 10px; }
  .btn { padding: 13px 18px; }
  .hero-stats { gap: 16px 18px; padding-top: 20px; }
  .stat-num { font-size: 24px; margin-bottom: 5px; }
  .stat-lbl { font-size: 8.5px; letter-spacing: .08em; }

  /* studio */
  .studio-facts { gap: 14px 20px; }

  /* soundtrack tracklist */
  .track { grid-template-columns: 22px 18px 1fr auto; gap: 11px; padding: 13px 16px; }
  .track-title { font-size: 15px; }

  /* trailer / video controls breathing room */
  .trailer-head { gap: 18px; }
  .yt-link { align-self: flex-start; }

  /* rewards */
  .reward-card { padding: 22px; }

  /* footer */
  .foot-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
  .foot-legal { gap: 14px; }
  .socials { gap: 8px; }
}

@media (max-width: 380px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .nav .brand-sub { display: none; }
}
