/* ==========================================================================
   Hop! The Frog - Official Website Stylesheet
   Truecraft Studio | Sunlit Pond & Emerald Sanctuary Theme
   ========================================================================== */

:root {
  --pond-night: #081c0d;
  --pond-deep: #103215;
  --pond-forest: #17441d;
  --pond-moss: #2d6a4f;
  --pond-sage: #52b788;
  --pond-aqua: #95d5b2;
  --lime-glow: #a8f130;
  --lime-rich: #66c91b;
  --sun-gold: #ffb800;
  --sun-warm: #ffd646;
  --cream-card: #faf8f0;
  --cream-soft: #f1f8eb;
  --ink-dark: #102a14;
  --ink-muted: #4a6b50;
  --white: #ffffff;

  --font-display: 'Baloo 2', 'Fredoka', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-soft: 0 14px 36px rgba(8, 28, 13, 0.16);
  --shadow-deep: 0 24px 60px rgba(4, 15, 7, 0.45);
  --radius-lg: 24px;
  --radius-xl: 32px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--pond-deep);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Ambient Pond Canvas --- */
#pond-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.42;
}

main,
header,
footer {
  position: relative;
  z-index: 2;
}

/* --- Header & Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 14px 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.site-header.scrolled {
  background: rgba(11, 34, 16, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(168, 241, 48, 0.16);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  padding: 10px 0;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo img {
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.header-logo-text {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.studio-chip {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--pond-aqua);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(149, 213, 178, 0.28);
  padding: 4px 10px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.studio-chip:hover {
  background: rgba(168, 241, 48, 0.18);
  color: var(--white);
}

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 0.94rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--lime-glow);
}

.nav-cta {
  background: linear-gradient(135deg, var(--lime-glow), var(--lime-rich));
  color: var(--pond-night);
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(102, 201, 27, 0.35);
}

.nav-cta:hover {
  color: var(--pond-night);
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--white);
  border-radius: 3px;
  transition: 0.25s ease;
}

.nav-overlay {
  display: none;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 120px 0 80px;
  display: flex;
  align-items: center;
  background: url('assets/hero_bg.png') center center / cover no-repeat;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 28, 13, 0.82) 0%,
    rgba(16, 50, 21, 0.72) 55%,
    rgba(16, 50, 21, 0.96) 100%
  );
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(168, 241, 48, 0.35);
  color: var(--lime-glow);
  font-weight: 700;
  font-size: 0.86rem;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
  backdrop-filter: blur(8px);
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime-glow);
  box-shadow: 0 0 12px var(--lime-glow);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.8vw, 4.1rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-highlight {
  background: linear-gradient(120deg, var(--lime-glow), var(--sun-warm));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 560px;
  margin-bottom: 30px;
}

.hero-subtitle strong {
  color: var(--sun-warm);
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}

.store-actions.center {
  justify-content: center;
  margin-bottom: 0;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-radius: 16px;
  background: rgba(8, 28, 13, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--white);
  transition: all 0.22s ease;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
}

.btn-store:hover {
  transform: translateY(-3px);
  border-color: var(--lime-glow);
  background: #143d1c;
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}

.store-btn-text small {
  font-size: 0.7rem;
  opacity: 0.8;
  letter-spacing: 0.04em;
}

.store-btn-text strong {
  font-size: 1.06rem;
  font-weight: 700;
}

.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.92);
}

.offline-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lime-glow);
}

/* --- Interactive Hero Mini Solo-Test Board --- */
.demo-phone-shell {
  background: linear-gradient(160deg, #1b4e24, #0d2b13);
  border: 6px solid #2b6e39;
  border-radius: 38px;
  padding: 18px 18px 20px;
  max-width: 390px;
  margin: 0 auto;
  box-shadow: var(--shadow-deep), 0 0 0 1px rgba(168, 241, 48, 0.2);
}

.demo-phone-notch {
  width: 96px;
  height: 10px;
  border-radius: 999px;
  background: rgba(8, 28, 13, 0.75);
  margin: 0 auto 10px;
}

.demo-phone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.demo-mini-logo {
  width: 78px;
  height: auto;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}

.demo-hud-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.demo-hud-pill {
  background: rgba(8, 28, 13, 0.75);
  border: 1px solid rgba(168, 241, 48, 0.28);
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.demo-goal-pill {
  color: var(--sun-warm);
}

.demo-status-banner {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 7px 12px;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--cream-card);
  margin-bottom: 12px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-status-banner.win {
  background: rgba(168, 241, 48, 0.22);
  border-color: var(--lime-glow);
  color: #e9ffbe;
}

.demo-status-banner.stuck {
  background: rgba(255, 184, 0, 0.2);
  border-color: var(--sun-gold);
  color: #ffe8a3;
}

.demo-board-frame {
  background: #eff7df;
  border: 4px solid #357b4a;
  border-radius: 22px;
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: inset 0 4px 12px rgba(16, 50, 21, 0.14);
}

.demo-board-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.pad-void {
  aspect-ratio: 1;
}

.pad-cell {
  aspect-ratio: 1;
  border-radius: 12px;
  background: #cdeccb;
  border: 2px solid #80c988;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  padding: 4px;
}

.pad-cell.has-frog:hover {
  transform: translateY(-2px);
  border-color: var(--pond-moss);
}

.pad-cell.selected {
  background: #ffeaa7;
  border-color: var(--sun-gold);
  box-shadow: 0 0 0 3px rgba(255, 184, 0, 0.32);
  transform: scale(1.04);
}

.pad-cell.valid-target {
  background: #d8ffba;
  border: 2.5px dashed var(--lime-rich);
  cursor: pointer;
  animation: pulseTarget 1.1s infinite;
}

.pad-cell.valid-target::after {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--lime-rich);
  opacity: 0.78;
}

.pad-cell.hint-source {
  box-shadow: 0 0 0 3px #38bdf8;
  border-color: #0284c7;
}

.pad-cell.hint-target {
  background: #bae6fd;
  border-color: #0284c7;
}

.pad-frog-img {
  width: 86%;
  height: 86%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 3px 4px rgba(16, 42, 20, 0.25));
}

@keyframes pulseTarget {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.demo-controls-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.demo-ctrl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(8, 28, 13, 0.78);
  border: 1px solid rgba(168, 241, 48, 0.28);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.demo-ctrl-btn:hover:not(:disabled) {
  background: #1d5727;
  border-color: var(--lime-glow);
}

.demo-ctrl-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* --- Marquee --- */
.marquee-band {
  background: linear-gradient(90deg, var(--lime-rich), #38a169, var(--lime-rich));
  color: var(--pond-night);
  padding: 13px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 24px;
  width: max-content;
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  animation: marqueeScroll 32s linear infinite;
}

.m-dot {
  opacity: 0.55;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Section Utility --- */
.section {
  padding: 92px 0;
}

.section-head {
  margin-bottom: 52px;
}

.section-head.center {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--lime-glow);
  background: rgba(168, 241, 48, 0.14);
  border: 1px solid rgba(168, 241, 48, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 2.85rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
}

.title-accent {
  color: var(--lime-glow);
}

.section-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.03rem;
}

/* --- How It Works (Cream Contrast Band) --- */
.how-section {
  background: var(--cream-soft);
  color: var(--ink-dark);
}

.how-section .section-badge {
  color: var(--pond-moss);
  background: rgba(45, 106, 79, 0.12);
  border-color: rgba(45, 106, 79, 0.25);
}

.how-section .title-accent {
  color: var(--pond-moss);
}

.how-section .section-subtitle {
  color: var(--ink-muted);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 34px;
}

.step-card {
  background: var(--white);
  border: 2px solid #d5ebd3;
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-soft);
  position: relative;
  transition: transform 0.25s ease;
}

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

.step-num {
  position: absolute;
  top: 22px;
  right: 24px;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  color: rgba(45, 106, 79, 0.16);
  line-height: 1;
}

.step-icon-wrap {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  background: #e6f6e4;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.38rem;
  margin-bottom: 10px;
  color: var(--ink-dark);
}

.step-card p {
  color: var(--ink-muted);
  font-size: 0.96rem;
}

.mastery-strip {
  background: var(--pond-deep);
  color: var(--white);
  border-radius: 20px;
  padding: 20px 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.mastery-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mastery-stars {
  font-size: 1.35rem;
  color: var(--sun-gold);
  letter-spacing: 2px;
}

.mastery-item strong {
  display: block;
  font-size: 1rem;
}

.mastery-item small {
  color: var(--pond-aqua);
  font-size: 0.82rem;
}

/* --- Frog Figure Packs Showcase --- */
.themes-section {
  background: linear-gradient(180deg, var(--pond-deep), #0b2410);
}

.theme-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 34px;
}

.theme-tab {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.85);
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  transition: all 0.2s ease;
}

.theme-tab:hover {
  border-color: var(--lime-glow);
  color: var(--white);
}

.theme-tab.active {
  background: linear-gradient(135deg, var(--lime-glow), var(--lime-rich));
  color: var(--pond-night);
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(102, 201, 27, 0.35);
}

.theme-stage {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(149, 213, 178, 0.22);
  border-radius: var(--radius-xl);
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  backdrop-filter: blur(10px);
}

.theme-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sun-warm);
  background: rgba(255, 184, 0, 0.15);
  border: 1px solid rgba(255, 184, 0, 0.35);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.theme-info h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 12px;
}

.theme-info p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 18px;
}

.theme-bullets {
  list-style: none;
  margin-bottom: 24px;
}

.theme-bullets li {
  padding-left: 24px;
  position: relative;
  margin-bottom: 8px;
  color: var(--pond-aqua);
  font-weight: 500;
}

.theme-bullets li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--lime-glow);
  font-weight: 800;
}

.btn-primary-pill {
  display: inline-block;
  background: linear-gradient(135deg, var(--lime-glow), var(--lime-rich));
  color: var(--pond-night);
  font-weight: 800;
  padding: 12px 24px;
  border-radius: 999px;
  transition: transform 0.2s ease;
}

.btn-primary-pill:hover {
  transform: translateY(-2px);
}

.theme-figures-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.figure-tile {
  background: rgba(8, 28, 13, 0.55);
  border: 1.5px solid rgba(149, 213, 178, 0.25);
  border-radius: 22px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  transition: transform 0.25s ease;
}

.figure-tile:hover {
  transform: scale(1.04);
  border-color: var(--lime-glow);
}

.figure-tile img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

/* --- Worlds Gallery & LiveOps --- */
.screens-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 44px;
}

.phone-frame {
  border-radius: 24px;
  overflow: hidden;
  border: 4px solid rgba(149, 213, 178, 0.28);
  box-shadow: var(--shadow-deep);
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.phone-frame:hover {
  transform: translateY(-6px);
  border-color: var(--lime-glow);
}

.liveops-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.liveops-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.liveops-card img {
  flex-shrink: 0;
}

.liveops-card h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.liveops-card p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.8);
}

/* --- Boosters / Tactical Helpers --- */
.boosters-section {
  background: var(--cream-card);
  color: var(--ink-dark);
}

.boosters-section .section-badge {
  color: var(--pond-moss);
  background: rgba(45, 106, 79, 0.12);
  border-color: rgba(45, 106, 79, 0.25);
}

.boosters-section .title-accent {
  color: var(--pond-moss);
}

.boosters-section .section-subtitle {
  color: var(--ink-muted);
}

.boosters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.booster-card {
  background: var(--white);
  border: 2px solid #dfece0;
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.booster-icon-box {
  width: 92px;
  height: 92px;
  margin: 0 auto 16px;
  border-radius: 24px;
  background: #e9f7e7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.booster-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--pond-moss);
  background: #e6f5ea;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.booster-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.booster-card p {
  font-size: 0.94rem;
  color: var(--ink-muted);
}

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

.faq-item {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(149, 213, 178, 0.22);
  border-radius: 18px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--white);
  padding: 20px 24px;
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  text-align: left;
}

.faq-plus {
  font-size: 1.4rem;
  color: var(--lime-glow);
  transition: transform 0.25s ease;
}

.faq-item.open .faq-plus {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 260px;
}

.faq-answer p {
  padding: 0 24px 20px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.96rem;
}

/* --- Download CTA --- */
.download-cta-section {
  padding-top: 20px;
}

.cta-card {
  background: linear-gradient(145deg, #1b5025, #0e2e14);
  border: 2px solid rgba(168, 241, 48, 0.35);
  border-radius: var(--radius-xl);
  padding: 56px 32px;
  text-align: center;
  box-shadow: var(--shadow-deep);
}

.cta-app-icon {
  margin: 0 auto 20px;
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.cta-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  margin-bottom: 12px;
}

.cta-card p {
  color: rgba(255, 255, 255, 0.86);
  max-width: 560px;
  margin: 0 auto 28px;
}

/* --- Legal Pages (Privacy & Terms) --- */
.legal-page {
  padding: 130px 0 90px;
  min-height: 85vh;
  background: var(--cream-soft);
  color: var(--ink-dark);
}

.legal-header {
  text-align: center;
  margin-bottom: 34px;
}

.legal-header .section-badge {
  color: var(--pond-moss);
  background: rgba(45, 106, 79, 0.12);
  border-color: rgba(45, 106, 79, 0.25);
}

.legal-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.85rem);
  color: var(--ink-dark);
  margin-bottom: 16px;
}

.legal-lang-bar {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.lang-pill {
  border: 1.5px solid #b5dec0;
  background: var(--white);
  color: var(--ink-dark);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.84rem;
  transition: all 0.2s ease;
}

.lang-pill:hover {
  border-color: var(--pond-moss);
}

.lang-pill.active {
  background: var(--pond-deep);
  color: var(--lime-glow);
  border-color: var(--pond-deep);
}

.legal-content {
  max-width: 880px;
  margin: 0 auto;
  background: var(--white);
  border: 1.5px solid #d5ebd3;
  border-radius: var(--radius-lg);
  padding: 42px;
  box-shadow: var(--shadow-soft);
  color: var(--ink-dark);
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.48rem;
  color: var(--pond-deep);
  margin: 28px 0 10px;
}

.legal-content h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  color: var(--pond-moss);
  margin: 20px 0 8px;
}

.legal-content p {
  margin-bottom: 14px;
  color: #243b28;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 16px 24px;
  color: #243b28;
}

.legal-content li {
  margin-bottom: 6px;
}

.legal-content hr {
  border: none;
  border-top: 1px solid #e2efe3;
  margin: 24px 0;
}

.legal-content a {
  color: var(--pond-moss);
  font-weight: 600;
  text-decoration: underline;
}

.legal-content code {
  background: #eff7ef;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.9em;
}

.md-loading,
.md-error {
  text-align: center;
  padding: 40px 16px;
  color: var(--ink-muted);
}

/* --- Footer --- */
.site-footer {
  background: var(--pond-night);
  color: rgba(255, 255, 255, 0.85);
  padding: 64px 0 32px;
  border-top: 1px solid rgba(168, 241, 48, 0.16);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 36px;
  margin-bottom: 42px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-brand img {
  border-radius: 12px;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
}

.footer-about p {
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 380px;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--lime-glow);
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.93rem;
}

.footer-links a:hover {
  color: var(--lime-glow);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-studio {
  color: var(--lime-glow);
  font-weight: 600;
}

/* --- Lightbox & Back to Top --- */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(4, 15, 7, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox-modal.open {
  display: flex;
}

.lightbox-modal img {
  max-height: 90vh;
  border-radius: 24px;
  box-shadow: var(--shadow-deep);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 1.6rem;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(168, 241, 48, 0.45);
  background: var(--pond-deep);
  color: var(--lime-glow);
  font-size: 1.25rem;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive Breakpoints --- */
@media (max-width: 992px) {
  .hero-grid,
  .theme-stage,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .steps-grid,
  .boosters-grid,
  .mastery-strip,
  .liveops-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .studio-chip {
    display: none;
  }

  .hamburger {
    display: flex;
    z-index: 120;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -280px;
    bottom: 0;
    width: 260px;
    background: var(--pond-night);
    flex-direction: column;
    align-items: flex-start;
    padding: 84px 28px 28px;
    transition: right 0.28s ease;
    z-index: 110;
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-overlay.active {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 105;
  }

  .legal-content {
    padding: 26px 20px;
  }
}
