/* =========================================================
   Block Master Blast: Real Win — Official Landing
   Style: cosmic navy HUD · neon glass · puzzle-board layout
   ========================================================= */

:root {
  --bg-deep: #061236;
  --bg-mid: #0a2472;
  --bg-panel: rgba(8, 28, 90, 0.72);
  --bg-panel-solid: #0c1f5c;
  --stroke: rgba(80, 200, 255, 0.55);
  --stroke-strong: #3de0ff;
  --gold: #ffd23a;
  --gold-deep: #f5a623;
  --ice: #e8f6ff;
  --text: #f4f8ff;
  --muted: #a8c0e8;
  --green: #3dff9a;
  --orange: #ff9a3d;
  --red: #ff4d6d;
  --cyan: #3de0ff;
  --shadow: 0 18px 50px rgba(0, 8, 40, 0.55);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --nav-h: 72px;
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

/* Light theme override (toggle) */
html[data-theme="light"] {
  --bg-deep: #e8f0ff;
  --bg-mid: #c5d8ff;
  --bg-panel: rgba(255, 255, 255, 0.78);
  --bg-panel-solid: #ffffff;
  --stroke: rgba(20, 80, 180, 0.25);
  --stroke-strong: #1a6dff;
  --text: #0c1a3a;
  --muted: #445a82;
  --shadow: 0 18px 40px rgba(40, 80, 160, 0.18);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--text);
  background: var(--bg-deep);
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ---------- Ambient background ---------- */
.bg-stage {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(61, 224, 255, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 40%, rgba(120, 60, 255, 0.18), transparent 50%),
    radial-gradient(ellipse 50% 40% at 0% 70%, rgba(255, 210, 58, 0.1), transparent 45%),
    linear-gradient(180deg, var(--bg-mid) 0%, var(--bg-deep) 45%, #040c28 100%);
}

.bg-rays {
  position: absolute;
  inset: -20%;
  background: conic-gradient(
    from 210deg at 70% 20%,
    transparent 0deg,
    rgba(61, 224, 255, 0.08) 40deg,
    transparent 80deg,
    rgba(255, 210, 58, 0.06) 140deg,
    transparent 200deg
  );
  animation: rays-spin 48s linear infinite;
}

.bg-grid {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(61, 224, 255, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 224, 255, 0.15) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

.bg-sparkles {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 18%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 78% 22%, #fff 0 1.5px, transparent 3px),
    radial-gradient(circle at 32% 70%, #9cf 0 1px, transparent 2px),
    radial-gradient(circle at 88% 64%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 55% 40%, #ffd23a 0 1px, transparent 2px);
  animation: twinkle 4.5s ease-in-out infinite alternate;
}

@keyframes rays-spin {
  to { transform: rotate(360deg); }
}

@keyframes twinkle {
  from { opacity: 0.45; }
  to { opacity: 1; }
}

/* ---------- HUD Nav ---------- */
.hud-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px 16px;
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease), padding 0.25s var(--ease);
}

.hud-nav.is-scrolled {
  padding-top: 8px;
  padding-bottom: 8px;
}

.hud-nav.is-scrolled .hud-nav__inner {
  background: color-mix(in srgb, var(--bg-panel-solid) 88%, transparent);
  box-shadow: var(--shadow), 0 0 0 1px var(--stroke), 0 0 28px rgba(61, 224, 255, 0.2);
}

.hud-nav__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px 10px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--stroke);
  box-shadow: 0 0 24px rgba(61, 224, 255, 0.12);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  cursor: pointer;
}

.brand__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 0 0 2px var(--stroke-strong), 0 0 16px rgba(61, 224, 255, 0.45);
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hud-links {
  display: none;
  gap: 8px;
}

.hud-links a {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
  cursor: pointer;
}

.hud-links a:hover,
.hud-links a:focus-visible {
  color: var(--text);
  background: rgba(61, 224, 255, 0.12);
  outline: none;
}

.hud-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle,
.menu-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--stroke);
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}

.theme-toggle:hover,
.menu-btn:hover {
  background: rgba(61, 224, 255, 0.15);
}

.theme-toggle svg,
.menu-btn svg {
  width: 20px;
  height: 20px;
}

.icon-moon { display: none; }
html[data-theme="light"] .icon-sun { display: none; }
html[data-theme="light"] .icon-moon { display: block; }

.menu-btn { display: grid; }

@media (min-width: 900px) {
  .hud-links { display: flex; }
  .menu-btn { display: none; }
  .brand__name { font-size: 1.05rem; }
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(4, 12, 40, 0.72);
  backdrop-filter: blur(8px);
  padding: calc(var(--nav-h) + 24px) 20px 40px;
}

.mobile-drawer[hidden] { display: none; }

.mobile-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--bg-panel-solid);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}

.mobile-drawer__nav a {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-weight: 700;
  background: rgba(61, 224, 255, 0.06);
  cursor: pointer;
}

.mobile-drawer__nav a:hover {
  background: rgba(61, 224, 255, 0.14);
}

.mobile-drawer__nav .btn {
  text-align: center;
  margin-top: 8px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.95rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, filter 0.2s;
  cursor: pointer;
  border: none;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 2px solid var(--stroke-strong);
  outline-offset: 3px;
}

.btn--sm {
  padding: 10px 18px;
  font-size: 0.88rem;
}

.btn--gold {
  color: #2a1a00;
  background: linear-gradient(180deg, #ffe56a 0%, var(--gold) 45%, var(--gold-deep) 100%);
  box-shadow:
    0 4px 0 #c47a10,
    0 8px 24px rgba(255, 180, 40, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.btn--gold:hover {
  box-shadow:
    0 5px 0 #c47a10,
    0 12px 28px rgba(255, 180, 40, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.btn--store {
  min-width: 160px;
  color: #041028;
  background: linear-gradient(180deg, #ffffff 0%, #d8ecff 100%);
  box-shadow: 0 6px 20px rgba(61, 224, 255, 0.25), inset 0 1px 0 #fff;
}

.btn--store-alt {
  color: #fff;
  background: linear-gradient(180deg, #3a7bff 0%, #1a4fd0 100%);
  box-shadow: 0 6px 20px rgba(40, 100, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* ---------- Typography helpers ---------- */
.title-line {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  transform: skewX(-4deg);
}

.title-line--gold {
  color: var(--gold);
  text-shadow:
    0 2px 0 #8a4a00,
    0 4px 0 #5a2e00,
    0 8px 24px rgba(255, 180, 0, 0.35),
    -1px -1px 0 #2a1500,
    1px 1px 0 #2a1500;
}

.title-line--ice {
  color: var(--ice);
  text-shadow:
    0 0 18px rgba(61, 224, 255, 0.55),
    0 3px 0 #0a3a7a,
    -1px -1px 0 #0a2a60,
    2px 2px 0 #0a2a60;
}

html[data-theme="light"] .title-line--gold {
  text-shadow: 0 2px 0 #c47a10, 0 6px 16px rgba(200, 120, 0, 0.25);
}

html[data-theme="light"] .title-line--ice {
  color: #0a3a8a;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.8), 0 4px 12px rgba(20, 80, 200, 0.2);
}

.section {
  padding: 104px 20px;
  max-width: 1120px;
  margin: 0 auto;
}

@media (min-width: 960px) {
  .section {
    padding: 128px 20px;
  }
}

.section__head {
  text-align: center;
  margin-bottom: 40px;
}

.section__title {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3.1rem);
}

.section__desc {
  margin: 0 auto;
  max-width: 540px;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ---------- Hero ---------- */
.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px 20px 88px;
  display: grid;
  gap: 36px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    padding-top: 48px;
    padding-bottom: 112px;
    gap: 48px;
  }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 8px 14px 8px 10px;
  border-radius: var(--radius-pill);
  background: rgba(61, 224, 255, 0.1);
  border: 1px solid var(--stroke);
  color: var(--cyan);
  font-weight: 800;
  font-size: 0.85rem;
}

.hero__title {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 6.5vw, 4rem);
}

.hero__sub {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 460px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero__stats li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-panel);
  border: 1px solid var(--stroke);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
}

.hero__stats svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
}

.hero__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
}

.phone-frame {
  position: relative;
  width: min(280px, 72vw);
  border-radius: 28px;
  padding: 8px;
  background: linear-gradient(160deg, rgba(61, 224, 255, 0.55), rgba(40, 80, 200, 0.3));
  box-shadow:
    0 0 0 2px rgba(61, 224, 255, 0.65),
    0 0 40px rgba(61, 224, 255, 0.35),
    var(--shadow);
}

.phone-frame__glow {
  position: absolute;
  inset: -30%;
  z-index: -1;
  background: radial-gradient(circle, rgba(61, 224, 255, 0.35), transparent 60%);
  animation: pulse-glow 3.2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.55; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
}

.phone-frame__shot {
  width: 100%;
  height: auto;
  aspect-ratio: 509 / 900;
  object-fit: contain;
  border-radius: 22px;
  background: #061236;
}

/* Floating CSS tetrominoes */
.float-piece {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), 0 8px 20px rgba(0, 0, 0, 0.35);
  animation: float-y 5s ease-in-out infinite;
  z-index: 2;
}

.float-piece--t {
  top: 8%;
  left: 6%;
  background: linear-gradient(145deg, #6a5cff, #3a2ec0);
  box-shadow: 0 0 24px rgba(100, 80, 255, 0.55), inset 0 2px 0 rgba(255, 255, 255, 0.35);
}

.float-piece--l {
  bottom: 14%;
  left: 0;
  background: linear-gradient(145deg, #ff6b8a, #c01e45);
  animation-delay: -1.5s;
}

.float-piece--o {
  top: 18%;
  right: 2%;
  background: linear-gradient(145deg, #ffe56a, #f5a623);
  animation-delay: -2.8s;
}

@keyframes float-y {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-14px) rotate(4deg); }
}

/* ---------- Ticker ---------- */
.ticker {
  overflow: hidden;
  border-block: 1px solid var(--stroke);
  background: rgba(4, 16, 56, 0.55);
  padding: 14px 0;
  margin: 8px 0 24px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

html[data-theme="light"] .ticker {
  background: rgba(255, 255, 255, 0.55);
}

.ticker__track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 32s linear infinite;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--gold);
}

.ticker__track span {
  white-space: nowrap;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Feature board (asymmetric puzzle grid) ---------- */
.feature-board {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .feature-board {
    grid-template-columns: 1.2fr 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .feat--wide:first-child {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
  }

  .feat--wide.feat--accent {
    grid-column: 2 / 4;
  }
}

.feat {
  position: relative;
  padding: 24px 22px;
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease);
}

.feat::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(61, 224, 255, 0.12), transparent 45%);
  pointer-events: none;
}

.feat:hover {
  border-color: var(--stroke-strong);
  box-shadow: 0 0 0 1px var(--stroke-strong), 0 0 32px rgba(61, 224, 255, 0.25), var(--shadow);
  transform: translateY(-3px);
}

.feat h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.feat p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.feat__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 14px;
  background: linear-gradient(145deg, #4a7cff, #1e4ad0);
  box-shadow: 0 0 18px rgba(60, 120, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  color: #fff;
}

.feat__icon svg {
  width: 24px;
  height: 24px;
}

.feat__icon--gold {
  background: linear-gradient(145deg, #ffe56a, #f5a623);
  color: #3a2200;
  box-shadow: 0 0 18px rgba(255, 180, 40, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.feat__icon--cyan {
  background: linear-gradient(145deg, #6ef0ff, #1ab8d0);
  color: #043040;
}

.feat__icon--green {
  background: linear-gradient(145deg, #6dffb0, #1cbc6a);
  color: #043020;
}

.feat--accent {
  background: linear-gradient(120deg, rgba(255, 210, 58, 0.12), var(--bg-panel) 40%);
}

/* ---------- Gallery board (offset mosaic) ---------- */
.gallery-board {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
  max-width: 920px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .gallery-board {
    grid-template-columns: repeat(4, 1fr);
    align-items: end;
    gap: 18px;
  }

  .shot--a { transform: translateY(20px); }
  .shot--b { transform: translateY(-10px); }
  .shot--c { transform: translateY(28px); }
  .shot--d { transform: translateY(0); }
}

.shot {
  margin: 0;
  border-radius: 20px;
  padding: 6px;
  background: linear-gradient(160deg, rgba(61, 224, 255, 0.45), rgba(40, 60, 160, 0.25));
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
  overflow: hidden;
}

.shot:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 0 28px rgba(61, 224, 255, 0.35), var(--shadow);
}

.shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 509 / 900;
  object-fit: contain;
  border-radius: 14px;
  background: #061236;
}

.shot figcaption {
  text-align: center;
  padding: 10px 6px 6px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--gold);
}

/* ---------- How to play rail ---------- */
.move-rail {
  display: grid;
  gap: 14px;
}

@media (min-width: 800px) {
  .move-rail {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

.move {
  position: relative;
  padding: 22px 18px;
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}

.move__num {
  display: inline-block;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold);
  text-shadow: 0 0 16px rgba(255, 210, 58, 0.4);
}

.move h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.move p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Reviews ---------- */
.review-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 800px) {
  .review-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }

  .review--tilt {
    transform: rotate(-1.5deg) translateY(18px);
  }
}

.review {
  margin: 0;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}

.review__stars {
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.review p {
  margin: 0 0 16px;
  font-size: 1.05rem;
  font-weight: 600;
}

.review footer {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border-radius: var(--radius-md);
  background: var(--bg-panel);
  border: 1px solid var(--stroke);
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: rotate(45deg);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(-135deg);
}

.faq-item p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted);
}

/* ---------- Download panel ---------- */
.download-panel {
  position: relative;
  text-align: center;
  padding: 48px 24px;
  border-radius: 28px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 210, 58, 0.18), transparent 55%),
    var(--bg-panel);
  border: 1px solid var(--stroke);
  box-shadow: 0 0 40px rgba(61, 224, 255, 0.2), var(--shadow);
  overflow: hidden;
}

.download-panel .section__desc {
  margin-bottom: 24px;
}

.download-panel .hero__cta {
  justify-content: center;
  margin-bottom: 0;
}

.download-panel__gems {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}

.gem {
  width: 18px;
  height: 18px;
  display: inline-block;
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  box-shadow: 0 0 12px currentColor;
}

.gem--cyan,
.gem--blue { background: linear-gradient(145deg, #9ef6ff, #1ab8ff); color: #1ab8ff; }
.gem--green { background: linear-gradient(145deg, #9dffc0, #1cbc6a); color: #1cbc6a; }
.gem--orange { background: linear-gradient(145deg, #ffc08a, #ff7a1a); color: #ff7a1a; }
.gem--gold { background: linear-gradient(145deg, #ffe56a, #f5a623); color: #f5a623; }
.gem--red { background: linear-gradient(145deg, #ff9ab0, #ff3d5c); color: #ff3d5c; }

.hero__eyebrow .gem {
  width: 14px;
  height: 14px;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 48px 20px 32px;
  border-top: 1px solid var(--stroke);
  background: rgba(4, 12, 40, 0.45);
}

html[data-theme="light"] .site-footer {
  background: rgba(255, 255, 255, 0.5);
}

.site-footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.site-footer__brand {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.site-footer__brand img {
  border-radius: 10px;
  box-shadow: 0 0 0 2px var(--stroke);
}

.site-footer__brand strong {
  font-family: var(--font-display);
  display: block;
  margin-bottom: 4px;
}

.site-footer__brand p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.site-footer__links a {
  color: var(--cyan);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.site-footer__links a:hover {
  color: var(--gold);
}

.site-footer__copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ---------- Modal ---------- */
.modal[hidden] { display: none; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 28, 0.72);
  backdrop-filter: blur(6px);
  cursor: pointer;
}

.modal__panel {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 32px 28px 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-panel-solid);
  border: 1px solid var(--stroke);
  box-shadow: 0 0 40px rgba(61, 224, 255, 0.25), var(--shadow);
  text-align: center;
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  cursor: pointer;
}

.modal__close svg {
  width: 18px;
  height: 18px;
}

.modal__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(145deg, #ffe56a, #f5a623);
  color: #3a2200;
  box-shadow: 0 0 24px rgba(255, 180, 40, 0.4);
}

.modal__icon svg {
  width: 28px;
  height: 28px;
}

.modal__panel h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
}

.modal__panel p {
  margin: 0 0 22px;
  color: var(--muted);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .bg-rays,
  .bg-sparkles,
  .phone-frame__glow,
  .float-piece,
  .ticker__track {
    animation: none !important;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
