/* ═══════════════════════════════════════════════════════════════
   Grudgebox Studio — Site Stylesheet
   ═══════════════════════════════════════════════════════════════ */

/* ─── Design Tokens ─── */
:root {
  --bg: #04070d;
  --bg-deep: #02040a;
  --surface: #0a1019;
  --surface-2: #0f1622;
  --surface-3: #131d2b;
  --text: #f8fafc;
  --muted: #9dafc5;
  --gold: #f5b82e;
  --gold-soft: rgba(245, 184, 46, 0.18);
  --gold-glow: rgba(245, 184, 46, 0.26);
  --green: #16a34a;
  --green-soft: rgba(22, 163, 74, 0.18);
  --green-glow: rgba(22, 163, 74, 0.26);
  --sky: #38bdf8;
  --line: rgba(245, 184, 46, 0.14);
  --line-strong: rgba(245, 184, 46, 0.24);
  --line-neutral: rgba(255, 255, 255, 0.08);
  --line-neutral-strong: rgba(255, 255, 255, 0.16);
  --shadow-card: 0 24px 48px rgba(0, 0, 0, 0.22);
  --shadow-hero: 0 42px 96px rgba(0, 0, 0, 0.38);
  --shell-max: 1180px;
  --measure: 64ch;
  --radius-card: 24px;
  --radius-soft: 18px;
  --space-section: clamp(72px, 9vw, 110px);
  --space-stack: clamp(18px, 2.5vw, 28px);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg-deep);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at top center, rgba(245, 184, 46, 0.08), transparent 26rem),
    linear-gradient(180deg, #090d14 0%, var(--bg) 28%, var(--bg-deep) 100%);
}

body.site-home {
  background:
    radial-gradient(circle at 18% 10%, rgba(245, 184, 46, 0.10), transparent 20rem),
    radial-gradient(circle at 82% 12%, rgba(22, 163, 74, 0.08), transparent 22rem),
    linear-gradient(180deg, rgba(40, 35, 16, 0.94) 0%, rgba(20, 18, 9, 0.95) 15%, #090d14 38%, var(--bg-deep) 100%);
}

a {
  color: var(--gold);
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
h4,
p,
figure {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Sora", "Inter", sans-serif;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(3.1rem, 6.1vw, 5.9rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  font-weight: 900;
  background: linear-gradient(180deg, #ffffff 0%, #d9e4f5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2.35rem, 4.4vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

h3,
h4 {
  margin-bottom: 12px;
  line-height: 1.16;
}

p {
  margin-bottom: 0;
}

/* ─── Shell ─── */
.shell {
  width: min(var(--shell-max), calc(100% - 32px));
  margin: 0 auto;
}

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line-neutral);
  background: rgba(5, 8, 14, 0.86);
  backdrop-filter: blur(18px);
}

.nav {
  position: relative;
  width: min(var(--shell-max), calc(100% - 32px));
  margin: 0 auto;
  min-height: 84px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
  font-family: "Sora", sans-serif;
  font-weight: 900;
  font-size: 1.22rem;
  letter-spacing: -0.03em;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex: 0 0 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 22px rgba(255, 255, 255, 0.06);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-left: auto;
  border: 1px solid var(--line-neutral);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: var(--line-neutral-strong);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.nav-toggle-lines {
  display: grid;
  gap: 5px;
}

.nav-toggle-lines span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.nav-panel {
  display: flex;
  justify-content: flex-end;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

/* ─── Typography Utilities ─── */
.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-family: "Sora", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow--green {
  color: var(--green);
}

.lead {
  max-width: var(--measure);
  color: var(--muted);
  font-size: clamp(1.08rem, 1.65vw, 1.28rem);
  line-height: 1.62;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ─── Buttons ─── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-family: "Sora", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.button.primary {
  background: var(--gold);
  color: #0a0802;
  box-shadow: 0 18px 34px rgba(245, 184, 46, 0.18);
}

.button.primary:hover,
.button.primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 24px 38px rgba(245, 184, 46, 0.26);
}

.ci-button-primary {
  background: var(--green) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 18px 34px rgba(22, 163, 74, 0.22) !important;
}

.ci-button-primary:hover,
.ci-button-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 24px 38px rgba(22, 163, 74, 0.32) !important;
}

.button:not(.primary):not(.ci-button-primary) {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.button:not(.primary):not(.ci-button-primary):hover,
.button:not(.primary):not(.ci-button-primary):focus-visible {
  border-color: var(--line-neutral-strong);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

/* ─── Hero (Studio) ─── */
.hero {
  min-height: clamp(560px, 72vh, 760px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  padding: 52px 0 72px;
}

.hero-copy {
  display: grid;
  gap: 20px;
  max-width: 620px;
}

.hero-visual {
  position: relative;
  padding: 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--line-neutral);
  box-shadow: var(--shadow-hero);
  overflow: hidden;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-logo-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-bottom: 16px;
}

.hero-logo-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-radius: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-logo-item:hover {
  transform: translateY(-4px);
}

.hero-logo-ci {
  background: linear-gradient(135deg, rgba(8, 17, 31, 0.9), rgba(22, 163, 74, 0.12));
  border: 1px solid rgba(22, 163, 74, 0.22);
}

.hero-logo-ci:hover {
  box-shadow: 0 16px 40px rgba(22, 163, 74, 0.2);
}

.hero-logo-cr {
  background: linear-gradient(135deg, rgba(8, 17, 31, 0.9), rgba(245, 184, 46, 0.12));
  border: 1px solid rgba(245, 184, 46, 0.22);
}

.hero-logo-cr:hover {
  box-shadow: 0 16px 40px rgba(245, 184, 46, 0.2);
}

.hero-logo-item img {
  width: 100%;
  max-width: 180px;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
}

.hero-logo-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-family: "Sora", sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-caption {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-neutral);
}

.stat {
  padding: 18px 12px;
  background: rgba(6, 10, 16, 0.98);
  text-align: center;
}

.stat strong {
  display: block;
  color: var(--text);
  font-family: "Sora", sans-serif;
  font-size: 1.02rem;
  margin-bottom: 6px;
}

.stat span {
  color: #a9bbd0;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ─── Band (Section Wrapper) ─── */
.band {
  padding: var(--space-section) 0;
  border-top: 1px solid var(--line-neutral);
}

.section-head {
  max-width: 760px;
  margin: 0 auto clamp(34px, 5vw, 58px);
  text-align: center;
}

.section-head p {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.68;
}

/* ─── Game Cards (Overview Section) ─── */
.game-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 42px 32px 36px;
  border-radius: var(--radius-card);
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-card);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.game-card:hover {
  transform: translateY(-6px);
}

.game-card--ci {
  background: linear-gradient(180deg, rgba(22, 163, 74, 0.08), rgba(10, 16, 25, 0.96));
  border: 1px solid rgba(22, 163, 74, 0.2);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
}

.game-card--ci:hover {
  border-color: rgba(22, 163, 74, 0.4);
  box-shadow: 0 32px 64px rgba(22, 163, 74, 0.12), 0 24px 48px rgba(0, 0, 0, 0.22);
}

.game-card--cr {
  background: linear-gradient(180deg, rgba(245, 184, 46, 0.06), rgba(10, 16, 25, 0.96));
  border: 1px solid rgba(245, 184, 46, 0.16);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
}

.game-card--cr:hover {
  border-color: rgba(245, 184, 46, 0.35);
  box-shadow: 0 32px 64px rgba(245, 184, 46, 0.1), 0 24px 48px rgba(0, 0, 0, 0.22);
}

.game-card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-family: "Sora", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.game-card-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 18px;
  margin-bottom: 22px;
  transition: transform 0.3s ease;
}

.game-card:hover .game-card-logo {
  transform: scale(1.06);
}

.game-card h3 {
  font-family: "Sora", sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.game-card p {
  color: var(--muted);
  line-height: 1.68;
  max-width: 42ch;
  margin-bottom: 18px;
}

.game-card-platforms {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.game-card-cta {
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  transition: letter-spacing 0.2s ease;
}

.game-card--ci .game-card-cta {
  color: var(--green);
}

.game-card--cr .game-card-cta {
  color: var(--gold);
}

.game-card:hover .game-card-cta {
  letter-spacing: 0.1em;
}

/* ─── Chips ─── */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-neutral);
  color: #dbeafe;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

/* ─── Cricket Idle Section ─── */
.ci-section {
  border-top: 1px solid rgba(22, 163, 74, 0.2);
}

.ci-hero-band {
  padding: var(--space-section) 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(22, 163, 74, 0.1), transparent 40rem),
    radial-gradient(ellipse at 80% 60%, rgba(22, 163, 74, 0.06), transparent 30rem);
}

.ci-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
}

.ci-hero-copy {
  display: grid;
  gap: 20px;
}

.ci-hero-art {
  position: relative;
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(22, 163, 74, 0.2);
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.35), 0 0 80px rgba(22, 163, 74, 0.08);
}

.ci-hero-art img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.ci-shot-caption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(4, 8, 14, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.ci-shot-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: ci-live-pulse 2s ease-out infinite;
}

@keyframes ci-live-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(22, 163, 74, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
  }
}

/* ─── CI Screenshot Gallery ─── */
.ci-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.ci-gallery-item {
  margin: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(14, 22, 33, 0.96), rgba(10, 16, 25, 0.96));
  border: 1px solid rgba(22, 163, 74, 0.16);
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.ci-gallery-item:hover {
  transform: translateY(-4px);
  border-color: rgba(22, 163, 74, 0.3);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.26), 0 0 40px rgba(22, 163, 74, 0.06);
}

.ci-gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ci-gallery-item figcaption {
  padding: 18px 20px 22px;
}

.ci-gallery-item h3 {
  font-family: "Sora", "Inter", sans-serif;
  font-size: 1.16rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.ci-gallery-item p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.62;
}

/* CI Feature Cards */
.ci-feature {
  border-color: rgba(22, 163, 74, 0.16) !important;
  background: linear-gradient(180deg, rgba(22, 163, 74, 0.04), rgba(10, 16, 25, 0.96)) !important;
}

.ci-feature:hover {
  border-color: rgba(22, 163, 74, 0.3) !important;
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.26), 0 0 40px rgba(22, 163, 74, 0.06) !important;
}

.ci-feature .kicker {
  color: var(--green) !important;
}

/* ─── Trailer Section ─── */
.ci-trailer-band {
  border-top-color: rgba(22, 163, 74, 0.12);
}

.trailer-container {
  max-width: 860px;
  margin: 0 auto;
}

.trailer-placeholder {
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-radius: var(--radius-card);
  border: 2px dashed rgba(22, 163, 74, 0.26);
  background:
    radial-gradient(ellipse at center, rgba(22, 163, 74, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(10, 16, 25, 0.98), rgba(6, 10, 16, 0.98));
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.trailer-placeholder:hover {
  border-color: rgba(22, 163, 74, 0.45);
  box-shadow: 0 0 60px rgba(22, 163, 74, 0.1);
}

.trailer-play-icon {
  width: 80px;
  height: 80px;
  color: var(--green);
  opacity: 0.6;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.trailer-placeholder:hover .trailer-play-icon {
  opacity: 1;
  transform: scale(1.08);
}

.trailer-label {
  font-family: "Sora", sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.trailer-sub {
  color: var(--muted);
  font-size: 0.94rem;
}

/* ─── CI Platforms Strip ─── */
.ci-platforms-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 34px;
  border-radius: 28px;
  border: 1px solid rgba(22, 163, 74, 0.2);
  background:
    radial-gradient(circle at top right, rgba(22, 163, 74, 0.08), transparent 16rem),
    linear-gradient(180deg, rgba(10, 16, 25, 0.98), rgba(7, 10, 16, 0.98));
  box-shadow: var(--shadow-card);
}

.ci-platforms-strip p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.72;
}

.platform-badges {
  display: flex;
  gap: 16px;
}

.platform-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 22px;
  border-radius: 18px;
  border: 1px solid var(--line-neutral);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.platform-badge:hover {
  border-color: rgba(22, 163, 74, 0.3);
  color: var(--text);
  background: rgba(22, 163, 74, 0.06);
  transform: translateY(-2px);
}

.platform-badge svg {
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.platform-badge:hover svg {
  opacity: 1;
}

/* ─── Cricket Rivals Section ─── */
.cr-section {
  border-top: 1px solid rgba(245, 184, 46, 0.12);
}

.cr-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
}

.cr-hero-copy {
  display: grid;
  gap: 20px;
}

.cr-hero-art {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(245, 184, 46, 0.18);
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.35), 0 0 60px rgba(245, 184, 46, 0.06);
}

.cr-hero-art img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

/* ─── Feature Grids ─── */
.feature-grid,
.mechanics-grid,
.gallery-grid,
.faq-grid {
  display: grid;
  gap: 24px;
}

.feature-grid,
.mechanics-grid,
.gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.feature,
.mechanic-card,
.faq-item {
  height: 100%;
  padding: 32px;
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, rgba(14, 22, 33, 0.96), rgba(10, 16, 25, 0.96));
  border: 1px solid var(--line-neutral);
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.feature:hover,
.mechanic-card:hover,
.faq-item:hover,
.gallery-item:hover {
  transform: translateY(-4px);
  border-color: var(--line-neutral-strong);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.26);
}

.feature .kicker,
.mechanic-card .kicker {
  margin-bottom: 16px;
  color: var(--gold);
  font-family: "Sora", sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.feature h3,
.mechanic-card h4,
.faq-item h3 {
  font-size: clamp(1.42rem, 2vw, 1.9rem);
}

.feature p,
.mechanic-card p,
.faq-item p,
.gallery-item figcaption,
.launch-strip p {
  color: var(--muted);
  line-height: 1.72;
}

.mechanic-card h4 {
  font-size: 1.42rem;
}

/* ─── Gallery ─── */
.gallery-item {
  margin: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(14, 22, 33, 0.96), rgba(10, 16, 25, 0.96));
  border: 1px solid var(--line-neutral);
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.gallery-item figcaption {
  padding: 18px 20px 22px;
  font-size: 1.02rem;
  font-weight: 700;
}

/* ─── Launch / Newsletter Strip ─── */
.launch-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  align-items: center;
  gap: 28px;
  padding: 34px;
  border-radius: 28px;
  border: 1px solid var(--line-neutral-strong);
  background:
    radial-gradient(circle at top right, rgba(245, 184, 46, 0.06), transparent 16rem),
    radial-gradient(circle at bottom left, rgba(22, 163, 74, 0.06), transparent 16rem),
    linear-gradient(180deg, rgba(10, 16, 25, 0.98), rgba(7, 10, 16, 0.98));
  box-shadow: var(--shadow-card);
}

.signup-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.signup-form input {
  width: 100%;
  min-width: 0;
  min-height: 56px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid var(--line-neutral);
  background: rgba(2, 4, 10, 0.92);
  color: var(--text);
  font: inherit;
}

.signup-form input:focus {
  outline: none;
  border-color: var(--line-neutral-strong);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

/* ─── Legal pages ─── */
.legal-shell {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 84px;
}

.legal-hero {
  padding: 16px 0 24px;
  border-bottom: 1px solid var(--line-neutral);
}

.legal-hero h1 {
  margin-bottom: 16px;
  font-size: clamp(2.7rem, 5.2vw, 4.6rem);
  line-height: 0.98;
}

.legal-hero p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.7;
}

.meta {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.88rem;
}

.content {
  padding-top: 32px;
}

.content h2 {
  margin-top: 34px;
  margin-bottom: 12px;
  font-size: clamp(1.56rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
}

.content p,
.content li {
  color: var(--muted);
  line-height: 1.8;
}

.content ul,
.content ol {
  padding-left: 22px;
}

.callout {
  margin: 28px 0;
  padding: 22px 24px;
  border-radius: var(--radius-soft);
  border: 1px solid rgba(245, 184, 46, 0.24);
  background: linear-gradient(180deg, rgba(245, 184, 46, 0.08), rgba(255, 255, 255, 0.03));
  color: var(--text);
  line-height: 1.72;
}

.small {
  margin-top: 28px;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ─── Footer ─── */
.site-footer {
  padding: 42px 0 48px;
  border-top: 1px solid var(--line-neutral);
  background: rgba(4, 7, 13, 0.9);
}

.footer-grid {
  display: grid;
  gap: 16px;
  justify-items: center;
  text-align: center;
}

.footer-signoff {
  color: var(--text);
  font-family: "Sora", sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 18px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
}

/* ═══════════════════════════════════════════════════════════════
   Scroll-triggered Fade-in Animations
   Only applied when JS arms them (html.anim-ready), so content can
   never be left invisible if JS fails or the observer never fires.
   ═══════════════════════════════════════════════════════════════ */
html.anim-ready .fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

html.anim-ready .fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html.anim-ready .fade-in,
  html.anim-ready .fade-in.visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ci-shot-dot {
    animation: none;
  }
}

/* ═══════════════════════════════════════════════════════════════
   Responsive Breakpoints
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1160px) {
  .hero {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.84fr);
    padding: 42px 0 62px;
  }

  .ci-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.84fr);
  }

  .cr-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.84fr);
  }

  .gallery-grid,
  .ci-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .launch-strip,
  .ci-platforms-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .nav {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-panel[data-open="true"] {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 14px;
    border-radius: 22px;
    border: 1px solid var(--line-neutral);
    background: rgba(8, 12, 19, 0.98);
    box-shadow: var(--shadow-hero);
  }

  .nav-links a {
    justify-content: flex-start;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 12px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 34px 0 54px;
  }

  .hero-copy {
    max-width: none;
  }

  .ci-hero-grid,
  .cr-hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .game-cards {
    grid-template-columns: 1fr;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .platform-badges {
    justify-content: center;
  }
}

@media (max-width: 820px) {
  .feature-grid,
  .mechanics-grid,
  .gallery-grid,
  .ci-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .shell,
  .nav,
  .legal-shell {
    width: min(var(--shell-max), calc(100% - 24px));
  }

  body.nav-open {
    overflow: hidden;
  }

  h1 {
    font-size: clamp(2.8rem, 15vw, 4.3rem);
    line-height: 0.96;
  }

  h2 {
    font-size: clamp(2rem, 11vw, 3.2rem);
  }

  .hero {
    padding: 30px 0 46px;
  }

  .lead {
    font-size: 1.04rem;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .hero-visual {
    padding: 12px;
    border-radius: 22px;
  }

  .hero-logo-stack {
    gap: 10px;
  }

  .hero-logo-item {
    padding: 14px;
  }

  .hero-caption {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stat {
    padding: 16px 8px;
  }

  .band {
    padding: 72px 0;
  }

  .section-head {
    margin-bottom: 32px;
    text-align: left;
  }

  .section-head p {
    font-size: 1rem;
  }

  .feature-grid,
  .mechanics-grid,
  .gallery-grid,
  .ci-gallery-grid {
    grid-template-columns: 1fr;
  }

  .feature,
  .mechanic-card,
  .faq-item {
    padding: 26px;
  }

  .launch-strip,
  .ci-platforms-strip {
    padding: 26px;
    gap: 18px;
  }

  .signup-form {
    grid-template-columns: 1fr;
  }

  .gallery-item img {
    aspect-ratio: 16 / 10;
  }

  .ci-hero-art {
    border-radius: 16px;
  }

  .cr-hero-art {
    border-radius: 16px;
  }

  .trailer-placeholder {
    border-radius: 18px;
  }

  .platform-badges {
    flex-direction: column;
    align-items: stretch;
  }

  .platform-badge {
    flex-direction: row;
    justify-content: flex-start;
    gap: 14px;
    padding: 14px 18px;
  }

  .site-footer {
    padding-top: 34px;
  }
}
