:root {
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --container-width: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-height: 74px;

  --black: #000000;
  --white: #ffffff;

  --accent: #3b82f6;
  --accent-2: #8b5cf6;
  --accent-gradient: linear-gradient(120deg, #3b82f6, #8b5cf6);
  --accent-glow: rgba(99, 102, 241, 0.45);

  --rarity-common: #9ca3af;
  --rarity-epic: #8b5cf6;
  --rarity-legendary: #f59e0b;

  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --bg-card: #0d0d0d;
  --bg-card-hover: #161616;
  --border-color: rgba(255, 255, 255, 0.1);
  --border-color-hover: rgba(255, 255, 255, 0.4);
  --text-primary: #ffffff;
  --text-secondary: #a3a3a3;
  --text-muted: #666666;
  --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.6);
  --overlay-soft: rgba(255, 255, 255, 0.03);
  --overlay-soft-hover: rgba(255, 255, 255, 0.06);
  --spotlight-color: rgba(255, 255, 255, 0.06);
  --badge-pulse-color: rgba(255, 255, 255, 0.4);
  --header-scrolled-bg: rgba(0, 0, 0, 0.8);
  --mobile-nav-bg: rgba(0, 0, 0, 0.97);
  --hero-overlay: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.92) 55%, #000000 100%);
  --hero-grid-line: rgba(255, 255, 255, 0.05);
  --hero-car-shadow: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55));
  --btn-primary-bg: #ffffff;
  --btn-primary-text: #000000;
  --btn-primary-hover-bg: #e5e5e5;
  --btn-primary-shadow: rgba(255, 255, 255, 0.14);
  --icon-bg: rgba(255, 255, 255, 0.05);
  --channel-icon-bg: #ffffff;
  --channel-icon-color: #000000;
  --btn-shimmer-color: rgba(0, 0, 0, 0.12);
  --hud-bg: rgba(0, 0, 0, 0.72);
  --particle-color: 255, 255, 255;
}

[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f6f6f7;
  --bg-card: #fafafa;
  --bg-card-hover: #f0f0f1;
  --border-color: rgba(0, 0, 0, 0.1);
  --border-color-hover: rgba(0, 0, 0, 0.35);
  --text-primary: #000000;
  --text-secondary: #52525b;
  --text-muted: #8a8a93;
  --shadow-soft: 0 24px 50px rgba(0, 0, 0, 0.1);
  --overlay-soft: rgba(0, 0, 0, 0.03);
  --overlay-soft-hover: rgba(0, 0, 0, 0.05);
  --spotlight-color: rgba(0, 0, 0, 0.045);
  --badge-pulse-color: rgba(0, 0, 0, 0.3);
  --header-scrolled-bg: rgba(255, 255, 255, 0.82);
  --mobile-nav-bg: rgba(255, 255, 255, 0.98);
  --hero-overlay: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.92) 55%, #ffffff 100%);
  --hero-grid-line: rgba(0, 0, 0, 0.07);
  --hero-car-shadow: drop-shadow(0 24px 34px rgba(0, 0, 0, 0.16));
  --btn-primary-bg: #000000;
  --btn-primary-text: #ffffff;
  --btn-primary-hover-bg: #1a1a1a;
  --btn-primary-shadow: rgba(0, 0, 0, 0.16);
  --icon-bg: rgba(0, 0, 0, 0.04);
  --channel-icon-bg: #000000;
  --channel-icon-color: #ffffff;
  --btn-shimmer-color: rgba(255, 255, 255, 0.18);
  --hud-bg: rgba(255, 255, 255, 0.85);
  --particle-color: 0, 0, 0;
}

body {
  transition: background-color 0.4s ease, color 0.4s ease;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--accent-gradient);
  z-index: 200;
  transition: width 0.1s linear;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

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

ul {
  list-style: none;
}

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

.sprite-sheet {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.icon-sm {
  width: 15px;
  height: 15px;
}

.accent-text {
  background: linear-gradient(120deg, #3b82f6, #8b5cf6, #3b82f6);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: accent-slide 6s linear infinite;
}

.accent-icon {
  color: var(--accent);
}

.eyebrow {
  display: inline-block;
  font-family: "Orbitron", "Inter", sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "// ";
  color: var(--accent-2);
}

.section-heading h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: 16px auto 0;
  border-radius: 2px;
  background: var(--accent-gradient);
}

/* ---------- HUD (XP / level) ---------- */

.hud {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, 0.4);
  background: var(--hud-bg);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.18);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), box-shadow 0.3s ease;
  pointer-events: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.hud.is-visible {
  pointer-events: auto;
}

.hud.is-visible:active {
  transform: scale(0.95);
}

.hud.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hud-level {
  font-family: "Orbitron", "Inter", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.hud-xp-track {
  width: 90px;
  height: 6px;
  border-radius: 999px;
  background: var(--overlay-soft-hover);
  overflow: hidden;
}

.hud-xp-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: var(--accent-gradient);
  transition: width 0.6s var(--ease);
}

.hud-xp-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ---------- Achievement toasts ---------- */

.toast-stack {
  position: fixed;
  top: calc(var(--header-height) + 12px);
  right: 18px;
  z-index: 180;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 250px;
  max-width: 330px;
  padding: 13px 16px 15px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-left: 3px solid var(--accent);
  background: var(--hud-bg);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.25), 0 0 24px rgba(99, 102, 241, 0.12);
  transform: translateX(120%);
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}

.toast.is-in {
  transform: translateX(0);
}

.toast.is-out {
  opacity: 0;
  transform: translateX(120%);
  transition: transform 0.45s var(--ease), opacity 0.4s ease;
}

.toast-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: var(--accent-gradient);
  transform-origin: left;
  animation: toast-countdown 3.8s linear forwards;
}

.toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff;
  flex-shrink: 0;
  animation: toast-icon-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast-title {
  font-family: "Orbitron", "Inter", sans-serif;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.toast-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.toast-xp {
  margin-left: auto;
  font-family: "Orbitron", "Inter", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--rarity-legendary);
  white-space: nowrap;
}

/* ---------- Reveal / spotlight ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-group > [data-reveal]:nth-child(1) { transition-delay: 0ms; }
.reveal-group > [data-reveal]:nth-child(2) { transition-delay: 90ms; }
.reveal-group > [data-reveal]:nth-child(3) { transition-delay: 180ms; }
.reveal-group > [data-reveal]:nth-child(4) { transition-delay: 270ms; }
.reveal-group > [data-reveal]:nth-child(5) { transition-delay: 360ms; }
.reveal-group > [data-reveal]:nth-child(6) { transition-delay: 450ms; }
.reveal-group > [data-reveal]:nth-child(7) { transition-delay: 540ms; }
.reveal-group > [data-reveal]:nth-child(8) { transition-delay: 630ms; }
.reveal-group > [data-reveal]:nth-child(9) { transition-delay: 720ms; }

.spotlight {
  position: relative;
}

.spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), var(--spotlight-color), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.spotlight:hover::before {
  opacity: 1;
}

/* 3D tilt */
.tilt {
  transform-style: preserve-3d;
  will-change: transform;
}

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  min-height: 46px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.96);
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(125, 125, 150, 0.35);
  transform: scale(0);
  animation: ripple-expand 0.6s var(--ease) forwards;
  pointer-events: none;
}

.btn-primary,
.btn-accent {
  background: linear-gradient(120deg, #3b82f6, #7c3aed, #3b82f6);
  background-size: 220% 100%;
  background-position: 0% 50%;
  color: #fff;
  border: none;
  box-shadow: 0 10px 26px rgba(99, 102, 241, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary::after,
.btn-accent::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s var(--ease);
}

.btn-primary:hover::after,
.btn-accent:hover::after {
  left: 150%;
}

.btn-primary:hover,
.btn-accent:hover {
  transform: translateY(-2px);
  background-position: 100% 50%;
  box-shadow: 0 16px 38px rgba(99, 102, 241, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-glow {
  animation: btn-glow-pulse 2.6s ease-in-out infinite;
}

.btn-outline {
  background: var(--overlay-soft);
  color: var(--text-primary);
  border-color: rgba(99, 102, 241, 0.4);
}

/* HUD-style corner brackets on outline buttons */
.btn-outline::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(var(--accent), var(--accent)) left 6px top 6px / 12px 2px,
    linear-gradient(var(--accent), var(--accent)) left 6px top 6px / 2px 12px,
    linear-gradient(var(--accent-2), var(--accent-2)) right 6px bottom 6px / 12px 2px,
    linear-gradient(var(--accent-2), var(--accent-2)) right 6px bottom 6px / 2px 12px;
  background-repeat: no-repeat;
  opacity: 0.55;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.btn-outline:hover {
  border-color: var(--accent);
  background: var(--overlay-soft-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(99, 102, 241, 0.2);
}

.btn-outline:hover::after {
  opacity: 1;
}

.btn-small {
  padding: 8px 18px;
  font-size: 0.78rem;
  min-height: 38px;
}

.btn-large {
  padding: 15px 32px;
  font-size: 0.92rem;
  min-height: 54px;
}

.btn-block {
  width: 100%;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.is-scrolled {
  background: var(--header-scrolled-bg);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border-color);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 30px;
  height: 30px;
}

.brand-logo .lc {
  fill: var(--text-primary);
}

.brand-name {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  position: relative;
  font-size: 0.92rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  padding: 4px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: width 0.25s var(--ease);
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--text-primary);
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s var(--ease);
}

.theme-toggle:hover {
  border-color: var(--border-color-hover);
  background: var(--overlay-soft-hover);
  transform: translateY(-1px) rotate(12deg);
}

.theme-toggle .icon-moon {
  display: none;
}

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

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

.theme-toggle-mobile {
  display: none;
  align-items: center;
  gap: 12px;
  width: auto;
  height: auto;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--border-color);
  padding: 16px 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-family: inherit;
  font-weight: 500;
}

.theme-toggle-mobile:hover {
  background: none;
  transform: none;
  color: var(--text-primary);
}

.theme-toggle-label {
  display: none;
}

.label-to-light {
  display: inline;
}

[data-theme="light"] .label-to-light {
  display: none;
}

[data-theme="light"] .label-to-dark {
  display: inline;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  max-height: 0;
  overflow: hidden;
  border-top: 1px solid transparent;
  transition: max-height 0.35s var(--ease), border-color 0.35s ease, background-color 0.4s ease;
  background: var(--mobile-nav-bg);
}

.mobile-nav.is-open {
  max-height: 520px;
  border-top-color: var(--border-color);
}

.mobile-nav a {
  padding: 16px 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border-color);
}

.mobile-nav .btn {
  margin: 16px 24px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 70px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  transition: background 0.4s ease;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--hero-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 40%, transparent 80%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* CRT scanlines over the hero backdrop */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.14) 0 1px, transparent 1px 3px);
  opacity: 0.4;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--overlay-soft);
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.badge-pill:hover {
  border-color: var(--border-color-hover);
  background: var(--overlay-soft-hover);
  transform: translateY(-1px);
  color: var(--text-primary);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: badge-pulse 2s infinite;
}

.hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 820px;
  margin-bottom: 14px;
}

.hero-typeline {
  font-family: "Orbitron", "Inter", sans-serif;
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 20px;
  min-height: 1.8em;
}

.hero-typeline::before {
  content: ">_ ";
  color: var(--accent);
}

.typewriter {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.type-caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 3px;
  vertical-align: -0.12em;
  background: var(--accent);
  animation: caret-blink 0.9s steps(1) infinite;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1.08rem;
  max-width: 640px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 18px;
}

.hero-microproof {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 52px;
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 900 / 363;
  margin-bottom: 56px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -12% -18%;
  background: radial-gradient(closest-side, var(--accent-glow), transparent 72%);
  filter: blur(38px);
  opacity: 0.35;
  z-index: 0;
  animation: glow-pulse 6s ease-in-out infinite;
}

/* Racing speed lines streaking behind the car */
.speed-line {
  position: absolute;
  height: 2px;
  width: 40%;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  z-index: 0;
  animation: speed-dash 2.2s linear infinite;
}

.speed-line:nth-child(1) { top: 22%; animation-delay: 0s; }
.speed-line:nth-child(2) { top: 44%; animation-delay: 0.6s; background: linear-gradient(90deg, transparent, var(--accent-2), transparent); }
.speed-line:nth-child(3) { top: 64%; animation-delay: 1.2s; }
.speed-line:nth-child(4) { top: 84%; animation-delay: 1.7s; background: linear-gradient(90deg, transparent, var(--accent-2), transparent); }

.hero-car {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: var(--hero-car-shadow);
  animation: float-car 5s ease-in-out infinite;
}

.hero-car-light {
  display: none;
}

[data-theme="light"] .hero-car-dark {
  display: none;
}

[data-theme="light"] .hero-car-light {
  display: block;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border-color);
}

.stat-value {
  font-family: "Orbitron", "Inter", sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: 22px;
  height: 36px;
  border: 2px solid var(--border-color-hover);
  border-radius: 12px;
  z-index: 1;
}

.scroll-hint span {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 3px;
  height: 7px;
  border-radius: 2px;
  background: var(--text-secondary);
  transform: translateX(-50%);
  animation: scroll-hint 1.8s ease-in-out infinite;
}

/* ---------- Ticker ---------- */

.ticker {
  overflow: hidden;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
  padding: 14px 0;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: ticker-scroll 36s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-track span {
  font-family: "Orbitron", "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  white-space: nowrap;
}

.ticker-track i {
  font-style: normal;
  font-size: 0.6rem;
  color: var(--accent);
}

/* ---------- Sections ---------- */

#services,
#tools,
#packages,
#explore,
#reviews,
#channels,
#contact {
  scroll-margin-top: var(--header-height);
}

.services,
.tools,
.packages,
.explore,
.reviews,
.channels {
  padding: 100px 0;
}

.tools,
.packages,
.explore,
.reviews,
.channels {
  border-top: 1px solid var(--border-color);
}

.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.section-heading p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* ---------- Services ---------- */

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

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  border-color: rgba(99, 102, 241, 0.55);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-soft), 0 0 30px rgba(99, 102, 241, 0.14);
}

.service-card:not(.service-card-image) {
  justify-content: center;
  padding: 8px 0 24px;
}

.service-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-secondary);
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.service-card:hover .service-image img {
  transform: scale(1.06);
}

.service-icon {
  position: relative;
  z-index: 2;
  width: 52px;
  height: 52px;
  margin: 28px 0 0 28px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--icon-bg);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  transition: transform 0.3s var(--ease), border-color 0.3s ease, background-color 0.4s ease, color 0.4s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.08);
  border-color: var(--accent);
  color: var(--accent);
}

.service-icon .icon {
  width: 100%;
  height: 100%;
}

.service-body {
  position: relative;
  z-index: 2;
  padding: 24px 28px 28px;
}

.service-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.service-body p {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* ---------- Tools ---------- */

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

.tool-card {
  position: relative;
  display: flex;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.55);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-soft), 0 0 30px rgba(99, 102, 241, 0.14);
}

.tool-card-icon {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--icon-bg);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  transition: transform 0.3s var(--ease), border-color 0.3s ease, color 0.3s ease;
}

.tool-card:hover .tool-card-icon {
  transform: scale(1.08);
  border-color: var(--accent);
  color: var(--accent);
}

.tool-card-icon .icon {
  width: 100%;
  height: 100%;
}

.tool-card-body {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.tool-card-body h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.tool-card-body p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.tool-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
}

.tool-card-link .icon-sm {
  transition: transform 0.25s var(--ease);
}

.tool-card:hover .tool-card-link .icon-sm {
  transform: translateX(3px);
}

/* ---------- Packages (rarity tiers) ---------- */

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

.package-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.package-card:hover {
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-soft);
}

.package-card.is-featured {
  border-color: var(--rarity-epic);
  box-shadow: 0 0 42px rgba(139, 92, 246, 0.18);
}

.package-flag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 16px;
  border-radius: 999px;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 2;
}

.package-rarity {
  font-family: "Orbitron", "Inter", sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.rarity-common .package-rarity { color: var(--rarity-common); }
.rarity-epic .package-rarity { color: var(--rarity-epic); }
.rarity-legendary .package-rarity { color: var(--rarity-legendary); }

.rarity-legendary:hover {
  border-color: var(--rarity-legendary);
  box-shadow: 0 0 42px rgba(245, 158, 11, 0.16);
}

.rarity-common:hover {
  border-color: var(--rarity-common);
}

.package-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.package-tagline {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 22px;
}

.package-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  flex-grow: 1;
}

.package-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.package-features .icon-sm {
  color: var(--accent);
}

.rarity-legendary .package-features .icon-sm {
  color: var(--rarity-legendary);
}

.packages-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

/* ---------- Tabs / steps / FAQ ---------- */

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

.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 44px;
}

.tab-btn {
  position: relative;
  padding: 14px 24px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.25s ease;
}

.tab-btn::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}

.tab-btn:hover {
  color: var(--text-secondary);
}

.tab-btn.is-active {
  color: var(--text-primary);
}

.tab-btn.is-active::after {
  transform: scaleX(1);
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
  animation: tab-fade 0.4s var(--ease);
}

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

.step {
  padding-right: 12px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--accent-gradient);
  border: none;
  font-family: "Orbitron", "Inter", sans-serif;
  font-weight: 800;
  font-size: 0.8rem;
  margin-bottom: 20px;
  color: #fff;
}

.step h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.step p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.steps-cta {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.faq-item.is-open {
  border-color: var(--border-color-hover);
  background: var(--bg-card-hover);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 0.96rem;
  font-weight: 600;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.faq-question .icon {
  color: var(--text-secondary);
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}

.faq-item.is-open .faq-question .icon {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}

.faq-answer p {
  padding: 0 22px 20px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  max-width: 640px;
}

.faq-answer a {
  color: var(--accent);
  font-weight: 600;
}

/* ---------- Reviews ---------- */

.reviews {
  background: var(--bg-secondary);
}

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

.review-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.review-card::after {
  content: "\201C";
  position: absolute;
  top: -6px;
  right: 16px;
  font-size: 5.5rem;
  font-weight: 800;
  line-height: 1;
  font-family: Georgia, serif;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.22;
  pointer-events: none;
}

.verified-badge {
  color: var(--accent);
  vertical-align: -2px;
  margin-right: 2px;
}

.review-card figcaption {
  display: flex;
  align-items: center;
  gap: 6px;
}

.review-card:hover {
  border-color: rgba(99, 102, 241, 0.55);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-soft), 0 0 30px rgba(99, 102, 241, 0.14);
}

.review-stars {
  display: flex;
  gap: 3px;
  color: var(--rarity-legendary);
}

.review-card blockquote {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.55;
}

.review-card figcaption {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: auto;
}

.reviews-cta {
  display: flex;
  justify-content: center;
}

/* ---------- Channels ---------- */

.channels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.channel-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.channel-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.55);
  background: var(--bg-card-hover);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.12);
}

.channel-icon {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--channel-icon-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease), background 0.3s ease;
}

.channel-card:hover .channel-icon {
  transform: scale(1.1);
  background: var(--accent-gradient);
}

.channel-card:hover .channel-icon .icon {
  color: #fff;
}

.channel-icon .icon {
  width: 20px;
  height: 20px;
  color: var(--channel-icon-color);
  transition: color 0.3s ease;
}

.channel-body {
  position: relative;
  z-index: 2;
}

.channel-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.channel-body p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 10px;
}

.channel-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.contact-bar {
  display: flex;
  justify-content: center;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  font-weight: 600;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.contact-item .icon {
  color: var(--text-primary);
}

.contact-item:hover {
  border-color: var(--border-color-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

/* ---------- Final CTA ---------- */

.cta-final {
  position: relative;
  border-top: 1px solid var(--border-color);
  padding: 90px 0;
  overflow: hidden;
  background-image: repeating-linear-gradient(-45deg, var(--hero-grid-line) 0 1px, transparent 1px 22px);
}

.cta-final::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 700px;
  height: 700px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, var(--accent-glow), transparent 70%);
  opacity: 0.22;
  filter: blur(40px);
  pointer-events: none;
}

.cta-final-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}

.cta-trophy {
  width: 44px;
  height: 44px;
  color: var(--rarity-legendary);
}

.cta-final h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  max-width: 620px;
}

.cta-final p {
  color: var(--text-secondary);
  max-width: 520px;
}

.cta-subtext {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ---------- Footer ---------- */

.site-footer {
  padding-top: 64px;
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  transition: color 0.2s ease;
  width: fit-content;
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-brand-col p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 280px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 40px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.85rem;
  flex-wrap: wrap;
}

.footer-bottom a {
  font-weight: 600;
  color: var(--text-primary);
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
  transition: transform 0.25s var(--ease), border-color 0.25s ease, background 0.25s ease;
}

.back-to-top:hover {
  transform: translateY(-3px);
  border-color: var(--border-color-hover);
  background: var(--overlay-soft-hover);
}

/* ---------- Sticky mobile CTA ---------- */

.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 140;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--hud-bg);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-color);
  transform: translateY(110%);
  transition: transform 0.4s var(--ease);
  display: none;
}

.mobile-cta.is-visible {
  transform: translateY(0);
}

/* ---------- Turbo mode (konami easter egg) ---------- */

body.turbo-mode .hero-car {
  animation: float-car 1.2s ease-in-out infinite, turbo-shake 0.18s linear infinite;
}

body.turbo-mode .ticker-track {
  animation-duration: 6s;
}

/* ---------- Keyframes ---------- */

@keyframes badge-pulse {
  0% { box-shadow: 0 0 0 0 var(--accent-glow); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

@keyframes tab-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float-car {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes turbo-shake {
  0%, 100% { margin-left: 0; }
  25% { margin-left: -2px; }
  75% { margin-left: 2px; }
}

@keyframes glow-pulse {
  0%, 100% { transform: scale(1); opacity: 0.28; }
  50% { transform: scale(1.08); opacity: 0.45; }
}

@keyframes caret-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes speed-dash {
  0% { transform: translateX(160%); opacity: 0; }
  12% { opacity: 0.75; }
  70% { opacity: 0.45; }
  100% { transform: translateX(-220%); opacity: 0; }
}

@keyframes scroll-hint {
  0% { opacity: 1; transform: translate(-50%, 0); }
  70% { opacity: 0; transform: translate(-50%, 10px); }
  100% { opacity: 0; transform: translate(-50%, 0); }
}

@keyframes btn-glow-pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { box-shadow: 0 0 26px 2px var(--accent-glow); }
}

@keyframes toggle-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(180deg); }
}

@keyframes ripple-expand {
  to { transform: scale(4); opacity: 0; }
}

@keyframes accent-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes accent-slide {
  from { background-position: 0% 50%; }
  to { background-position: 200% 50%; }
}

@keyframes toast-countdown {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

@keyframes toast-icon-pop {
  0% { transform: scale(0); }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* Carousel dots (mobile swipe indicators) */
.carousel-dots {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: var(--border-color-hover);
  opacity: 0.45;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.carousel-dots button.is-active {
  width: 22px;
  opacity: 1;
  background: var(--accent-gradient);
}

.theme-toggle.is-flipping {
  animation: toggle-spin 0.4s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .services-grid,
  .packages-grid,
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 36px;
  }

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

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

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

  .mobile-nav {
    display: flex;
  }

  .theme-toggle-mobile {
    display: flex;
  }

  .mobile-cta {
    display: block;
  }

  .hud {
    right: 12px;
    bottom: calc(78px + env(safe-area-inset-bottom));
    padding: 7px 12px;
  }

  .toast-stack {
    right: 12px;
    left: 12px;
    align-items: flex-end;
  }

  .hero {
    padding: 100px 0 56px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-microproof {
    margin-bottom: 44px;
  }

  .hero-visual {
    max-width: 100%;
    margin-bottom: 40px;
  }

  .hero-stats {
    gap: 20px;
    justify-content: space-between;
  }

  .stat-divider {
    display: none;
  }

  .scroll-hint {
    display: none;
  }

  .services,
  .tools,
  .packages,
  .explore,
  .reviews,
  .channels {
    padding: 72px 0;
  }

  .services-grid,
  .tools-grid,
  .channels-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .tool-card {
    flex-direction: column;
  }

  /* Packages & reviews become swipeable snap carousels */
  .packages-grid,
  .reviews-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 24px;
    padding: 16px 24px 8px;
    margin: 0 -24px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .packages-grid::-webkit-scrollbar,
  .reviews-grid::-webkit-scrollbar {
    display: none;
  }

  .packages-grid > *,
  .reviews-grid > * {
    flex: 0 0 82%;
    scroll-snap-align: center;
  }

  .reviews-grid {
    margin-bottom: 24px;
  }

  .carousel-dots {
    display: flex;
  }

  /* Buttons: allow wrapping so long labels never overflow */
  .btn {
    white-space: normal;
    text-align: center;
  }

  .reviews-cta .btn,
  .steps-cta .btn {
    width: 100%;
  }

  /* Tap feedback on cards */
  .service-card:active,
  .package-card:active,
  .review-card:active,
  .channel-card:active {
    transform: scale(0.98);
  }

  .tabs-nav {
    gap: 0;
  }

  .tab-btn {
    flex: 1;
    padding: 14px 8px;
    font-size: 0.88rem;
  }

  .contact-item {
    width: 100%;
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    padding-bottom: 96px;
  }

  .cta-final {
    padding: 72px 0;
  }
}

@media (max-width: 600px) {
  /* Header: only logo + theme toggle + menu; CTA lives in the menu and the
     sticky bottom bar, so the top bar never overflows on small screens */
  .header-actions .btn {
    display: none;
  }

  .header-actions {
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .header-inner {
    gap: 12px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .btn-small {
    padding: 8px 14px;
    font-size: 0.82rem;
  }

  .hud-xp-track {
    width: 56px;
  }

  .packages-grid > *,
  .reviews-grid > * {
    flex-basis: 88%;
  }

  .toast {
    min-width: 0;
    max-width: none;
    width: 100%;
  }
}
