/* ============================================================
   ASTRALYX PVP — UNIFIED STYLESHEET (Dark/Minimal Reskin)
   Same structure/classes as original — red-only accent, no gold
   ============================================================ */

@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/7.0.1/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;1,400&family=Playfair+Display:wght@400;800&family=Fira+Code:wght@400;700&display=swap');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Brand palette — red only, gold removed */
  --red:           #c0392b;
  --red-bright:    #e0453a;
  --red-deep:      #8b1a1a;
  --red-glow:      rgba(192, 57, 43, 0.35);
  --gold:          #c0392b;      /* aliased to red so old refs don't break */
  --gold-glow:     rgba(192, 57, 43, 0.14);

  /* Surfaces */
  --bg:            #080508;
  --border:        rgba(255, 255, 255, 0.08);
  --border-hover:  rgba(192, 57, 43, 0.35);

  /* Text */
  --text:          #F0EDE8;
  --muted:         #ADA6A2;
  --text-muted:    #8a8080;
  --text-faint:    #5a5050;

  /* Legacy aliases (keep HTML using var(--primary) etc. working) */
  --primary:       #c0392b;
  --primary-soft:  #8b1a1a;
  --accent:        #c0392b;
  --dark:          #000000;

  /* Typography */
  --font-display:  'Playfair Display', Georgia, serif;
  --font-body:     'Lora', Georgia, serif;
  --font-elegant:  'Playfair Display', serif;
  --font-reading:  'Lora', serif;

  /* Spacing (8-point scale) */
  --sp-1: 4px;   --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 24px;  --sp-6: 32px;  --sp-7: 48px;
  --sp-8: 64px;  --sp-9: 96px;

  /* Radii */
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-pill: 999px;

  /* Motion */
  --ease:   cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 180ms;
  --t-med:  320ms;
  --t-slow: 500ms;

  /* Nav */
  --nav-h:  72px;

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0,0,0,0.55), 0 1px 4px rgba(0,0,0,0.35);
  --shadow-lift: 0 16px 48px rgba(0,0,0,0.6), 0 4px 20px rgba(192,57,43,0.22);
  --shadow:      0 8px 32px rgba(0,0,0,0.55), 0 2px 8px rgba(192,57,43,0.15);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

img { user-select: none; -webkit-user-drag: none; display: block; max-width: 100%; }

::selection { background: var(--red); color: #fff; }

/* ============================================================
   BASE BODY — near-black, quiet, no busy grid
   ============================================================ */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 45% at 50% -5%, rgba(192,57,43,0.16), transparent),
    radial-gradient(circle at bottom right, rgba(139,26,26,0.08), transparent 45%);
  overflow-x: hidden;
  position: relative;
}

/* Interactive elements — plain pointer, no custom cursor images */
a, button, input, select, textarea, summary, label, [role="button"], .clickable, .hero-btn, [onclick] {
  cursor: pointer;
}

/* No grid overlay — kept quiet/minimal instead of a lattice pattern */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

/* Ambient colour blobs — two, subtle, red only */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 50% -5%, rgba(192,57,43,0.14), transparent 35%),
    radial-gradient(circle at 90% 90%, rgba(139,26,26,0.08), transparent 40%);
  pointer-events: none;
  z-index: -1;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #050505; }
::-webkit-scrollbar-thumb {
  background: var(--red);
  border-radius: var(--r-pill);
}
::-webkit-scrollbar-thumb:hover { filter: brightness(1.15); }

/* ============================================================
   PAGE TRANSITIONS
   ============================================================ */
.page-enter { animation: pageFadeIn 280ms var(--ease) both; }
.page-exit  { animation: pageFadeOut 160ms ease both; }

@keyframes pageFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pageFadeOut { from { opacity: 1; } to { opacity: 0; } }

/* ============================================================
   LAYOUT
   ============================================================ */
.page-content {
  flex: 1;
  padding-top: calc(var(--nav-h) + 24px);
}

.page-content .lb-section {
  padding-top: 0;
}

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: var(--sp-7); }

.hero, .wrap, .credits-section, .features-grid {
  padding-top: var(--sp-9);
  padding-bottom: var(--sp-9);
}

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */
.title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 1.9rem);
  text-transform: uppercase;
  letter-spacing: .12em;
  text-align: center;
  color: var(--text);
  margin-bottom: var(--sp-2);
}

.title-astra { margin-top: var(--sp-7) !important; }

.subtitle {
  text-align: center;
  color: var(--muted);
  margin-bottom: 26px;
  font-size: 0.95rem;
}

.intro-text {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: var(--sp-8);
  max-width: 65ch;
  margin-inline: auto;
  line-height: 1.8;
}

#list {
  list-style: none;
  padding: 0;
  text-align: left;
}

#list li {
  padding: 5px 0 5px 22px;
  position: relative;
  line-height: 1.65;
}

#list li::before {
  content: '▸';
  color: var(--red);
  position: absolute;
  left: 0;
}

li { margin-bottom: var(--sp-2); }

/* ============================================================
   SECTION TITLE — static underline, no gold shimmer/spin
   ============================================================ */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--text);
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0.06em;
  margin-bottom: var(--sp-7);
  position: relative;
  padding-bottom: var(--sp-5);
  animation: fadeInUp 0.8s ease-out both;
  animation-delay: 0.2s;
}

.section-title::after {
  content: '';
  width: 64px;
  height: 3px;
  background: var(--red);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  border-radius: 4px;
}

.section-title::before {
  content: none;
}

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar-placeholder {
  width: 100%;
  pointer-events: none;
}
#navbar-placeholder nav { pointer-events: auto; }

/* ============================================================
   NAVBAR — flat dark bar, blur only, no shimmer ring
   ============================================================ */

.main-nav {
  position: fixed;
  top: 20px;
  left: 50%;
  translate: -50% 0;
  z-index: 9999;
  width: min(92%, 1200px);
  padding: 14px 40px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;

  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  box-shadow: none;
  animation: navDrop 0.7s var(--ease) both;
  transition: background 0.3s ease, backdrop-filter 0.3s ease,
              box-shadow 0.3s ease, border-color 0.3s ease;
}

@keyframes navDrop {
  from { opacity: 0; transform: translate(-50%, -12px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* Flat dark background + border when scrolled */
.nav-scrolled {
  top: 0;
  padding: 8px 40px 8px;
  border-radius: 0 0 var(--r-pill) var(--r-pill);
  background: rgba(8, 5, 8, 0.9);
  backdrop-filter: blur(14px) saturate(110%);
  -webkit-backdrop-filter: blur(14px) saturate(110%);
  border-color: rgba(255,255,255,0.07);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

/* No shimmer ring — removed */
.main-nav::before { content: none; }
.nav-scrolled::before { content: none; }

/* Brand — logo mark + stacked text */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: max-content;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(192,57,43,0.3);
  background: rgba(10, 5, 8, 0.8);
  box-shadow: 0 0 14px rgba(192,57,43,0.3);
  flex-shrink: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  filter: drop-shadow(0 0 6px rgba(192,57,43,0.5));
}

.brand-text {
  display: grid;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 900;
  font-size: 0.85rem;
  font-family: 'Consolas', 'Lucida Console', 'Courier New', monospace;
}

.brand-text span:last-child {
  margin-top: 0.18rem;
  color: var(--red);
  font-size: 0.68rem;
  letter-spacing: 0.34em;
}

/* Status pill — flat, small */
.server-pill {
  font-family: 'Consolas', 'Lucida Console', 'Courier New', monospace;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: max-content;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(14, 8, 10, 0.7);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  transition: color var(--t-fast) ease, border-color var(--t-fast) ease,
              box-shadow var(--t-fast) ease;
}

.server-pill.offline {
  color: #ff4466;
  border-color: rgba(255,68,102,0.3);
  box-shadow: inset 0 0 12px rgba(255,68,102,0.08);
}

.server-pill.online {
  color: #3ddc84;
  border-color: rgba(61,220,132,0.3);
  box-shadow: inset 0 0 12px rgba(61,220,132,0.08);
}

/* Nav links container */
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-family: 'Consolas', 'Lucida Console', 'Courier New', monospace;
  transition: color var(--t-fast) ease, transform var(--t-fast) ease;
}

/* Desktop: flat pill links, no glass layering */
@media (min-width: 861px) {
  .nav-links {
    padding: 0.25rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(14, 8, 10, 0.6);
  }

  .nav-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    background: transparent;
    border: 1px solid transparent;
    font-size: 0.7rem;
    transition: color 240ms var(--ease), background 240ms var(--ease),
                border-color 240ms var(--ease);
  }

  .nav-links a:hover {
    color: var(--text);
    background: rgba(192,57,43,0.12);
    border-color: rgba(192,57,43,0.2);
  }

  .nav-links a.active {
    color: var(--text);
    background: rgba(192,57,43,0.16);
    border-color: rgba(192,57,43,0.28);
  }
}

/* CTA (Store) button — red, not gold */
.nav-cta {
  background: linear-gradient(135deg, var(--red), var(--red-deep)) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 2px 14px rgba(192,57,43,0.35) !important;
  font-weight: 800 !important;
}

.nav-cta:hover {
  filter: brightness(1.12) !important;
  box-shadow: 0 4px 24px rgba(192,57,43,0.5) !important;
}

/* Double-decker layout (links wrap to 2 rows) */
@media (min-width: 861px) {
  .double-decker .brand-text { display: none; }
  .double-decker .brand-mark { width: 52px; height: 52px; }
}

/* Hamburger — hidden desktop */
.hamburger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: var(--text);
  background: rgba(14, 8, 10, 0.7);
  cursor: pointer;
  font-size: 1.15rem;
  align-items: center;
  justify-content: center;
  transition: border-color 240ms var(--ease), background 240ms var(--ease);
  z-index: 10001;
}

.hamburger:hover,
.hamburger.active {
  border-color: rgba(192,57,43,0.4);
  background: rgba(192,57,43,0.14);
  color: var(--text);
}

/* Mobile-only elements hidden on desktop */
.nav-backdrop,
.mobile-close,
.nav-footer-hint {
  display: none;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 20%, rgba(192,57,43,0.10), transparent 35%),
    radial-gradient(circle at 20% 80%, rgba(139,26,26,0.10), transparent 40%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner-split {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  max-width: 1200px;
  width: 100%;
  padding-inline: var(--sp-7);
  position: relative;
  z-index: 2;
}

.hero-image {
  position: relative;
  flex: 1;
  max-width: 420px;
  aspect-ratio: 1;
  border-radius: 24px;
  border: 1px solid rgba(192, 57, 43, 0.35);
  background: rgba(8, 5, 8, 0.75);
  box-shadow: 0 0 26px rgba(192, 57, 43, 0.25);
  overflow: hidden;
  animation: logoEntrance 1.1s var(--ease) both;
}

@keyframes logoEntrance {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}

.hero-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 76%;
  aspect-ratio: 1;
  border-radius: 20px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  background: rgba(5, 3, 4, 0.5);
  border: 1px solid rgba(192, 57, 43, 0.25);
}

.hero-logo-main {
  width: 82%;
  height: 82%;
  border-radius: 16px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(192, 57, 43, 0.55));
}

/* Orbit ring — kept, red only, no gold dots */
.orbit {
  position: absolute;
  inset: 11%;
  border: 1px dashed rgba(192, 57, 43, 0.18);
  border-radius: 999px;
  animation: spin 18s linear infinite;
  pointer-events: none;
}
.orbit::before,
.orbit::after {
  content: '';
  position: absolute;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px rgba(192, 57, 43, 0.6);
}
.orbit::before { top: 8%; left: 16%; }
.orbit::after { right: 8%; bottom: 22%; }

@keyframes spin { to { transform: rotate(360deg); } }

.hud-card {
  position: absolute;
  z-index: 2;
  width: min(72%, 180px);
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(192, 57, 43, 0.22);
  border-radius: 12px;
  background: rgba(8, 4, 6, 0.75);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.hud-card.top { top: 0.7rem; right: 0.7rem; }
.hud-card.bottom { left: 0.7rem; bottom: 0.7rem; }

.hud-label {
  margin: 0 0 0.3rem;
  color: var(--text);
  opacity: 0.6;
  font-family: 'Fira Code', monospace;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.6rem;
}

.hud-value {
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
}

.hud-sub {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.hero-text {
  flex: 1;
  text-align: left;
  animation: fadeInUp 1s var(--ease) 0.1s both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Title — red/dark gradient, no gold, no colour cycling animation */
.hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: var(--sp-5);
  text-transform: uppercase;
  background: linear-gradient(135deg, #ff6b35 0%, var(--red) 50%, var(--red-deep) 100%);
  background-size: 100% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: textReveal 0.8s ease both;
}

@keyframes textReveal {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-text p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: var(--sp-6);
  max-width: 46ch;
}

/* ============================================================
   BUTTONS — red, no gold gradient
   ============================================================ */
.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: #fff;
  padding: 15px 30px;
  border-radius: var(--r-pill);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 4px 24px rgba(192,57,43,0.4);
  transition:
    transform 0.25s ease,
    box-shadow var(--t-med) ease,
    filter var(--t-fast) ease;
  position: relative;
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(192,57,43,0.55);
  filter: brightness(1.06);
}

.hero-btn.secondary {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  box-shadow: none;
}

.hero-btn.secondary:hover {
  color: var(--text);
  border-color: var(--border-hover);
}

/* ============================================================
   FEATURE / RANK CARDS
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-4);
}

.feature-card, .rank-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-6) var(--sp-5);
  transition: border-color var(--t-med) ease, transform var(--t-med) ease;
}

.feature-card:hover, .rank-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.feature-icon { font-size: 1.6rem; margin-bottom: var(--sp-3); color: var(--red); }
.feature-title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.feature-desc { font-size: 0.85rem; color: var(--text-faint); line-height: 1.65; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 1px solid var(--border);
  padding: var(--sp-5) var(--sp-7);
}

.footer-inner {
  display: flex;
  align-items: stretch;
  gap: var(--sp-6);
  padding-block: var(--sp-6);
  flex-wrap: wrap;
  max-width: 1200px;
  margin-inline: auto;
}

.footer-logo {
  width: 80px;
  object-fit: contain;
  border-right: 1px solid var(--border);
  padding-right: var(--sp-6);
  flex-shrink: 0;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer-brand-name { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.footer-tagline { font-size: 0.8rem; color: var(--text-faint); }

.footer-social {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--r-sm);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  text-decoration: none;
  transition: border-color var(--t-fast) ease, color var(--t-fast) ease;
}

.footer-social a:hover { border-color: var(--b  /* Status */
  --green:        #4ade80;
  --red-status:   #f87171;

  /* Typography */
  --font-display: 'Inter', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'Fira Code', 'Consolas', monospace;

  /* Spacing */
  --sp-1: 4px;  --sp-2: 8px;   --sp-3: 12px;
  --sp-4: 16px; --sp-5: 24px;  --sp-6: 32px;
  --sp-7: 48px; --sp-8: 64px;  --sp-9: 96px;

  /* Radii — sharper, less pill-happy than before */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 14px;
  --r-pill: 20px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 160ms;
  --t-med:  260ms;

  --nav-h: 60px;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img { user-select: none; -webkit-user-drag: none; display: block; max-width: 100%; }
::selection { background: var(--red); color: #fff; }

/* ============================================================
   BASE BODY — near black, two subtle glows, no busy grid
   ============================================================ */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  position: relative;
}

/* Two ambient red glows, fixed, quiet */
body::before {
  content: '';
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(180,20,20,0.16) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

body::after {
  content: '';
  position: fixed;
  bottom: -10%;
  right: -10%;
  width: 500px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(120,10,10,0.10) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--red);
  border-radius: var(--r-pill);
}
::-webkit-scrollbar-thumb:hover { background: var(--red-bright); }

/* ============================================================
   LAYOUT
   ============================================================ */
.page-content { flex: 1; padding-top: calc(var(--nav-h) + 24px); }
.wrap { max-width: 1100px; margin-inline: auto; padding-inline: var(--sp-5); }

@media (min-width: 640px) {
  .wrap { padding-inline: var(--sp-7); }
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: -0.01em;
  text-align: center;
  color: var(--text);
  margin-bottom: var(--sp-2);
}

.subtitle {
  text-align: center;
  color: var(--muted);
  margin-bottom: var(--sp-5);
  font-size: 0.95rem;
}

.intro-text {
  text-align: center;
  color: var(--muted);
  font-size: clamp(0.9rem, 3.5vw, 1rem);
  line-height: 1.75;
  max-width: 60ch;
  margin: 0 auto var(--sp-8);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 900;
  color: var(--text);
  text-align: center;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-7);
  position: relative;
  padding-bottom: var(--sp-4);
}

.section-title::after {
  content: '';
  width: 48px;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
}

#list { list-style: none; text-align: left; }
#list li { padding: 5px 0 5px 22px; position: relative; line-height: 1.65; }
#list li::before { content: '▸'; color: var(--red); position: absolute; left: 0; }
li { margin-bottom: var(--sp-2); }

/* ============================================================
   NAVBAR — sticky flat bar, blur only, no gold shimmer
   ============================================================ */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 9999;
  width: 100%;
  height: var(--nav-h);
  padding-inline: var(--sp-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  background: rgba(8, 5, 8, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--t-med) ease, border-color var(--t-med) ease;
}

@media (min-width: 640px) {
  .main-nav { padding-inline: var(--sp-7); }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  color: inherit;
  min-width: max-content;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  overflow: hidden;
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px rgba(192, 57, 43, 0.4));
}

.brand-mark img { width: 100%; height: 100%; object-fit: cover; }

.brand-text {
  display: none;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

@media (min-width: 640px) {
  .brand-text { display: grid; }
}

.brand-text span:last-child {
  margin-top: 3px;
  color: var(--red);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
}

/* Status pill — small, right-aligned, never loud */
.server-pill {
  font-family: var(--font-mono);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.server-pill.online {
  color: var(--green);
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.server-pill.offline {
  color: var(--red-status);
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.2);
}

.server-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.server-pill.online .dot { background: var(--green); box-shadow: 0 0 6px var(--green); }
.server-pill.offline .dot { background: var(--red-status); }

/* Nav links — desktop only, plain, no pill background */
.nav-links {
  display: none;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

@media (min-width: 861px) {
  .nav-links { display: flex; }
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.03em;
  padding: 6px 12px;
  border-radius: var(--r-sm);
  transition: color var(--t-fast) ease, background var(--t-fast) ease;
}

.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.04); }

.nav-links a.active {
  color: var(--text);
  background: var(--red-subtle);
}

.nav-cta {
  background: linear-gradient(135deg, var(--red), var(--red-deep)) !important;
  color: #fff !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 16px rgba(180,20,20,0.3) !important;
}

.nav-cta:hover { filter: brightness(1.1); }

/* Hamburger — mobile only */
.hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

@media (min-width: 861px) {
  .hamburger { display: none; }
}

.hamburger:hover, .hamburger.active { color: var(--text); border-color: var(--border-hover); }

.mobile-menu {
  display: flex;
  flex-direction: column;
  background: rgba(10, 8, 10, 0.97);
  border-top: 1px solid var(--border);
  padding: var(--sp-2) var(--sp-5) var(--sp-4);
}

.mobile-menu a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* ============================================================
   HERO — logo up top, centered stack (matches preview build)
   ============================================================ */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--sp-8) var(--sp-5) var(--sp-6);
}

.hero-logo {
  width: 100px;
  height: 100px;
  border-radius: var(--r-md);
  margin-bottom: var(--sp-5);
  filter: drop-shadow(0 0 24px rgba(200, 30, 30, 0.5));
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c0503a;
  background: var(--red-subtle);
  border: 1px solid var(--red-border);
  border-radius: var(--r-pill);
  padding: 5px 14px;
  margin-bottom: var(--sp-5);
}

.tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c0503a;
  box-shadow: 0 0 8px #c0503a;
  display: inline-block;
}

.hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 14vw, 96px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: var(--sp-4);
}

.title-main {
  background: linear-gradient(135deg, var(--orange) 0%, var(--red) 50%, var(--red-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
}

.title-sub {
  color: var(--text);
  display: block;
  font-size: 0.55em;
  letter-spacing: 0.25em;
  font-weight: 400;
  opacity: 0.45;
  margin-top: 6px;
}

.hero-text p {
  color: var(--muted);
  font-size: clamp(14px, 3.5vw, 17px);
  line-height: 1.75;
  max-width: 480px;
  margin: 0 auto var(--sp-6);
}

/* IP copy button */
.ip-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--red-subtle);
  border: 1px solid var(--red-border);
  border-radius: var(--r-md);
  padding: 14px 20px;
  cursor: pointer;
  margin: 0 auto var(--sp-5);
  max-width: 420px;
  width: 100%;
  transition: border-color var(--t-fast) ease, background var(--t-fast) ease;
}

.ip-btn:hover { border-color: rgba(180,20,20,0.55); background: rgba(180,20,20,0.15); }

.ip-icon { font-size: 18px; flex-shrink: 0; }

.ip-text {
  font-size: clamp(12px, 3.5vw, 14px);
  font-weight: 600;
  color: var(--text);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  flex: 1;
  text-align: left;
}

.ip-copy-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c0503a;
  flex-shrink: 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-row {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--sp-7);
}

.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.03em;
  padding: 13px 28px;
  border-radius: var(--r-md);
  border: none;
  box-shadow: 0 4px 20px rgba(180,20,20,0.35);
  cursor: pointer;
  transition: transform var(--t-fast) ease, box-shadow var(--t-fast) ease, filter var(--t-fast) ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(180,20,20,0.5);
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.btn-secondary {
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.03em;
  padding: 13px 28px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color var(--t-fast) ease, color var(--t-fast) ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-secondary:hover { border-color: rgba(255,255,255,0.2); color: var(--text); }

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
}

.stat {
  flex: 1 1 120px;
  padding: var(--sp-4) var(--sp-3);
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.stat:last-child { border-bottom: none; }

@media (min-width: 640px) {
  .stat { border-bottom: none; border-right: 1px solid var(--border); }
  .stat:last-child { border-right: none; }
}

.stat-value { font-size: clamp(13px, 3vw, 16px); font-weight: 700; color: var(--text); margin-bottom: 2px; }
.stat-label { font-size: 10px; color: var(--faint); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }

/* ============================================================
   FEATURE / RANK CARDS — flat, quiet border on hover
   ============================================================ */
.features-grid, .card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-3);
  max-width: 1100px;
  margin: 0 auto;
  padding-inline: var(--sp-5);
}

.feature-card, .rank-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-6) var(--sp-5);
  transition: border-color var(--t-med) ease, transform var(--t-med) ease;
}

.feature-card:hover, .rank-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.feature-icon { font-size: 26px; margin-bottom: var(--sp-3); color: var(--red); }
.feature-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.feature-desc { font-size: 13px; color: var(--faint); line-height: 1.65; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 1px solid var(--border);
  padding: var(--sp-5);
  max-width: 1100px;
  margin: 0 auto;
}

.footer-inner {
  display: flex;
  align-items: stretch;
  gap: var(--sp-6);
  padding-block: var(--sp-6);
  flex-wrap: wrap;
}

.footer-logo {
  width: 80px;
  object-fit: contain;
  border-right: 1px solid var(--border);
  padding-right: var(--sp-6);
  flex-shrink: 0;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer-brand-name { font-size: 18px; font-weight: 700; color: var(--text); }
.footer-tagline { font-size: 13px; color: var(--faint); }

.footer-social {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  text-decoration: none;
  transition: border-color var(--t-fast) ease, color var(--t-fast) ease;
}

.footer-social a:hover { border-color: rgba(255,255,255,0.22); color: var(--text); }

.footer-copyright { font-size: 11px; color: var(--faint-2); margin-top: auto; }

.footer-links {
  display: flex;
  gap: var(--sp-8);
  margin-left: auto;
}

.footer-col-title {
  font-size: 10px;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: var(--sp-3);
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--faint);
  text-decoration: none;
  padding: 4px 0;
  transition: color var(--t-fast) ease;
}

.footer-col a:hover { color: var(--muted); }

@media (max-width: 640px) {
  .footer-inner { flex-direction: column; text-align: center; align-items: center; }
  .footer-logo { border-right: none; padding-right: 0; }
  .footer-links { margin-left: 0; justify-content: center; }
}

/* ============================================================
   ANIMATIONS — kept minimal
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
   }  /* Typography */
  --font-display:  'Playfair Display', Georgia, serif;
  --font-body:     'Lora', Georgia, serif;
  --font-elegant:  'Playfair Display', serif;
  --font-reading:  'Lora', serif;

  /* Spacing (8-point scale) */
  --sp-1: 4px;   --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 24px;  --sp-6: 32px;  --sp-7: 48px;
  --sp-8: 64px;  --sp-9: 96px;

  /* Radii */
  --r-sm:   10px;
  --r-md:   16px;
  --r-lg:   24px;
  --r-pill: 999px;

  /* Motion */
  --ease:   cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 180ms;
  --t-med:  320ms;
  --t-slow: 500ms;

  /* Nav */
  --nav-h:  72px;

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0,0,0,0.55), 0 1px 4px rgba(0,0,0,0.35);
  --shadow-lift: 0 16px 48px rgba(0,0,0,0.6), 0 4px 20px rgba(200,16,46,0.22);
  --shadow:      0 8px 32px rgba(0,0,0,0.55), 0 2px 8px rgba(200,16,46,0.15);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

img { user-select: none; -webkit-user-drag: none; display: block; max-width: 100%; }

::selection { background: var(--red); color: #fff; }

/* ============================================================
   BASE BODY
   ============================================================ */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 55% at 50% -5%, rgba(200,16,46,0.22), transparent),
    radial-gradient(circle at top, #1a0000 0%, #000 60%);
  overflow-x: hidden;
  position: relative;
  cursor: url('../Assets/cursor-sword.png') 0 0, auto;
}

/* Interactive elements get the axe cursor on hover + swing on click */
a, button, input, select, textarea, summary, label, [role="button"], .clickable, .hero-btn, [onclick] {
  cursor: url('../Assets/cursor-sword.png') 0 0, auto !important;
}
a:hover, button:hover, input:hover, select:hover, textarea:hover, summary:hover, label:hover, [role="button"]:hover, .clickable:hover, .hero-btn:hover, [onclick]:hover {
  cursor: url('../Assets/cursor-axe.png') 0 0, auto !important;
}
a:active, button:active, input:active, select:active, textarea:active, summary:active, label:active, [role="button"]:active, .clickable:active, .hero-btn:active, [onclick]:active {
  cursor: url('../Assets/cursor-axe-click.png') 0 0, auto !important;
}

/* Ambient grid overlay — main grid + thinner inner grids */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    /* Main grid lines */
    linear-gradient(rgba(255,215,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,215,0,0.04) 1px, transparent 1px),
    /* Thinner inner grid lines */
    linear-gradient(rgba(255,215,0,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,215,0,0.02) 1px, transparent 1px);
  background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.5;
}

/* Ambient colour blobs — cheap, fixed */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,215,0,0.05), transparent 30%),
    radial-gradient(circle at 80% 30%, rgba(200,16,46,0.08), transparent 35%),
    radial-gradient(circle at 50% 80%, rgba(255,215,0,0.04), transparent 40%);
  pointer-events: none;
  z-index: -1;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #050202; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--red), var(--gold));
  border-radius: var(--r-pill);
}
::-webkit-scrollbar-thumb:hover { filter: brightness(1.15); }

/* ============================================================
   PAGE TRANSITIONS
   ============================================================ */
.page-enter { animation: pageFadeIn 280ms var(--ease) both; }
.page-exit  { animation: pageFadeOut 160ms ease both; }

/* ============================================================
   LAYOUT
   ============================================================ */
.page-content {
  flex: 1;
  padding-top: calc(var(--nav-h) + 24px);
}

.page-content .lb-section {
  padding-top: 0;
}

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: var(--sp-7); }

.hero, .wrap, .credits-section, .features-grid {
  padding-top: var(--sp-9);
  padding-bottom: var(--sp-9);
}

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */
.title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 1.9rem);
  text-transform: uppercase;
  letter-spacing: .12em;
  text-align: center;
  color: var(--text);
  margin-bottom: var(--sp-2);
}

.title-astra { margin-top: var(--sp-7) !important; }

.subtitle {
  text-align: center;
  color: var(--muted);
  margin-bottom: 26px;
  font-size: 0.95rem;
}

.intro-text {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: var(--sp-8);
  max-width: 65ch;
  margin-inline: auto;
  line-height: 1.8;
}

#list {
  list-style: none;
  padding: 0;
  text-align: left;
}

#list li {
  padding: 5px 0 5px 22px;
  position: relative;
  line-height: 1.65;
}

#list li::before {
  content: '▸';
  color: var(--red);
  position: absolute;
  left: 0;
}

li { margin-bottom: var(--sp-2); }

/* ============================================================
   SECTION TITLE — with animated underline + star
   ============================================================ */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--gold);
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0.06em;
  margin-bottom: var(--sp-7);
  position: relative;
  padding-bottom: var(--sp-5);
  animation: fadeInUp 0.8s ease-out both;
  animation-delay: 0.2s;
}

.section-title::after {
  content: '';
  width: 140px;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--gold), var(--red), var(--gold), transparent);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  border-radius: 4px;
  animation: glowBar 4s ease-in-out infinite;
  filter: blur(0.5px);
}

.section-title::before {
  content: '✦';
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  color: var(--gold);
  opacity: 0.6;
  animation: spinPulse 4s ease-in-out infinite;
}

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar-placeholder {
  width: 100%;
  pointer-events: none;
}
#navbar-placeholder nav { pointer-events: auto; }

/* ============================================================
   NAVBAR — Portal-inspired glass design
   ============================================================ */

.main-nav {
  position: fixed;
  top: 20px;
  left: 50%;
  translate: -50% 0;
  z-index: 9999;
  width: min(92%, 1200px);
  padding: 14px 40px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;

  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  box-shadow: none;
  animation: navDrop 0.7s var(--ease) both;
  transition: background 0.3s ease, backdrop-filter 0.3s ease,
              box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Glass background + border when scrolled */
.nav-scrolled {
  top: 0;
  padding: 8px 40px 8px;
  border-radius: 0 0 var(--r-pill) var(--r-pill);
  background: rgba(10, 4, 6, 0.85);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-color: rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 8px 32px rgba(0,0,0,0.5);
}

.nav-scrolled::before {
  opacity: 1;
}

/* Shimmer border ring */
.main-nav::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--r-pill) + 1px);
  background: linear-gradient(135deg,
    rgba(255,215,0,0.12), transparent 40%,
    transparent 60%, rgba(200,16,46,0.12));
  background-size: 200% 200%;
  animation: borderShimmer 6s ease-in-out infinite;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  padding: 1px;
  z-index: -1;
}

/* Brand — logo mark + stacked text */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: max-content;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255,215,0,0.28);
  background:
    radial-gradient(circle at 28% 18%, rgba(255,255,255,0.15), transparent 18%),
    linear-gradient(135deg, rgba(255,215,0,0.18), rgba(200,16,46,0.10)),
    rgba(10, 4, 6, 0.72);
  box-shadow: 0 0 14px rgba(200,16,46,0.34), 0 0 40px rgba(255,215,0,0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: floatLogo 4.8s var(--ease) infinite;
  flex-shrink: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  filter: drop-shadow(0 0 6px rgba(200,16,46,0.5));
}

.brand-text {
  display: grid;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 900;
  font-size: 0.85rem;
  font-family: 'Consolas', 'Lucida Console', 'Courier New', monospace;
}

.brand-text span:last-child {
  margin-top: 0.18rem;
  color: var(--red);
  font-size: 0.68rem;
  letter-spacing: 0.34em;
}

/* Status pill — glass style */
.server-pill {
  font-family: 'Consolas', 'Lucida Console', 'Courier New', monospace;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: max-content;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(18, 8, 10, 0.64);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  transition: color var(--t-fast) ease, border-color var(--t-fast) ease,
              box-shadow var(--t-fast) ease;
}

.server-pill.offline {
  color: #ff4466;
  border-color: rgba(255,68,102,0.3);
  box-shadow: inset 0 0 12px rgba(255,68,102,0.08);
}

.server-pill.online {
  color: #3ddc84;
  border-color: rgba(61,220,132,0.3);
  box-shadow: inset 0 0 12px rgba(61,220,132,0.08);
}

/* Nav links container — glass pill on desktop */
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-family: 'Consolas', 'Lucida Console', 'Courier New', monospace;
  transition: color var(--t-fast) ease, transform var(--t-fast) ease;
}

/* Desktop: glass pill links */
@media (min-width: 861px) {
  .nav-links {
    padding: 0.25rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(18, 8, 10, 0.55);
    backdrop-filter: blur(14px) saturate(115%);
    -webkit-backdrop-filter: blur(14px) saturate(115%);
  }

  .nav-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    background: rgba(18, 8, 10, 0.68);
    backdrop-filter: blur(14px) saturate(115%);
    -webkit-backdrop-filter: blur(14px) saturate(115%);
    border: 1px solid rgba(255,255,255,0.06);
    font-size: 0.7rem;
    transition: color 360ms var(--ease), background 360ms var(--ease),
                border-color 360ms var(--ease), transform 360ms var(--ease);
  }

  .nav-links a:hover {
    color: var(--text);
    background: rgba(200,16,46,0.14);
    border-color: rgba(255,215,0,0.25);
    transform: translateY(-2px);
  }

  .nav-links a.active {
    color: var(--gold);
    text-shadow: 0 0 12px rgba(255,215,0,0.25);
    border-color: rgba(255,215,0,0.25);
    box-shadow: 0 0 18px rgba(255,215,0,0.06);
  }
}

/* CTA (Store) button */
.nav-cta {
  background: linear-gradient(135deg, #FFD700, #ff8c00) !important;
  color: #1b0503 !important;
  border-color: transparent !important;
  box-shadow: 0 2px 14px rgba(255,215,0,0.35) !important;
  font-weight: 800 !important;
}

.nav-cta:hover {
  filter: brightness(1.12) !important;
  box-shadow: 0 4px 24px rgba(255,215,0,0.5) !important;
}

/* Double-decker layout (links wrap to 2 rows) */
@media (min-width: 861px) {
  .double-decker .brand-text { display: none; }
  .double-decker .brand-mark { width: 52px; height: 52px; }
}

/* Hamburger — hidden desktop */
.hamburger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,215,0,0.22);
  border-radius: 12px;
  color: var(--text);
  background: rgba(18, 8, 10, 0.64);
  backdrop-filter: blur(14px) saturate(115%);
  -webkit-backdrop-filter: blur(14px) saturate(115%);
  cursor: pointer;
  font-size: 1.15rem;
  align-items: center;
  justify-content: center;
  transition: border-color 360ms var(--ease), background 360ms var(--ease);
  z-index: 10001;
}

.hamburger:hover,
.hamburger.active {
  border-color: rgba(255,215,0,0.5);
  background: rgba(200,16,46,0.14);
  color: var(--gold);
}

/* Mobile-only elements hidden on desktop */
.nav-backdrop,
.mobile-close,
.nav-footer-hint {
  display: none;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 20%, rgba(255,215,0,0.07), transparent 30%),
    radial-gradient(circle at 20% 80%, rgba(200,16,46,0.12), transparent 40%);
  animation: heroGlow 8s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

.hero-inner-split {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  max-width: 1200px;
  width: 100%;
  padding-inline: var(--sp-7);
  position: relative;
  z-index: 2;
}

.hero-image {
  position: relative;
  flex: 1;
  max-width: 420px;
  aspect-ratio: 1;
  border-radius: 32px;
  border: 1px solid rgba(200, 16, 46, 0.55);
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.28), transparent 18%),
    linear-gradient(135deg, rgba(255, 215, 0, 0.28), rgba(200, 16, 46, 0.16)),
    rgba(5, 3, 9, 0.72);
  box-shadow: 0 0 26px rgba(200, 16, 46, 0.34), 0 0 70px rgba(255, 215, 0, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  animation: logoEntrance 1.1s var(--ease) both;
}

.hero-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 76%;
  aspect-ratio: 1;
  border-radius: 24px;
  transform: translate(-50%, -50%);
  animation: floatHero 5.6s ease-in-out infinite;
  display: grid;
  place-items: center;
  background: rgba(5, 3, 9, 0.45);
  border: 1px solid rgba(200, 16, 46, 0.3);
  box-shadow: 0 0 16px rgba(200, 16, 46, 0.2);
}

.hero-logo-main {
  width: 82%;
  height: 82%;
  border-radius: 18px;
  object-fit: contain;
  box-shadow: 0 0 28px rgba(200, 16, 46, 0.35);
  filter: drop-shadow(0 0 10px rgba(200, 16, 46, 0.7));
}

/* Orbit ring */
.orbit {
  position: absolute;
  inset: 11%;
  border: 1px dashed rgba(255, 215, 0, 0.2);
  border-radius: 999px;
  animation: spin 18s linear infinite;
  pointer-events: none;
}
.orbit::before,
.orbit::after {
  content: '';
  position: absolute;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.7);
}
.orbit::before { top: 8%; left: 16%; }
.orbit::after { right: 8%; bottom: 22%; background: var(--red); box-shadow: 0 0 12px rgba(200, 16, 46, 0.7); }

.hud-card {
  position: absolute;
  z-index: 2;
  width: min(72%, 180px);
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(200, 16, 46, 0.28);
  border-radius: 14px;
  background: rgba(8, 4, 10, 0.66);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.hud-card.top {
  top: 0.7rem;
  right: 0.7rem;
}

.hud-card.bottom {
  left: 0.7rem;
  bottom: 0.7rem;
}

.hud-label {
  margin: 0 0 0.3rem;
  color: var(--gold);
  font-family: 'Fira Code', monospace;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.6rem;
}

.hud-value {
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
}

.hud-sub {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.hero-text {
  flex: 1;
  text-align: left;
  animation: fadeInUp 1s var(--ease) 0.1s both;
}

.hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: var(--sp-5);
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--gold), var(--red), var(--gold));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientMove 5s linear infinite, textReveal 1s ease;
}

.hero-text p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: var(--sp-6);
  max-width: 46ch;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--gold), var(--red));
  color: #1b0504;
  padding: 15px 30px;
  border-radius: var(--r-pill);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.45);
  box-shadow: 0 0 25px rgba(255,60,0,0.45), 0 0 50px rgba(255,215,0,0.12);
  transition:
    transform 0.35s cubic-bezier(0.34,1.56,0.64,1),
    box-shadow var(--t-med) ease,
    filter var(--t-fast) ease;
  position: relative;
  overflow: hidden;
}

.hero-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.38), transparent);
  transform: translateX(-130%);
}

.hero-btn:hover::before { animation: btnShine 0.75s ease; }

.hero-btn:hover {
  transform: translateY(-7px) scale(1.03);
  box-shadow: 0 14px 30px rgba(255,60,0,0.4), 0 0 55px rgba(255,194,79,0.3);
  border-color: rgba(255,255,255,0.85);
  filter: saturate(1.1);
}

.hero-btn:active { transform: translateY(-1px) scale(0.98); }

.hero-btn.mini { padding: 10px 20px; font-size: 0.8rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 9px 20px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: transparent;
  cursor: pointer;
  transition: border-color var(--t-fast) ease, color var(--t-fast) ease, transform var(--t-fast) var(--ease);
}

.btn:hover {
  border-color: var(--gold);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 0 16px rgba(255,215,0,0.12);
}

.btn.primary { background: var(--red); border-color: var(--red); color: #fff; font-weight: 700; }
.btn.primary:hover { background: #e01230; border-color: #e01230; color: #fff; }

/* ============================================================
   PANELS & CARDS
   ============================================================ */
.panel {
  background:
    radial-gradient(circle at top left, rgba(255,85,45,.15), rgba(6,2,4,.85) 52%),
    linear-gradient(165deg, rgba(255,120,60,.07), rgba(8,2,6,.83));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: var(--sp-6);
}

/* Feature cards */
.feature-card {
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(200,16,46,0.2);
  border-radius: var(--r-lg);
  padding: 35px 25px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: cardReveal 0.8s var(--ease) forwards;
  transition:
    transform 0.4s var(--ease),
    border-color 0.4s ease,
    box-shadow 0.4s ease,
    background 0.4s ease;
}

/* Gold radial on hover */
.feature-card::before {
  content: '';
  position: absolute;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,215,0,0.1), transparent 30%);
  top: -50%; left: -50%;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

/* Shimmer border ring on hover */
.feature-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg,
    rgba(255,215,0,0.2), transparent 40%,
    transparent 60%, rgba(200,16,46,0.2));
  background-size: 200% 200%;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  padding: 1px;
}

.feature-card:hover::before { opacity: 1; animation: rotateGlow 10s linear infinite; }
.feature-card:hover::after  { opacity: 1; animation: borderShimmer 3s linear infinite; }

.feature-card:hover {
  transform: translateY(-14px) scale(1.03);
  border-color: rgba(255,215,0,0.4);
  background: rgba(255,60,0,0.07);
  box-shadow: 0 20px 50px rgba(200,16,46,0.25), 0 0 60px rgba(255,215,0,0.1),
              inset 0 1px 0 rgba(255,215,0,0.1);
}

.feature-card:nth-child(1) { animation-delay: 0.2s; }
.feature-card:nth-child(2) { animation-delay: 0.35s; }
.feature-card:nth-child(3) { animation-delay: 0.5s; }
.feature-card:nth-child(4) { animation-delay: 0.65s; }

/* Icon box */
.icon-box {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-5);
}

.feature-card i, .icon-box i {
  font-size: 2.5rem;
  color: var(--red);
  transition: transform 0.4s ease, color var(--t-fast) ease, text-shadow var(--t-fast) ease;
}

.feature-card:hover i,
.feature-card:hover .icon-box i {
  transform: scale(1.15) rotate(6deg);
  color: var(--gold);
  text-shadow: 0 0 18px rgba(255,215,0,0.4);
}

.custom-icon { width: 40px; height: 40px; fill: #e3b04b; }

.mc-icon {
  height: 45px; width: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 10px rgba(255,215,0,0.35));
  animation: pixelFloat 3s ease-in-out infinite;
}

.feature-card h3 {
  font-family: var(--font-display);
  color: var(--text);
  font-size: 1.15rem;
  margin-bottom: var(--sp-3);
  transition: color var(--t-fast) ease;
}

.feature-card:hover h3 { color: var(--gold); }

.feature-card p { color: var(--muted); font-size: 0.95rem; line-height: 1.7; }

.feature-card ul { text-align: left; list-style: none; margin-top: var(--sp-4); }

.feature-card li {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: var(--sp-3);
  display: flex;
  gap: 10px;
  line-height: 1.4;
  transition: transform var(--t-fast) ease;
}

.feature-card li::before { content: "•"; color: var(--red); font-weight: bold; flex-shrink: 0; }
.feature-card:hover li { transform: translateX(3px); }

/* Features layout */
.features { padding: 80px 9%; text-align: center; position: relative; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 25px; }

/* ============================================================
   HOW TO JOIN
   ============================================================ */
.join-section {
  padding: 60px 9% 90px;
  text-align: center;
  position: relative;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.step-card {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(200,16,46,0.18);
  border-radius: var(--r-lg);
  padding: 40px 28px 36px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.4s var(--ease),
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}

.step-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255,215,0,0.06), transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.step-card:hover::before { opacity: 1; }

.step-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255,215,0,0.3);
  box-shadow: 0 16px 40px rgba(200,16,46,0.2);
}
