/* ============================================================
   AreosReborn — site stylesheet
   Dark ember fantasy theme. Self-contained (no external images).
   ============================================================ */

:root {
  /* ---- COSMIC palette (sampled from areosad1.mp4: arcane purple / electric blue / crimson) ----
     Variable names kept (--gold/--ember) for compatibility; values are now cosmic.
     --gold  = primary arcane VIOLET accent
     --ember = hot CRIMSON/ROSE accent
     --blue  = electric lightning blue */
  --bg:        #0a0713;
  --bg-2:      #0f0a1e;
  --bg-3:      #181030;
  --panel:     rgba(26, 20, 42, 0.74);
  --panel-2:   rgba(36, 27, 56, 0.6);
  --border:    rgba(177, 92, 255, 0.20);
  --border-2:  rgba(255, 255, 255, 0.07);
  --gold:      #b15cff;   /* primary accent — arcane violet */
  --gold-2:    #8b3dff;
  --gold-soft: #d9b8ff;
  --ember:     #ff3d6e;   /* hot accent — crimson rose */
  --ember-2:   #ff6a9a;
  --blue:      #4aa8ff;   /* electric blue */
  --cyan:      #74d4ff;
  --red:       #ff4d6e;
  --green:     #4fd17a;
  --text:      #eceaf6;
  --muted:     #a79fc2;
  --muted-2:   #766d94;
  --radius:    16px;
  --radius-sm: 10px;
  --maxw:      1180px;
  --shadow:    0 20px 60px rgba(0,0,0,0.6);
  --glow:      0 0 30px rgba(177,92,255,0.38);
  --font-head: "Cinzel", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ambient background: ember glow + grid */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 500px at 80% -5%, rgba(255,61,110,0.16), transparent 60%),
    radial-gradient(800px 500px at 10% 0%, rgba(177,92,255,0.10), transparent 55%),
    radial-gradient(1000px 700px at 50% 110%, rgba(60,28,130,0.18), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; opacity: 0.4;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
}

a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-soft); }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1,h2,h3,h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; letter-spacing: .5px; }
.section { padding: 96px 0; position: relative; }
.eyebrow {
  font-family: var(--font-body); font-weight: 700; text-transform: uppercase;
  letter-spacing: 3px; font-size: 12px; color: var(--gold);
  display: inline-block; margin-bottom: 14px;
}
.section-title { font-size: clamp(28px, 4vw, 44px); margin-bottom: 14px; }
.section-sub { color: var(--muted); max-width: 640px; font-size: 17px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.gold { color: var(--gold); }
.ember { color: var(--ember); }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(10,10,15,0.72);
  border-bottom: 1px solid var(--border-2);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 800; font-size: 20px; color: var(--text); }
.brand .mark { width: 34px; height: 34px; filter: drop-shadow(0 0 10px rgba(255,61,110,.5)); }
.brand b { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  color: var(--muted); font-weight: 600; font-size: 15px;
  padding: 9px 14px; border-radius: 9px; transition: all .18s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-cta { margin-left: 10px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 26px; cursor: pointer; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: 15px; padding: 13px 24px; border-radius: 12px;
  border: 1px solid transparent; cursor: pointer; transition: all .2s; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--ember));
  color: #160a22; box-shadow: 0 8px 24px rgba(255,61,110,.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(255,61,110,.42); color:#160a22; }
.btn-ghost { background: rgba(255,255,255,0.04); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: rgba(177,92,255,0.08); border-color: var(--gold); color: var(--gold-soft); }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- HERO ---------- */
.hero { position: relative; padding: 110px 0 90px; overflow: hidden; }
.hero-flames {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 380px at 50% 100%, rgba(255,61,110,0.22), transparent 70%),
    radial-gradient(420px 300px at 78% 80%, rgba(177,92,255,0.18), transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(38px, 6vw, 72px); line-height: 1.04; margin-bottom: 18px; }
.hero h1 .glowtext {
  background: linear-gradient(135deg, var(--gold-soft), var(--ember));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 20px rgba(255,61,110,.35));
}
.hero p.lead { font-size: 19px; color: var(--muted); margin-bottom: 28px; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600;
  color: var(--muted); background: var(--panel-2); border: 1px solid var(--border-2);
  padding: 7px 13px; border-radius: 999px;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }

/* hero art card */
.hero-art {
  position: relative; border-radius: 22px; padding: 28px;
  background: linear-gradient(160deg, rgba(40,26,66,.62), rgba(16,16,25,.7));
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.crest { width: 150px; height: 150px; margin: 0 auto 18px; filter: drop-shadow(0 0 24px rgba(255,61,110,.4)); }
.hero-art h3 { text-align: center; font-size: 22px; margin-bottom: 6px; }
.hero-art .muted { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.ip-box {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(0,0,0,.4); border: 1px dashed var(--border); border-radius: 12px;
  padding: 12px 14px; font-family: ui-monospace, monospace;
}
.ip-box .label { color: var(--muted-2); font-size: 12px; }
.ip-box .ip { color: var(--gold-soft); font-size: 16px; font-weight: 600; }
.copybtn { background: var(--gold); color:#160a22; border:0; border-radius:8px; padding:7px 12px; font-weight:700; cursor:pointer; font-size:13px; }
.copybtn:hover { background: var(--gold-soft); }

/* ---------- STATS BAR ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-top: 56px; }
.stat { text-align: center; background: var(--panel); border: 1px solid var(--border-2); border-radius: var(--radius); padding: 26px 16px; }
.stat .num { font-family: var(--font-head); font-size: 34px; color: var(--gold); line-height: 1; }
.stat .lbl { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; margin-top: 8px; }

/* ---------- FEATURE GRID ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--panel); border: 1px solid var(--border-2); border-radius: var(--radius);
  padding: 28px; transition: transform .2s, border-color .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--border); box-shadow: var(--shadow); }
.card .ico {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  font-size: 26px; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(177,92,255,.16), rgba(255,61,110,.16));
  border: 1px solid var(--border);
}
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }

/* ---------- BOSS / LIST CHIPS ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  background: var(--panel-2); border: 1px solid var(--border-2); border-radius: 10px;
  padding: 9px 14px; font-size: 14px; font-weight: 600; color: var(--text);
  display: inline-flex; align-items: center; gap: 8px;
}
.chip .tag { font-size: 11px; color: var(--muted-2); }

/* ---------- STEPS ---------- */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.step { background: var(--panel); border: 1px solid var(--border-2); border-radius: var(--radius); padding: 28px; position: relative; }
.step .n { font-family: var(--font-head); font-size: 40px; color: rgba(177,92,255,.4); position:absolute; top:18px; right:22px; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }
.step code, .codeline {
  display:block; margin-top:12px; background: rgba(0,0,0,.45); border:1px solid var(--border-2);
  border-radius: 8px; padding: 10px 12px; font-family: ui-monospace, monospace; font-size: 13px;
  color: var(--gold-soft); overflow-x: auto; white-space: pre;
}

/* ---------- TABLE (hiscores) ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border-2); border-radius: var(--radius); }
table.hs { width: 100%; border-collapse: collapse; min-width: 560px; }
table.hs th, table.hs td { padding: 14px 18px; text-align: left; }
table.hs thead th { background: var(--bg-3); color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; }
table.hs tbody tr { border-top: 1px solid var(--border-2); }
table.hs tbody tr:hover { background: rgba(177,92,255,.04); }
table.hs .rank { font-family: var(--font-head); color: var(--gold); font-size: 18px; width: 70px; }
table.hs .rank.r1 { color: #ffd700; } table.hs .rank.r2 { color: #c9d1d9; } table.hs .rank.r3 { color: #cd7f32; }
table.hs .name { font-weight: 700; }
table.hs .crown { font-size: 12px; color: var(--ember); margin-left: 6px; }

/* ---------- STORE / VOTE CARDS ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.price {
  background: var(--panel); border: 1px solid var(--border-2); border-radius: var(--radius);
  padding: 30px; text-align: center; position: relative; transition: transform .2s, border-color .2s;
}
.price:hover { transform: translateY(-4px); border-color: var(--gold); }
.price.featured { border-color: var(--gold); box-shadow: var(--glow); }
.price .ribbon { position:absolute; top:-12px; left:50%; transform:translateX(-50%); background: linear-gradient(135deg,var(--gold),var(--ember)); color:#160a22; font-size:11px; font-weight:800; padding:5px 14px; border-radius:999px; text-transform:uppercase; letter-spacing:1px; }
.price h3 { font-size: 22px; margin-bottom: 6px; }
.price .amt { font-family: var(--font-head); font-size: 44px; color: var(--gold); margin: 10px 0; }
.price .amt span { font-size: 16px; color: var(--muted); }
.price ul { list-style: none; text-align: left; margin: 18px 0; display: grid; gap: 10px; }
.price ul li { color: var(--muted); font-size: 15px; display: flex; gap: 10px; }
.price ul li::before { content: "✦"; color: var(--gold); }

/* ---------- CALLOUT ---------- */
.callout {
  background: linear-gradient(135deg, rgba(177,92,255,.1), rgba(255,61,110,.08));
  border: 1px solid var(--border); border-radius: 20px; padding: 48px; text-align: center;
}
.callout h2 { font-size: clamp(26px, 4vw, 40px); margin-bottom: 12px; }
.callout p { color: var(--muted); margin-bottom: 24px; font-size: 17px; }

/* ---------- PAGE HEADER ---------- */
.page-head { padding: 64px 0 30px; text-align: center; }
.page-head h1 { font-size: clamp(34px, 5vw, 56px); }
.page-head p { color: var(--muted); margin-top: 12px; font-size: 18px; }

/* ---------- NOTE ---------- */
.note { background: var(--panel-2); border-left: 3px solid var(--gold); border-radius: 8px; padding: 16px 20px; color: var(--muted); font-size: 15px; }
.note b { color: var(--text); }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--border-2); padding: 56px 0 30px; margin-top: 40px; background: rgba(8,8,12,.6); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 40px; }
.footer h4 { font-family: var(--font-body); text-transform: uppercase; letter-spacing: 2px; font-size: 12px; color: var(--muted-2); margin-bottom: 14px; }
.footer a { display: block; color: var(--muted); margin-bottom: 9px; font-size: 14px; }
.footer a:hover { color: var(--gold); }
.footer .about p { color: var(--muted); font-size: 14px; margin-top: 12px; max-width: 280px; }
.footer-bottom { border-top: 1px solid var(--border-2); padding-top: 24px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; color: var(--muted-2); font-size: 13px; }

/* ---------- REVEAL ANIM ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; margin: 0 auto; }
  .grid-3, .grid-4, .steps, .price-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .nav-links { position: fixed; inset: 72px 0 auto 0; flex-direction: column; background: rgba(10,10,15,.97); padding: 16px; gap: 4px; border-bottom: 1px solid var(--border-2); display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; }
  .nav-cta { margin-left: 0; margin-top: 6px; text-align: center; }
  .nav-toggle { display: block; }
}
@media (max-width: 680px) {
  .grid-3, .grid-4, .steps, .price-grid, .grid-2, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .callout { padding: 32px 22px; }
  .page-head { padding: 44px 0 20px; }
  .hero { padding: 70px 0 60px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ============================================================
   ENHANCEMENTS v2 — accessibility, polish, new components
   ============================================================ */

/* ---- accessibility: focus rings, skip link, sr-only ---- */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--gold); color: #160a22; font-weight: 700;
  padding: 10px 16px; border-radius: 10px; transition: top .2s;
}
.skip-link:focus { top: 12px; color:#160a22; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---- text selection + custom scrollbar ---- */
::selection { background: rgba(255,61,110,.35); color: #fff; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--gold-2), var(--ember));
  border-radius: 10px; border: 3px solid var(--bg-2);
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(var(--gold), var(--ember-2)); }
html { scrollbar-color: var(--gold-2) var(--bg-2); scrollbar-width: thin; }

/* ---- scroll progress bar ---- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--ember)); z-index: 200;
  box-shadow: 0 0 10px rgba(255,61,110,.6);
}

/* ---- nav: scrolled state + active underline ---- */
.nav.scrolled { background: rgba(8,8,12,.92); box-shadow: 0 8px 30px rgba(0,0,0,.5); }
.nav-links a { position: relative; }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--ember));
  transform: scaleX(0); transform-origin: left; transition: transform .22s;
  border-radius: 2px;
}
.nav-links a:not(.btn):hover::after, .nav-links a:not(.btn).active::after { transform: scaleX(1); }

/* ---- back to top button ---- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 150;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--gold);
  background: rgba(20,16,10,.85); color: var(--gold); font-size: 20px; cursor: pointer;
  display: grid; place-items: center; opacity: 0; transform: translateY(16px) scale(.9);
  pointer-events: none; transition: all .3s; backdrop-filter: blur(8px);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--gold); color: #160a22; box-shadow: 0 0 22px rgba(177,92,255,.5); }

/* ---- toast ---- */
.toast-wrap { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast {
  background: rgba(20,18,26,.96); border: 1px solid var(--gold); color: var(--text);
  padding: 12px 20px; border-radius: 12px; font-weight: 600; font-size: 14px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px;
  opacity: 0; transform: translateY(14px); transition: all .3s;
}
.toast.show { opacity: 1; transform: none; }
.toast .ic { color: var(--green); font-size: 16px; }

/* ---- accordion (FAQ) ---- */
.accordion { display: grid; gap: 12px; }
.acc-item { background: var(--panel); border: 1px solid var(--border-2); border-radius: var(--radius-sm); overflow: hidden; transition: border-color .2s; }
.acc-item.open { border-color: var(--border); }
.acc-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer; color: var(--text);
  font-family: var(--font-head); font-weight: 700; font-size: 17px; padding: 20px 22px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.acc-q .chev { color: var(--gold); transition: transform .25s; flex-shrink: 0; font-size: 15px; }
.acc-item.open .acc-q .chev { transform: rotate(180deg); }
.acc-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.acc-a > div { padding: 0 22px 20px; color: var(--muted); font-size: 15px; }

/* ---- timeline (news / changelog) ---- */
.timeline { position: relative; margin-left: 8px; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--gold), transparent); }
.tl-item { position: relative; margin-bottom: 34px; }
.tl-item::before { content: ""; position: absolute; left: -37px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.tl-date { font-size: 12px; color: var(--gold); text-transform: uppercase; letter-spacing: 2px; font-weight: 700; }
.tl-item h3 { font-size: 19px; margin: 6px 0 8px; }
.tl-item p { color: var(--muted); font-size: 15px; }
.tag-pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-right: 6px; text-transform: uppercase; letter-spacing: .5px; }
.tag-new { background: rgba(79,209,122,.16); color: var(--green); border: 1px solid rgba(79,209,122,.3); }
.tag-fix { background: rgba(177,92,255,.16); color: var(--gold); border: 1px solid var(--border); }
.tag-balance { background: rgba(255,61,110,.16); color: var(--ember-2); border: 1px solid rgba(255,61,110,.3); }

/* ---- staff / member cards ---- */
.member { text-align: center; }
.member .avatar { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; font-size: 34px; background: linear-gradient(135deg, rgba(177,92,255,.2), rgba(255,61,110,.2)); border: 2px solid var(--border); }
.member h3 { font-size: 18px; margin-bottom: 2px; }
.member .role { color: var(--gold); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.member p { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* ---- roadmap ---- */
.road-col h3 { font-size: 16px; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 14px; color: var(--gold); font-family: var(--font-body); }
.road-card { background: var(--panel); border: 1px solid var(--border-2); border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 12px; font-size: 15px; color: var(--muted); display: flex; gap: 10px; align-items: flex-start; }
.road-card .mk { flex-shrink: 0; }

/* ---- search box ---- */
.search { display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,.4); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; max-width: 460px; margin: 0 auto; }
.search input { flex: 1; background: none; border: 0; color: var(--text); font-family: var(--font-body); font-size: 15px; outline: none; }
.search input::placeholder { color: var(--muted-2); }

/* ---- kbd + inline code ---- */
kbd { font-family: ui-monospace, monospace; font-size: 12px; background: var(--bg-3); border: 1px solid var(--border-2); border-bottom-width: 2px; border-radius: 6px; padding: 2px 7px; color: var(--gold-soft); }
code { font-family: ui-monospace, monospace; }

/* ---- chip tag colours ---- */
.tag.melee { color: var(--red); } .tag.magic { color: #6aa8ff; } .tag.range { color: var(--green); }

/* ---- divider / spinner / skeleton ---- */
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); margin: 40px 0; border: 0; }
.spinner { width: 26px; height: 26px; border: 3px solid rgba(177,92,255,.2); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--bg-3) 25%, rgba(255,255,255,.06) 37%, var(--bg-3) 63%); background-size: 400% 100%; animation: shimmer 1.4s infinite; border-radius: 6px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* ---- live dot pulse / offline state ---- */
.badge .dot { animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(79,209,122,.6); } 50% { box-shadow: 0 0 0 6px rgba(79,209,122,0); } }
.badge.offline .dot { background: var(--red); box-shadow: 0 0 8px var(--red); animation: none; }

/* ---- card sheen on hover ---- */
.card { position: relative; overflow: hidden; }
.card::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,.06), transparent);
  transform: skewX(-18deg); transition: left .6s; pointer-events: none;
}
.card:hover::after { left: 140%; }

/* ---- chip hover ---- */
.chip { transition: transform .15s, border-color .2s, background .2s; }
.chip:hover { transform: translateY(-2px); border-color: var(--border); background: rgba(177,92,255,.07); }

/* ---- gradient text util + inline statline ---- */
.grad { background: linear-gradient(135deg, var(--gold-soft), var(--ember)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.statline { display: flex; flex-wrap: wrap; gap: 28px; justify-content: center; }
.statline .s { text-align: center; }
.statline .s b { font-family: var(--font-head); font-size: 30px; color: var(--gold); display: block; }
.statline .s span { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; }

/* ---- 404 ---- */
.err-wrap { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 20px; }
.err-code { font-family: var(--font-head); font-size: clamp(90px, 20vw, 200px); line-height: 1; background: linear-gradient(135deg, var(--gold-soft), var(--ember)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 4px 30px rgba(255,61,110,.4)); }

/* ---- utilities ---- */
.mt-0{margin-top:0}.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mt-4{margin-top:40px}
.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}.mb-4{margin-bottom:40px}
.flex{display:flex}.wrap{flex-wrap:wrap}.gap{gap:14px}.items-center{align-items:center}.justify-center{justify-content:center}
.muted-text{color:var(--muted)}.small{font-size:13px}.tcenter{text-align:center}.maxw640{max-width:640px;margin-left:auto;margin-right:auto}

/* ---- print ---- */
@media print {
  .nav, .to-top, .scroll-progress, .footer, .hero-flames, .skip-link, body::before, body::after { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
  .card, .price, .step { border: 1px solid #ccc; box-shadow: none; }
}

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   VISUAL OVERHAUL v3 — atmosphere, depth, glow, motion
   (purely aesthetic; later rules win on equal specificity)
   ============================================================ */

:root {
  --ring: 0 0 0 1px rgba(177,92,255,.16);
  --glass: blur(16px) saturate(140%);
  --edge: linear-gradient(135deg, rgba(217,184,255,.55), rgba(255,61,110,.15) 40%, transparent 70%);
}

/* ---- richer, living background: drifting aurora + vignette + grain ---- */
body::before {
  background:
    radial-gradient(1100px 600px at 82% -8%, rgba(255,61,110,0.20), transparent 60%),
    radial-gradient(900px 600px at 8% 2%, rgba(177,92,255,0.13), transparent 55%),
    radial-gradient(900px 500px at 60% 18%, rgba(74,168,255,0.09), transparent 60%),
    radial-gradient(1200px 800px at 50% 118%, rgba(70,30,140,0.20), transparent 62%),
    linear-gradient(180deg, var(--bg), var(--bg-2) 60%, #08060b);
  animation: auroraDrift 22s ease-in-out infinite alternate;
}
@keyframes auroraDrift {
  0%   { transform: translate3d(0,0,0) scale(1); filter: hue-rotate(0deg); }
  100% { transform: translate3d(0,-1.5%,0) scale(1.06); filter: hue-rotate(-8deg); }
}
/* fine film grain for texture */
body { position: relative; }
body::after {
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 64px 64px;
}
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* soft vignette to frame the page */
.vignette { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  box-shadow: inset 0 0 240px 40px rgba(0,0,0,.65); }

/* ---- floating ember particles (created by JS) ---- */
.embers { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.ember-particle {
  position: absolute; bottom: -20px; width: 6px; height: 6px; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #d9b8ff, #ff3d6e 60%, rgba(255,61,110,0));
  filter: blur(.3px) drop-shadow(0 0 6px rgba(255,92,138,.8));
  opacity: 0; animation: emberRise linear infinite;
}
@keyframes emberRise {
  0%   { transform: translateY(0) translateX(0) scale(.7); opacity: 0; }
  10%  { opacity: .9; }
  50%  { transform: translateY(-46vh) translateX(14px) scale(1); }
  90%  { opacity: .55; }
  100% { transform: translateY(-96vh) translateX(-12px) scale(.5); opacity: 0; }
}

/* ---- typography lift ---- */
h1, h2 { text-wrap: balance; }
.section-title { letter-spacing: .4px; text-shadow: 0 2px 30px rgba(0,0,0,.5); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--gold-soft);
  text-shadow: 0 0 18px rgba(177,92,255,.4);
}
.center .eyebrow::before, .center .eyebrow::after {
  content: ""; width: 30px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.center .eyebrow::after { background: linear-gradient(90deg, var(--gold), transparent); }
.section-sub { color: #b6b6c6; }

/* ---- animated gradient on the hero word ---- */
.hero h1 .glowtext {
  background: linear-gradient(110deg, #ede9fe, var(--ember) 45%, #4aa8ff 70%, var(--gold-soft));
  background-size: 240% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: hueSlide 8s ease-in-out infinite;
  filter: drop-shadow(0 4px 28px rgba(255,61,110,.45));
}
@keyframes hueSlide { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hero h1 { text-shadow: 0 4px 40px rgba(0,0,0,.4); }
.hero p.lead { color: #c2c2d2; }

/* ---- nav: glowing brand + glassier bar ---- */
.nav { background: rgba(10,10,15,0.55); border-bottom-color: rgba(177,92,255,.10); }
.nav.scrolled { background: rgba(8,8,12,.86); }
.brand .mark { animation: markGlow 4s ease-in-out infinite; }
@keyframes markGlow {
  0%,100% { filter: drop-shadow(0 0 8px rgba(255,61,110,.5)); }
  50%     { filter: drop-shadow(0 0 16px rgba(255,92,138,.85)); }
}
.brand { letter-spacing: .5px; }

/* ---- buttons: sheen sweep + deeper glow + gradient edge ---- */
.btn { position: relative; overflow: hidden; letter-spacing: .3px; }
.btn-primary {
  background: linear-gradient(135deg, #c79bff, var(--ember) 70%, #ff3d6e);
  box-shadow: 0 10px 30px rgba(255,61,110,.35), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn-primary:hover { box-shadow: 0 16px 40px rgba(255,61,110,.5), inset 0 1px 0 rgba(255,255,255,.45); }
.btn-primary::before {
  content: ""; position: absolute; top: 0; left: -130%; width: 55%; height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg); transition: left .6s;
}
.btn-primary:hover::before { left: 150%; }
.btn-ghost { backdrop-filter: blur(6px); }
.btn-ghost:hover { box-shadow: 0 0 24px rgba(177,92,255,.22); }

/* ---- cards: gradient edge, glass, lift + glow ---- */
.card, .step, .price, .stat, .acc-item, .table-wrap, .hero-art {
  background:
    linear-gradient(var(--panel), var(--panel)) padding-box,
    var(--edge) border-box;
  border: 1px solid transparent;
  backdrop-filter: var(--glass);
}
.card { box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px 200px at var(--mx,50%) -10%, rgba(255,92,138,.10), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 26px 60px rgba(0,0,0,.5), 0 0 30px rgba(255,61,110,.12); }
.card:hover::before { opacity: 1; }

/* ---- icon tiles: vivid gradient + glow + playful hover ---- */
.card .ico, .ico {
  background: linear-gradient(135deg, rgba(217,184,255,.28), rgba(255,61,110,.28));
  border: 1px solid rgba(168,120,255,.3);
  box-shadow: 0 6px 18px rgba(255,61,110,.18), inset 0 1px 0 rgba(255,255,255,.18);
  transition: transform .3s, box-shadow .3s;
}
.card:hover .ico { transform: translateY(-2px) rotate(-6deg) scale(1.06); box-shadow: 0 10px 24px rgba(255,61,110,.32); }

/* ---- hero art card: animated glowing border ---- */
.hero-art { box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 40px rgba(255,61,110,.10); }
.hero-art::after {
  content: ""; position: absolute; inset: -1px; border-radius: 22px; padding: 1px; pointer-events: none;
  background: linear-gradient(130deg, rgba(217,184,255,.6), transparent 40%, transparent 60%, rgba(255,61,110,.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: borderSpin 6s linear infinite;
}
@keyframes borderSpin { to { filter: hue-rotate(40deg); } }
.crest { animation: crestFloat 6s ease-in-out infinite; }
@keyframes crestFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.ip-box { transition: border-color .25s, background .25s, box-shadow .25s; }
.ip-box:hover { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(177,92,255,.08); }
.copybtn { box-shadow: 0 4px 12px rgba(177,92,255,.3); transition: transform .15s, box-shadow .2s; }
.copybtn:hover { transform: translateY(-1px); }

/* ---- badge: shine + glass ---- */
.badge { background: rgba(28,24,34,.6); border-color: rgba(255,255,255,.10); backdrop-filter: blur(8px); }
.badge::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none;
}

/* ---- stats: accent line + glowing numerals + hover ---- */
.stat { position: relative; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.stat::before {
  content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--ember), transparent);
  opacity: .8;
}
.stat:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.stat .num {
  background: linear-gradient(135deg, #ede9fe, var(--gold) 50%, var(--ember));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 14px rgba(255,61,110,.3)); font-size: 38px;
}

/* ---- chips: glassy + glow hover ---- */
.chip { background: rgba(30,28,40,.55); border-color: rgba(255,255,255,.08); backdrop-filter: blur(6px); }
.chip:hover { border-color: var(--gold); box-shadow: 0 6px 18px rgba(255,61,110,.18); color: var(--gold-soft); }

/* ---- price: featured pulse + premium feel ---- */
.price.featured { box-shadow: 0 0 0 1px rgba(177,92,255,.35), 0 24px 60px rgba(255,61,110,.18); animation: featuredPulse 3.5s ease-in-out infinite; }
@keyframes featuredPulse {
  0%,100% { box-shadow: 0 0 0 1px rgba(177,92,255,.3), 0 24px 60px rgba(255,61,110,.14); }
  50%     { box-shadow: 0 0 0 1px rgba(177,92,255,.55), 0 28px 70px rgba(255,61,110,.26); }
}
.price .amt {
  background: linear-gradient(135deg, #ede9fe, var(--gold) 55%, var(--ember));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.price .ribbon { box-shadow: 0 8px 20px rgba(255,61,110,.4); }

/* ---- callout: aurora panel ---- */
.callout {
  position: relative; overflow: hidden;
  background:
    radial-gradient(600px 200px at 20% 0%, rgba(255,61,110,.18), transparent 60%),
    radial-gradient(600px 200px at 90% 100%, rgba(177,92,255,.16), transparent 60%),
    linear-gradient(135deg, rgba(40,26,64,.55), rgba(16,14,22,.6));
  box-shadow: 0 30px 70px rgba(0,0,0,.45);
}
.callout h2 { text-shadow: 0 4px 30px rgba(0,0,0,.5); }

/* ---- page header decoration ---- */
.page-head { position: relative; }
.page-head::after {
  content: ""; display: block; width: 90px; height: 3px; margin: 22px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), var(--ember), transparent);
  border-radius: 3px;
}
.page-head h1 { text-shadow: 0 4px 40px rgba(0,0,0,.5); }

/* ---- divider with center diamond ---- */
.divider { position: relative; }
.divider::after {
  content: "◆"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  color: var(--gold); font-size: 12px; background: var(--bg); padding: 0 12px;
  text-shadow: 0 0 12px rgba(177,92,255,.6);
}

/* ---- table glow ---- */
table.hs .rank.r1 { text-shadow: 0 0 14px rgba(255,215,0,.6); }
table.hs tbody tr:hover { background: linear-gradient(90deg, rgba(255,61,110,.07), transparent); }

/* ---- footer: top accent line ---- */
.footer { position: relative; }
.footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(177,92,255,.5), rgba(255,61,110,.5), transparent);
}

/* ---- back-to-top + toast glow ---- */
.to-top { box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.to-top:hover { box-shadow: 0 0 26px rgba(177,92,255,.6); transform: translateY(-3px) scale(1.05); }
.toast { box-shadow: 0 16px 40px rgba(0,0,0,.5), 0 0 22px rgba(255,61,110,.16); }

/* ---- scroll progress: glossier ---- */
.scroll-progress { height: 3px; background: linear-gradient(90deg, var(--gold-soft), var(--ember), #4aa8ff); box-shadow: 0 0 14px rgba(255,61,110,.7); }

/* ---- mobile menu: smoother panel ---- */
@media (max-width: 980px) {
  .nav-links { background: rgba(12,8,24,.97); backdrop-filter: blur(16px); box-shadow: 0 20px 40px rgba(0,0,0,.5); }
  .nav-links a { font-size: 16px; padding: 12px 14px; border-radius: 10px; }
}

/* ============================================================
   SITE-WIDE COSMIC BACKGROUND (areosad1 video, injected by JS)
   — fixed behind every page, clearly visible
   ============================================================ */
.site-bg {
  position: fixed; inset: 0; z-index: -3;
  width: 100%; height: 100%; object-fit: cover;
  pointer-events: none; opacity: 1;
  filter: saturate(120%) contrast(106%);
}

/* turn the ambient layer into a LIGHT translucent tint so the video
   reads clearly while keeping text legible (sits above .site-bg) */
body::before {
  z-index: -2;
  background:
    radial-gradient(1100px 600px at 82% -8%, rgba(255,61,110,0.14), transparent 60%),
    radial-gradient(900px 600px at 8% 2%, rgba(177,92,255,0.12), transparent 55%),
    radial-gradient(1200px 800px at 50% 120%, rgba(20,12,40,0.45), transparent 62%),
    linear-gradient(180deg, rgba(10,7,19,0.46), rgba(8,6,16,0.56)) !important;
  animation: auroraDrift 22s ease-in-out infinite alternate;
}
/* keep the faint grid very subtle over video */
body::after { opacity: 0.18; }

/* hero text scrim — local readability over the brightest part of the clip */
.hero { position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 100% at 25% 45%, rgba(8,6,16,.62), rgba(8,6,16,.18) 60%, transparent 80%);
}
.hero > .container { position: relative; z-index: 1; }
.hero h1 { text-shadow: 0 2px 24px rgba(0,0,0,.7); }
.hero p.lead { text-shadow: 0 1px 14px rgba(0,0,0,.65); }
.hero .hero-art { background: linear-gradient(160deg, rgba(28,18,52,.72), rgba(12,9,24,.84)); }

/* footer/nav stay readable over the moving background */
.footer { background: rgba(8,6,16,.72); }

@media (max-width: 680px) {
  .site-bg { opacity: .9; }
}
