/* ==========================================================================
   Saeko Official Website (saeko.cl) — Dark Fantasy + Glassmorphism Theme v2
   Pure CSS3, Zero External Dependencies, 5-Language Ready, Cloudflare Pages
   ========================================================================== */

:root {
  --bg: #07090E;
  --bg-elev: #0F131D;
  --bg-soft: #141926;
  --glass: rgba(15, 20, 32, 0.74);
  --glass-strong: rgba(12, 16, 26, 0.9);
  --border: rgba(255, 255, 255, 0.09);
  --border-glow: rgba(139, 123, 255, 0.48);
  --text: #F3F5FA;
  --text-soft: #C8D0E0;
  --text-muted: #8E98AE;
  --violet: #8B7BFF;
  --indigo: #6366F1;
  --cyan: #38BDF8;
  --emerald: #34D399;
  --radius: 16px;
  --radius-sm: 10px;
  --max-w: 1180px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.52);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background:
    radial-gradient(840px 440px at 14% 34%, rgba(56, 189, 248, 0.06), transparent 65%),
    radial-gradient(900px 480px at 86% 68%, rgba(139, 123, 255, 0.08), transparent 65%),
    var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
  background: rgba(139, 123, 255, 0.14);
  color: #D2CBFF;
  padding: 0.14em 0.45em;
  border-radius: 6px;
}

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

/* --- Shared Navbar --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(7, 9, 14, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 1.16rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand-avatar {
  width: 38px;
  height: 38px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 2px solid rgba(139, 123, 255, 0.75);
  box-shadow: 0 0 14px rgba(139, 123, 255, 0.45), 0 0 6px rgba(56, 189, 248, 0.35);
}

.brand-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: #C7E8FF;
  background: rgba(56, 189, 248, 0.12);
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--text-muted);
  font-size: 0.93rem;
  font-weight: 550;
}

.nav-links a {
  transition: color 0.18s ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: #FFFFFF;
}

.nav-links a.active {
  position: relative;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* --- 5-Language Dropdown --- */
.lang-dropdown {
  position: relative;
}

.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-elev);
  color: var(--text-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.lang-trigger:hover,
.lang-dropdown.open .lang-trigger {
  border-color: var(--border-glow);
  color: #FFFFFF;
  background: rgba(20, 26, 42, 0.95);
}

.lang-chevron {
  width: 13px;
  height: 13px;
  transition: transform 0.18s ease;
}

.lang-dropdown.open .lang-chevron {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 176px;
  padding: 6px;
  background: rgba(13, 17, 28, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(139, 123, 255, 0.35);
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.6);
  display: none;
  flex-direction: column;
  gap: 3px;
  z-index: 120;
}

.lang-dropdown.open .lang-menu {
  display: flex;
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 8px 11px;
  border-radius: 9px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-option:hover {
  background: rgba(139, 123, 255, 0.14);
  color: #FFFFFF;
}

.lang-option.active {
  background: linear-gradient(135deg, rgba(139, 123, 255, 0.28), rgba(56, 189, 248, 0.2));
  color: #FFFFFF;
}

.lang-code-pill {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #BAE6FD;
  background: rgba(56, 189, 248, 0.14);
  padding: 2px 7px;
  border-radius: 999px;
}

.mobile-menu-btn {
  display: none;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.1rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 21px;
  border-radius: var(--radius-sm);
  font-weight: 650;
  font-size: 0.94rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--violet), var(--indigo));
  color: #FFFFFF;
  box-shadow: 0 10px 28px rgba(124, 108, 246, 0.38);
}

.btn-primary:hover {
  box-shadow: 0 14px 34px rgba(139, 123, 255, 0.55);
}

.btn-glass {
  background: rgba(16, 21, 33, 0.78);
  backdrop-filter: blur(10px);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.14);
}

.btn-glass:hover {
  background: rgba(25, 32, 48, 0.92);
  border-color: rgba(56, 189, 248, 0.48);
}

.btn-cyan {
  background: rgba(56, 189, 248, 0.14);
  backdrop-filter: blur(10px);
  color: #BAE6FD;
  border-color: rgba(56, 189, 248, 0.42);
}

.btn-cyan:hover {
  background: rgba(56, 189, 248, 0.24);
  border-color: rgba(56, 189, 248, 0.72);
  color: #FFFFFF;
}

.btn-patreon {
  background: rgba(139, 123, 255, 0.16);
  backdrop-filter: blur(10px);
  color: #DDD6FF;
  border-color: rgba(139, 123, 255, 0.42);
}

.btn-patreon:hover {
  background: rgba(139, 123, 255, 0.26);
  border-color: rgba(139, 123, 255, 0.68);
}

.btn-sm { padding: 8px 14px; font-size: 0.85rem; }

/* --- Cinematic Hero --- */
.hero {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: center;
  padding: 68px 0 64px;
  background-color: #07090E;
  background-image:
    linear-gradient(180deg, rgba(7, 9, 14, 0.34) 0%, rgba(7, 9, 14, 0.18) 58%, #07090E 100%),
    linear-gradient(90deg, #07090E 0%, rgba(7, 9, 14, 0.9) 46%, rgba(7, 9, 14, 0.34) 100%),
    url("assets/hero-banner.webp");
  background-position: center, center, right center;
  background-size: cover, cover, cover;
  background-repeat: no-repeat;
  overflow: hidden;
}

.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: floatSpark var(--dur, 9s) linear infinite;
  animation-delay: var(--delay, 0s);
}

.particle.cyan {
  background: radial-gradient(circle, #7DD3FC 0%, rgba(56, 189, 248, 0) 70%);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.7);
}

.particle.violet {
  background: radial-gradient(circle, #C4B5FD 0%, rgba(139, 123, 255, 0) 70%);
  box-shadow: 0 0 12px rgba(139, 123, 255, 0.7);
}

@keyframes floatSpark {
  0% { transform: translateY(30px) scale(0.6); opacity: 0; }
  20% { opacity: 0.75; }
  80% { opacity: 0.5; }
  100% { transform: translateY(-130px) translateX(22px) scale(1.1); opacity: 0; }
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  gap: 32px;
  align-items: center;
}

.hero-content {
  max-width: 660px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(15, 19, 29, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #BAE6FD;
  font-size: 0.83rem;
  font-weight: 650;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.25rem, 4.5vw, 3.55rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 850;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.gradient-text {
  background: linear-gradient(135deg, #FFFFFF 10%, #BAE6FD 52%, #A78BFA 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin: 0 0 26px;
  color: var(--text-soft);
  font-size: clamp(0.98rem, 1.6vw, 1.1rem);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-bottom: 16px;
}

.hero-secondary-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 0.86rem;
  color: var(--text-soft);
}

.hero-secondary-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  opacity: 0.88;
  transition: opacity 0.16s ease, color 0.16s ease;
}

.hero-secondary-links a:hover {
  opacity: 1;
  color: #BAE6FD;
}

.hero-showcase-card {
  background: rgba(12, 16, 28, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(139, 123, 255, 0.36);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow), 0 0 42px rgba(139, 123, 255, 0.16);
  text-align: center;
}

.hero-avatar-ring {
  width: 128px;
  height: 128px;
  margin: 0 auto 16px;
  padding: 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  box-shadow: 0 0 28px rgba(139, 123, 255, 0.45), 0 0 18px rgba(56, 189, 248, 0.3);
}

.hero-avatar-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  background: #0F131D;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.32);
  color: #6EE7B7;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 10px #34D399;
}

.hero-showcase-card h2 {
  margin: 0 0 4px;
  font-size: 1.12rem;
  font-weight: 750;
}

.hero-showcase-card p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.hero-metrics {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.metric-glass {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
  padding: 15px 16px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.metric-glass:hover {
  border-color: rgba(56, 189, 248, 0.45);
  transform: translateY(-2px);
}

.metric-val {
  font-size: 1.24rem;
  font-weight: 800;
  color: #FFFFFF;
}

.metric-lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* --- Sections --- */
section { padding: 72px 0; }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 42px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #7DD3FC;
  margin-bottom: 10px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.section-head p { margin: 0; color: var(--text-muted); }

/* --- Visual Modules Showcase --- */
.modules-banner-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  background: var(--glass);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(139, 123, 255, 0.34);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}

.modules-banner-media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modules-banner-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.modules-banner-copy h3 {
  margin: 10px 0 10px;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1.25;
}

.modules-banner-copy p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.96rem;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(139, 123, 255, 0.16);
  border: 1px solid rgba(139, 123, 255, 0.38);
  color: #DDD6FF;
}

.pill-badge.cyan {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.38);
  color: #BAE6FD;
}

/* --- Cards Grid --- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

.card {
  position: relative;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.card:hover {
  border-color: rgba(139, 123, 255, 0.55);
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(99, 102, 241, 0.16), 0 0 0 1px rgba(56, 189, 248, 0.15) inset;
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(139, 123, 255, 0.22), rgba(56, 189, 248, 0.14));
  border: 1px solid rgba(139, 123, 255, 0.32);
  display: grid;
  place-items: center;
  color: #BAE6FD;
  font-size: 1.28rem;
  margin-bottom: 14px;
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card h3 { margin: 0 0 8px; font-size: 1.09rem; }
.card p { margin: 0; color: var(--text-muted); font-size: 0.93rem; }

.card-tags {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.79rem;
  font-weight: 600;
  color: #9DDDFD;
}

/* --- Spotlight RPG & Rift Wars --- */
.spotlight-card {
  display: flex;
  flex-direction: column;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.spotlight-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.spotlight-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.spotlight-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.spotlight-card:hover .spotlight-media img {
  transform: scale(1.03);
}

.spotlight-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(7, 9, 14, 0.85) 100%);
  pointer-events: none;
}

.spotlight-media .pill-badge {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
}

.spotlight-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.spotlight-body h3 {
  margin: 0 0 8px;
  font-size: 1.24rem;
  line-height: 1.25;
}

.spotlight-body p {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 0.93rem;
}

.spotlight-list {
  margin: 0 0 20px;
  padding-left: 18px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.spotlight-list li {
  margin-bottom: 6px;
}

.spotlight-body .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* --- Bottom CTA --- */
.cta-box {
  background:
    radial-gradient(620px 260px at 50% 0%, rgba(139, 123, 255, 0.2), transparent 70%),
    var(--glass);
  border: 1px solid var(--border-glow);
  border-radius: 22px;
  padding: 42px 28px;
  text-align: center;
  box-shadow: var(--shadow);
}

.cta-box h2 {
  margin: 0 0 10px;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.cta-box p {
  max-width: 640px;
  margin: 0 auto 24px;
  color: var(--text-soft);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* --- Interactive Discord Mockup Simulator --- */
.mockup-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.mockup-tab {
  background: var(--bg-elev);
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.89rem;
  font-weight: 650;
  cursor: pointer;
  transition: all 0.18s ease;
}

.mockup-tab:hover { color: #FFFFFF; border-color: rgba(255, 255, 255, 0.2); }
.mockup-tab.active {
  background: linear-gradient(135deg, var(--violet), var(--indigo));
  color: #FFFFFF;
  border-color: transparent;
}

.discord-window {
  max-width: 780px;
  margin: 0 auto;
  background: #313338;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.discord-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #2B2D31;
  border-bottom: 1px solid rgba(0, 0, 0, 0.28);
  font-size: 0.9rem;
  font-weight: 700;
  color: #F2F3F5;
}

.discord-dots {
  display: flex;
  gap: 6px;
}
.discord-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: #4E5058;
}

.discord-body {
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.discord-avatar {
  width: 44px;
  height: 44px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  flex-shrink: 0;
  border: 2px solid rgba(139, 123, 255, 0.65);
}

.discord-msg { flex: 1; min-width: 0; }

.discord-author-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
}

.discord-author { font-weight: 700; color: #FFFFFF; font-size: 0.98rem; }
.discord-app-tag {
  background: #5865F2;
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  letter-spacing: 0.03em;
}
.discord-time { color: #949BA4; font-size: 0.76rem; }

.discord-embed {
  background: #2B2D31;
  border-left: 4px solid var(--violet);
  border-radius: 6px;
  padding: 14px 16px;
  max-width: 580px;
}

.discord-embed-title {
  font-weight: 750;
  font-size: 1rem;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.discord-embed-desc {
  color: #DBDEE1;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.discord-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.discord-field-name { font-size: 0.78rem; font-weight: 700; color: #FFFFFF; margin-bottom: 2px; }
.discord-field-val { font-size: 0.85rem; color: #DBDEE1; }

.discord-card-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #181A20, #232734);
  border: 1px solid rgba(139, 123, 255, 0.35);
  border-radius: 10px;
  padding: 14px;
  margin: 10px 0;
}

.discord-card-preview img {
  width: 54px;
  height: 54px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 2px solid #7DD3FC;
}

.discord-card-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: #7DD3FC;
  font-weight: 700;
}

.discord-card-user {
  font-size: 1.05rem;
  font-weight: 800;
  color: #FFFFFF;
}

.discord-card-sub {
  font-size: 0.8rem;
  color: #9AA3B5;
}

.discord-embed-footer {
  font-size: 0.75rem;
  color: #949BA4;
  margin-top: 8px;
}

.discord-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.discord-btn {
  background: #4E5058;
  color: #FFFFFF;
  border: none;
  border-radius: 4px;
  padding: 7px 13px;
  font-size: 0.84rem;
  font-weight: 600;
}

/* --- Legal Pages --- */
.legal-wrap {
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 54px 22px 84px;
}

.legal-top-nav {
  margin-bottom: 18px;
}

.legal-header {
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.legal-header h1 {
  margin: 0 0 8px;
  font-size: clamp(1.9rem, 3.6vw, 2.55rem);
  letter-spacing: -0.025em;
}

.legal-meta { color: var(--text-muted); font-size: 0.9rem; }

.legal-card {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-bottom: 16px;
}

.legal-card h2 { margin: 0 0 10px; font-size: 1.15rem; color: #FFFFFF; }
.legal-card p, .legal-card li { color: var(--text-soft); font-size: 0.95rem; }
.legal-card ul { margin: 8px 0 0; padding-left: 20px; }
.legal-card li { margin-bottom: 6px; }

/* --- Subpage Hero & Commands Directory --- */
.page-hero {
  position: relative;
  padding: 58px 0 46px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(760px 300px at 50% 0%, rgba(139, 123, 255, 0.16), transparent 70%),
    radial-gradient(620px 260px at 85% 20%, rgba(56, 189, 248, 0.1), transparent 70%),
    linear-gradient(180deg, rgba(7, 9, 14, 0.6) 0%, var(--bg) 100%);
}

.page-hero-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 2.95rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 850;
}

.page-hero p {
  margin: 0;
  color: var(--text-soft);
  font-size: clamp(0.96rem, 1.5vw, 1.06rem);
}

.cmd-directory-section {
  padding: 42px 0 76px;
}

.cmd-toolbar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.cmd-search-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cmd-search-box {
  position: relative;
  flex: 1 1 360px;
}

.cmd-search-ico {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

.cmd-search-input {
  width: 100%;
  padding: 13px 44px 13px 44px;
  border-radius: 14px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.cmd-search-input:focus {
  border-color: rgba(139, 123, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(139, 123, 255, 0.16);
}

.cmd-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-soft);
  display: none;
  place-items: center;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.cmd-search-clear.visible {
  display: grid;
}

.cmd-search-clear:hover {
  background: rgba(139, 123, 255, 0.25);
  color: #FFFFFF;
}

.cmd-meta-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cmd-count-pill {
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.85rem;
  font-weight: 600;
}

.cmd-admin-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 650;
  cursor: pointer;
  transition: all 0.18s ease;
}

.cmd-admin-toggle:hover {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.2);
}

.cmd-admin-toggle.active {
  background: rgba(251, 191, 36, 0.14);
  border-color: rgba(251, 191, 36, 0.45);
  color: #FDE68A;
}

.cmd-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cmd-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-elev);
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.87rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.cmd-tab:hover {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.2);
}

.cmd-tab.active {
  background: linear-gradient(135deg, var(--violet), var(--indigo));
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(99, 102, 241, 0.3);
}

.cmd-tab-count {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-soft);
}

.cmd-tab.active .cmd-tab-count {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

.cmd-sections {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.cmd-category-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cmd-category-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(139, 123, 255, 0.12), rgba(56, 189, 248, 0.06)),
    var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(139, 123, 255, 0.3);
}

.cmd-category-main {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.cmd-category-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(139, 123, 255, 0.25), rgba(56, 189, 248, 0.16));
  border: 1px solid rgba(139, 123, 255, 0.4);
  color: #BAE6FD;
}

.cmd-category-icon svg {
  width: 24px;
  height: 24px;
}

.cmd-category-banner h2 {
  margin: 0 0 4px;
  font-size: 1.22rem;
  font-weight: 750;
}

.cmd-category-banner p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.91rem;
}

.cmd-category-badge {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.32);
  color: #BAE6FD;
  font-size: 0.82rem;
  font-weight: 700;
}

.cmd-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cmd-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  transition: border-color 0.18s ease, transform 0.16s ease;
}

.cmd-card:hover {
  border-color: rgba(139, 123, 255, 0.48);
  transform: translateY(-1px);
}

.cmd-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cmd-title-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.cmd-name {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.94rem;
  font-weight: 700;
  color: #C7E8FF;
  word-break: break-word;
}

.cmd-admin-badge {
  font-size: 0.7rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.38);
  color: #FDE68A;
}

.cmd-desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.copy-btn {
  flex-shrink: 0;
  background: var(--bg-elev);
  color: var(--text-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.79rem;
  font-weight: 650;
  cursor: pointer;
  transition: all 0.16s ease;
}

.copy-btn:hover {
  border-color: var(--border-glow);
  color: #FFFFFF;
}

.copy-btn.copied {
  background: rgba(52, 211, 153, 0.16);
  border-color: rgba(52, 211, 153, 0.5);
  color: #6EE7B7;
}

.cmd-empty-state {
  text-align: center;
  padding: 46px 24px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--border);
}

.cmd-empty-state h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.cmd-empty-state p {
  margin: 0 0 18px;
  color: var(--text-muted);
}

.rpg-promo-banner {
  margin-top: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.8fr);
  gap: 24px;
  align-items: center;
  padding: 26px 28px;
  border-radius: 20px;
  background:
    radial-gradient(520px 220px at 0% 50%, rgba(139, 123, 255, 0.18), transparent 70%),
    var(--glass);
  border: 1px solid var(--border-glow);
  box-shadow: var(--shadow);
}

.rpg-promo-copy h2 {
  margin: 10px 0 8px;
  font-size: clamp(1.3rem, 2.3vw, 1.7rem);
}

.rpg-promo-copy p {
  margin: 0 0 18px;
  color: var(--text-soft);
  font-size: 0.94rem;
}

.rpg-promo-media {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.rpg-promo-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* --- Immersive RPG Guide Theme (body.page-rpg) --- */
body.page-rpg {
  background:
    radial-gradient(960px 540px at 15% 18%, rgba(139, 123, 255, 0.13), transparent 65%),
    radial-gradient(880px 520px at 86% 48%, rgba(56, 189, 248, 0.09), transparent 65%),
    radial-gradient(760px 440px at 50% 84%, rgba(168, 85, 247, 0.08), transparent 70%),
    #05070C;
}

.rpg-hero {
  position: relative;
  padding: 72px 0 54px;
  border-bottom: 1px solid rgba(139, 123, 255, 0.25);
  background-color: #05070C;
  background-image:
    linear-gradient(180deg, rgba(5, 7, 12, 0.42) 0%, rgba(5, 7, 12, 0.72) 65%, #05070C 100%),
    linear-gradient(90deg, rgba(5, 7, 12, 0.92) 0%, rgba(5, 7, 12, 0.74) 52%, rgba(5, 7, 12, 0.45) 100%),
    url("assets/rpg-hero.webp");
  background-size: cover, cover, cover;
  background-position: center, center, center;
  overflow: hidden;
}

.rpg-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.rpg-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  line-height: 1.09;
  letter-spacing: -0.03em;
  font-weight: 850;
  text-shadow: 0 10px 32px rgba(0, 0, 0, 0.65);
}

.rpg-hero-desc {
  margin: 0 0 22px;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.55vw, 1.1rem);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8);
}

.rpg-p2w-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.38);
  color: #6EE7B7;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.rpg-hero-hint {
  margin-top: 14px;
  display: inline-block;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(15, 20, 34, 0.82);
  border: 1px solid rgba(139, 123, 255, 0.28);
  color: var(--text-soft);
  font-size: 0.86rem;
}

.rpg-jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.rpg-jump-pill {
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(14, 18, 30, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-soft);
  font-size: 0.83rem;
  font-weight: 600;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.rpg-jump-pill:hover {
  border-color: rgba(139, 123, 255, 0.6);
  background: rgba(139, 123, 255, 0.16);
  color: #FFFFFF;
}

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

.rpg-step-card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(139, 123, 255, 0.24);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rpg-step-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.45);
}

.rpg-step-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.34);
  color: #BAE6FD;
  margin-bottom: 10px;
}

.rpg-step-card h3 {
  margin: 0 0 8px;
  font-size: 1.04rem;
}

.rpg-step-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --- 10 Classes Interactive Panel --- */
.rpg-classes-shell {
  background: var(--glass);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(139, 123, 255, 0.36);
  border-radius: 22px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.classes-interactive {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.class-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 13px 10px;
  border-radius: 13px;
  background: rgba(7, 9, 14, 0.72);
  border: 1px solid var(--border);
  color: var(--text-soft);
  cursor: pointer;
  font-weight: 650;
  font-size: 0.87rem;
  transition: all 0.18s ease;
}

.class-btn .cls-ico {
  font-size: 1.4rem;
}

.class-btn:hover {
  border-color: rgba(56, 189, 248, 0.5);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.class-btn.active {
  background: linear-gradient(135deg, rgba(139, 123, 255, 0.28), rgba(56, 189, 248, 0.18));
  border-color: rgba(139, 123, 255, 0.75);
  color: #FFFFFF;
  box-shadow: 0 0 22px rgba(139, 123, 255, 0.26);
}

.class-showcase-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 24px;
  padding: 24px;
  border-radius: 16px;
  background: rgba(7, 9, 14, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.class-head-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.class-emblem {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.65rem;
  background: rgba(139, 123, 255, 0.16);
  border: 1px solid rgba(139, 123, 255, 0.4);
  flex-shrink: 0;
}

.class-head-row h3 {
  margin: 0 0 4px;
  font-size: 1.35rem;
}

.class-role-pill {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  color: #BAE6FD;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 999px;
  padding: 2px 10px;
}

.class-summary-text {
  margin: 0 0 14px;
  color: var(--text-soft);
  font-size: 0.94rem;
}

.class-sig-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 10px;
  background: rgba(139, 123, 255, 0.12);
  border: 1px solid rgba(139, 123, 255, 0.3);
  font-size: 0.86rem;
  margin-bottom: 18px;
}

.class-sig-box span { color: var(--text-muted); }
.class-sig-box strong { color: #FFFFFF; }

.class-evos-title,
.class-stats-title {
  font-size: 0.79rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.class-evo-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.class-evo-card {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(15, 20, 32, 0.86);
  border: 1px solid rgba(56, 189, 248, 0.28);
}

.class-evo-tier {
  font-size: 0.72rem;
  font-weight: 700;
  color: #7DD3FC;
  margin-bottom: 4px;
}

.class-evo-name {
  font-size: 0.96rem;
  font-weight: 750;
  color: #FFFFFF;
}

.class-stats-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 10px;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 750;
  color: var(--text-soft);
}

.stat-track {
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.stat-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  transition: width 0.25s ease;
}

.stat-val {
  text-align: right;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.84rem;
  font-weight: 700;
  color: #FFFFFF;
}

.rpg-slots-footnote {
  margin: 16px 0 0;
  text-align: center;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.cmd-chip-row {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.79rem;
  color: #9DDDFD;
}

/* --- Rift Wars Comparison & Mechanics --- */
.pvp-strip {
  background: var(--glass);
  border: 1px solid rgba(139, 123, 255, 0.3);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 22px;
}

.pvp-strip h3 {
  margin: 8px 0 6px;
  font-size: 1.16rem;
}

.pvp-strip p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.94rem;
}

.rift-hero-visual {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.35);
  margin-bottom: 22px;
  min-height: 240px;
  display: flex;
  align-items: flex-end;
  padding: 28px;
  background-color: #07090E;
  background-image:
    linear-gradient(180deg, rgba(7, 9, 14, 0.22) 0%, rgba(7, 9, 14, 0.88) 100%),
    url("assets/rift-wars-banner.webp");
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.rift-hero-copy {
  max-width: 680px;
}

.rift-hero-copy h3 {
  margin: 10px 0 6px;
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
}

.rift-hero-copy p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.rift-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.rift-mode-card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 24px;
  border: 1px solid var(--border);
}

.rift-mode-card.ranked {
  border-color: rgba(245, 158, 11, 0.42);
  background:
    radial-gradient(420px 180px at 0% 0%, rgba(245, 158, 11, 0.1), transparent 70%),
    var(--glass);
}

.rift-mode-card.friendly {
  border-color: rgba(56, 189, 248, 0.42);
  background:
    radial-gradient(420px 180px at 0% 0%, rgba(56, 189, 248, 0.1), transparent 70%),
    var(--glass);
}

.rift-mode-card h3 {
  margin: 10px 0 10px;
  font-size: 1.18rem;
}

.rift-mode-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.rift-mode-card li {
  margin-bottom: 6px;
}

.pill-badge.amber {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.42);
  color: #FDE68A;
}

.rpg-cmd-footer-link {
  margin-top: 22px;
  text-align: center;
}

/* --- Shared Footer --- */
footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: rgba(7, 9, 14, 0.95);
  padding: 36px 0;
}

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

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

.footer-brand small { display: block; color: var(--text-muted); font-size: 0.84rem; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links a:hover { color: #FFFFFF; }

/* --- Responsive --- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-showcase-card { max-width: 420px; }
  .modules-banner-card { grid-template-columns: 1fr; }
  .rpg-promo-banner { grid-template-columns: 1fr; }
  .rpg-steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .classes-interactive { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .class-showcase-panel { grid-template-columns: 1fr; }
  .rift-compare-grid { grid-template-columns: 1fr; }
  .cmd-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .hero {
    min-height: 540px;
    padding: 50px 0 44px;
    background-image:
      linear-gradient(180deg, rgba(7, 9, 14, 0.72) 0%, rgba(7, 9, 14, 0.86) 56%, #07090E 100%),
      url("assets/hero-banner.webp");
    background-position: center, 72% center;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(7, 9, 14, 0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 22px;
    gap: 14px;
  }
  .nav-links.open { display: flex; }
  .mobile-menu-btn { display: inline-grid; place-items: center; }
  .nav-invite { display: none; }
  .grid-3, .grid-2, .discord-fields, .rpg-steps-grid, .class-evo-cards { grid-template-columns: 1fr; }
  .hero-showcase-card { display: none; }
  .cmd-category-banner { flex-direction: column; align-items: flex-start; }
  .rpg-classes-shell { padding: 18px; }
  .class-showcase-panel { padding: 18px; }
}
