/* ============================================================
   BadSnowball — official site
   Near-black canvas · aurora blobs · glassmorphism · bento grid
   ============================================================ */

:root {
  --bg: #06060b;
  --bg-soft: #0b0b14;
  --text: #eceef6;
  --muted: #a7adc2;
  --faint: #7c8299;
  --line: rgba(255, 255, 255, 0.10);
  --line-soft: rgba(255, 255, 255, 0.06);
  --violet: #8b6cff;
  --blue: #4f8bff;
  --pink: #ff5ca8;
  --glass: linear-gradient(160deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
  --radius: 28px;
  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1200px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* No horizontal wobble: clip (not hidden) so nothing can widen the page */
  overflow-x: hidden;
  overflow-x: clip;
}

/* Grainy noise overlay — kills the flat-gradient look */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9990;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid #9db8ff;
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 10000;
  background: var(--violet);
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* ============ Scroll progress (song seek bar) ============ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 1001;
  background: transparent;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--violet), var(--blue), var(--pink));
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 12px rgba(139, 108, 255, 0.7);
}

/* ============ Aurora backdrop ============ */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(76, 56, 160, 0.18), transparent),
    var(--bg);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
}
.blob-1 {
  width: 55vw; height: 55vw;
  min-width: 480px; min-height: 480px;
  top: -18vw; left: -12vw;
  background: radial-gradient(circle, rgba(124, 80, 255, 0.42), transparent 65%);
  animation: drift-a 34s ease-in-out infinite alternate;
}
.blob-2 {
  width: 46vw; height: 46vw;
  min-width: 420px; min-height: 420px;
  top: 8vh; right: -16vw;
  background: radial-gradient(circle, rgba(56, 110, 255, 0.34), transparent 65%);
  animation: drift-b 42s ease-in-out infinite alternate;
}
.blob-3 {
  width: 42vw; height: 42vw;
  min-width: 380px; min-height: 380px;
  bottom: -14vw; left: 18vw;
  background: radial-gradient(circle, rgba(255, 78, 168, 0.26), transparent 65%);
  animation: drift-c 38s ease-in-out infinite alternate;
}
.blob-4 {
  width: 30vw; height: 30vw;
  min-width: 300px; min-height: 300px;
  top: 52vh; left: 38vw;
  background: radial-gradient(circle, rgba(64, 200, 255, 0.16), transparent 65%);
  animation: drift-a 46s ease-in-out infinite alternate-reverse;
}
@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(9vw, 7vh, 0) scale(1.18); }
}
@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.1); }
  to   { transform: translate3d(-8vw, 12vh, 0) scale(0.92); }
}
@keyframes drift-c {
  from { transform: translate3d(0, 0, 0) scale(0.95); }
  to   { transform: translate3d(10vw, -9vh, 0) scale(1.15); }
}

/* ============ Glass primitive ============ */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* ============ Nav ============ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  background: rgba(8, 8, 15, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom-color: var(--line-soft);
}
.nav-inner {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.wordmark-glyph {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  font-size: 1.05rem;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--blue) 60%, var(--pink));
  box-shadow: 0 4px 18px rgba(124, 92, 255, 0.45);
}
.wordmark-text em {
  font-style: normal;
  background: linear-gradient(90deg, #b9a6ff, #8db5ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1.8rem);
  flex-wrap: wrap;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }
.nav-links .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  transition: border-color 0.2s, background 0.2s;
}
.nav-links .nav-cta:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
}
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  height: 44px;
  padding: 0 0.95rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  color: var(--text);
}
.nav-toggle-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.nav-toggle .burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 16px;
}
.nav-toggle .burger i {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-spring), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] .burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  padding-top: clamp(8rem, 16vh, 12rem);
  padding-bottom: clamp(3rem, 6vh, 5rem);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.6rem;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}
.eq i {
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--pink), var(--violet));
  animation: eq-bounce 0.9s ease-in-out infinite alternate;
}
.eq i:nth-child(1) { height: 40%; animation-delay: 0s; }
.eq i:nth-child(2) { height: 90%; animation-delay: 0.15s; }
.eq i:nth-child(3) { height: 60%; animation-delay: 0.3s; }
.eq i:nth-child(4) { height: 100%; animation-delay: 0.1s; }
.eq i:nth-child(5) { height: 50%; animation-delay: 0.25s; }
@keyframes eq-bounce {
  from { transform: scaleY(0.4); }
  to   { transform: scaleY(1); }
}

/* EQ as living logo mark (inside the gradient glyph tile) */
.eq-logo {
  height: 16px;
  gap: 2.5px;
}
.eq-logo i {
  width: 3.5px;
  background: #fff;
}
.eq-logo i:nth-child(1) { height: 55%; }
.eq-logo i:nth-child(2) { height: 100%; animation-delay: 0.2s; }
.eq-logo i:nth-child(3) { height: 70%; animation-delay: 0.35s; }
.eq-logo i:nth-child(4) { height: 88%; animation-delay: 0.1s; }

/* EQ as section divider */
.eq-divider {
  display: flex;
  justify-content: center;
  padding-bottom: clamp(1rem, 3vh, 2rem);
}
.eq-divider .eq-lg {
  height: 30px;
  gap: 4px;
  opacity: 0.85;
}
.eq-divider .eq-lg i {
  width: 4px;
}
.eq-divider .eq-lg i:nth-child(odd) { height: 60%; }
.eq-divider .eq-lg i:nth-child(even) { height: 95%; }
.eq-divider .eq-lg i:nth-child(3n) { height: 45%; }

/* Variable-weight pulse — the headline beats at ~114 BPM */
.bpm-pulse {
  animation: bpm-beat 0.525s ease-in-out infinite alternate;
}
.grad-text.bpm-pulse {
  animation:
    grad-pan 9s linear infinite,
    bpm-beat 0.525s ease-in-out infinite alternate;
}
@keyframes bpm-beat {
  from { font-variation-settings: "wght" 620; }
  to   { font-variation-settings: "wght" 800; }
}

.hero-title {
  margin: 0 0 1.8rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 11vw, 9rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.hero-line { display: block; }
.grad-text {
  font-style: normal;
  background: linear-gradient(92deg, #a78bfa 0%, #60a5fa 38%, #f472b6 75%, #a78bfa 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: grad-pan 9s linear infinite;
}
.grad-text-alt {
  font-style: normal;
  display: block;
  font-size: 0.62em;
  background: linear-gradient(92deg, #6ee7f9, #8b6cff, #ff5ca8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@keyframes grad-pan {
  from { background-position: 0% 50%; }
  to   { background-position: 220% 50%; }
}

.hero-sub {
  max-width: 56ch;
  margin: 0 0 2.4rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem);
}
.hero-sub strong { color: var(--text); font-weight: 600; }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s, background 0.25s, border-color 0.25s;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #4f8bff 55%, #c026d3);
  background-size: 160% 160%;
  box-shadow: 0 8px 30px rgba(124, 92, 255, 0.40), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(124, 92, 255, 0.55), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-ghost {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.1);
}

/* ============ Hero icon rail (game art above the fold) ============ */
.icon-rail {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 2.2rem;
  text-decoration: none;
}
.rail-icons {
  display: inline-flex;
  align-items: center;
}
.rail-icons img,
.rail-more {
  width: 44px;
  height: 44px;
  border-radius: 22%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  margin-left: -12px;
  transition: transform 0.3s var(--ease-spring);
}
.rail-icons img:first-child { margin-left: 0; }
.rail-more {
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
}
.icon-rail:hover .rail-icons img,
.icon-rail:hover .rail-more { transform: translateY(-4px); }
.rail-label {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.2s;
}
.icon-rail:hover .rail-label { color: #fff; }

/* ============ Stats ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: clamp(3.5rem, 7vh, 5.5rem) 0 0;
  padding: 0;
}
.stat {
  padding: 1.6rem 1.7rem;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: 22px;
}
.stat dt {
  order: 2;
  margin-top: 0.4rem;
  color: var(--muted); /* AA with comfortable margin over the glass bg */
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
}
.stat dd { margin: 0; }
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 1.6rem + 1.6vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 30%, #b6c4ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}

/* ============ Marquee — single flat ticker, no tilt, no overflow ============ */
.marquee-zone {
  position: relative;
  padding: clamp(2.5rem, 6vh, 4rem) 0;
}
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.025);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.marquee-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: marquee-scroll 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  padding: 0.85rem 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(236, 238, 246, 0.55);
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============ Sections ============ */
.section { padding: clamp(4rem, 10vh, 7.5rem) 0; }
.section-head {
  max-width: 760px;
  margin-bottom: clamp(2.5rem, 6vh, 4.5rem);
}
.kicker {
  margin: 0 0 0.9rem;
  color: var(--violet);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.section-title {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.section-sub {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.2rem);
  max-width: 58ch;
}

/* ============ Bento grid ============ */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-flow: dense;
  gap: 1.1rem;
}
.cell {
  position: relative;
  grid-column: span 4;
  overflow: hidden;
  transition: transform 0.35s var(--ease-spring), border-color 0.35s, box-shadow 0.35s;
}
.cell:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(139, 108, 255, 0.18);
}
.cell-wide { grid-column: span 5; }
.cell-hero {
  grid-column: span 7;
  grid-row: span 2;
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(124, 80, 255, 0.22), transparent 55%),
    radial-gradient(90% 80% at 20% 100%, rgba(255, 78, 168, 0.14), transparent 60%),
    var(--glass);
}
.cell-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  height: 100%;
  padding: clamp(1.4rem, 2.5vw, 2.2rem);
}
.cell-hero .cell-body { max-width: 62%; }
.cell-art {
  position: absolute;
  top: 6%;
  right: -7%;
  width: 44%;
  height: auto;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  transform: rotate(7deg);
  transition: transform 0.5s var(--ease-spring);
  -webkit-mask-image: linear-gradient(115deg, #000 65%, transparent 98%);
  mask-image: linear-gradient(115deg, #000 65%, transparent 98%);
}
.cell-hero:hover .cell-art { transform: rotate(4.5deg) translateY(-8px); }

.cell-id {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.game-icon {
  width: clamp(56px, 6vw, 72px);
  height: clamp(56px, 6vw, 72px);
  border-radius: 22%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}
.cell h3 {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.45rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.cell-hero h3 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.1rem); }
.tagline {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}
.cell-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1.1rem;
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-variant-numeric: tabular-nums;
}
.meta-item small { color: var(--faint); font-weight: 500; font-size: 0.82em; }
.star { color: #ffc83d; flex-shrink: 0; }

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.chip-flag {
  border-color: rgba(167, 139, 250, 0.5);
  background: rgba(124, 92, 255, 0.16);
  color: #cabdff;
}
.chip-hot {
  border-color: rgba(255, 92, 168, 0.5);
  background: rgba(255, 92, 168, 0.13);
  color: #ff9ec9;
}
.chip-new {
  border-color: rgba(110, 231, 183, 0.5);
  background: rgba(52, 211, 153, 0.12);
  color: #86efc5;
}

/* Funnel card — the 10th grid slot */
.cell-cta {
  grid-column: span 12;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 2rem;
  padding: clamp(1.5rem, 3vw, 2.4rem) clamp(1.4rem, 3vw, 2.6rem);
  text-decoration: none;
  border-style: dashed;
  background:
    radial-gradient(90% 140% at 8% 0%, rgba(124, 80, 255, 0.16), transparent 55%),
    radial-gradient(70% 120% at 95% 100%, rgba(255, 78, 168, 0.12), transparent 60%),
    var(--glass);
}
.cta-big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.45rem, 1rem + 2vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.cta-sub {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.cell-cta:hover .cta-sub { color: #fff; }

/* Google Play badge */
.gp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 1.15rem 0.55rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #000;
  text-decoration: none;
  transition: transform 0.25s var(--ease-spring), border-color 0.25s, box-shadow 0.25s;
}
.gp-badge:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
}
.gp-badge svg { flex-shrink: 0; }
.gp-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.gp-text small {
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: #c9cdd9;
  font-weight: 500;
}
.gp-text strong {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}
.gp-badge-lg { padding: 0.75rem 1.5rem 0.75rem 1.2rem; border-radius: 14px; }
.gp-badge-lg .gp-text strong { font-size: 1.2rem; }
.gp-badge-lg .gp-text small { font-size: 0.66rem; }

/* ============ Flagship spotlight ============ */
.flagship {
  position: relative;
}
.flagship::before {
  content: "";
  position: absolute;
  inset: 10% 0;
  background: radial-gradient(60% 70% at 70% 50%, rgba(124, 80, 255, 0.12), transparent 70%);
  pointer-events: none;
}
.flagship-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.flagship-tagline {
  margin: 0 0 1.2rem;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  font-weight: 600;
  color: #d9defc;
}
.flagship-desc {
  margin: 0 0 1.8rem;
  color: var(--muted);
}
.feature-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.feature-list li {
  position: relative;
  padding: 0.85rem 1.1rem 0.85rem 2.6rem;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 0.95rem;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 1.05rem;
  top: 50%;
  width: 9px; height: 9px;
  transform: translateY(-50%) rotate(45deg);
  border-radius: 2px;
  background: linear-gradient(135deg, var(--violet), var(--pink));
  box-shadow: 0 0 10px rgba(139, 108, 255, 0.8);
}
.flagship-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin-bottom: 1.8rem;
  font-weight: 600;
}

/* Phone stack */
.phone-stack {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: clamp(380px, 46vw, 620px);
}
.phone {
  margin: 0;
  width: clamp(140px, 16vw, 220px);
  padding: 9px;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(165deg, #15151f, #0a0a12);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.5s var(--ease-spring);
}
.phone img { border-radius: 26px; }
.phone-l { transform: rotate(-9deg) translateX(16%); z-index: 1; }
.phone-c { transform: translateY(-5%) scale(1.12); z-index: 3; box-shadow: 0 50px 110px rgba(0,0,0,0.75), 0 0 60px rgba(124, 92, 255, 0.25), inset 0 1px 0 rgba(255,255,255,0.1); }
.phone-r { transform: rotate(9deg) translateX(-16%); z-index: 2; }
.phone-stack:hover .phone-l { transform: rotate(-12deg) translateX(12%) translateY(-8px); }
.phone-stack:hover .phone-c { transform: translateY(-9%) scale(1.15); }
.phone-stack:hover .phone-r { transform: rotate(12deg) translateX(-12%) translateY(-8px); }

/* ============ About ============ */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.about-card {
  padding: clamp(1.6rem, 2.5vw, 2.3rem);
  transition: transform 0.35s var(--ease-spring), border-color 0.35s;
}
.about-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.22);
}
.about-num {
  display: block;
  margin-bottom: 1.4rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.2em;
  background: linear-gradient(90deg, var(--violet), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.about-card h3 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.about-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

/* ============ Contact ============ */
.contact-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 5vw, 4rem);
  background:
    radial-gradient(80% 120% at 50% -20%, rgba(124, 80, 255, 0.22), transparent 60%),
    radial-gradient(60% 100% at 85% 110%, rgba(255, 78, 168, 0.14), transparent 60%),
    var(--glass);
}
.contact-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
}
.contact-sub {
  max-width: 52ch;
  margin: 0 auto 2.2rem;
  color: var(--muted);
}
.contact-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ============ Footer ============ */
.site-footer {
  border-top: 1px solid var(--line-soft);
  background: rgba(5, 5, 10, 0.6);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  padding-top: clamp(3rem, 6vh, 4.5rem);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-brand { max-width: 320px; }
.footer-brand p { color: var(--faint); margin: 1rem 0 0; font-size: 0.95rem; }
.footer-links {
  display: flex;
  gap: clamp(2.5rem, 6vw, 5.5rem);
}
.footer-links h3 {
  margin: 0 0 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}
.footer-links a {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 2rem;
  padding-block: 1.4rem;
  border-top: 1px solid var(--line-soft);
}
.footer-legal p {
  margin: 0;
  color: var(--faint);
  font-size: 0.85rem;
}

/* ============ Reveal system (JS-gated — content visible without JS) ============ */
.js .will-reveal {
  opacity: 0;
  transform: translateY(26px);
}
.js .will-reveal.in-view {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.8s var(--ease-spring) calc(var(--i, 0) * 90ms),
    transform 0.8s var(--ease-spring) calc(var(--i, 0) * 90ms);
}

/* ============ Custom cursor ============ */
.cursor-dot, .cursor-glow {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 8px; height: 8px;
  background: #fff;
  transition: width 0.25s, height 0.25s, background 0.25s;
}
.cursor-dot.is-hover {
  width: 30px; height: 30px;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
}
.cursor-glow {
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(139, 108, 255, 0.35), rgba(255, 92, 168, 0.12) 45%, transparent 70%);
  filter: blur(22px);
  mix-blend-mode: screen;
}
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }

.hit-ring {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  width: 14px; height: 14px;
  border: 2px solid rgba(167, 139, 250, 0.95);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: hit-pop 0.55s var(--ease-spring) forwards;
}
@keyframes hit-pop {
  to {
    width: 84px; height: 84px;
    opacity: 0;
    border-width: 1px;
  }
}
/* Rhythm-game judgment text riding the hit ring */
.hit-ring::after {
  content: attr(data-judgment);
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translateX(-50%);
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  white-space: nowrap;
  color: #cabdff;
  text-shadow: 0 0 14px rgba(139, 108, 255, 0.9);
}

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .cell { grid-column: span 6; }
  .cell-wide { grid-column: span 6; }
  .cell.cell-hero { grid-column: span 12; grid-row: span 1; }
  .cell-hero .cell-body { max-width: 58%; }
}

@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .flagship-grid { grid-template-columns: minmax(0, 1fr); }
  .phone-stack { min-height: clamp(340px, 78vw, 520px); }
  .phone { width: clamp(104px, 24vw, 190px); }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .cell, .cell-wide { grid-column: span 12; }
  .cell-hero .cell-body { max-width: 100%; }
  .cell-art { position: static; width: 70%; margin: 0 auto; transform: rotate(0); order: 10; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%); mask-image: linear-gradient(180deg, #000 60%, transparent 100%); max-height: 320px; object-fit: cover; object-position: top; }

  /* Mobile nav (JS-enhanced; without JS links simply wrap) */
  .js .nav-toggle { display: flex; }
  .js .nav-links {
    position: fixed;
    top: 70px;
    left: 1rem; right: 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    padding: 1rem;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: rgba(10, 10, 18, 0.92);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.3s, transform 0.3s var(--ease-spring), visibility 0.3s;
  }
  .js .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .js .nav-links a { padding: 0.7rem 0.9rem; border-radius: 12px; }
  .js .nav-links a:hover { background: rgba(255, 255, 255, 0.06); }
  .js .nav-links .nav-cta { justify-content: center; margin-top: 0.4rem; }
}

@media (max-width: 480px) {
  .container { width: calc(100% - 2.2rem); }
  .stats { grid-template-columns: 1fr 1fr; gap: 0.7rem; }
  .stat { padding: 1.1rem 1.2rem; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .icon-rail { flex-wrap: wrap; gap: 0.7rem; margin-top: 1.8rem; }
  .rail-icons img, .rail-more { width: 38px; height: 38px; }
  .cell-cta { justify-content: flex-start; }
  .footer-inner { flex-direction: column; }
}

/* ============ Print: never hide reveal-gated content ============ */
@media print {
  .js .will-reveal { opacity: 1 !important; transform: none !important; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blob, .eq i, .grad-text, .marquee-track, .bpm-pulse { animation: none !important; }
  .js .will-reveal { opacity: 1; transform: none; transition: none; }
  .cell, .phone, .btn, .gp-badge, .about-card { transition: none; }
  .cursor-dot, .cursor-glow, .hit-ring { display: none !important; }
  .has-cursor, .has-cursor a, .has-cursor button { cursor: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
}
