/* ============================================================
   POKO — Premium Collector's Showcase
   Brand tokens sourced from @poko/design-tokens
   ============================================================ */

/* --- Animatable custom properties --- */
@property --holo-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

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

/* --- Brand Tokens --- */
:root {
  /* Brand */
  --brand-red: #DB2633;
  --brand-red-deep: #B81D28;
  --brand-navy: #1C3B6B;
  --brand-warm: #F8F0E3;
  --brand-cool: #E0EBFA;

  /* Dark surfaces (hero, privacy) — PTCG Pocket-depth darks */
  --dark-base: #060E1A;

  /* Rarity spectrum */
  --rarity-common: #9CA3AF;
  --rarity-uncommon: #22C55E;
  --rarity-rare: #3B82F6;
  --rarity-holo: #8B5CF6;
  --rarity-ultra: #F59E0B;
  --rarity-secret: #EC4899;
  --rarity-illustration: #06B6D4;

  /* Typography */
  --font-base: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;

  /* Motion */
  --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);

  /* Shadows */
  --shadow-card: 0 1px 2px rgba(28, 59, 107, 0.06), 0 4px 16px rgba(28, 59, 107, 0.04), 0 0 0 1px rgba(28, 59, 107, 0.04);
  --shadow-card-hover: 0 2px 4px rgba(28, 59, 107, 0.08), 0 12px 32px rgba(28, 59, 107, 0.08), 0 0 0 1px rgba(28, 59, 107, 0.06);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  color: var(--brand-navy);
  background: linear-gradient(175deg, var(--brand-warm) 0%, var(--brand-cool) 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* --- Layout --- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   HEADER — Dark frosted glass, always visible
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(6, 14, 26, 0.88);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--brand-red);
  text-decoration: none;
  letter-spacing: -0.03em;
  transition: opacity 0.2s var(--ease-default);
}

.logo:hover {
  opacity: 0.85;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s var(--ease-default);
}

.nav-links a:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* ============================================================
   HERO — Dark navy, dramatic, card display case
   ============================================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: var(--dark-base);
  overflow: hidden;
  padding: 100px 0 80px;
}

/* Radial light source behind the wordmark — warm bloom (PTCG Pocket style) */
.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 30%;
  width: 800px;
  height: 600px;
  background:
    radial-gradient(ellipse 600px 400px at 50% 50%, rgba(219, 38, 51, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 300px 300px at 60% 40%, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* Secondary cool light — purple/blue accent (PTCG Pocket ambient) */
.hero::after {
  content: '';
  position: absolute;
  bottom: 10%;
  right: 15%;
  width: 600px;
  height: 500px;
  background:
    radial-gradient(ellipse 400px 350px at 50% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 250px 250px at 30% 60%, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* Decorative card silhouettes */
.hero-cards {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: 320px;
  height: 320px;
}

.hero-card {
  position: absolute;
  transition: transform 0.6s var(--ease-out);
}

.hero-card--back {
  top: 20px;
  left: 0;
  transform: rotate(-10deg);
  opacity: 0.6;
}

.hero-card--mid {
  top: 10px;
  left: 40px;
  transform: rotate(-2deg);
  opacity: 0.8;
}

.hero-card--front {
  top: 0;
  left: 80px;
  transform: rotate(5deg);
}

/* PTCG Pocket-style holographic shimmer on front card */
.hero-card--front::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(255, 219, 112, 0.12) 36%,
    rgba(132, 50, 255, 0.08) 46%,
    rgba(59, 130, 246, 0.08) 54%,
    rgba(6, 182, 212, 0.1) 62%,
    rgba(236, 72, 153, 0.08) 72%,
    transparent 85%
  );
  background-size: 200% 100%;
  mix-blend-mode: screen;
  animation: shimmer-sweep 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shimmer-sweep {
  0%, 100% { background-position: 200% 0; }
  50% { background-position: -50% 0; }
}

/* Scanline texture overlay on front card (PTCG Pocket effect) */
.hero-card--front::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.015) 2px,
    rgba(255, 255, 255, 0.015) 4px
  );
  pointer-events: none;
  z-index: 1;
}

/* ===== SPARKLE PARTICLES (PTCG Pocket rare card effect) ===== */
.hero-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.sparkle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, transparent 70%);
  animation: sparkle-pulse 2.5s ease-in-out infinite;
}

.sparkle:nth-child(1) { top: 18%; right: 22%; animation-delay: 0s; }
.sparkle:nth-child(2) { top: 35%; right: 12%; animation-delay: 0.6s; width: 2px; height: 2px; }
.sparkle:nth-child(3) { top: 55%; right: 28%; animation-delay: 1.2s; }
.sparkle:nth-child(4) { top: 72%; right: 8%; animation-delay: 0.3s; width: 2px; height: 2px; }
.sparkle:nth-child(5) { top: 25%; right: 35%; animation-delay: 1.8s; width: 4px; height: 4px; }
.sparkle:nth-child(6) { top: 48%; right: 18%; animation-delay: 0.9s; }
.sparkle:nth-child(7) { top: 65%; right: 30%; animation-delay: 2.1s; width: 2px; height: 2px; }
.sparkle:nth-child(8) { top: 40%; right: 5%; animation-delay: 1.5s; }

@keyframes sparkle-pulse {
  0%, 100% {
    opacity: 0;
    transform: scale(0.5);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Decorative pokeball (upper right, partially clipped) */
.hero-pokeball {
  position: absolute;
  top: -60px;
  right: -80px;
  opacity: 0.5;
  pointer-events: none;
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.hero-super {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(72px, 14vw, 140px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: var(--brand-red);
  margin-bottom: 20px;
  text-shadow: 0 0 40px rgba(219, 38, 51, 0.3), 0 0 80px rgba(219, 38, 51, 0.15), 0 0 160px rgba(219, 38, 51, 0.06);
  filter: drop-shadow(0 0 60px rgba(219, 38, 51, 0.2));

  /* Holographic effect on hover — using conic-gradient */
  background: var(--brand-red);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background 0.4s var(--ease-default);
}

.hero-title:hover {
  background: conic-gradient(
    from var(--holo-angle),
    #EC4899,
    #8B5CF6,
    #3B82F6,
    #06B6D4,
    #22C55E,
    #F59E0B,
    #EC4899
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: holo-spin 3s linear infinite;
}

@keyframes holo-spin {
  to { --holo-angle: 360deg; }
}

.hero-tagline {
  font-size: 24px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.7;
  max-width: 440px;
  margin-bottom: 40px;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 32px;
  background: var(--brand-red);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  letter-spacing: -0.01em;
  transition: transform 0.3s var(--ease-bounce), box-shadow 0.3s var(--ease-default), background 0.2s var(--ease-default);
  box-shadow: 0 4px 24px rgba(219, 38, 51, 0.25);
}

.hero-cta:hover {
  transform: scale(1.03);
  background: var(--brand-red-deep);
  box-shadow: 0 6px 32px rgba(219, 38, 51, 0.35);
}

.hero-cta--secondary {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.hero-cta--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 6px 28px rgba(6, 14, 26, 0.3);
}

.hero-cta:active {
  transform: scale(0.98);
}

/* ============================================================
   TYPE SPECTRUM BAR — Pokemon energy types, pure personality
   ============================================================ */
.type-spectrum {
  display: flex;
  height: 3px;
  width: 100%;
  position: relative;
}

.type-spectrum::after {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  filter: blur(6px);
  opacity: 0.6;
}

.type-spectrum span {
  display: block;
  height: 100%;
  position: relative;
  z-index: 1;
}

/* ============================================================
   SECTION TYPOGRAPHY (warm sections)
   ============================================================ */
.section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-red);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--brand-navy);
  margin-bottom: 16px;
  max-width: 600px;
}

.section-subtitle {
  font-size: 16px;
  color: rgba(28, 59, 107, 0.55);
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: 48px;
}

/* ============================================================
   FEATURES — Warm parchment, frosted glass cards
   ============================================================ */
.features-section {
  padding: 100px 0 120px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

/* --- Feature Card (frosted sleeve) --- */
.feature-card {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(28, 59, 107, 0.07);
  border-top: 2.5px solid transparent;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease-bounce), box-shadow 0.35s var(--ease-default), border-color 0.3s var(--ease-default);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-8px) rotateX(2deg);
  box-shadow: var(--shadow-card-hover);
}

/* Rarity color top borders + PTCG Pocket colored glow on hover */
.feature-card--blue {
  border-top-color: var(--rarity-rare);
}
.feature-card--gold {
  border-top-color: var(--rarity-ultra);
}
.feature-card--purple {
  border-top-color: var(--rarity-holo);
}

.feature-card--blue:hover {
  box-shadow:
    0 -2px 24px rgba(59, 130, 246, 0.15),
    0 8px 32px rgba(59, 130, 246, 0.08),
    0 20px 60px rgba(28, 59, 107, 0.06);
}

.feature-card--gold:hover {
  box-shadow:
    0 -2px 24px rgba(245, 158, 11, 0.18),
    0 8px 32px rgba(245, 158, 11, 0.08),
    0 20px 60px rgba(28, 59, 107, 0.06);
}

.feature-card--purple:hover {
  box-shadow:
    0 -2px 24px rgba(139, 92, 246, 0.18),
    0 8px 32px rgba(139, 92, 246, 0.08),
    0 20px 60px rgba(28, 59, 107, 0.06);
}

/* Illustration area */
.feature-card__illustration {
  padding: 32px 24px 16px;
  display: flex;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* PTCG Pocket-style rainbow flash on hover */
.feature-card__illustration::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.15) 45%,
    rgba(255, 255, 255, 0.05) 50%,
    transparent 55%
  );
  transform: translateX(-100%);
  transition: none;
  pointer-events: none;
}

.feature-card:hover .feature-card__illustration::after {
  animation: card-flash 0.6s var(--ease-out) both;
}

@keyframes card-flash {
  from { transform: translateX(-100%); }
  to { transform: translateX(200%); }
}

.feature-card__illustration svg {
  width: 100%;
  max-width: 260px;
  height: auto;
}

.feature-card--blue .feature-card__illustration { color: var(--rarity-rare); }
.feature-card--gold .feature-card__illustration { color: var(--rarity-ultra); }
.feature-card--purple .feature-card__illustration { color: var(--rarity-holo); }

/* Card body */
.feature-card__body {
  padding: 8px 28px 24px;
  flex: 1;
}

.feature-card__label {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.feature-card--blue .feature-card__label { color: var(--rarity-rare); }
.feature-card--gold .feature-card__label { color: var(--rarity-ultra); }
.feature-card--purple .feature-card__label { color: var(--rarity-holo); }

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-navy);
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: rgba(28, 59, 107, 0.6);
  line-height: 1.65;
}

/* Supported sites footer */
.feature-card__sites {
  padding: 12px 28px;
  border-top: 1px solid rgba(28, 59, 107, 0.06);
  font-size: 11px;
  font-weight: 500;
  color: rgba(28, 59, 107, 0.35);
  letter-spacing: 0.01em;
}

/* ============================================================
   RARITY GEM DIVIDER — Full rarity spectrum between sections
   ============================================================ */
.rarity-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 48px 24px;
}

.gem {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gem-color);
  box-shadow: 0 0 8px color-mix(in srgb, var(--gem-color) 40%, transparent);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-bounce), box-shadow 0.3s var(--ease-default);
}

.gem:hover {
  transform: scale(1.5);
  box-shadow: 0 0 16px color-mix(in srgb, var(--gem-color) 60%, transparent);
}

.gem-line {
  width: 32px;
  height: 1px;
  background: rgba(28, 59, 107, 0.08);
  flex-shrink: 0;
}

/* ============================================================
   SUPPORTED SITES
   ============================================================ */
.sites-section {
  padding: 80px 0 100px;
}

.sites-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 640px;
  margin-top: 32px;
}

.site-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(28, 59, 107, 0.06);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--brand-navy);
  transition: box-shadow 0.2s var(--ease-default);
}

.site-badge:hover {
  box-shadow: 0 2px 12px rgba(28, 59, 107, 0.06);
}

.site-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.site-badge--blue .site-badge__dot { background: var(--rarity-rare); }
.site-badge--gold .site-badge__dot { background: var(--rarity-ultra); }
.site-badge--purple .site-badge__dot { background: var(--rarity-holo); }

/* ============================================================
   INSTALL STEPS
   ============================================================ */
.install-section {
  padding: 80px 0 100px;
}

.install-steps {
  max-width: 580px;
  margin-top: 40px;
}

.install-step {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  align-items: flex-start;
}

.install-step__number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand-red);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.install-step__content h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--brand-navy);
  margin-bottom: 4px;
  line-height: 1.4;
  padding-top: 6px;
}

.install-step__content p {
  font-size: 14px;
  color: rgba(28, 59, 107, 0.55);
  line-height: 1.5;
}

.install-step__content code {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  background: rgba(28, 59, 107, 0.05);
  border: 1px solid rgba(28, 59, 107, 0.08);
  padding: 8px 14px;
  border-radius: 8px;
  margin-top: 6px;
  color: var(--brand-navy);
}

code.inline {
  display: inline;
  font-family: var(--font-mono);
  font-size: 12px;
  background: rgba(28, 59, 107, 0.05);
  border: 1px solid rgba(28, 59, 107, 0.08);
  padding: 2px 7px;
  border-radius: 5px;
}

/* ============================================================
   PRIVACY — Dark navy band (bookends with hero)
   ============================================================ */
.privacy-section {
  background: var(--dark-base);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* Subtle radial glow */
.privacy-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 30%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 300px;
  background: radial-gradient(ellipse at center, rgba(28, 59, 107, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.privacy-inner {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  max-width: 640px;
  position: relative;
  z-index: 1;
}

.privacy-shield {
  flex-shrink: 0;
  padding-top: 2px;
}

.privacy-text h3 {
  font-size: 18px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.privacy-text p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.7;
}

/* ============================================================
   ROADMAP
   ============================================================ */
.roadmap-section {
  padding: 80px 0 100px;
}

.roadmap-list {
  list-style: none;
  max-width: 520px;
  margin-top: 32px;
}

.roadmap-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(28, 59, 107, 0.07);
  font-size: 15px;
  color: var(--brand-navy);
  font-weight: 450;
}

.roadmap-item:last-child {
  border-bottom: none;
}

.roadmap-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.roadmap-item--blue .roadmap-dot { background: var(--rarity-rare); }
.roadmap-item--gold .roadmap-dot { background: var(--rarity-ultra); }
.roadmap-item--purple .roadmap-dot { background: var(--rarity-holo); }
.roadmap-item--green .roadmap-dot { background: var(--rarity-uncommon); }
.roadmap-item--pink .roadmap-dot { background: var(--rarity-secret); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid rgba(28, 59, 107, 0.07);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  font-size: 18px;
  font-weight: 800;
  color: var(--brand-red);
  letter-spacing: -0.03em;
}

.site-footer p {
  font-size: 13px;
  color: rgba(28, 59, 107, 0.4);
}

.site-footer a {
  color: var(--brand-navy);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s var(--ease-default);
}

.site-footer a:hover {
  color: var(--brand-red);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-cards {
    right: 4%;
    width: 260px;
    height: 280px;
  }

  .hero-card {
    width: 140px;
    height: auto;
  }

  .hero-card--back { left: 0; }
  .hero-card--mid { left: 30px; }
  .hero-card--front { left: 60px; }
}

@media (max-width: 768px) {
  .hero {
    min-height: 85vh;
    padding: 120px 0 60px;
  }

  .hero-cards {
    display: none;
  }

  .hero-pokeball {
    display: none;
  }

  .hero-content {
    text-align: center;
    max-width: 100%;
  }

  .hero-cta-row {
    justify-content: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-super {
    margin-bottom: 16px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

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

  .section-title {
    max-width: 100%;
  }

  .nav-links {
    display: none;
  }

  .privacy-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 80vh;
    padding: 100px 0 48px;
  }

  .container {
    padding: 0 20px;
  }

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

  .features-section {
    padding: 72px 0 80px;
  }

  .sites-section,
  .install-section,
  .roadmap-section {
    padding: 60px 0 72px;
  }

  .early-access-form {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .early-access-form input,
  .early-access-form .hero-cta {
    width: 100% !important;
    min-width: 0 !important;
    justify-content: center;
  }
}

/* ============================================================
   PACK-OPENING LIGHT BURST (PTCG Pocket reveal)
   ============================================================ */
.hero-burst {
  position: absolute;
  top: 50%;
  right: 18%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 219, 112, 0.08) 30%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* ============================================================
   ENTRANCE ANIMATIONS (PTCG Pocket pack-opening inspired)
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  /* Light burst expands from center of card area */
  .hero-burst {
    animation: burst-expand 1.2s var(--ease-out) 0.1s both;
  }

  @keyframes burst-expand {
    0% {
      width: 0;
      height: 0;
      opacity: 1;
      transform: translate(-50%, -50%);
    }
    50% {
      width: 600px;
      height: 600px;
      opacity: 0.8;
      transform: translate(-50%, -50%);
    }
    100% {
      width: 900px;
      height: 900px;
      opacity: 0;
      transform: translate(-50%, -50%);
    }
  }

  /* Hero text enters after burst */
  .hero-content {
    animation: hero-enter 0.9s var(--ease-out) 0.2s both;
  }

  @keyframes hero-enter {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Cards emerge from center like PTCG Pocket pack opening */
  .hero-card--back {
    animation: card-emerge 0.8s var(--ease-bounce) 0.5s both;
  }
  .hero-card--mid {
    animation: card-emerge 0.8s var(--ease-bounce) 0.65s both;
  }
  .hero-card--front {
    animation: card-emerge 0.8s var(--ease-bounce) 0.8s both;
  }

  @keyframes card-emerge {
    from {
      opacity: 0;
      transform: rotate(0deg) translateY(40px) scale(0.85);
    }
  }

  /* Sparkles fade in after cards settle */
  .hero-sparkles {
    animation: sparkles-in 0.6s ease 1.2s both;
  }

  @keyframes sparkles-in {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}

/* Disable infinite/looping animations when reduced motion is preferred */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .sparkle,
  .hero-card--front::after,
  .feature-card:hover .feature-card__illustration::after,
  .hero-title:hover {
    animation: none !important;
  }

  .feature-card:hover,
  .hero-cta:hover {
    transform: none !important;
  }
}
