/* ═══════════════════════════════════════════════
   RogueMeta · Shared Design System
   ═══════════════════════════════════════════════ */

/* ─── RESET & BASE ───────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:16px; }

:root {
  /* Color Tokens */
  --ink:   #07070d;
  --ink1:  #0d0d16;
  --ink2:  #13131e;
  --ink3:  #1b1b28;
  --ink4:  #242434;
  --paper: #eae7df;
  --paper2:#9b97a6;
  --paper3:#555062;
  --fire:  #ff3800;
  --fire2: #ff6330;
  --ember: rgba(255,56,0,.12);
  /* Tier Colors */
  --s:#ff2020; --s-bg:rgba(255,32,32,.08);  --s-border:rgba(255,32,32,.22);
  --a:#ff5500; --a-bg:rgba(255,85,0,.08);   --a-border:rgba(255,85,0,.22);
  --b:#f59e0b; --b-bg:rgba(245,158,11,.08); --b-border:rgba(245,158,11,.22);
  --c:#34d399; --c-bg:rgba(52,211,153,.08);  --c-border:rgba(52,211,153,.22);
  --d:#6b7280;
  --line:  rgba(255,255,255,.055);
  --line2: rgba(255,255,255,.12);
  --r: 10px;
  /* Typography — short names */
  --fd: 'Bebas Neue', sans-serif;
  --fu: 'Syne', sans-serif;
  --fb: 'Lora', Georgia, serif;
  --fm: 'DM Mono', monospace;
  /* Typography — long aliases (homepage compat) */
  --font-display: 'Bebas Neue', sans-serif;
  --font-ui:      'Syne', sans-serif;
  --font-body:    'Lora', Georgia, serif;
  --font-mono:    'DM Mono', monospace;
  --w: 1080px;
}

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--fb);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--fire2); text-decoration: none; transition: color .18s; }
a:hover { color: #fff; }
::selection { background: rgba(255,56,0,.28); }

/* ─── LAYOUT ─────────────────────────────────────── */
.w { max-width: var(--w); margin: 0 auto; padding: 0 28px; }
.w--sm { max-width: 720px; }

/* ─── ANIMATIONS ─────────────────────────────────── */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(18px); }
  to   { opacity:1; transform:translateY(0); }
}
/* STS2-style classes */
.r1 { animation: fadeUp .55s cubic-bezier(.22,1,.36,1) .05s both; }
.r2 { animation: fadeUp .55s cubic-bezier(.22,1,.36,1) .13s both; }
.r3 { animation: fadeUp .55s cubic-bezier(.22,1,.36,1) .21s both; }
.r4 { animation: fadeUp .55s cubic-bezier(.22,1,.36,1) .29s both; }
/* Homepage-style classes */
.reveal   { animation: fadeUp .6s cubic-bezier(.22,1,.36,1) both; }
.reveal-1 { animation-delay: .05s; }
.reveal-2 { animation-delay: .14s; }
.reveal-3 { animation-delay: .23s; }
.reveal-4 { animation-delay: .32s; }
.reveal-5 { animation-delay: .40s; }

/* ─── TICKER ─────────────────────────────────────── */
.ticker {
  background: var(--fire);
  padding: 8px 0;
  font-family: var(--fm);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .04em;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-inner {
  display: inline-flex;
  animation: ticker 28s linear infinite;
}
.ticker-inner span { padding: 0 28px; color: rgba(255,255,255,.88); }
.ticker-inner strong { color: #fff; }
.ticker-inner .dot { color: rgba(255,255,255,.5); }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── NAV ────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(7,7,13,.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
/* Both naming conventions supported */
.nav-in,
.nav-inner {
  max-width: var(--w); margin: 0 auto; padding: 0 28px;
  height: 58px;
  display: flex; align-items: center;
  position: relative;
}
.nav-logo {
  font-family: var(--fd);
  font-size: 26px;
  letter-spacing: .04em;
  color: #fff;
  display: flex; align-items: center; gap: 10px;
  margin-right: auto;
}
.nav-logo:hover { color: #fff; }
.nav-logo-mark {
  width: 30px; height: 30px;
  background: var(--fire);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fd);
  font-size: 18px;
  line-height: 1;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0;
  box-shadow: 0 2px 8px rgba(255,56,0,.4);
}
/* Hidden checkbox toggle */
.nav-toggle {
  display: none;
  position: absolute;
  pointer-events: none;
}
/* Hamburger icon — hidden on desktop */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  margin-right: -8px;
  z-index: 10;
}
.nav-burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--paper);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
/* Desktop nav links */
.nav-links {
  display: flex; gap: 28px; align-items: center;
}
.nav-links a {
  font-family: var(--fu);
  font-size: 13px;
  font-weight: 600;
  color: var(--paper2);
  letter-spacing: .02em;
  transition: color .18s;
}
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: var(--fire); }
.nav-links a.hot {
  color: var(--fire2);
  background: var(--ember);
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255,56,0,.18);
}
.nav-links a.hot:hover { color: #fff; background: rgba(255,56,0,.2); }

/* ─── FOOTER ─────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 40px;
}
/* Both naming conventions */
.footer-in,
.footer-inner {
  max-width: var(--w); margin: 0 auto; padding: 0 28px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer-logo {
  font-family: var(--fd);
  font-size: 28px;
  letter-spacing: .04em;
  color: #fff;
  display: block;
  margin-bottom: 8px;
}
.footer-desc {
  font-family: var(--fb);
  font-size: 13px;
  font-style: italic;
  color: var(--paper3);
  line-height: 1.6;
}
.footer-nav h4,
.footer-co h4,
.footer-legal h4 {
  font-family: var(--fm);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--paper3);
  margin-bottom: 14px;
}
.footer-nav ul,
.footer-co ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-nav a,
.footer-co a {
  font-family: var(--fu);
  font-size: 13px;
  font-weight: 600;
  color: var(--paper2);
}
.footer-nav a:hover,
.footer-co a:hover { color: #fff; }
.footer-co__note {
  font-family: var(--fb);
  font-size: 12px;
  color: var(--paper3);
  line-height: 1.6;
  margin-top: 14px;
}
/* Legacy footer-legal used in some pages */
.footer-legal {
  font-family: var(--fb);
  font-size: 12px;
  color: var(--paper3);
  line-height: 1.6;
}

/* ─── BUTTONS ────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 13px 26px;
  background: var(--fire);
  color: #fff;
  font-family: var(--fu);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .02em;
  border-radius: var(--r);
  transition: background .18s, transform .18s, box-shadow .18s;
}
.btn-primary:hover {
  background: var(--fire2); color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255,56,0,.35);
}
.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 24px;
  background: transparent;
  color: var(--paper2);
  font-family: var(--fu);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .02em;
  border-radius: var(--r);
  border: 1px solid var(--line2);
  transition: all .18s;
}
.btn-ghost:hover {
  color: #fff;
  border-color: rgba(255,255,255,.3);
  background: rgba(255,255,255,.04);
}

/* ─── BREADCRUMB ─────────────────────────────────── */
.breadcrumb {
  font-family: var(--fm); font-size: 11px; letter-spacing: .04em;
  color: var(--paper3); margin-bottom: 16px;
  display: flex; align-items: center; gap: 6px;
}
.breadcrumb a { color: var(--paper3); }
.breadcrumb a:hover { color: var(--fire2); }

/* ─── SECTION PATTERN ────────────────────────────── */
.sect { padding: 56px 0; }
.sect + .sect { border-top: 1px solid var(--line); }

/* ─── RESPONSIVE: TABLET ─────────────────────────── */
@media (max-width: 860px) {
  .footer-in,
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

/* ─── RESPONSIVE: MOBILE ─────────────────────────── */
@media (max-width: 680px) {
  .w { padding: 0 18px; }

  /* Show hamburger button */
  .nav-burger { display: flex; }

  /* Mobile nav dropdown */
  .nav-links {
    display: none;
    position: absolute;
    top: 58px; left: 0; right: 0;
    background: rgba(7,7,13,.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 16px 18px 28px;
    gap: 2px;
    border-bottom: 1px solid var(--line);
    align-items: flex-start;
  }
  .nav-links a {
    font-size: 15px;
    padding: 11px 4px;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,.04);
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links a.hot { padding: 11px 14px; width: auto; margin: 4px 0; }

  /* Checkbox toggles dropdown */
  .nav-toggle:checked ~ .nav-links { display: flex; }

  /* Animate hamburger → X */
  .nav-toggle:checked + .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked + .nav-burger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav-toggle:checked + .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Nav padding */
  .nav-in,
  .nav-inner { padding: 0 18px; }
}

@media (max-width: 520px) {
  .footer-in,
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}
