/* =============================================
   THE CRUCIBLE — Shared Stylesheet
   All pages import this file
============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Inter:wght@300;400;500;600&display=swap');

/* =============================================
   VARIABLES
============================================= */
:root {
  --bg:          #0a0a0a;
  --bg2:         #111111;
  --bg3:         #181818;
  --card:        #161616;
  --gold:        #c8941a;
  --gold-hi:     #f0b432;
  --gold-glow:   rgba(200,148,26,.35);
  --red:         #b52000;
  --red-hi:      #e83000;
  --red-glow:    rgba(181,32,0,.4);
  --orange:      #d96820;
  --elite:       #00c8c8;
  --elite-glow:  rgba(0,200,200,.25);
  --vip:         #30cc50;
  --vip-glow:    rgba(48,204,80,.25);
  --mvp:         #e8a020;
  --mvp-glow:    rgba(232,160,32,.35);
  --discord:     #5865f2;
  --text:        #ede0cc;
  --muted:       #7a6a54;
  --border:      #2a2010;
  --radius:      12px;
}

/* =============================================
   RESET
============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); overflow-x: hidden; }
h1, h2, h3, h4 { font-family: 'Cinzel', serif; }
a  { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* =============================================
   EMBERS
============================================= */
.embers { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.ember  { position: absolute; bottom: -10px; width: 3px; height: 3px; border-radius: 50%; background: var(--orange); opacity: 0; animation: floatEmber linear infinite; }

@keyframes floatEmber {
  0%   { transform: translateY(0) translateX(0) scale(1);   opacity: 0; }
  10%  { opacity: .85; }
  80%  { opacity: .4; }
  100% { transform: translateY(-100vh) translateX(var(--drift)) scale(.3); opacity: 0; }
}

.ember:nth-child(1)  { left:5%;  width:2px;height:2px;animation-duration:8s; animation-delay:0s;   --drift:20px; background:#ff6020; }
.ember:nth-child(2)  { left:12%; width:3px;height:3px;animation-duration:11s;animation-delay:1.5s; --drift:-30px;background:#ffaa20; }
.ember:nth-child(3)  { left:22%; width:2px;height:2px;animation-duration:9s; animation-delay:3s;   --drift:15px; background:#ff4010; }
.ember:nth-child(4)  { left:33%; width:4px;height:4px;animation-duration:13s;animation-delay:0.5s; --drift:-20px;background:#e87020; }
.ember:nth-child(5)  { left:45%; width:2px;height:2px;animation-duration:7s; animation-delay:2s;   --drift:25px; background:#ff8030; }
.ember:nth-child(6)  { left:55%; width:3px;height:3px;animation-duration:10s;animation-delay:4s;   --drift:-15px;background:#ffaa20; }
.ember:nth-child(7)  { left:63%; width:2px;height:2px;animation-duration:12s;animation-delay:1s;   --drift:30px; background:#ff5020; }
.ember:nth-child(8)  { left:72%; width:3px;height:3px;animation-duration:9s; animation-delay:3.5s; --drift:-25px;background:#e87020; }
.ember:nth-child(9)  { left:81%; width:2px;height:2px;animation-duration:11s;animation-delay:0.8s; --drift:10px; background:#ff6030; }
.ember:nth-child(10) { left:90%; width:4px;height:4px;animation-duration:8s; animation-delay:2.5s; --drift:-20px;background:#ffaa20; }
.ember:nth-child(11) { left:8%;  width:2px;height:2px;animation-duration:14s;animation-delay:5s;   --drift:18px; background:#ff4010; }
.ember:nth-child(12) { left:28%; width:3px;height:3px;animation-duration:9s; animation-delay:6s;   --drift:-12px;background:#ff8030; }
.ember:nth-child(13) { left:50%; width:2px;height:2px;animation-duration:10s;animation-delay:7s;   --drift:22px; background:#ffaa20; }
.ember:nth-child(14) { left:68%; width:3px;height:3px;animation-duration:12s;animation-delay:4.5s; --drift:-28px;background:#e87020; }
.ember:nth-child(15) { left:85%; width:2px;height:2px;animation-duration:8s; animation-delay:1.2s; --drift:16px; background:#ff5020; }

/* =============================================
   NAV
============================================= */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 70px;
  background: rgba(10,10,10,.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200,148,26,.15);
  transition: background .3s;
}

.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { width: 44px; height: 44px; object-fit: contain; border-radius: 6px; }
.nav-logo span { font-family: 'Cinzel', serif; font-weight: 700; font-size: 1.1rem; color: var(--gold-hi); letter-spacing: .08em; }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { font-size: .82rem; font-weight: 500; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; transition: color .2s; }
.nav-links a:hover  { color: var(--text); }
.nav-links a.active { color: var(--gold-hi); }

.nav-cta { background: var(--gold) !important; color: #000 !important; padding: 8px 20px; border-radius: 6px; font-weight: 600 !important; transition: background .2s, transform .15s !important; }
.nav-cta:hover { background: var(--gold-hi) !important; transform: translateY(-1px); color: #000 !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

.mobile-nav { display: none; position: fixed; top: 70px; left: 0; right: 0; background: rgba(10,10,10,.97); border-bottom: 1px solid var(--border); padding: 20px 5%; flex-direction: column; gap: 0; z-index: 99; }
.mobile-nav.open { display: flex; }
.mobile-nav a { font-size: .95rem; color: var(--text); padding: 14px 0; border-bottom: 1px solid var(--border); }
.mobile-nav a.active { color: var(--gold-hi); }
.mobile-nav a:last-child { border-bottom: none; }

/* =============================================
   SECTION SHARED
============================================= */
section { position: relative; }

.section-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 100px 5%;
}

.section-label {
  display: block;
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px; font-weight: 600;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1rem; color: var(--muted);
  max-width: 560px; line-height: 1.7;
}

.divider {
  width: 60px; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 20px 0 48px;
}

/* =============================================
   BUTTONS
============================================= */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 32px; border-radius: 8px;
  font-weight: 600; font-size: .95rem; letter-spacing: .06em;
  text-transform: uppercase; font-family: 'Inter', sans-serif;
  transition: transform .15s, box-shadow .2s, background .2s;
  cursor: pointer; border: none;
}
.btn:hover { transform: translateY(-3px); }

.btn-primary  { background: linear-gradient(135deg, #7289da, #5865f2); color: #fff; box-shadow: 0 4px 20px rgba(88,101,242,.35); }
.btn-primary:hover  { box-shadow: 0 8px 30px rgba(88,101,242,.55); }

.btn-secondary { background: linear-gradient(135deg, var(--gold), #a87010); color: #000; box-shadow: 0 4px 20px var(--gold-glow); }
.btn-secondary:hover { box-shadow: 0 8px 30px rgba(200,148,26,.6); }

.btn-outline { background: transparent; color: var(--text); border: 1px solid rgba(255,255,255,.15); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-hi); background: rgba(200,148,26,.08); }

.btn-sm { padding: 10px 22px; font-size: .82rem; }

/* =============================================
   RANK COLORS (shared across pages)
============================================= */
.color-elite { color: var(--elite); }
.color-vip   { color: var(--vip); }
.color-mvp   { color: var(--mvp); }
.color-gold  { color: var(--gold-hi); }
.color-muted { color: var(--muted); }

/* =============================================
   PAGE HERO  (inner pages, not homepage)
============================================= */
.page-hero {
  padding: 150px 5% 80px;
  text-align: center;
  background: linear-gradient(180deg, #0f0a06 0%, #0a0a0a 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 110%, rgba(181,32,0,.22) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900; letter-spacing: .1em; text-transform: uppercase;
  background: linear-gradient(180deg, #ffd060 0%, #e8a020 45%, #b86010 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 1.05rem; color: var(--muted);
  max-width: 520px; margin: 0 auto; line-height: 1.7;
}

/* =============================================
   REVEAL ANIMATION
============================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =============================================
   FOOTER
============================================= */
footer {
  background: #070707;
  border-top: 1px solid var(--border);
  padding: 56px 5% 32px;
}

.footer-inner { max-width: 1160px; margin: 0 auto; }

.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }

.footer-brand { display: flex; flex-direction: column; gap: 14px; }

.footer-logo { display: flex; align-items: center; gap: 12px; }
.footer-logo img { width: 48px; height: 48px; object-fit: contain; border-radius: 8px; }
.footer-logo span { font-family: 'Cinzel', serif; font-size: 1.1rem; font-weight: 700; color: var(--gold-hi); }

.footer-desc { font-size: .875rem; color: var(--muted); line-height: 1.65; max-width: 300px; }

.footer-col h4 { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: .875rem; color: var(--muted); transition: color .2s; }
.footer-col ul a:hover { color: var(--text); }

.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p    { font-size: .78rem; color: var(--muted); }
.footer-bottom span { font-size: .72rem; color: #3a3028; }

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 768px) {
  .nav-links  { display: none; }
  .hamburger  { display: flex; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .section-inner { padding: 70px 5%; }
}
