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

:root {
  --gold:       #f5c842;
  --gold-dim:   #c9a22e;
  --purple:     #7c3aed;
  --purple-mid: #5b21b6;
  --purple-dark:#2e1065;
  --bg-dark:    #0f0a1e;
  --bg-mid:     #16102b;
  --bg-card:    #1e1638;
  --bg-card2:   #241a42;
  --text:       #e8e0ff;
  --text-muted: #9d8fc4;
  --border:     rgba(124, 58, 237, 0.25);
  --radius:     12px;
  --radius-lg:  20px;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: #fff; }

/* ─── Utility ──────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-dark { background: var(--bg-dark); }
.section-mid  { background: var(--bg-mid); }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(245,200,66,0.1);
  border: 1px solid rgba(245,200,66,0.3);
  border-radius: 999px;
  padding: 0.25rem 0.9rem;
  margin-bottom: 1rem;
}
.section-header h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: 0.75rem; }
.section-header p  { color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* ─── Buttons ──────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; border-radius: var(--radius); font-weight: 700; transition: var(--transition); cursor: pointer; border: none; }
.btn-primary { background: var(--gold); color: #0f0a1e; padding: 0.8rem 2rem; }
.btn-primary:hover { background: #fff; color: #0f0a1e; }

.play-badge { height: 52px; display: block; }

/* ─── Nav ──────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15,10,30,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.nav-logo { display: flex; align-items: center; gap: 0.5rem; color: #fff; font-size: 1.25rem; font-weight: 800; }
.logo-icon { font-size: 1.4rem; }
.logo-text { background: linear-gradient(90deg, var(--gold), #fff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { list-style: none; display: flex; gap: 2rem; }
.nav-links a { color: var(--text-muted); font-size: 0.95rem; font-weight: 500; transition: var(--transition); }
.nav-links a:hover { color: var(--gold); }

/* ─── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: 6rem 1.5rem 5rem;
  text-align: center;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124,58,237,0.35) 0%, transparent 70%), var(--bg-dark);
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 40% at 50% -10%, rgba(245,200,66,0.12) 0%, transparent 70%);
}
.hero-inner { position: relative; max-width: 800px; margin: 0 auto; }
.hero-badge {
  display: inline-block;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); background: rgba(245,200,66,0.08); border: 1px solid rgba(245,200,66,0.3);
  border-radius: 999px; padding: 0.3rem 1rem; margin-bottom: 1.5rem;
}
.hero-title {
  font-size: clamp(4rem, 14vw, 8rem);
  font-weight: 900; line-height: 1;
  background: linear-gradient(135deg, #fff 30%, var(--gold) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}
.hero-tagline {
  font-size: clamp(1.1rem, 3vw, 1.5rem); font-weight: 600;
  color: var(--gold); margin-bottom: 1.25rem; letter-spacing: 0.04em;
}
.hero-sub {
  font-size: 1.1rem; color: var(--text-muted);
  max-width: 520px; margin: 0 auto 2rem;
}
.hero-cta { margin-bottom: 3rem; }
.hero-cards {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem;
}
.stat-card {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.6rem 1.25rem;
  font-size: 0.9rem; font-weight: 600;
}
.stat-icon { font-size: 1.1rem; }

/* ─── Feature Grid ─────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  transition: var(--transition);
}
.feature-card:hover { border-color: var(--purple); transform: translateY(-3px); }
.feature-icon { font-size: 2rem; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ─── Class Tree ───────────────────────────────────────────── */
.class-tree { margin-bottom: 3rem; display: flex; flex-direction: column; gap: 1.5rem; }
.class-tier { text-align: center; }
.tier-label {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted); margin-bottom: 0.75rem;
}
.class-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.class-row-wide { gap: 0.5rem; }
.class-node {
  background: var(--bg-card2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.5rem 1rem;
  font-size: 0.9rem; font-weight: 600; display: flex; align-items: center; gap: 0.4rem;
}
.class-origin {
  background: linear-gradient(135deg, rgba(245,200,66,0.15), rgba(124,58,237,0.15));
  border-color: var(--gold-dim);
  font-size: 1rem; padding: 0.6rem 1.5rem;
}
.class-sm { font-size: 0.8rem; padding: 0.4rem 0.8rem; }
.class-legendary {
  background: linear-gradient(135deg, rgba(124,58,237,0.25), rgba(245,200,66,0.1));
  border-color: rgba(124,58,237,0.5);
}

/* ─── Cosmetics ─────────────────────────────────────────────── */
.cosmetics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.cosmetic-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem;
  text-align: center;
}
.cosmetic-icon { font-size: 2.25rem; margin-bottom: 0.75rem; }
.cosmetic-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.4rem; }
.cosmetic-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ─── Steps ─────────────────────────────────────────────────── */
.steps {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem;
}
.step { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; max-width: 280px; text-align: center; }
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--gold-dim));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 900; margin: 0 auto 1rem;
}
.step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.step p { color: var(--text-muted); font-size: 0.9rem; }
.step-arrow { font-size: 1.5rem; color: var(--text-muted); flex-shrink: 0; }

/* ─── FAQ ───────────────────────────────────────────────────── */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.faq-item summary {
  padding: 1.1rem 1.5rem; font-weight: 600; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
  transition: var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.2rem; color: var(--gold); }
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover { background: var(--bg-card2); }
.faq-item p { padding: 0 1.5rem 1.25rem; color: var(--text-muted); font-size: 0.95rem; }
.faq-item code { background: rgba(124,58,237,0.2); border-radius: 4px; padding: 0.1em 0.4em; font-size: 0.85em; }

/* ─── CTA section ───────────────────────────────────────────── */
.cta-section {
  background: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(124,58,237,0.3), transparent),
              var(--bg-dark);
  border-top: 1px solid var(--border);
}
.cta-inner { text-align: center; }
.cta-inner h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: 0.75rem; }
.cta-inner p { color: var(--text-muted); margin-bottom: 2rem; }

/* ─── Footer ─────────────────────────────────────────────────── */
.footer {
  background: #080512; border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
}
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-logo { font-size: 1.1rem; font-weight: 800; color: var(--gold); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; transition: var(--transition); }
.footer-links a:hover { color: var(--gold); }
.footer-copy { color: var(--text-muted); font-size: 0.8rem; width: 100%; text-align: center; margin-top: 0.5rem; }

/* ─── Privacy Page ──────────────────────────────────────────── */
.privacy-hero {
  padding: 5rem 1.5rem 3rem;
  text-align: center;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(124,58,237,0.3), transparent), var(--bg-dark);
  border-bottom: 1px solid var(--border);
}
.privacy-hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; margin-bottom: 0.5rem; }
.privacy-hero p { color: var(--text-muted); }

.privacy-body { max-width: 800px; margin: 0 auto; padding: 3rem 1.5rem 5rem; }
.privacy-body h2 { font-size: 1.35rem; font-weight: 700; margin: 2.5rem 0 0.75rem; color: var(--gold); }
.privacy-body h3 { font-size: 1.05rem; font-weight: 600; margin: 1.5rem 0 0.4rem; }
.privacy-body p  { color: var(--text-muted); margin-bottom: 1rem; }
.privacy-body ul { color: var(--text-muted); padding-left: 1.5rem; margin-bottom: 1rem; }
.privacy-body li { margin-bottom: 0.4rem; }
.privacy-body a  { color: var(--gold); }
.privacy-body strong { color: var(--text); }
.privacy-updated {
  display: inline-block; font-size: 0.85rem; color: var(--text-muted);
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.4rem 1rem; margin-bottom: 2rem;
}
.privacy-summary {
  background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(245,200,66,0.08));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.5rem 2rem; margin-bottom: 2rem;
}
.privacy-summary h3 { color: var(--gold); margin-top: 0; margin-bottom: 0.75rem; }
.privacy-summary ul { margin-bottom: 0; }

/* ─── Scroll animations ─────────────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding: 4rem 1rem 3rem; }
  .steps { flex-direction: column; align-items: stretch; }
  .step { max-width: 100%; }
  .step-arrow { transform: rotate(90deg); text-align: center; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
