/* src/css/theme.css — Party Lore Discord Pivot Brand */

/* ========== DESIGN TOKENS ========== */
:root {
  /* Brand colors */
  --color-bg: #1a1b2e;
  --color-bg-surface: #252640;
  --color-bg-elevated: #2d2e4a;
  --color-blurple: #5865F2;
  --color-blurple-hover: #4752c4;
  --color-warm: #F5A623;
  --color-warm-soft: rgba(245, 166, 35, 0.15);

  /* Discord preview colors */
  --color-discord-bg: #36393f;
  --color-discord-surface: #2f3136;
  --color-discord-input: #40444b;
  --color-discord-text: #dcddde;
  --color-discord-muted: #72767d;
  --color-discord-border: #4f545c;

  /* Text */
  --color-text: #ffffff;
  --color-text-body: #e0e0e8;
  --color-text-secondary: #a0a0b8;
  --color-text-muted: #72728a;

  /* State */
  --color-success: #3ba55d;
  --color-error: #ed4245;

  /* Typography */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Courier New', monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-section: 5rem;

  /* Layout */
  --max-width: 900px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 20px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
}

/* ========== RESET ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--color-blurple); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

/* ========== TYPOGRAPHY ========== */
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--color-text);
  line-height: 1.15;
  letter-spacing: -0.5px;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.25rem); font-weight: 800; letter-spacing: -1.5px; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }

/* ========== LAYOUT ========== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-xl); }
.section { padding: var(--space-section) 0; }
.section-header { text-align: center; margin-bottom: var(--space-3xl); }
.section-header p { color: var(--color-text-secondary); font-size: 1.05rem; margin-top: var(--space-sm); }

/* ========== NAV ========== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: var(--space-md) 0;
  background: rgba(26, 27, 46, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: box-shadow var(--transition-base);
}
.navbar.scrolled { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); }
.nav-content {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-xl);
}
.nav-logo {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 700;
  color: var(--color-text); text-decoration: none; letter-spacing: -0.5px;
}
.nav-logo span { color: var(--color-blurple); }
.nav-links { display: flex; align-items: center; gap: var(--space-lg); }
.nav-links a {
  color: var(--color-text-secondary); font-size: 0.9rem; font-weight: 500;
  text-decoration: none; transition: color var(--transition-fast);
}
.nav-links a:hover { color: var(--color-text); text-decoration: none; }
.mobile-menu-btn {
  display: none; background: none; border: none; color: var(--color-text);
  padding: var(--space-sm); font-size: 1.5rem; line-height: 1;
}

/* ========== BUTTONS ========== */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-blurple); color: #fff;
  padding: 0.75rem 1.75rem; border-radius: var(--radius-md);
  font-size: 0.95rem; font-weight: 600; border: none;
  transition: background var(--transition-fast);
  text-decoration: none;
}
.btn-primary:hover { background: var(--color-blurple-hover); text-decoration: none; }
.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--color-text-body);
  padding: 0.75rem 1.75rem; border-radius: var(--radius-md);
  font-size: 0.95rem; font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: border-color var(--transition-fast);
  text-decoration: none;
}
.btn-secondary:hover { border-color: rgba(255, 255, 255, 0.4); text-decoration: none; }
.btn-nav {
  background: var(--color-blurple); color: #fff;
  padding: 0.5rem 1.25rem; border-radius: var(--radius-md);
  font-size: 0.85rem; font-weight: 600; border: none;
  transition: background var(--transition-fast);
  text-decoration: none;
}
.btn-nav:hover { background: var(--color-blurple-hover); text-decoration: none; }

/* ========== HERO ========== */
.hero {
  text-align: center;
  padding: 8rem 0 var(--space-3xl);
  background: radial-gradient(ellipse at 50% 0%, rgba(88, 101, 242, 0.15) 0%, transparent 60%);
}
.hero-badge {
  display: inline-block;
  background: rgba(88, 101, 242, 0.15); color: #8b96f5;
  padding: 0.35rem 1rem; border-radius: var(--radius-pill);
  font-size: 0.8rem; font-weight: 600;
  border: 1px solid rgba(88, 101, 242, 0.25);
  margin-bottom: var(--space-lg);
}
.hero h1 { max-width: 700px; margin: 0 auto var(--space-lg); }
.hero h1 .highlight { color: var(--color-blurple); }
.hero h1 .warm { color: var(--color-warm); }
.hero-sub {
  font-size: 1.1rem; color: var(--color-text-secondary);
  max-width: 560px; margin: 0 auto var(--space-2xl); line-height: 1.7;
}
.hero-ctas { display: flex; gap: var(--space-md); justify-content: center; flex-wrap: wrap; }

/* ========== DISCORD DEMO WIDGET ========== */
.demo-section { padding: 0 var(--space-xl) var(--space-section); }
.demo-container {
  max-width: 720px; margin: 0 auto;
  background: var(--color-discord-bg); border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.demo-header {
  display: flex; align-items: center; gap: var(--space-sm);
  padding: 0.75rem 1rem;
  background: var(--color-discord-surface);
  border-bottom: 1px solid #202225;
  font-family: var(--font-body); font-size: 0.9rem;
}
.demo-header .hash { color: var(--color-discord-muted); font-size: 1.2rem; font-weight: 600; }
.demo-header .channel-name { color: #fff; font-weight: 600; }
.demo-header .live-badge {
  background: var(--color-success); color: #fff;
  font-size: 0.6rem; padding: 2px 8px; border-radius: 10px;
  font-weight: 700; text-transform: uppercase; margin-left: auto;
}
.demo-body {
  padding: 1rem; min-height: 280px; max-height: 420px;
  overflow-y: auto; scroll-behavior: smooth;
}
/* Custom scrollbar for demo */
.demo-body::-webkit-scrollbar { width: 6px; }
.demo-body::-webkit-scrollbar-track { background: transparent; }
.demo-body::-webkit-scrollbar-thumb { background: var(--color-discord-border); border-radius: 3px; }

/* Discord messages */
.discord-msg { display: flex; gap: 0.75rem; margin-bottom: 1rem; }
.discord-msg:last-child { margin-bottom: 0; }
.discord-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.discord-msg-content { flex: 1; min-width: 0; }
.discord-msg-header { display: flex; align-items: center; gap: 0.35rem; margin-bottom: 0.2rem; flex-wrap: wrap; }
.discord-msg-name { font-weight: 600; font-size: 0.9rem; }
.discord-msg-badge {
  font-size: 0.55rem; padding: 1px 5px; border-radius: 3px;
  font-weight: 700; text-transform: uppercase;
}
.discord-msg-time { color: var(--color-discord-muted); font-size: 0.7rem; margin-left: 0.25rem; }
.discord-msg-text { font-size: 0.9rem; color: var(--color-discord-text); line-height: 1.5; }
.discord-msg-text em { color: var(--color-discord-muted); }

/* Bot embeds */
.discord-embed {
  border-left: 4px solid #7289da; background: var(--color-discord-surface);
  border-radius: var(--radius-sm); padding: 0.75rem; margin-top: 0.35rem;
}
.discord-embed-title { color: #fff; font-weight: 600; margin-bottom: 0.35rem; font-size: 0.9rem; }
.discord-embed-text { color: #b9bbbe; font-size: 0.85rem; line-height: 1.55; }
.discord-embed-footer {
  border-top: 1px solid var(--color-discord-border);
  margin-top: 0.6rem; padding-top: 0.5rem;
  font-size: 0.75rem; color: var(--color-discord-muted);
}

/* Action buttons */
.discord-actions { display: flex; gap: 0.35rem; margin-top: 0.5rem; flex-wrap: wrap; }
.discord-action-btn {
  background: var(--color-discord-border); color: #fff;
  padding: 0.4rem 0.9rem; border-radius: 3px;
  font-size: 0.8rem; border: none; font-family: var(--font-body);
  transition: background var(--transition-fast);
}
.discord-action-btn:hover { background: #5d6269; }
.discord-action-btn.custom {
  background: transparent; border: 1px solid var(--color-discord-border);
  color: #b9bbbe;
}

/* Typing indicator */
.discord-typing { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0; }
.typing-dots { display: flex; gap: 3px; }
.typing-dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-discord-muted);
  animation: typingBounce 1.4s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-4px); }
}

/* System messages */
.discord-system {
  text-align: center; color: var(--color-discord-muted);
  font-size: 0.8rem; padding: 0.35rem 0; margin-bottom: 0.5rem;
}

/* Realm selector */
.realm-selector {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; padding: var(--space-lg) var(--space-xl) 0;
}
.realm-dots { display: flex; gap: 0.5rem; }
.realm-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--color-discord-border);
  cursor: pointer; transition: all var(--transition-base);
  border: none; padding: 0;
}
.realm-dot.active { background: var(--color-blurple); transform: scale(1.3); }
.realm-dot:hover:not(.active) { background: var(--color-text-secondary); }
.realm-info { text-align: center; padding: var(--space-sm) var(--space-xl) 0; }
.realm-info-genre {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px;
  color: var(--color-warm); font-weight: 600;
}
.realm-info-name { color: var(--color-text); font-size: 1rem; font-weight: 600; margin-top: 0.25rem; }
.realm-info-teaser {
  color: var(--color-discord-muted); font-size: 0.85rem; margin-top: 0.25rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.realm-info-link {
  display: inline-block; margin-top: 0.5rem;
  color: var(--color-blurple); font-size: 0.85rem; font-weight: 500;
}

/* ========== HOW IT WORKS ========== */
.steps-grid { display: flex; gap: var(--space-xl); }
.step {
  flex: 1; background: var(--color-bg-surface); border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.step-number {
  background: var(--color-blurple); color: #fff;
  width: 2rem; height: 2rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; margin-bottom: var(--space-md);
}
.step h3 { margin-bottom: var(--space-sm); }
.step p { color: var(--color-text-secondary); font-size: 0.9rem; }
.step-cmd {
  display: inline-block; margin-top: var(--space-sm);
  background: rgba(88, 101, 242, 0.15); color: #8b96f5;
  padding: 0.2rem 0.6rem; border-radius: var(--radius-sm);
  font-size: 0.85rem; font-family: var(--font-mono);
}

/* ========== REALMS GRID ========== */
.realms-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-lg);
}
.realm-card {
  background: var(--color-bg-surface); border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color var(--transition-base), transform var(--transition-base);
  text-decoration: none; display: block; color: inherit;
}
.realm-card:hover { border-color: rgba(88, 101, 242, 0.4); transform: translateY(-2px); text-decoration: none; }
.realm-card-genre {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px;
  font-weight: 600; margin-bottom: var(--space-sm);
}
.realm-card-title { color: var(--color-text); font-size: 1.05rem; font-weight: 600; margin-bottom: 0.35rem; }
.realm-card-tagline { color: var(--color-text-secondary); font-size: 0.85rem; line-height: 1.5; }

/* ========== VALUE PROPS ========== */
.value-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-xl);
}
.value-card { text-align: center; padding: var(--space-lg); }
.value-icon { font-size: 2rem; margin-bottom: var(--space-md); }
.value-title { color: var(--color-text); font-size: 0.95rem; font-weight: 600; margin-bottom: 0.35rem; }
.value-text { color: var(--color-text-secondary); font-size: 0.85rem; line-height: 1.5; }

/* ========== CTA / WAITLIST ========== */
.cta-section {
  text-align: center;
  background: radial-gradient(ellipse at 50% 100%, rgba(88, 101, 242, 0.12) 0%, transparent 60%);
}
.cta-form {
  display: flex; gap: 0.6rem; justify-content: center;
  flex-wrap: wrap; max-width: 520px; margin: var(--space-xl) auto 0;
}
.cta-input {
  background: var(--color-bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.1); color: var(--color-text);
  padding: 0.85rem 1.1rem; border-radius: var(--radius-md);
  font-size: 0.9rem; flex: 1; min-width: 180px; font-family: var(--font-body);
  transition: border-color var(--transition-fast);
}
.cta-input:focus { outline: none; border-color: var(--color-blurple); }
.cta-input::placeholder { color: var(--color-text-muted); }
.cta-form .btn-primary { width: 100%; }
.form-error { color: var(--color-error); font-size: 0.8rem; margin-top: 0.35rem; text-align: left; }
.form-success {
  background: rgba(59, 165, 93, 0.15); border: 1px solid rgba(59, 165, 93, 0.3);
  border-radius: var(--radius-md); padding: var(--space-lg); margin-top: var(--space-lg);
  color: var(--color-success); text-align: center;
}

/* ========== FOOTER ========== */
.footer {
  padding: var(--space-2xl) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-content {
  display: flex; justify-content: space-between; align-items: center;
  max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-xl);
  flex-wrap: wrap; gap: var(--space-md);
}
.footer-brand { display: flex; align-items: center; gap: var(--space-md); }
.footer-brand .nav-logo { font-size: 1.1rem; }
.footer-tagline { color: var(--color-text-muted); font-size: 0.85rem; }
.footer-links { display: flex; gap: var(--space-lg); flex-wrap: wrap; }
.footer-links a {
  color: var(--color-text-muted); font-size: 0.85rem;
  text-decoration: none; transition: color var(--transition-fast);
}
.footer-links a:hover { color: var(--color-text-secondary); }
.footer-links a.discord-link { color: var(--color-blurple); }

/* ========== LEGAL PAGES ========== */
.legal-page { padding: 8rem 0 var(--space-section); }
.legal-header { margin-bottom: var(--space-2xl); }
.legal-header .back-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  color: var(--color-blurple); font-size: 0.85rem; margin-bottom: var(--space-md);
  text-decoration: none;
}
.legal-header .back-link:hover { text-decoration: underline; }
.legal-header h1 { font-size: 2rem; }
.legal-header .last-updated { color: var(--color-text-muted); font-size: 0.85rem; margin-top: var(--space-sm); }
.legal-content { color: var(--color-text-secondary); line-height: 1.8; }
.legal-content h2 { color: var(--color-text); font-size: 1.4rem; margin: var(--space-2xl) 0 var(--space-md); }
.legal-content h3 { color: var(--color-text); margin: var(--space-xl) 0 var(--space-sm); }
.legal-content p { margin-bottom: var(--space-md); }
.legal-content ul, .legal-content ol { margin: var(--space-md) 0; padding-left: 1.5em; }
.legal-content li { margin-bottom: var(--space-sm); }
.legal-content a { color: var(--color-blurple); }
.legal-footer {
  margin-top: var(--space-2xl); padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex; gap: var(--space-md); flex-wrap: wrap;
}
.legal-footer a { color: var(--color-text-muted); font-size: 0.85rem; text-decoration: none; }
.legal-footer a:hover { color: var(--color-text-secondary); }
.legal-footer .separator { color: var(--color-text-muted); }

/* ========== GUIDE PAGE ========== */
.guide-hero {
  background: radial-gradient(ellipse at 50% 0%, rgba(88, 101, 242, 0.15) 0%, transparent 60%), var(--color-bg);
  padding: 8rem 0 var(--space-2xl); text-align: center;
}
.guide-hero .subtitle { color: var(--color-text-secondary); font-size: 1.05rem; max-width: 600px; margin: var(--space-sm) auto 0; }
.guide-section { padding: var(--space-2xl) 0; }
.guide-content { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-xl); }
.guide-content h2 {
  font-size: 1.6rem; margin: var(--space-3xl) 0 var(--space-lg);
  padding-top: var(--space-lg); border-top: 1px solid rgba(88, 101, 242, 0.2);
}
.guide-content h2:first-of-type { margin-top: 0; border-top: none; padding-top: 0; }
.guide-content h3 { margin: var(--space-xl) 0 var(--space-md); }
.guide-content p { color: var(--color-text-secondary); line-height: 1.8; margin-bottom: 1em; }
.guide-content ul, .guide-content ol { color: var(--color-text-secondary); line-height: 1.8; margin: 1em 0; padding-left: 1.5em; }
.guide-content li { margin-bottom: 0.5em; }
.guide-content li strong { color: var(--color-text); }
.guide-content code {
  background: rgba(88, 101, 242, 0.2); color: #8b96f5;
  padding: 2px 8px; border-radius: var(--radius-sm);
  font-family: var(--font-mono); font-size: 0.9em;
}
.guide-content table {
  width: 100%; border-collapse: collapse; margin: 1.5em 0;
  background: var(--color-bg-surface); border-radius: var(--radius-lg); overflow: hidden;
}
.guide-content th, .guide-content td {
  padding: 0.75rem 1rem; text-align: left;
  border-bottom: 1px solid rgba(88, 101, 242, 0.1);
}
.guide-content th { background: rgba(88, 101, 242, 0.1); font-weight: 600; color: var(--color-text); }
.guide-content td { color: var(--color-text-secondary); }
.guide-content tr:last-child td { border-bottom: none; }

/* Step-through component */
.step-through { background: var(--color-bg-surface); border-radius: var(--radius-lg); padding: var(--space-xl); margin: var(--space-xl) 0; }
.step-through-nav { display: flex; justify-content: center; gap: 0.5rem; margin-bottom: var(--space-lg); }
.step-through-dot {
  width: 2rem; height: 2rem; border-radius: 50%; border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; cursor: pointer;
  background: var(--color-discord-border); color: var(--color-text-secondary);
  transition: all var(--transition-base);
}
.step-through-dot.active { background: var(--color-blurple); color: #fff; }
.step-through-connector { width: 2rem; height: 2px; background: var(--color-discord-border); align-self: center; }
.step-through-panel { display: none; }
.step-through-panel.active { display: block; }
.step-through-label { display: flex; justify-content: space-between; margin-top: var(--space-md); font-size: 0.75rem; color: var(--color-text-muted); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: var(--space-sm); }
.faq-item {
  background: var(--color-bg-surface); border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06); overflow: hidden;
}
.faq-question {
  width: 100%; background: none; border: none; color: var(--color-text);
  padding: var(--space-md) var(--space-lg); font-size: 0.95rem; font-weight: 500;
  text-align: left; cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; font-family: var(--font-body);
  transition: background var(--transition-fast);
}
.faq-question:hover { background: rgba(255, 255, 255, 0.03); }
.faq-toggle { color: var(--color-blurple); transition: transform 0.3s ease; font-size: 1.1rem; }
.faq-item.open .faq-toggle { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer p {
  padding: 0 var(--space-lg) var(--space-md);
  color: var(--color-text-secondary); font-size: 0.9rem; line-height: 1.6;
}

/* ========== REALM PAGE ========== */
.realm-hero {
  text-align: center;
  padding: 8rem 0 var(--space-2xl);
  background: radial-gradient(ellipse at 50% 0%, var(--realm-glow, rgba(88, 101, 242, 0.15)) 0%, transparent 60%), var(--color-bg);
}
.realm-hero .back-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  color: var(--color-blurple); font-size: 0.85rem; margin-bottom: var(--space-lg);
  text-decoration: none;
}
.realm-hero .back-link:hover { text-decoration: underline; }
.realm-hero .genre-badge {
  display: inline-block; font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 1px; font-weight: 600; margin-bottom: var(--space-sm);
}
.realm-hero .tagline { color: var(--color-text-secondary); font-size: 1.05rem; max-width: 600px; margin: var(--space-md) auto 0; }
.realm-hero .realm-cta { margin-top: var(--space-xl); }

.realm-section { padding: var(--space-3xl) 0; }
.realm-section:nth-child(even) { background: var(--color-bg-surface); }
.realm-section h2 { text-align: center; margin-bottom: var(--space-2xl); }

.realm-about { color: var(--color-text-secondary); font-size: 1rem; line-height: 1.8; max-width: 700px; margin: 0 auto; }
.realm-about p { margin-bottom: var(--space-md); }
.realm-tone-box {
  background: var(--color-bg-elevated); border-radius: var(--radius-md);
  padding: var(--space-lg); margin-top: var(--space-xl); max-width: 700px; margin-left: auto; margin-right: auto;
}
.realm-tone-box strong { color: var(--color-text); }

.class-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-lg); }
.class-card {
  background: var(--color-bg-elevated); border-radius: var(--radius-lg);
  padding: var(--space-lg); border: 1px solid rgba(255, 255, 255, 0.06);
}
.class-card h3 { font-size: 1.1rem; margin-bottom: 0.2rem; }
.class-card .class-difficulty { font-size: 0.75rem; color: var(--color-warm); font-weight: 600; text-transform: uppercase; margin-bottom: var(--space-sm); }
.class-card p { color: var(--color-text-secondary); font-size: 0.9rem; }

.adventure-list { display: flex; flex-direction: column; gap: var(--space-md); max-width: 700px; margin: 0 auto; }
.adventure-card {
  background: var(--color-bg-elevated); border-radius: var(--radius-md);
  padding: var(--space-lg); border: 1px solid rgba(255, 255, 255, 0.06);
}
.adventure-card h3 { font-size: 1rem; margin-bottom: 0.2rem; }
.adventure-card .adventure-meta { font-size: 0.8rem; color: var(--color-text-muted); margin-bottom: var(--space-sm); }
.adventure-card p { color: var(--color-text-secondary); font-size: 0.9rem; }

.faction-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-lg); }
.faction-card {
  background: var(--color-bg-elevated); border-radius: var(--radius-md);
  padding: var(--space-lg); border: 1px solid rgba(255, 255, 255, 0.06);
}
.faction-card h3 { font-size: 1rem; margin-bottom: var(--space-sm); }
.faction-card p { color: var(--color-text-secondary); font-size: 0.9rem; }

.realm-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--space-xl) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.realm-nav a {
  color: var(--color-blurple); font-size: 0.9rem; font-weight: 500; text-decoration: none;
}
.realm-nav a:hover { text-decoration: underline; }

/* ========== MOBILE ========== */
@media (max-width: 768px) {
  .hero { padding: 6rem 0 var(--space-2xl); }
  .steps-grid { flex-direction: column; }
  .value-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-links.active {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--color-bg); padding: var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .mobile-menu-btn { display: block; }
  .footer-content { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .cta-form { flex-direction: column; }
  .cta-input { min-width: auto; }
  .realm-hero { padding: 6rem 0 var(--space-xl); }
  .guide-hero { padding: 6rem 0 var(--space-xl); }
  .legal-page { padding: 6rem 0 var(--space-2xl); }
  .class-grid { grid-template-columns: 1fr; }
  .faction-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .value-grid { grid-template-columns: 1fr; }
  .realms-grid { grid-template-columns: 1fr; }
}
