/* =========================================================
   RAGNAROK LANDING v2 — paleta premium con más matices
   Dorado principal + aqua acento + violeta highlight
   ========================================================= */

:root {
  /* Fondos con matices (menos "negro puro") */
  --bg-deep:      #0d1220;   /* azul-negro con más azul */
  --bg-panel:     #16192a;
  --bg-elevated:  #1e2238;
  --bg-hover:     #262b45;
  --bg-mesh:      #171b30;

  /* Bordes con más contraste */
  --border:       #2f3554;
  --border-hover: #4a527a;
  --divider:      #232842;

  /* Dorado (paleta principal) */
  --gold-primary: #d4af37;
  --gold-bright:  #f0d67a;
  --gold-deep:    #9c7f2a;
  --gold-glow:    rgba(212, 175, 55, 0.42);

  /* Aqua (único acento secundario) */
  --aqua:         #4dd4c8;
  --aqua-bright:  #7defd8;
  --aqua-glow:    rgba(77, 212, 200, 0.35);

  /* Texto */
  --text-primary: #f5f1e6;
  --text-body:    #d4d0c4;
  --text-muted:   #999688;
  --text-dim:     #6f6d64;

  /* Semánticos */
  --success:      #7fd97a;
  --error:        #ef6b62;

  /* Layout */
  --wrap:         1200px;
  --radius:       12px;
  --radius-lg:    16px;
  --shadow-card:  0 20px 45px -12px rgba(0,0,0,0.55);
  --shadow-gold:  0 0 50px -8px var(--gold-glow);
  --shadow-aqua:  0 0 40px -8px var(--aqua-glow);

  /* Tipografía */
  --font-display: 'Cinzel', 'Fraunces', serif;
  --font-serif:   'Fraunces', 'Georgia', serif;
  --font-body:    'Inter', -apple-system, system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;
}

/* =========================================================
   Reset + base
   ========================================================= */

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-deep);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 1200px 800px at 20% 0%, rgba(229,179,88,0.04), transparent 70%),
    radial-gradient(ellipse 1000px 600px at 90% 40%, rgba(77,212,200,0.03), transparent 70%),
    linear-gradient(180deg, var(--bg-deep), var(--bg-deep));
}

a { color: inherit; text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--gold-bright); }

img { max-width: 100%; display: block; }
button { border: 0; background: transparent; cursor: pointer; color: inherit; font: inherit; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: 24px;
}

/* Kicker (all-caps display, ahora con border decorativo doble) */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--gold-primary);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.kicker::before, .kicker::after {
  content: '';
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-primary));
}
.kicker::after { background: linear-gradient(90deg, var(--gold-primary), transparent); }

/* Section titles (mix serif + sans, más legibles) */
.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}
.section-title em {
  font-style: italic;
  color: var(--gold-bright);
  font-weight: 500;
}

.section-sub {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 640px;
  line-height: 1.65;
}

.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; }
.section-head.center .kicker { justify-content: center; }
.section-head.center .section-sub { margin-inline: auto; }
.section-head.between { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }

/* Ornament divider SVG-based */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 auto;
  color: var(--gold-primary);
  font-size: 20px;
}
.ornament::before, .ornament::after {
  content: '';
  height: 1px;
  width: 80px;
  background: linear-gradient(90deg, transparent, var(--gold-primary));
}
.ornament::after { background: linear-gradient(90deg, var(--gold-primary), transparent); }

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.15s ease, color 0.15s ease;
  border: 1px solid transparent;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn:hover { transform: translateY(-1px); }
.btn iconify-icon { font-size: 16px; }

.btn-primary {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-primary) 60%, var(--gold-deep));
  color: #1a1408;
  box-shadow:
    0 10px 30px -8px var(--gold-glow),
    inset 0 1px 0 rgba(255,255,255,0.4),
    inset 0 -1px 0 rgba(0,0,0,0.15);
}
.btn-primary:hover {
  color: #1a1408;
  box-shadow:
    0 16px 40px -6px var(--gold-glow),
    inset 0 1px 0 rgba(255,255,255,0.5),
    inset 0 -1px 0 rgba(0,0,0,0.2);
}

.btn-outline {
  border-color: var(--gold-deep);
  color: var(--text-primary);
  background: rgba(229,179,88,0.05);
}
.btn-outline:hover {
  border-color: var(--gold-primary);
  color: var(--gold-bright);
  background: rgba(229,179,88,0.1);
  box-shadow: 0 6px 20px -6px var(--gold-glow);
}

.btn-ghost {
  color: var(--text-primary);
  border-color: rgba(245,241,230,0.2);
  background: rgba(245,241,230,0.05);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  border-color: rgba(245,241,230,0.4);
  background: rgba(245,241,230,0.1);
  color: var(--text-primary);
}

.btn-discord {
  padding: 12px;
  background: #5865F2;
  color: white;
  border-radius: var(--radius);
}
.btn-discord iconify-icon { font-size: 22px; }
.btn-discord:hover { background: #4752c4; color: white; box-shadow: 0 6px 18px -4px rgba(88,101,242,0.5); }

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,18,32,0.82);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--divider);
}
.site-header .wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  padding-block: 16px;
}
.site-header .brand { justify-self: start; }
.site-header .nav { justify-self: center; }
.site-header .header-actions { justify-self: end; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-primary), var(--gold-deep));
  color: #1a1408;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 24px;
  box-shadow:
    0 6px 18px -4px var(--gold-glow),
    inset 0 1px 0 rgba(255,255,255,0.4);
  position: relative;
}
.brand-mark::after {
  content: '';
  position: absolute; inset: 3px;
  border: 1px solid rgba(26,20,8,0.35);
  border-radius: 7px;
  pointer-events: none;
}
.brand-mark.small { width: 32px; height: 32px; font-size: 19px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.28em;
  color: var(--text-primary);
}
.brand-name.small { font-size: 15px; letter-spacing: 0.22em; }

.nav {
  display: flex;
  gap: 26px;
}
.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  padding-block: 6px;
  position: relative;
  transition: color 0.15s ease;
}
.nav a::after {
  content: '';
  position: absolute; bottom: 0; left: 50%;
  width: 0; height: 2px;
  background: var(--gold-primary);
  transition: width 0.2s ease, left 0.2s ease;
}
.nav a:hover { color: var(--text-primary); }
.nav a:hover::after { width: 100%; left: 0; }
.nav a.nav-donate { color: var(--gold-bright); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.server-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  color: var(--text-muted);
  background: linear-gradient(180deg, var(--bg-panel), var(--bg-deep));
}
.server-status .status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px var(--success), 0 0 20px rgba(127,217,122,0.4);
  animation: pulse 2s ease-in-out infinite;
}
.server-status b { color: var(--text-primary); font-weight: 700; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.15); }
}

/* =========================================================
   HERO FULLSCREEN — layout centrado tipo HoneyRO
   ========================================================= */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 100px 24px 0;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(1.1) contrast(1.05);
}
/* Overlay más sutil — dejamos ver mucho más de la imagen */
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(13,18,32,0.55) 0%, rgba(13,18,32,0.25) 40%, transparent 75%),
    linear-gradient(180deg, rgba(13,18,32,0.55) 0%, transparent 25%, transparent 55%, var(--bg-deep) 100%);
}
.hero-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(13,18,32,0.7) 100%);
  pointer-events: none;
}

/* Contenido centrado */
.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 720px;
  margin: auto;
  padding-block: 60px;
}

.hero-kicker {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.42em;
  color: var(--text-primary);
  text-transform: uppercase;
  margin-bottom: 18px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.7);
  opacity: 0.92;
}

/* Badge de estado "Abre próximamente / Beta" */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 22px;
  background: rgba(13,18,32,0.55);
  border: 1px solid rgba(212,175,55,0.35);
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--gold-bright);
  text-transform: uppercase;
  backdrop-filter: blur(12px) saturate(1.4);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.06);
}
.hero-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 8px var(--gold-glow);
  animation: badge-pulse 2s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(1.15); }
}

.hero-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(72px, 11vw, 140px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold-primary) 55%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(0 4px 24px rgba(229,179,88,0.45))
    drop-shadow(0 2px 4px rgba(0,0,0,0.5));
  margin-bottom: 28px;
  position: relative;
}
.hero-logo::after {
  content: '';
  position: absolute;
  bottom: -14px; left: 50%;
  transform: translateX(-50%);
  width: 140px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

/* Pill unificada tipo HoneyRO */
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 10px 22px;
  background: rgba(13,18,32,0.55);
  border: 1px solid rgba(229,179,88,0.35);
  border-radius: 100px;
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 8px 30px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.08);
  margin-bottom: 26px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}
.pill-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pill-item b {
  color: var(--gold-bright);
  font-weight: 800;
  font-size: 15px;
  margin-left: 4px;
  letter-spacing: 0;
}
.pill-item iconify-icon {
  font-size: 15px;
  color: var(--gold-primary);
}
.pill-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulse 2s ease-in-out infinite;
}
.pill-sep {
  width: 1px;
  height: 14px;
  background: rgba(229,179,88,0.3);
}

.hero-copy {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-body);
  max-width: 540px;
  margin-bottom: 32px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-lg {
  padding: 12px 22px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.btn-lg iconify-icon { font-size: 17px; }

/* Rates bar debajo del hero */
.hero-rates {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 22px 0;
  border-top: 1px solid rgba(229,179,88,0.2);
  border-bottom: 1px solid rgba(229,179,88,0.2);
  background: linear-gradient(180deg, rgba(13,18,32,0.35), rgba(13,18,32,0.55));
  backdrop-filter: blur(10px);
}
.rate {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-inline: 8px;
  position: relative;
}
.rate + .rate::before {
  content: '';
  position: absolute; left: 0; top: 20%;
  height: 60%; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(229,179,88,0.25), transparent);
}
.rate-value {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 22px;
  color: var(--gold-bright);
  letter-spacing: -0.02em;
  line-height: 1;
}
.rate-label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  text-align: center;
}

/* =========================================================
   SECTIONS BASE
   ========================================================= */

.section {
  padding-block: 110px;
  position: relative;
}

/* Divider decorativo entre secciones */
.section + .section {
  border-top: 1px solid var(--divider);
}
.section + .section::before {
  content: '❖';
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--bg-deep);
  color: var(--gold-primary);
  padding: 0 16px;
  font-size: 14px;
  letter-spacing: 0.2em;
}

/* Automation — con mesh de color */
.section-automation {
  background:
    radial-gradient(ellipse 900px 500px at 50% 0%, rgba(229,179,88,0.08), transparent 60%),
    radial-gradient(ellipse 700px 400px at 20% 100%, rgba(77,212,200,0.05), transparent 60%),
    var(--bg-deep);
}

/* Automation hero-featured: copy + mockup panel */
.auto-hero {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 90px;
}
.auto-hero-copy .kicker { margin-bottom: 20px; }
.auto-hero-copy .section-title { margin-bottom: 16px; }
.auto-hero-copy .section-sub { margin-bottom: 36px; }

.auto-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.auto-bullets li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.bullet-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(229,179,88,0.2), rgba(229,179,88,0.05));
  border: 1px solid var(--gold-deep);
  color: var(--gold-bright);
  font-size: 22px;
}
.auto-bullets li:nth-child(2) .bullet-icon {
  color: var(--aqua-bright);
  border-color: var(--aqua);
  background: linear-gradient(180deg, rgba(77,212,200,0.2), rgba(77,212,200,0.05));
}
.auto-bullets b {
  display: block;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}
.auto-bullets span {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}

/* Mock panel */
.mock-panel {
  background: linear-gradient(180deg, var(--bg-elevated), var(--bg-panel));
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    var(--shadow-card),
    0 0 80px -20px var(--gold-glow),
    inset 0 1px 0 rgba(255,255,255,0.06);
  position: relative;
}
.mock-panel::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  opacity: 0.5;
}
.mock-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: rgba(13,18,32,0.55);
  border-bottom: 1px solid var(--divider);
}
.mock-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border-hover);
}
.mock-dot:nth-child(1) { background: #ef6b62; }
.mock-dot:nth-child(2) { background: #f4b942; }
.mock-dot:nth-child(3) { background: var(--success); }
.mock-url {
  margin-left: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}
.mock-body { padding: 22px; }
.mock-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.mock-stat {
  padding: 14px 16px;
  background: rgba(13,18,32,0.6);
  border: 1px solid var(--divider);
  border-radius: 10px;
}
.mock-stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--text-dim);
  margin-bottom: 6px;
  font-weight: 700;
}
.mock-stat-value {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 26px;
  color: var(--gold-bright);
  letter-spacing: -0.03em;
  line-height: 1;
  display: block;
}
.mock-stat-value b { font-size: 16px; color: var(--gold-primary); font-weight: 700; }
.mock-stat-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
  letter-spacing: 0.02em;
}
.mock-bar {
  margin-top: 8px;
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}
.mock-bar > div {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-primary), var(--gold-bright));
  border-radius: 2px;
  box-shadow: 0 0 8px var(--gold-glow);
}

.mock-log {
  padding: 14px 16px;
  background: rgba(13,18,32,0.6);
  border: 1px solid var(--divider);
  border-radius: 10px;
}
.mock-log-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--aqua);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--divider);
  font-weight: 700;
}
.mock-log-header iconify-icon { font-size: 12px; }
.mock-log-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-block: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-body);
}
.log-tag {
  width: 18px; height: 18px;
  display: grid; place-items: center;
  border-radius: 4px;
  font-weight: 800;
  font-size: 11px;
  flex-shrink: 0;
}
.log-tag.ok { background: rgba(127,217,122,0.15); color: var(--success); }
.log-tag.warn { background: rgba(229,179,88,0.15); color: var(--gold-bright); }
.log-txt { flex: 1; color: var(--text-muted); }
.log-time { color: var(--text-dim); font-size: 11px; letter-spacing: 0.05em; }

/* Header separador de pilares secundarios */
.auto-secondary-head {
  text-align: center;
  margin: 20px 0 32px;
}
.auto-secondary-head .ornament {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.auto-secondary-head .ornament::before,
.auto-secondary-head .ornament::after {
  content: '';
  width: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hover));
}
.auto-secondary-head .ornament::after { background: linear-gradient(90deg, var(--border-hover), transparent); }

.auto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.auto-grid-4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.auto-grid-4 .auto-card { padding: 24px 20px; }
.auto-grid-4 .auto-card h3 { font-size: 19px; }
.auto-grid-4 .auto-card p { font-size: 14px; }

/* Cards con chibi grande estilo BifrostRO */
.auto-card-chibi {
  padding-top: 20px !important;
  text-align: center;
}
.auto-card-chibi::before { display: none; }
.auto-card-chibi .auto-icon {
  width: 40px; height: 40px;
  margin: 0 auto 14px;
}
.auto-card-chibi .auto-icon iconify-icon { font-size: 20px; }
.chibi-stage {
  position: relative;
  width: 100%;
  height: 160px;
  display: grid; place-items: end center;
  margin-bottom: 18px;
  overflow: visible;
}
.chibi-stage-lg {
  height: 220px;
  margin-bottom: 22px;
}
.chibi-stage img {
  position: relative;
  width: 150px;
  height: auto;
  image-rendering: -webkit-optimize-contrast;
  filter:
    drop-shadow(0 6px 10px rgba(0,0,0,0.55))
    drop-shadow(0 0 14px var(--gold-glow));
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
  z-index: 2;
}
.chibi-stage-lg img {
  width: auto;
  max-width: 100%;
  height: 220px;
  object-fit: contain;
}
.chibi-glow {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 130px; height: 24px;
  background: radial-gradient(ellipse, var(--gold-glow) 0%, transparent 70%);
  filter: blur(6px);
  z-index: 1;
}
.auto-card-chibi:hover .chibi-stage img {
  transform: translateY(-8px) scale(1.05);
  filter:
    drop-shadow(0 12px 16px rgba(0,0,0,0.6))
    drop-shadow(0 0 24px var(--gold-glow));
}
/* Segundo card usa aqua glow */
.auto-card-chibi:nth-child(2) .chibi-stage img {
  filter:
    drop-shadow(0 6px 10px rgba(0,0,0,0.55))
    drop-shadow(0 0 14px var(--aqua-glow));
}
.auto-card-chibi:nth-child(2) .chibi-glow {
  background: radial-gradient(ellipse, var(--aqua-glow) 0%, transparent 70%);
}
.auto-card-chibi:nth-child(2):hover .chibi-stage img {
  filter:
    drop-shadow(0 12px 16px rgba(0,0,0,0.6))
    drop-shadow(0 0 24px var(--aqua-glow));
}
.auto-card {
  padding: 32px 28px;
  background: linear-gradient(180deg, var(--bg-panel), var(--bg-deep));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}
.auto-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  opacity: 0.6;
}
.auto-card::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top right, var(--gold-glow), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.auto-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-deep);
  box-shadow: var(--shadow-card), var(--shadow-gold);
}
.auto-card:hover::after { opacity: 0.6; }

/* Colores alternados sutiles para variedad */
.auto-card:nth-child(2)::before { background: linear-gradient(90deg, transparent, var(--aqua), transparent); }
.auto-card:nth-child(2):hover { box-shadow: var(--shadow-card), var(--shadow-aqua); border-color: var(--aqua); }
.auto-card:nth-child(2)::after { background: radial-gradient(ellipse at top right, var(--aqua-glow), transparent 60%); }
.auto-card:nth-child(2) .auto-icon { color: var(--aqua-bright); border-color: var(--aqua); background: linear-gradient(180deg, rgba(77,212,200,0.18), rgba(77,212,200,0.05)); }


.auto-icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(229,179,88,0.18), rgba(229,179,88,0.05));
  border: 1px solid var(--gold-deep);
  border-radius: 12px;
  color: var(--gold-bright);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.auto-icon iconify-icon { font-size: 28px; }
.auto-card h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 22px;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.005em;
  position: relative;
  z-index: 1;
}
.auto-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

/* Classes carousel — más color */
.section-classes {
  background:
    radial-gradient(ellipse 1000px 600px at 50% 50%, rgba(77,212,200,0.06), transparent 70%),
    linear-gradient(180deg, var(--bg-deep), var(--bg-mesh) 50%, var(--bg-deep));
}

.classes-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
/* Últimos 3 items centrados (fila incompleta 3-de-5) */
.classes-grid > :nth-child(11) { grid-column-start: 2; }

.job-card {
  padding: 24px 18px 26px;
  background:
    radial-gradient(ellipse at top, rgba(229,179,88,0.1), transparent 60%),
    linear-gradient(180deg, var(--bg-panel), var(--bg-deep));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.job-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-card), 0 0 50px -10px var(--gold-glow);
}

.job-portrait {
  width: 110px; height: 110px;
  margin: 0 auto 16px;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(229,179,88,0.25), transparent 60%),
    linear-gradient(180deg, var(--bg-elevated), var(--bg-panel));
  border: 2px solid var(--gold-deep);
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.4);
}
.job-portrait::after {
  content: '';
  position: absolute; inset: -3px;
  border-radius: 50%;
  padding: 2px;
  background: conic-gradient(from 90deg, var(--gold-primary), transparent 35%, var(--gold-deep) 60%, transparent 90%, var(--gold-primary));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: rotate 12s linear infinite;
}
@keyframes rotate {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .job-portrait::after { animation: none; }
  .server-status .status-dot, .pill-dot { animation: none; }
}
.job-portrait img {
  image-rendering: -webkit-optimize-contrast;
  width: 92px; height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
}
.job-kicker {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--gold-primary);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.job-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 22px;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}
.job-tagline {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
  min-height: 40px;
}

/* Tiles */
.section-tiles {
  background:
    radial-gradient(ellipse 800px 500px at 80% 50%, rgba(77,212,200,0.04), transparent 70%),
    var(--bg-deep);
}
.tiles-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.tile {
  padding: 32px 26px;
  background: linear-gradient(180deg, var(--bg-panel), var(--bg-deep));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}
.tile:hover {
  transform: translateY(-4px);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-card), 0 0 30px -10px var(--gold-glow);
  color: inherit;
}
.tile-n {
  position: absolute; top: 20px; right: 24px;
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 800;
  color: rgba(229,179,88,0.15);
  line-height: 1;
  letter-spacing: -0.03em;
  z-index: 2;
}
.tile-sprite {
  position: absolute;
  bottom: -8px; right: -10px;
  width: 80px; height: 80px;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  opacity: 0.22;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
  transition: transform 0.4s ease, opacity 0.3s ease, bottom 0.3s ease;
  pointer-events: none;
  z-index: 0;
}
.tile:hover .tile-sprite {
  opacity: 0.7;
  transform: scale(1.15) rotate(-4deg);
  bottom: -4px;
}
.tile-icon {
  font-size: 34px;
  color: var(--gold-primary);
  margin-bottom: 20px;
  display: block;
  filter: drop-shadow(0 2px 8px var(--gold-glow));
}
.tile:nth-child(2) .tile-icon { color: var(--aqua-bright); filter: drop-shadow(0 2px 8px var(--aqua-glow)); }

.tile h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 22px;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.tile p { color: var(--text-muted); font-size: 15px; margin-bottom: 20px; line-height: 1.55; }
.tile-more {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--gold-primary);
  font-size: 14px; font-weight: 600;
  transition: gap 0.15s ease;
}
.tile:hover .tile-more { gap: 8px; color: var(--gold-bright); }

/* News */
.section-news {
  background:
    radial-gradient(ellipse 900px 500px at 10% 100%, rgba(77,212,200,0.05), transparent 60%),
    linear-gradient(180deg, var(--bg-deep), var(--bg-mesh) 50%, var(--bg-deep));
}
.link-more {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--gold-primary);
  font-size: 15px; font-weight: 600;
  transition: gap 0.15s ease;
}
.link-more:hover { gap: 10px; color: var(--gold-bright); }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
  padding: 28px 26px;
  background: linear-gradient(180deg, var(--bg-panel), var(--bg-deep));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}
.news-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--gold-primary);
  opacity: 0.7;
}
.news-sprite {
  position: absolute;
  top: 18px; right: 20px;
  width: 44px; height: 44px;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  filter:
    drop-shadow(0 3px 6px rgba(0,0,0,0.5))
    drop-shadow(0 0 8px var(--gold-glow));
  opacity: 0.85;
  transition: transform 0.35s ease, opacity 0.25s ease;
  z-index: 1;
}
.news-card:hover .news-sprite {
  transform: translateY(-4px) rotate(6deg);
  opacity: 1;
}
.news-card:nth-child(2) .news-sprite {
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.5)) drop-shadow(0 0 8px var(--aqua-glow));
}
.news-card:nth-child(3) .news-sprite {
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.5)) drop-shadow(0 0 8px rgba(127,217,122,0.35));
}
.news-card:nth-child(2)::before { background: var(--aqua); }
.news-card:nth-child(3)::before { background: var(--success); }
.news-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card);
}

.news-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.tag-update   { background: rgba(229,179,88,0.15); color: var(--gold-bright); border: 1px solid var(--gold-deep); }
.tag-security { background: rgba(77,212,200,0.15); color: var(--aqua-bright); border: 1px solid rgba(77,212,200,0.5); }
.tag-content  { background: rgba(127,217,122,0.15); color: var(--success); border: 1px solid rgba(127,217,122,0.5); }

.news-card time {
  display: block;
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}
.news-card h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 22px;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.news-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 20px;
}
.news-more {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--gold-primary);
  font-size: 14px; font-weight: 600;
  transition: gap 0.15s ease;
}
.news-more:hover { gap: 8px; color: var(--gold-bright); }

/* Vote */
.section-vote {
  background:
    radial-gradient(ellipse 700px 400px at 50% 0%, rgba(229,179,88,0.08), transparent 60%),
    var(--bg-deep);
}
.vote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 940px;
  margin: 0 auto;
}
.vote-card {
  padding: 24px 24px 26px;
  background: linear-gradient(180deg, var(--bg-panel), var(--bg-deep));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}
.vote-visual {
  width: 72px; height: 72px;
  margin: 0 auto 16px;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 40% 30%, rgba(229,179,88,0.3), transparent 60%),
    linear-gradient(180deg, var(--bg-elevated), var(--bg-panel));
  border: 1px solid var(--gold-deep);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.vote-visual::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 100%, var(--gold-glow), transparent 55%);
  opacity: 0.6;
}
.vote-visual img {
  width: 44px; height: 44px;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.5));
}
.vote-card:hover .vote-visual {
  transform: scale(1.08) rotate(-2deg);
  border-color: var(--gold-bright);
}

/* Vote cards con chibis grandes */
.vote-grid-chibi .vote-card { padding: 20px 20px 22px; }
.vote-chibi {
  position: relative;
  width: 100%;
  height: 170px;
  display: grid; place-items: end center;
  margin-bottom: 12px;
  overflow: visible;
}
.vote-chibi img {
  height: 170px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 6px 10px rgba(0,0,0,0.5))
    drop-shadow(0 0 14px var(--gold-glow));
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.vote-chibi::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 18px;
  background: radial-gradient(ellipse, var(--gold-glow) 0%, transparent 70%);
  filter: blur(4px);
}
.vote-card:hover .vote-chibi img {
  transform: translateY(-8px) scale(1.04);
}

/* =========================================================
   SECTION COMMUNITY (nueva)
   ========================================================= */
.section-community {
  background:
    radial-gradient(ellipse 900px 500px at 15% 50%, rgba(229,179,88,0.06), transparent 65%),
    radial-gradient(ellipse 700px 400px at 90% 30%, rgba(77,212,200,0.05), transparent 65%),
    var(--bg-deep);
}
.community-hero {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 60px;
  align-items: center;
}
.community-visual {
  position: relative;
  display: grid; place-items: center;
  padding: 30px 20px;
}
.community-visual img {
  width: 100%;
  max-width: 380px;
  height: auto;
  filter:
    drop-shadow(0 20px 30px rgba(0,0,0,0.5))
    drop-shadow(0 0 40px var(--gold-glow));
  position: relative;
  z-index: 2;
  animation: float 5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@media (prefers-reduced-motion: reduce) {
  .community-visual img { animation: none; }
}
.community-glow {
  position: absolute;
  bottom: 20px; left: 50%;
  transform: translateX(-50%);
  width: 260px; height: 40px;
  background: radial-gradient(ellipse, var(--gold-glow) 0%, transparent 60%);
  filter: blur(10px);
  z-index: 1;
}
.community-copy .section-title { margin-bottom: 18px; }
.community-copy .section-sub { margin-bottom: 32px; max-width: 560px; }
.community-cta {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.community-cta .btn-primary iconify-icon { font-size: 20px; }

.community-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--divider);
  max-width: 540px;
}
.community-stats li {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cs-value {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 24px;
  color: var(--gold-bright);
  letter-spacing: -0.02em;
  line-height: 1;
}
.cs-label {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.vote-card::before {
  content: '';
  position: absolute; top: 0; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}
.vote-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-card), 0 0 40px -10px var(--gold-glow);
  color: inherit;
}
.vote-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.16em;
  color: var(--text-primary);
  margin-bottom: 6px;
  text-transform: uppercase;
}
.vote-reward {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 30px;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}
.vote-cta {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--gold-primary);
  font-size: 14px; font-weight: 600;
}
.vote-card:hover .vote-cta { color: var(--gold-bright); }

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  background: linear-gradient(180deg, var(--bg-panel), var(--bg-deep));
  border-top: 1px solid var(--divider);
  padding-top: 70px;
  padding-bottom: 28px;
  margin-top: 60px;
  position: relative;
}
.site-footer::before {
  content: '❖';
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--bg-deep);
  color: var(--gold-primary);
  padding: 0 16px;
  font-size: 14px;
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: 1.3fr 3fr;
  gap: 60px;
  margin-bottom: 44px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-brand .tagline {
  color: var(--text-muted);
  font-size: 15px;
  font-style: italic;
  margin-top: 10px;
  max-width: 320px;
  font-family: var(--font-serif);
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.footer-cols h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--gold-primary);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-cols a {
  display: block;
  color: var(--text-muted);
  font-size: 15px;
  padding-block: 5px;
  transition: color 0.15s ease, transform 0.15s ease;
}
.footer-cols a:hover { color: var(--gold-bright); transform: translateX(4px); }
.footer-copy {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--divider);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--text-dim);
  font-size: 13px;
  flex-wrap: wrap;
}

/* =========================================================
   DISCORD FAB
   ========================================================= */

.fab-discord {
  position: fixed;
  bottom: 28px; right: 28px;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 22px 14px 16px;
  background: linear-gradient(180deg, #7289ff, #5865F2);
  color: white;
  border-radius: 100px;
  font-weight: 700;
  font-size: 15px;
  box-shadow:
    0 14px 40px -6px rgba(88,101,242,0.55),
    inset 0 1px 0 rgba(255,255,255,0.3);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  z-index: 90;
}
.fab-discord:hover {
  transform: translateY(-3px);
  color: white;
  box-shadow:
    0 20px 50px -8px rgba(88,101,242,0.7),
    inset 0 1px 0 rgba(255,255,255,0.4);
}
.fab-discord iconify-icon { font-size: 22px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1024px) {
  .auto-grid, .news-grid, .vote-grid { grid-template-columns: repeat(2, 1fr); }
  .auto-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .tiles-grid { grid-template-columns: repeat(2, 1fr); }
  .classes-grid { grid-template-columns: repeat(3, 1fr); }
  .classes-grid > :nth-child(11) { grid-column-start: auto; }
  .auto-hero { grid-template-columns: 1fr; gap: 44px; }
  .community-hero { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .community-cta { justify-content: center; }
  .community-stats { margin-inline: auto; }
  .community-copy .section-sub { margin-inline: auto; }
  .site-footer .wrap { grid-template-columns: 1fr; gap: 40px; }
  .nav { display: none; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 18px; }
  .site-header .wrap { gap: 12px; }
  .brand-name { display: none; }
  .header-actions .server-status { display: none; }
  .header-actions .btn-outline { padding: 10px 16px; font-size: 13px; }

  .hero { min-height: 100vh; padding: 90px 16px 0; }
  .hero-bg img { object-position: 50% 20%; }
  .hero-inner { padding-block: 30px; }
  .hero-kicker { font-size: 11px; letter-spacing: 0.36em; }
  .hero-logo { font-size: clamp(56px, 14vw, 88px); margin-bottom: 22px; }
  .hero-pill { padding: 8px 18px; gap: 14px; font-size: 12px; margin-bottom: 20px; }
  .pill-item b { font-size: 14px; }
  .hero-copy { font-size: 16px; margin-bottom: 26px; }
  .btn-lg { padding: 14px 24px; font-size: 14px; }
  .hero-rates { flex-wrap: wrap; padding: 16px 8px; max-width: 100%; gap: 14px 0; }
  .rate { flex: 1 1 33%; padding-block: 4px; }
  .rate + .rate::before { display: none; }
  .rate-value { font-size: 18px; }
  .rate-label { font-size: 10px; letter-spacing: 0.12em; }

  .section { padding-block: 70px; }
  .auto-grid, .auto-grid-4, .news-grid, .vote-grid, .tiles-grid, .footer-cols { grid-template-columns: 1fr; }
  .mock-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .mock-body { padding: 16px; }
  .community-stats { grid-template-columns: 1fr; gap: 16px; text-align: center; }
  .chibi-stage-lg { height: 180px; }
  .chibi-stage-lg img { height: 180px; }
  .vote-chibi, .vote-chibi img { height: 150px; }

  .classes-grid { grid-template-columns: repeat(2, 1fr); }
  .classes-grid > :nth-child(11) { grid-column-start: auto; }

  .section-head.between { flex-direction: column; align-items: flex-start; }
  .footer-copy { flex-direction: column; text-align: center; }
  .fab-discord span { display: none; }
  .fab-discord { padding: 16px; bottom: 20px; right: 20px; }
}

/* =========================================================
   REGISTER MODAL
   ========================================================= */

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modal-fade 0.22s ease;
}
.modal[hidden] { display: none; }
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 18, 0.75);
  backdrop-filter: blur(6px);
}

.modal-panel {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: linear-gradient(180deg, var(--bg-panel), var(--bg-deep));
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 14px;
  padding: 32px 28px 24px;
  box-shadow: 0 30px 60px -12px rgba(0,0,0,0.7), 0 0 40px rgba(212,175,55,0.08);
  animation: modal-slide 0.28s cubic-bezier(0.2,0.9,0.3,1);
}
@keyframes modal-slide {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  background: transparent;
  border: 0;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  line-height: 0;
  transition: color 0.15s;
}
.modal-close iconify-icon { font-size: 26px; }
.modal-close:hover { color: var(--gold-bright); }

.modal-head { margin-bottom: 22px; }
.modal-head .kicker {
  color: var(--gold-primary);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 600;
}
.modal-head h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 6px 0 8px;
}
.modal-head p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.reg-form { display: flex; flex-direction: column; gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-body);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.form-field input,
.form-field select {
  padding: 11px 14px;
  background: rgba(13,18,32,0.6);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-field input:focus,
.form-field select:focus {
  outline: 0;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.15);
}
.form-field small {
  color: var(--text-dim);
  font-size: 11px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}
.form-field-sm select {
  min-width: 120px;
}

.reg-msg {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
}
.reg-msg.error {
  background: rgba(239,107,98,0.12);
  border: 1px solid rgba(239,107,98,0.4);
  color: var(--error);
}
.reg-msg.success {
  background: rgba(127,217,122,0.12);
  border: 1px solid rgba(127,217,122,0.4);
  color: var(--success);
}

.reg-submit {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}
.reg-submit[disabled] { opacity: 0.6; cursor: wait; pointer-events: none; }

.reg-note {
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-muted);
}
.reg-note a {
  color: var(--gold-bright);
  text-decoration: none;
}
.reg-note a:hover { text-decoration: underline; }

body.modal-open { overflow: hidden; }
