/* ============================================
   ForgCalcs.com — Main Stylesheet
   Dark forge aesthetic: ember + obsidian
   ============================================ */

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

/* ---- CSS Variables ---- */
:root {
  --bg-deep:       #0a0a0f;
  --bg-card:       #111118;
  --bg-panel:      #16161f;
  --bg-hover:      #1e1e2a;
  --border:        #2a2a3a;
  --border-glow:   #e8620033;
  --ember:         #e86200;
  --ember-light:   #ff8c2a;
  --ember-dim:     #a84800;
  --gold:          #ffd166;
  --gold-dim:      #b89030;
  --cyan:          #00d4ff;
  --cyan-dim:      #0090b0;
  --text-primary:  #f0ebe0;
  --text-secondary:#a09880;
  --text-muted:    #605850;
  --rarity-common:    #9ca3af;
  --rarity-uncommon:  #34d399;
  --rarity-rare:      #60a5fa;
  --rarity-epic:      #a78bfa;
  --rarity-legendary: #fbbf24;
  --rarity-mythic:    #f87171;
  --rarity-divine:    #e86200;
  --rarity-celestial: #00d4ff;
  --radius:        8px;
  --radius-lg:     16px;
  --transition:    0.2s ease;
  --shadow-glow:   0 0 20px #e8620033;
  --font-display:  'Cinzel', serif;
  --font-body:     'Rajdhani', sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--ember-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font-body); border: none; outline: none; }
input, select, textarea { font-family: var(--font-body); outline: none; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); line-height: 1.25; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--ember-dim); border-radius: 3px; }

/* ---- Utility ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.text-ember { color: var(--ember-light); }
.text-gold { color: var(--gold); }
.text-cyan { color: var(--cyan); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ---- Animated BG ---- */
body::before {
  content: '';
  position: fixed; inset: 0;
  background: radial-gradient(ellipse 80% 40% at 50% 0%, #e8620012 0%, transparent 60%),
              radial-gradient(ellipse 40% 60% at 0% 100%, #00d4ff08 0%, transparent 50%);
  pointer-events: none; z-index: 0;
}

/* ============ HEADER / NAV ============ */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(10,10,15,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
  color: var(--text-primary);
  text-decoration: none;
}
.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--ember), var(--gold));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
  box-shadow: 0 0 12px #e8620055;
}
.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none;
}
.nav-links a {
  color: var(--text-secondary);
  font-weight: 500; font-size: 0.95rem;
  padding: 6px 12px; border-radius: var(--radius);
  transition: all var(--transition);
  letter-spacing: 0.04em;
}
.nav-links a:hover { color: var(--text-primary); background: var(--bg-hover); }
.nav-links a.active { color: var(--ember-light); }
.nav-right { display: flex; align-items: center; gap: 12px; }

/* Language switcher */
.lang-switcher { position: relative; }
.lang-toggle {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 6px 12px; border-radius: var(--radius);
  font-size: 0.85rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
  display: flex; align-items: center; gap: 6px;
}
.lang-toggle:hover { border-color: var(--ember); }
.lang-toggle::after { content: '▾'; font-size: 0.75rem; color: var(--text-muted); }
.lang-dropdown {
  display: none; position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 160px; z-index: 2000;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  overflow: hidden;
}
.lang-dropdown.open { display: block; }
.lang-option {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  color: var(--text-secondary);
  font-size: 0.9rem; font-weight: 500;
  cursor: pointer; transition: all var(--transition);
  border: none; background: none; width: 100%; text-align: left;
}
.lang-option:hover { background: var(--bg-hover); color: var(--text-primary); }
.lang-option.active { color: var(--ember-light); background: #e8620010; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; padding: 8px; cursor: pointer;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-primary); border-radius: 2px;
  transition: all 0.25s ease;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============ HERO ============ */
.hero {
  position: relative; padding: 100px 0 80px;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--ember), transparent);
}
.hero-content {
  max-width: 800px; margin: 0 auto; text-align: center; position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #e8620015; border: 1px solid #e8620040;
  color: var(--ember-light); padding: 6px 16px; border-radius: 20px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--ember-light) 50%, var(--gold) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.hero h2 {
  font-family: var(--font-body); font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text-secondary); font-weight: 400; margin-bottom: 20px;
}
.hero-desc {
  font-size: 1.05rem; color: var(--text-secondary); max-width: 640px;
  margin: 0 auto 36px; line-height: 1.7;
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: linear-gradient(135deg, var(--ember), var(--ember-light));
  color: #fff; padding: 14px 28px; border-radius: var(--radius);
  font-size: 1rem; font-weight: 700; letter-spacing: 0.04em;
  transition: all var(--transition);
  box-shadow: 0 4px 20px #e8620055;
  border: 1px solid transparent;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px #e8620077;
  color: #fff;
}
.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary); padding: 14px 28px; border-radius: var(--radius);
  font-size: 1rem; font-weight: 600; letter-spacing: 0.04em;
  transition: all var(--transition);
}
.btn-secondary:hover {
  border-color: var(--cyan); color: var(--cyan);
  background: #00d4ff0a;
}
.hero-stats {
  display: flex; gap: 32px; justify-content: center;
  margin-top: 48px; flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num {
  display: block; font-family: var(--font-display); font-size: 2rem;
  font-weight: 700; color: var(--ember-light);
}
.stat-label { font-size: 0.85rem; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; }

/* ============ CALCULATOR SECTION ============ */
#calculator { position: relative; }
.calc-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 40px rgba(0,0,0,0.4);
}
.calc-header {
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex; align-items: center; gap: 0;
  overflow-x: auto;
}
.tab-btn {
  background: none; border: none;
  color: var(--text-secondary);
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 600;
  padding: 16px 20px; letter-spacing: 0.06em;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all var(--transition);
}
.tab-btn:hover { color: var(--text-primary); }
.tab-btn.active { color: var(--ember-light); border-bottom-color: var(--ember-light); }

.calc-tab-content { display: none; padding: 28px; }
.calc-tab-content.active { display: block; }

/* Ore selection */
.calc-steps { display: flex; flex-direction: column; gap: 28px; }
.step-block { }
.step-label {
  font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ember-light);
  margin-bottom: 14px; display: flex; align-items: center; gap: 10px;
}
.step-label::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* Ore slots */
.ore-slots { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.ore-slot {
  flex: 1; min-width: 120px; max-width: 200px;
  background: var(--bg-deep);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 10px 14px; text-align: center;
  font-size: 0.9rem; color: var(--text-muted);
  transition: all var(--transition);
  min-height: 46px; display: flex; align-items: center; justify-content: center;
}
.ore-slot.filled {
  border-style: solid; border-color: var(--ember);
  color: var(--text-primary); background: #e8620010;
}
.slot-empty { font-size: 1.3rem; color: var(--border); }

/* Ore grid */
.ore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px; max-height: 320px; overflow-y: auto; padding: 4px;
}
.ore-btn {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 8px; text-align: center;
  transition: all var(--transition);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.ore-btn:hover { border-color: var(--text-muted); background: var(--bg-hover); }
.ore-btn.selected { border-color: var(--ember); background: #e8620015; box-shadow: 0 0 8px #e8620033; }
.ore-icon { font-size: 1.5rem; display: block; }
.ore-name { font-size: 0.72rem; color: var(--text-secondary); line-height: 1.2; }
.ore-world { font-size: 0.65rem; color: var(--text-muted); }

/* Rarity colors on ore grid */
.ore-btn.rarity-uncommon .ore-name  { color: var(--rarity-uncommon); }
.ore-btn.rarity-rare .ore-name      { color: var(--rarity-rare); }
.ore-btn.rarity-epic .ore-name      { color: var(--rarity-epic); }
.ore-btn.rarity-legendary .ore-name { color: var(--rarity-legendary); }
.ore-btn.rarity-mythic .ore-name    { color: var(--rarity-mythic); }
.ore-btn.rarity-divine .ore-name    { color: var(--rarity-divine); }
.ore-btn.rarity-celestial .ore-name { color: var(--rarity-celestial); }

/* World buttons */
.world-grid { display: flex; gap: 8px; flex-wrap: wrap; }
.world-btn {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 16px;
  color: var(--text-secondary); font-size: 0.9rem; font-weight: 500;
  transition: all var(--transition);
}
.world-btn:hover { border-color: var(--text-muted); color: var(--text-primary); }
.world-btn.active { border-color: var(--ember); color: var(--ember-light); background: #e8620010; }
.world-btn[data-world="4"] { border-color: var(--gold-dim); }
.world-btn[data-world="5"] { border-color: var(--cyan-dim); color: var(--cyan-dim); }
.world-btn[data-world="5"].active { border-color: var(--cyan); color: var(--cyan); background: #00d4ff10; }

/* Calc action row */
.calc-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.btn-calc {
  background: linear-gradient(135deg, var(--ember), var(--ember-light));
  color: #fff; padding: 12px 24px; border-radius: var(--radius);
  font-size: 0.95rem; font-weight: 700; letter-spacing: 0.04em;
  transition: all var(--transition); flex: 1; min-width: 160px;
  box-shadow: 0 2px 12px #e8620044;
}
.btn-calc:hover { transform: translateY(-1px); box-shadow: 0 4px 20px #e8620066; }
.btn-reset {
  background: var(--bg-panel); border: 1px solid var(--border);
  color: var(--text-secondary); padding: 12px 20px; border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 600;
  transition: all var(--transition);
}
.btn-reset:hover { border-color: var(--text-muted); color: var(--text-primary); }

/* Results panel */
.calc-results {
  display: none; margin-top: 24px;
  background: var(--bg-panel); border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg); padding: 24px;
  animation: slideUp 0.3s ease;
}
.calc-results.visible { display: block; }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.result-title {
  font-family: var(--font-display); font-size: 1rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ember-light); margin-bottom: 20px;
}
.result-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px; margin-bottom: 20px;
}
.result-card {
  background: var(--bg-deep); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px;
}
.result-card-label {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted); margin-bottom: 6px;
}
.result-card-value {
  font-family: var(--font-display); font-size: 1.6rem;
  font-weight: 700; color: var(--ember-light);
}
.result-outcome {
  background: var(--bg-deep); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px;
  font-size: 0.95rem; margin-bottom: 16px;
}
.prob-bar-wrap { margin-bottom: 12px; }
.prob-bar-label { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 4px; }
.prob-bar-track {
  height: 8px; background: var(--bg-deep); border-radius: 4px; overflow: hidden;
  border: 1px solid var(--border);
}
.prob-bar-fill {
  height: 100%; border-radius: 4px; width: 0%;
  background: linear-gradient(90deg, var(--ember), var(--ember-light));
  transition: width 0.8s cubic-bezier(0.23,1,0.32,1);
}
.prob-bar-fill.cyan { background: linear-gradient(90deg, var(--cyan-dim), var(--cyan)); }

/* FoE Calculator */
.foe-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 20px; }
.foe-field label {
  display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted); margin-bottom: 6px;
}
.foe-field input, .foe-field select {
  width: 100%; background: var(--bg-deep);
  border: 1px solid var(--border); color: var(--text-primary);
  padding: 10px 14px; border-radius: var(--radius); font-size: 0.95rem;
  transition: border-color var(--transition);
}
.foe-field input:focus, .foe-field select:focus { border-color: var(--ember); }
.foe-field select option { background: var(--bg-deep); }
.foe-results { display: none; margin-top: 20px; }
.foe-results.visible { display: block; }
.foe-rewards-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 16px;
}
.foe-reward-card {
  background: var(--bg-deep); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 10px; text-align: center;
}
.foe-reward-place {
  font-family: var(--font-display); font-size: 0.75rem; letter-spacing: 0.1em;
  color: var(--gold); text-transform: uppercase;
}
.foe-reward-val { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin-top: 4px; }
.foe-summary {
  display: flex; gap: 14px; flex-wrap: wrap;
}
.foe-summary-item {
  background: var(--bg-deep); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 18px; flex: 1; min-width: 140px;
}
.foe-summary-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.foe-summary-val { font-family: var(--font-display); font-size: 1.3rem; color: var(--cyan); margin-top: 4px; }
.positive { color: var(--rarity-uncommon) !important; }
.negative { color: var(--rarity-mythic) !important; }

/* Optimizer */
.opt-strategy { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.strategy-btn {
  background: var(--bg-panel); border: 1px solid var(--border);
  color: var(--text-secondary); padding: 8px 20px; border-radius: var(--radius);
  font-weight: 600; transition: all var(--transition);
}
.strategy-btn:hover { border-color: var(--text-muted); color: var(--text-primary); }
.strategy-btn.active { border-color: var(--ember); color: var(--ember-light); background: #e8620010; }
.inv-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px; max-height: 280px; overflow-y: auto; margin-bottom: 20px;
}
.inv-item label { font-size: 0.82rem; color: var(--text-secondary); display: block; margin-bottom: 4px; }
.inv-input {
  width: 100%; background: var(--bg-deep);
  border: 1px solid var(--border); color: var(--text-primary);
  padding: 8px 10px; border-radius: var(--radius); font-size: 0.9rem;
}
.inv-input:focus { border-color: var(--ember); }
.opt-rec {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  background: var(--bg-deep); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 8px;
}
.opt-rank { font-family: var(--font-display); color: var(--gold); font-weight: 700; min-width: 24px; }
.opt-icon { font-size: 1.3rem; }
.opt-name { flex: 1; font-weight: 600; }
.opt-score { font-size: 0.82rem; color: var(--text-muted); }
.opt-rarity { font-size: 0.75rem; padding: 2px 8px; border-radius: 4px; font-weight: 600; }
.opt-rarity.rarity-legendary { color: var(--rarity-legendary); }
.opt-rarity.rarity-epic      { color: var(--rarity-epic); }
.opt-rarity.rarity-mythic    { color: var(--rarity-mythic); }
.opt-rarity.rarity-divine    { color: var(--rarity-divine); }
.opt-rarity.rarity-celestial { color: var(--rarity-celestial); }
#opt-results { display: none; }
#opt-results.visible { display: block; }
#opt-results h4 { font-size: 0.9rem; color: var(--ember-light); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }

/* ============ SECTIONS ============ */
.section-title {
  font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text-primary), var(--ember-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-lead {
  font-size: 1.05rem; color: var(--text-secondary);
  max-width: 720px; line-height: 1.8;
}
.section-divider {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--ember), var(--ember-light));
  border-radius: 2px; margin: 20px 0;
}

/* What is section */
.what-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.what-text { display: flex; flex-direction: column; gap: 16px; }
.what-text p { color: var(--text-secondary); line-height: 1.8; font-size: 1rem; }
.what-aside {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
}
.aside-title {
  font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ember-light); margin-bottom: 16px;
}
.aside-point {
  display: flex; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.aside-point:last-child { border-bottom: none; }
.aside-point-icon { font-size: 1.2rem; flex-shrink: 0; }
.aside-point-text { font-size: 0.9rem; color: var(--text-secondary); }
.aside-point-text strong { color: var(--text-primary); display: block; margin-bottom: 2px; }

/* Features grid */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; margin-top: 40px;
}
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  transition: all var(--transition);
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--ember), transparent);
  opacity: 0; transition: opacity var(--transition);
}
.feature-card:hover { border-color: var(--ember-dim); transform: translateY(-2px); }
.feature-card:hover::before { opacity: 1; }
.feature-icon { font-size: 2rem; margin-bottom: 14px; }
.feature-title {
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 700;
  margin-bottom: 8px; color: var(--text-primary);
}
.feature-desc { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 0; margin-top: 36px; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0; cursor: pointer;
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 600;
  color: var(--text-primary); transition: color var(--transition);
  gap: 12px;
}
.faq-q:hover { color: var(--ember-light); }
.faq-chevron {
  flex-shrink: 0; font-size: 0.75rem; color: var(--text-muted);
  transition: transform 0.2s;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-a {
  display: none; padding-bottom: 16px;
  font-size: 0.95rem; color: var(--text-secondary); line-height: 1.8;
}
.faq-item.open .faq-a { display: block; }

/* CTA section */
.cta-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center; padding: 80px 0;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, #e8620015 0%, transparent 70%);
  pointer-events: none;
}
.cta-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 12px; position: relative;
}
.cta-section p {
  color: var(--text-secondary); font-size: 1.05rem; margin-bottom: 32px; position: relative;
}
.cta-section .btn-primary { font-size: 1.05rem; padding: 16px 36px; position: relative; }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px; margin-bottom: 48px;
}
.footer-brand { }
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
  color: var(--text-primary); margin-bottom: 12px;
}
.footer-tagline { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }
.footer-col-title {
  font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 0.9rem; color: var(--text-secondary); }
.footer-links a:hover { color: var(--text-primary); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 0.82rem; color: var(--text-muted); }
.footer-disclaimer { font-size: 0.78rem; color: var(--text-muted); text-align: right; max-width: 400px; }

/* Toast */
#toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--bg-panel); border: 1px solid var(--ember);
  color: var(--text-primary); padding: 12px 24px; border-radius: var(--radius);
  font-size: 0.9rem; z-index: 9999;
  transition: transform 0.3s ease;
  pointer-events: none;
}
#toast.show { transform: translateX(-50%) translateY(0); }

/* ============ SECONDARY PAGES ============ */
.page-hero {
  padding: 60px 0 40px; border-bottom: 1px solid var(--border); margin-bottom: 60px;
}
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 900;
  background: linear-gradient(135deg, var(--text-primary), var(--ember-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.page-content { max-width: 800px; margin: 0 auto; padding-bottom: 80px; }
.page-content h2 {
  font-size: 1.3rem; color: var(--text-primary);
  margin: 36px 0 12px;
}
.page-content p, .page-content li {
  color: var(--text-secondary); line-height: 1.8; font-size: 0.97rem; margin-bottom: 12px;
}
.page-content ul { margin-left: 20px; }
.page-content a { color: var(--ember-light); }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted);
}
.form-group input, .form-group textarea {
  background: var(--bg-panel); border: 1px solid var(--border);
  color: var(--text-primary); padding: 12px 16px; border-radius: var(--radius);
  font-size: 0.95rem; transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--ember); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-submit {
  background: linear-gradient(135deg, var(--ember), var(--ember-light));
  color: #fff; padding: 12px 28px; border-radius: var(--radius);
  font-size: 0.95rem; font-weight: 700; letter-spacing: 0.04em;
  align-self: flex-start; transition: all var(--transition);
}
.form-submit:hover { transform: translateY(-2px); box-shadow: 0 4px 20px #e8620066; }

/* Sitemap */
.sitemap-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px; margin-top: 20px;
}
.sitemap-col-title {
  font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ember-light); margin-bottom: 14px;
}
.sitemap-col a {
  display: block; padding: 6px 0; color: var(--text-secondary);
  border-bottom: 1px solid var(--border); font-size: 0.9rem;
}
.sitemap-col a:hover { color: var(--text-primary); padding-left: 6px; }

/* 404 */
.not-found {
  min-height: 70vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 60px 20px;
}
.not-found-inner { }
.not-found-num {
  font-family: var(--font-display); font-size: clamp(6rem, 20vw, 12rem); font-weight: 900;
  background: linear-gradient(135deg, var(--ember-dim), var(--ember-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1; margin-bottom: 16px;
}
.not-found-inner h2 { font-size: 1.5rem; margin-bottom: 12px; }
.not-found-inner p { color: var(--text-secondary); margin-bottom: 32px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .what-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(10,10,15,0.97); backdrop-filter: blur(12px);
    flex-direction: column; padding: 16px 20px;
    border-bottom: 1px solid var(--border); z-index: 999;
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .hero { padding: 60px 0 50px; }
  .hero-stats { gap: 20px; }
  .section { padding: 56px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .foe-rewards-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-disclaimer { text-align: center; max-width: 100%; }
  .ore-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
  .calc-tab-content { padding: 16px; }
  .result-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: center; }
  .btn-primary, .btn-secondary { width: 100%; max-width: 280px; text-align: center; }
  .foe-rewards-grid { grid-template-columns: repeat(2, 1fr); }
  .result-grid { grid-template-columns: 1fr; }
}

/* FAQ accordion */
.faq-item { }

/* Animations */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 12px #e8620033; }
  50%       { box-shadow: 0 0 24px #e8620066; }
}
.logo-icon { animation: pulse-glow 3s ease-in-out infinite; }
