/* ════════════════════════════════════════════
   MEWBOT — Maison Design System
   LVMH-inspired: Serif editorial + restraint
   Typography: Playfair Display (display) + Inter (body)
   Palette: Deep midnight + muted rose accents
   ════════════════════════════════════════════ */

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

:root {
  --bg-0:     #050508;
  --bg-1:     #08080e;
  --bg-2:     #0e0e18;
  --bg-3:     #131322;
  --bg-4:     #1a1a30;

  --text-1:   #f0f0f5;
  --text-2:   #8e8ea8;
  --text-3:   #55556e;

  --accent:   #d4a0b0;
  --accent-g: #d4a0b030;
  --pink:     #c9828e;
  --gold:     #c9a84c;
  --gold-g:   #c9a84c30;
  --electric: #6eafc8;
  --elec-g:   #6eafc830;
  --grass:    #6ebe80;
  --fire:     #d49060;
  --purple:   #9080c8;
  --fighting: #b05050;
  --steel:    #6898a8;
  --dark:     #685848;

  --r-sm:  6px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;

  --font-d: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-b: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --ease:    cubic-bezier(.16, 1, .3, 1);
  --spring:  cubic-bezier(.34, 1.56, .64, 1);
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-4) var(--bg-0);
}
body {
  font-family: var(--font-b);
  background: var(--bg-0);
  color: var(--text-1);
  overflow-x: hidden;
  line-height: 1.7;
  font-weight: 300;
  font-size: 15px;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
code {
  background: #d4a0b010;
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 3px;
  font-size: .82em;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
}

/* === Grain overlay === */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.018'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 10000;
}

/* === Container === */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ════════════════════════════════════════════
   SCROLL REVEAL
   ════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.features-grid .reveal:nth-child(1) { transition-delay: .05s; }
.features-grid .reveal:nth-child(2) { transition-delay: .12s; }
.features-grid .reveal:nth-child(3) { transition-delay: .19s; }
.features-grid .reveal:nth-child(4) { transition-delay: .26s; }
.features-grid .reveal:nth-child(5) { transition-delay: .33s; }
.features-grid .reveal:nth-child(6) { transition-delay: .40s; }
.features-grid .reveal:nth-child(7) { transition-delay: .47s; }

.mini-grid .reveal:nth-child(1) { transition-delay: .0s; }
.mini-grid .reveal:nth-child(2) { transition-delay: .06s; }
.mini-grid .reveal:nth-child(3) { transition-delay: .12s; }
.mini-grid .reveal:nth-child(4) { transition-delay: .18s; }
.mini-grid .reveal:nth-child(5) { transition-delay: .24s; }
.mini-grid .reveal:nth-child(6) { transition-delay: .30s; }
.mini-grid .reveal:nth-child(7) { transition-delay: .36s; }
.mini-grid .reveal:nth-child(8) { transition-delay: .42s; }

.anim-in {
  opacity: 0;
  transform: translateY(24px);
  animation: slideUp .9s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes slideUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════════
   NAVIGATION — LVMH-refined
   ════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  transition: background .5s, backdrop-filter .5s, border-color .5s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: #050508e8;
  backdrop-filter: blur(32px) saturate(1.2);
  -webkit-backdrop-filter: blur(32px) saturate(1.2);
  border-bottom-color: #ffffff06;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-1);
}
.nav-logo-icon {
  width: 34px; height: 34px;
  background: var(--accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-d);
  font-size: .9rem;
  font-weight: 700;
  color: var(--bg-0);
  letter-spacing: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-links a {
  padding: 8px 18px;
  font-size: .68rem;
  font-weight: 400;
  color: var(--text-2);
  border-radius: var(--r-sm);
  transition: color .3s;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.nav-links a:hover {
  color: var(--text-1);
}
.nav-cta {
  background: var(--accent) !important;
  color: var(--bg-0) !important;
  font-weight: 500 !important;
  padding: 9px 24px !important;
  border-radius: var(--r-sm) !important;
  margin-left: 12px !important;
  transition: opacity .3s, transform .3s var(--ease) !important;
}
.nav-cta:hover {
  opacity: .85;
  transform: translateY(-1px);
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px; padding: 8px;
}
.nav-burger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--text-1); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

.mobile-overlay {
  display: none;
  position: fixed; inset: 0;
  background: #000000aa;
  z-index: 999;
}
.mobile-overlay.active { display: block; }

@media (max-width: 768px) {
  .nav-burger { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 300px; height: 100vh;
    flex-direction: column;
    background: var(--bg-1);
    padding: 80px 32px 32px;
    gap: 4px;
    transition: right .4s var(--ease);
    border-left: 1px solid #ffffff08;
    z-index: 1001;
  }
  .nav-links.open { right: 0; }
  .nav-links a {
    width: 100%; padding: 14px 16px;
    font-size: .8rem; letter-spacing: .1em;
  }
  .nav-cta {
    width: 100%; text-align: center;
    margin-top: 12px; margin-left: 0 !important;
  }
}

/* ════════════════════════════════════════════
   BUTTONS — Restrained luxury
   ════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  background: var(--accent);
  color: var(--bg-0);
  font-weight: 500;
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all .4s var(--ease);
  position: relative;
}
.btn-primary:hover {
  opacity: .88;
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: transparent;
  color: var(--text-1);
  font-weight: 400;
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid #ffffff18;
  transition: all .4s var(--ease);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ════════════════════════════════════════════
   HERO — Editorial grandeur
   ════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 160px 0 120px;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 40%, #d4a0b008 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 20%, #908ac806 0%, transparent 60%),
    var(--bg-0);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(#ffffff02 1px, transparent 1px),
    linear-gradient(90deg, #ffffff02 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 10%, transparent 70%);
}
.hero-particles {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 1;
}
.hero-content {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 80px;
  align-items: center;
}
.hero-text { max-width: 580px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px 6px 12px;
  background: transparent;
  border: 1px solid #ffffff0c;
  border-radius: 100px;
  font-size: .65rem;
  font-weight: 400;
  color: var(--text-3);
  margin-bottom: 40px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  background: var(--grass);
  border-radius: 50%;
  animation: pulseDot 2.5s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 #6ebe8050; }
  50% { box-shadow: 0 0 0 5px #6ebe8000; }
}

.hero h1 {
  font-family: var(--font-d);
  font-size: clamp(2.8rem, 5.2vw, 4.6rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.02em;
  margin-bottom: 32px;
}
.grad {
  background: linear-gradient(135deg, var(--accent) 0%, var(--gold) 60%, var(--electric) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradShift 5s ease-in-out infinite alternate;
}
@keyframes gradShift {
  0% { background-position: 0% center; }
  100% { background-position: 100% center; }
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.9;
  margin-bottom: 48px;
  max-width: 440px;
  font-weight: 300;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}
.hero-stats {
  display: flex; gap: 40px;
  flex-wrap: wrap;
}
.hero-stat { display: flex; flex-direction: column; }
.hero-stat-num {
  font-family: var(--font-d);
  font-size: 1.5rem;
  font-weight: 700;
}
.hero-stat-label {
  font-size: .6rem;
  color: var(--text-3);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .18em;
  margin-top: 2px;
}

/* Hero visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 480px;
}
.hero-ring {
  position: absolute;
  width: 340px; height: 340px;
  border-radius: 50%;
  border: 1px solid #ffffff05;
  animation: ringRotate 40s linear infinite;
}
.hero-ring--2 {
  width: 230px; height: 230px;
  border-style: dashed;
  border-color: #ffffff03;
  animation-direction: reverse;
  animation-duration: 28s;
}
@keyframes ringRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-poke {
  position: absolute;
  image-rendering: pixelated;
  animation: pokeFloat 5s ease-in-out infinite;
  --poke-float: 0px;
}
.hero-poke-1 {
  width: 130px; top: 8%; right: 12%;
  z-index: 3;
  filter: drop-shadow(0 0 20px #d4a0b020);
}
.hero-poke-2 {
  width: 110px; bottom: 12%; left: 8%;
  animation-delay: -1.5s; z-index: 2;
  filter: drop-shadow(0 0 18px #6eafc820);
}
.hero-poke-3 {
  width: 150px; top: 30%; left: 22%;
  animation-delay: -.8s; z-index: 4;
  filter: drop-shadow(0 0 22px #c9a84c20);
}
.hero-poke-4 {
  width: 95px; bottom: 22%; right: 6%;
  animation-delay: -2.2s; z-index: 1;
  filter: drop-shadow(0 0 14px #9080c820);
}
@keyframes pokeFloat {
  0%, 100% { transform: translateY(0) translate3d(var(--px, 0px), var(--py, 0px), 0); }
  50% { transform: translateY(-12px) translate3d(var(--px, 0px), var(--py, 0px), 0); }
}

@media (max-width: 968px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-text { max-width: 100%; margin: 0 auto; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { height: 300px; margin-top: 16px; }
  .hero-ring { width: 220px; height: 220px; }
  .hero-ring--2 { width: 150px; height: 150px; }
  .hero-poke-1 { width: 95px; }
  .hero-poke-2 { width: 85px; }
  .hero-poke-3 { width: 110px; }
  .hero-poke-4 { width: 70px; }
}

/* ════════════════════════════════════════════
   MAISON DIVIDER
   ════════════════════════════════════════════ */
.maison-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 56px 0;
}
.maison-line {
  flex: 1;
  max-width: 180px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ffffff0a, transparent);
}
.maison-mark {
  font-family: var(--font-d);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: .2em;
  opacity: .3;
  font-style: italic;
}

/* ════════════════════════════════════════════
   POKEMON TICKER
   ════════════════════════════════════════════ */
.ticker {
  padding: 36px 0;
  border-top: 1px solid #ffffff05;
  border-bottom: 1px solid #ffffff05;
  background: var(--bg-1);
  overflow: hidden;
}
.ticker-track {
  display: flex;
  gap: 64px;
  animation: scroll 40s linear infinite;
  width: max-content;
}
.ticker-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: .25;
  transition: opacity .5s;
}
.ticker-item:hover { opacity: .8; }
.ticker-item img {
  width: 40px; height: 40px;
  image-rendering: pixelated;
}
.ticker-item span {
  font-weight: 400;
  font-size: .65rem;
  color: var(--text-3);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .16em;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ════════════════════════════════════════════
   EDITORIAL STATEMENT
   ════════════════════════════════════════════ */
.editorial {
  padding: 200px 0;
  position: relative;
  text-align: center;
}
.editorial-inner {
  max-width: 840px;
  margin: 0 auto;
}
.editorial-eyebrow {
  font-family: var(--font-b);
  font-size: .6rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .3em;
  color: var(--accent);
  margin-bottom: 28px;
}
.editorial-headline {
  font-family: var(--font-d);
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.03em;
}
.editorial-thin {
  font-weight: 400;
  font-style: italic;
  color: var(--text-2);
}

/* ════════════════════════════════════════════
   PARALLAX SHOWCASE
   ════════════════════════════════════════════ */
.parallax-showcase {
  position: relative;
  height: 400px;
  overflow: hidden;
  pointer-events: none;
}
.pshowcase-layer {
  position: absolute;
  inset: 0;
  will-change: transform;
}
.pshowcase-sprite {
  position: absolute;
  width: 64px;
  height: 64px;
  image-rendering: pixelated;
  opacity: .06;
}
.pshowcase-sprite--lg {
  width: 96px;
  height: 96px;
  opacity: .09;
}

/* ════════════════════════════════════════════
   SECTIONS — LVMH-level spacing
   ════════════════════════════════════════════ */
.section {
  padding: 160px 0;
  position: relative;
}
.section-label {
  font-family: var(--font-b);
  font-size: .6rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .3em;
  color: var(--accent);
  margin-bottom: 20px;
}
.section-title {
  font-family: var(--font-d);
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.12;
  margin-bottom: 20px;
}
.section-desc {
  font-size: .95rem;
  color: var(--text-2);
  max-width: 520px;
  line-height: 1.9;
  font-weight: 300;
}

/* ════════════════════════════════════════════
   LUXURY RULE
   ════════════════════════════════════════════ */
.lux-rule {
  display: flex;
  justify-content: center;
  padding: 32px 0;
}
.lux-rule-inner {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .2;
}

/* ════════════════════════════════════════════
   FEATURES GRID — 1px gap grid (LVMH-style)
   ════════════════════════════════════════════ */
#features {
  background:
    radial-gradient(ellipse 45% 30% at 75% 20%, #9080c804 0%, transparent 60%),
    var(--bg-0);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 72px;
  background: #ffffff06;
  border: 1px solid #ffffff06;
  border-radius: var(--r-md);
  overflow: hidden;
}
.feature-card {
  position: relative;
  padding: 40px 32px;
  background: var(--bg-1);
  overflow: hidden;
  transition: background .5s var(--ease);
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  opacity: 0;
  transition: opacity .5s;
}
.feature-card[data-accent="fire"]::before    { background: var(--fire); }
.feature-card[data-accent="grass"]::before   { background: var(--grass); }
.feature-card[data-accent="electric"]::before{ background: var(--electric); }
.feature-card[data-accent="pink"]::before    { background: var(--accent); }
.feature-card[data-accent="gold"]::before    { background: var(--gold); }
.feature-card[data-accent="purple"]::before  { background: var(--purple); }

.feature-card:hover {
  background: var(--bg-2);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.feature-icon[data-color="fire"]    { background: #d4906010; color: var(--fire); }
.feature-icon[data-color="grass"]   { background: #6ebe8010; color: var(--grass); }
.feature-icon[data-color="electric"]{ background: #6eafc810; color: var(--electric); }
.feature-icon[data-color="pink"]    { background: #d4a0b010; color: var(--accent); }
.feature-icon[data-color="gold"]    { background: #c9a84c10; color: var(--gold); }
.feature-icon[data-color="purple"]  { background: #9080c810; color: var(--purple); }

.feature-card h3 {
  font-family: var(--font-d);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -.01em;
}
.feature-card p {
  color: var(--text-2);
  font-size: .84rem;
  line-height: 1.75;
  font-weight: 300;
}

.feature-card--hero {
  grid-column: span 2;
  grid-row: span 2;
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.feature-card--hero h3 { font-size: 1.35rem; }
.feature-card--hero p { font-size: .92rem; max-width: 380px; }

.feature-sprites {
  display: flex;
  gap: 14px; margin-top: 28px;
  flex-wrap: wrap;
}
.feature-sprites img {
  width: 72px; height: 72px;
  image-rendering: pixelated;
  filter: drop-shadow(0 4px 12px #00000030);
  transition: transform .4s var(--ease);
}
.feature-sprites img:hover {
  transform: scale(1.15) translateY(-6px);
}

@media (max-width: 968px) {
  .features-grid { grid-template-columns: 1fr; }
  .feature-card--hero { grid-column: span 1; grid-row: span 1; }
}

/* ════════════════════════════════════════════
   BATTLE SHOWCASE
   ════════════════════════════════════════════ */
.battle-section {
  background:
    radial-gradient(ellipse 40% 30% at 30% 55%, #d4906004 0%, transparent 60%),
    var(--bg-0);
}
.battle-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 72px;
  align-items: center;
  margin-top: 72px;
}
.battle-visual {
  background: var(--bg-1);
  border-radius: var(--r-lg);
  border: 1px solid #ffffff06;
  padding: 36px;
  overflow: hidden;
}
.battle-field {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  position: relative;
  padding: 16px 0 20px;
}
.battle-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex: 1;
}
.battle-sprite {
  width: 110px; height: 110px;
  image-rendering: pixelated;
  filter: drop-shadow(0 6px 16px #00000040);
  animation: battleBounce 3s ease-in-out infinite;
}
.battle-sprite.flipped { transform: scaleX(-1); }
.battle-side--right .battle-sprite {
  animation-delay: .6s;
}
@keyframes battleBounce {
  0%, 100% { transform: translateY(0) scaleX(var(--sx, 1)); }
  50% { transform: translateY(-8px) scaleX(var(--sx, 1)); }
}
.battle-sprite.flipped { --sx: -1; }

.battle-hud-bar { width: 100%; max-width: 160px; }
.hud-name {
  font-size: .68rem;
  font-weight: 500;
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hud-name span { color: var(--text-3); font-weight: 400; }
.hp-bar {
  height: 3px;
  background: var(--bg-3);
  border-radius: 100px;
  overflow: hidden;
}
.hp-fill {
  height: 100%;
  border-radius: 100px;
  background: var(--grass);
  transition: width 1s var(--ease);
}
.hp-fill--low {
  background: var(--fire);
}
.hp-text {
  font-size: .6rem;
  color: var(--text-3);
  text-align: right;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

.battle-fx {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 50px; height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--fire) 0%, transparent 70%);
  opacity: 0;
  animation: burst 3s ease-in-out infinite;
  z-index: 3;
}
@keyframes burst {
  0%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(.4); }
  50% { opacity: .35; transform: translate(-50%, -50%) scale(1.2); }
}

.battle-moves {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 20px;
}
.battle-move {
  padding: 10px 16px;
  border-radius: var(--r-sm);
  font-size: .7rem;
  font-weight: 500;
  color: var(--text-1);
  transition: all .3s;
  border: 1px solid #ffffff06;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.battle-move[data-type="fighting"] { background: #b0505015; }
.battle-move[data-type="steel"]    { background: #6898a815; }
.battle-move[data-type="dark"]     { background: #68584815; }
.battle-move[data-type="normal"]   { background: #a8a87815; }
.battle-move:hover { border-color: #ffffff14; }

.battle-features { display: flex; flex-direction: column; gap: 32px; }
.battle-feature {
  display: flex; gap: 20px;
  align-items: flex-start;
}
.bf-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center; justify-content: center;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--c) 10%, transparent);
  color: var(--c);
}
.battle-feature h4 {
  font-family: var(--font-d);
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.battle-feature p {
  font-size: .82rem;
  color: var(--text-2);
  line-height: 1.7;
  font-weight: 300;
}

@media (max-width: 968px) {
  .battle-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ════════════════════════════════════════════
   PARALLAX INTERLUDE
   ════════════════════════════════════════════ */
.parallax-interlude {
  position: relative;
  height: 400px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.parallax-interlude--short {
  height: 280px;
}
.interlude-bg {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 50% 50% at 50% 50%, #d4a0b006 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 30% 60%, #9080c804 0%, transparent 60%);
  will-change: transform;
}
.interlude-quote {
  text-align: center;
  position: relative;
  z-index: 2;
}
.interlude-quote p {
  font-family: var(--font-d);
  font-size: clamp(1.4rem, 3.2vw, 2.4rem);
  font-weight: 400;
  font-style: italic;
  color: var(--text-2);
  letter-spacing: -.01em;
  line-height: 1.5;
}
.interlude-sprite {
  position: absolute;
  width: 56px;
  height: 56px;
  image-rendering: pixelated;
  opacity: .06;
  will-change: transform;
  pointer-events: none;
}

/* ════════════════════════════════════════════
   HOW TO PLAY
   ════════════════════════════════════════════ */
#how-to-play {
  background:
    radial-gradient(ellipse 40% 28% at 70% 30%, #6eafc804 0%, transparent 60%),
    var(--bg-0);
}
.steps-row {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 72px;
}
.step-card {
  flex: 1;
  padding: 44px 28px;
  background: var(--bg-1);
  border: 1px solid #ffffff06;
  border-radius: var(--r-md);
  text-align: center;
  transition: all .5s var(--ease);
}
.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.step-num {
  font-family: var(--font-d);
  font-size: 2.8rem;
  font-weight: 700;
  font-style: italic;
  background: linear-gradient(180deg, #ffffff10, #ffffff04);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 20px;
}
.step-card h3 {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 12px;
}
.step-card p {
  color: var(--text-2);
  font-size: .82rem;
  line-height: 1.7;
  font-weight: 300;
}
.step-connector {
  width: 40px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin-top: 80px;
  flex-shrink: 0;
  opacity: .3;
}

@media (max-width: 768px) {
  .steps-row { flex-direction: column; gap: 16px; }
  .step-connector {
    width: 1px; height: 32px;
    margin: 0 auto;
    background: linear-gradient(180deg, transparent, var(--accent), transparent);
  }
}

/* ════════════════════════════════════════════
   SYSTEMS ROWS
   ════════════════════════════════════════════ */
.systems-section {
  background:
    radial-gradient(ellipse 40% 30% at 20% 40%, #6ebe8004 0%, transparent 60%),
    var(--bg-0);
}
.system-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  margin-bottom: 140px;
}
.system-row:last-child { margin-bottom: 0; }
.system-row--rev .system-visual { order: -1; }

.system-visual {
  background: var(--bg-1);
  border: 1px solid #ffffff06;
  border-radius: var(--r-lg);
  padding: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  overflow: hidden;
}
.sys-sprites {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.sys-sprites img {
  width: 80px;
  image-rendering: pixelated;
  filter: drop-shadow(0 4px 12px #00000030);
  transition: transform .4s var(--ease);
}
.sys-sprites img:hover { transform: scale(1.15) rotate(-3deg); }

.system-text h3 {
  font-family: var(--font-d);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: -.02em;
}
.system-text p {
  color: var(--text-2);
  font-size: .9rem;
  line-height: 1.9;
  margin-bottom: 28px;
  font-weight: 300;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 6px 18px;
  background: transparent;
  border: 1px solid #ffffff08;
  border-radius: 2px;
  font-size: .65rem;
  font-weight: 400;
  color: var(--text-3);
  letter-spacing: .1em;
  text-transform: uppercase;
}

@media (max-width: 968px) {
  .system-row { grid-template-columns: 1fr; gap: 36px; }
  .system-row--rev .system-visual { order: 0; }
}

/* ════════════════════════════════════════════
   MINI SYSTEMS GRID
   ════════════════════════════════════════════ */
.mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #ffffff06;
  border: 1px solid #ffffff06;
  border-radius: var(--r-md);
  overflow: hidden;
}
.mini-card {
  padding: 36px 28px;
  background: var(--bg-1);
  transition: background .5s var(--ease);
}
.mini-card:hover {
  background: var(--bg-2);
}
.mini-num {
  font-family: var(--font-d);
  font-size: .7rem;
  font-weight: 700;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: .05em;
}
.mini-card h4 {
  font-family: var(--font-d);
  font-size: .92rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.mini-card p {
  font-size: .8rem;
  color: var(--text-2);
  line-height: 1.7;
  font-weight: 300;
}

@media (max-width: 968px) { .mini-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .mini-grid { grid-template-columns: 1fr; } }

/* ════════════════════════════════════════════
   WHY MEWBOT
   ════════════════════════════════════════════ */
.why-section {
  background: var(--bg-1);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 72px;
  background: #ffffff06;
  border: 1px solid #ffffff06;
  border-radius: var(--r-md);
  overflow: hidden;
}
.why-card {
  padding: 56px 36px;
  background: var(--bg-1);
  text-align: center;
  transition: background .5s var(--ease);
}
.why-card:hover {
  background: var(--bg-2);
}
.why-num {
  font-family: var(--font-d);
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1;
  color: var(--c);
}
.why-card h3 {
  font-family: var(--font-d);
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-2);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.why-card p {
  font-size: .82rem;
  color: var(--text-3);
  line-height: 1.7;
  font-weight: 300;
}

@media (max-width: 768px) { .why-grid { grid-template-columns: 1fr; } }

/* ════════════════════════════════════════════
   DASHBOARD PREVIEW
   ════════════════════════════════════════════ */
.dash-preview {
  margin-top: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.dash-mockup {
  width: 100%;
  max-width: 800px;
  background: var(--bg-1);
  border: 1px solid #ffffff08;
  border-radius: var(--r-md);
  overflow: hidden;
}
.dash-bar {
  display: flex;
  gap: 6px;
  padding: 14px 18px;
  background: var(--bg-2);
  border-bottom: 1px solid #ffffff06;
}
.dash-bar span {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #ffffff0c;
}
.dash-bar span:first-child { background: #b05050; }
.dash-bar span:nth-child(2) { background: #c9a84c; }
.dash-bar span:nth-child(3) { background: #6ebe80; }

.dash-body {
  display: flex;
  padding: 20px;
  gap: 16px;
  min-height: 240px;
}
.dash-sidebar {
  width: 50px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dash-nav-item {
  width: 100%; height: 36px;
  border-radius: 6px;
  background: #ffffff05;
}
.dash-nav-item.active {
  background: var(--accent);
  opacity: .2;
}
.dash-main { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.dash-row { display: flex; gap: 12px; }
.dash-card-sm {
  flex: 1; height: 80px;
  border-radius: 8px;
  background: #ffffff05;
}
.dash-card-lg {
  flex: 1;
  border-radius: 8px;
  background: #ffffff03;
  border: 1px dashed #ffffff08;
}
.dash-badge {
  margin-top: 32px;
  display: inline-flex;
  padding: 10px 32px;
  background: var(--accent);
  color: var(--bg-0);
  border-radius: 2px;
  font-weight: 500;
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* ════════════════════════════════════════════
   FINAL CTA
   ════════════════════════════════════════════ */
.cta-final {
  padding: 200px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-bg-layer {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 55% 45% at 50% 50%, #d4a0b008 0%, transparent 60%),
    radial-gradient(ellipse 35% 35% at 30% 70%, #6eafc804 0%, transparent 60%);
  will-change: transform;
}
.cta-content {
  position: relative; z-index: 2;
}
.cta-content h2 {
  font-family: var(--font-d);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 24px;
  line-height: 1.1;
}
.cta-content p {
  font-size: 1rem;
  color: var(--text-2);
  max-width: 460px;
  margin: 0 auto 56px;
  line-height: 1.9;
  font-weight: 300;
}
.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cta-bg-sprites {
  position: absolute; inset: 0;
  pointer-events: none;
}
.cta-bg-sprites img {
  position: absolute;
  image-rendering: pixelated;
  opacity: .06;
  will-change: transform;
}

/* ════════════════════════════════════════════
   HERO PARALLAX ORBS
   ════════════════════════════════════════════ */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
  filter: blur(100px);
}
.hero-orb-1 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, #d4a0b00c 0%, transparent 70%);
  top: 5%; left: 15%;
}
.hero-orb-2 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, #6eafc80c 0%, transparent 70%);
  top: 50%; right: 10%;
}
.hero-orb-3 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, #9080c808 0%, transparent 70%);
  bottom: 10%; left: 50%;
}

[data-parallax-y],
[data-mouse-parallax] {
  will-change: transform;
}

/* ════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════ */
.footer {
  padding: 72px 0 56px;
  border-top: 1px solid #ffffff06;
  background: var(--bg-0);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.footer-links { display: flex; gap: 32px; }
.footer-links a {
  font-size: .65rem;
  color: var(--text-3);
  transition: color .3s;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 400;
}
.footer-links a:hover { color: var(--text-1); }

.footer-legal {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
}
.footer-legal a {
  font-size: .65rem;
  color: var(--text-3);
  transition: color .3s;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 400;
}
.footer-legal a:hover {
  color: var(--accent);
}
.footer-legal-sep {
  color: var(--text-3);
  opacity: .2;
}

.footer-copy {
  width: 100%;
  text-align: center;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #ffffff05;
  font-size: .62rem;
  color: var(--text-3);
  line-height: 1.8;
  letter-spacing: .04em;
}

@media (max-width: 600px) {
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; flex-wrap: wrap; }
}

/* ════════════════════════════════════════════
   COMMANDS SECTION
   ════════════════════════════════════════════ */
.commands-section {
  background:
    radial-gradient(ellipse 45% 30% at 25% 60%, #6eafc804 0%, transparent 60%),
    radial-gradient(ellipse 35% 25% at 80% 30%, #d4a0b003 0%, transparent 60%),
    var(--bg-0);
}
.cmd-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #ffffff06;
  border: 1px solid #ffffff06;
  border-radius: var(--r-md);
  overflow: hidden;
}
.cmd-category {
  background: var(--bg-1);
  padding: 32px 28px;
  transition: background .5s var(--ease);
}
.cmd-category:hover {
  background: var(--bg-2);
}
.cmd-cat-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid #ffffff06;
}
.cmd-cat-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center; justify-content: center;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--c) 10%, transparent);
  color: var(--c);
}
.cmd-cat-header h3 {
  font-family: var(--font-d);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.cmd-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cmd-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cmd-item code {
  font-size: .72rem;
  padding: 3px 10px;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 90px;
}
.cmd-item span {
  font-size: .76rem;
  color: var(--text-3);
  font-weight: 300;
}

.cmd-grid .reveal:nth-child(1) { transition-delay: .0s; }
.cmd-grid .reveal:nth-child(2) { transition-delay: .06s; }
.cmd-grid .reveal:nth-child(3) { transition-delay: .12s; }
.cmd-grid .reveal:nth-child(4) { transition-delay: .18s; }
.cmd-grid .reveal:nth-child(5) { transition-delay: .24s; }
.cmd-grid .reveal:nth-child(6) { transition-delay: .30s; }

@media (max-width: 968px) { .cmd-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .cmd-grid { grid-template-columns: 1fr; } }

/* ════════════════════════════════════════════
   FAQ SECTION
   ════════════════════════════════════════════ */
.faq-section {
  background:
    radial-gradient(ellipse 40% 30% at 50% 40%, #9080c804 0%, transparent 60%),
    var(--bg-0);
}
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.faq-item {
  background: var(--bg-1);
  border: 1px solid #ffffff06;
  border-radius: var(--r-sm);
  transition: all .4s var(--ease);
  overflow: hidden;
}
.faq-item:hover {
  border-color: #ffffff0a;
}
.faq-item[open] {
  border-color: #ffffff0c;
  background: var(--bg-2);
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color .3s;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q span {
  font-family: var(--font-d);
  font-size: .92rem;
  font-weight: 600;
}
.faq-q:hover span {
  color: var(--accent);
}
.faq-chevron {
  flex-shrink: 0;
  color: var(--text-3);
  transition: transform .4s var(--ease), color .3s;
}
.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}
.faq-a {
  padding: 0 28px 24px;
}
.faq-a p {
  font-size: .88rem;
  color: var(--text-2);
  line-height: 1.9;
  font-weight: 300;
}

.faq-list .reveal:nth-child(1) { transition-delay: .0s; }
.faq-list .reveal:nth-child(2) { transition-delay: .06s; }
.faq-list .reveal:nth-child(3) { transition-delay: .12s; }
.faq-list .reveal:nth-child(4) { transition-delay: .18s; }
.faq-list .reveal:nth-child(5) { transition-delay: .24s; }
.faq-list .reveal:nth-child(6) { transition-delay: .30s; }

/* ════════════════════════════════════════════
   LEGAL PAGES
   ════════════════════════════════════════════ */
.legal-hero {
  padding: 180px 0 80px;
  position: relative;
  text-align: center;
}
.legal-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 50% 40%, #d4a0b006 0%, transparent 70%),
    radial-gradient(ellipse 35% 35% at 80% 20%, #9080c803 0%, transparent 60%),
    var(--bg-0);
}
.legal-hero-content {
  position: relative;
  z-index: 2;
}
.legal-hero h1 {
  font-family: var(--font-d);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.12;
  margin-bottom: 20px;
}
.legal-hero .legal-updated,
.legal-hero .updated {
  font-size: .65rem;
  color: var(--text-3);
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.legal-body {
  padding: 80px 0 160px;
  background: var(--bg-0);
}
.legal-container,
.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px;
}
.legal-container h2,
.legal-content h2 {
  font-family: var(--font-d);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-top: 64px;
  margin-bottom: 20px;
  color: var(--text-1);
  padding-bottom: 14px;
  border-bottom: 1px solid #ffffff06;
}
.legal-container h2:first-child,
.legal-content h2:first-of-type {
  margin-top: 0;
}
.legal-container p,
.legal-content p {
  font-size: .88rem;
  color: var(--text-2);
  line-height: 2;
  margin-bottom: 18px;
  font-weight: 300;
}
.legal-container ul,
.legal-content ul {
  padding-left: 20px;
  margin-bottom: 18px;
  list-style: none;
}
.legal-container ul li,
.legal-content ul li {
  font-size: .88rem;
  color: var(--text-2);
  line-height: 2;
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-weight: 300;
}
.legal-container ul li::before,
.legal-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
}
.legal-container a,
.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: #d4a0b030;
  text-underline-offset: 3px;
  transition: text-decoration-color .3s;
}
.legal-container a:hover,
.legal-content a:hover {
  text-decoration-color: var(--accent);
}
.legal-container strong,
.legal-content strong {
  color: var(--text-1);
  font-weight: 500;
}
.legal-divider {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--purple));
  margin: 64px 0;
  border-radius: 2px;
  border: none;
}
