/* === TOKENS === */
:root {
  --ember:    #e8621a;
  --amber:    #f5a623;
  --gold:     #f5c842;
  --gold-dim: #c49b2a;
  --deep-red: #8b2500;
  --black:    #0d0900;
  --dark:     #1a0e00;
  --surface:  #2a1800;
  --surface-2:#3d2000;
  --text:     #e8d5b0;
  --muted:    #8a6a40;
  --font-display: 'Cinzel', serif;
  --font-body:    'Crimson Pro', Georgia, serif;
  --font-ui:      'Share Tech Mono', ui-monospace, monospace;
}

/* === RESET === */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--ember); color: var(--black); }

/* === HELPERS === */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.eyebrow {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-dim);
}
.h1, .h2, .h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.04em;
  margin: 0;
}
.h1 { font-size: clamp(48px, 9vw, 96px); line-height: 0.95; }
.h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.05; }
.h3 { font-size: 22px; }
.divider-flame {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ember), transparent);
  border: none;
  margin: 0;
}
.divider-thin {
  height: 1px;
  background: var(--gold-dim);
  opacity: 0.4;
  border: none;
  margin: 0;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid var(--gold);
  background: var(--deep-red);
  color: var(--gold);
  box-shadow:
    0 0 16px rgba(139, 37, 0, 0.6),
    inset 0 1px 0 rgba(245, 200, 66, 0.25),
    inset 0 -10px 24px rgba(0, 0, 0, 0.35);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
}
.btn:hover {
  background: var(--ember);
  box-shadow:
    0 0 28px rgba(232, 98, 26, 0.7),
    inset 0 1px 0 rgba(245, 200, 66, 0.35),
    inset 0 -10px 24px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}
.btn:active { transform: translateY(0); }
.btn-secondary {
  background: #1a1a1a;
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  box-shadow: inset 0 1px 0 rgba(245, 200, 66, 0.08);
}
.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--amber);
  background: #1f1410;
  box-shadow: 0 0 14px rgba(232, 98, 26, 0.18), inset 0 1px 0 rgba(245, 200, 66, 0.12);
}
.btn-compact { padding: 10px 18px; font-size: 12px; }

/* === NAVBAR === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13, 9, 0, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(196, 155, 42, 0.25);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-emblem {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 60%, #ffd47a 0%, var(--ember) 35%, var(--deep-red) 70%, #2a0800 100%);
  border: 2px solid var(--gold);
  box-shadow: 0 0 12px rgba(232, 98, 26, 0.6), inset 0 0 8px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}
.nav-emblem::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 6px;
  width: 8px; height: 14px;
  transform: translateX(-50%);
  background: linear-gradient(to top, var(--gold), var(--amber), transparent);
  clip-path: polygon(50% 0%, 80% 50%, 65% 75%, 75% 100%, 25% 100%, 35% 75%, 20% 50%, 30% 25%);
  filter: blur(0.4px);
  animation: flicker 1.6s infinite ease-in-out;
}
.nav-emblem-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.nav-title-img {
  height: 28px;
  width: auto;
  display: block;
}
.nav-links { display: flex; align-items: center; gap: 28px; margin: 0 24px; }
.nav-links a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.18s;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a.active { color: var(--ember); border-bottom-color: var(--ember); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--gold-dim);
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  border-radius: 2px;
  align-items: center;
  justify-content: center;
}
.nav-burger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--gold);
  box-shadow: 0 -6px 0 var(--gold), 0 6px 0 var(--gold);
}
.mobile-drawer {
  display: none;
  position: fixed;
  inset: 72px 0 0 0;
  background: var(--black);
  z-index: 99;
  padding: 32px;
  flex-direction: column;
  gap: 24px;
  border-top: 1px solid var(--gold-dim);
}
.mobile-drawer.open { display: flex; }
.mobile-drawer a {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.2em;
  color: var(--text);
  text-transform: uppercase;
  padding: 14px 0;
  border-bottom: 1px solid rgba(196, 155, 42, 0.2);
}
@media (max-width: 1024px) {
  .nav-links, .nav-cta .btn:not(.nav-burger) { display: none; }
  .nav-burger { display: inline-flex; }
}

/* === PARTICLES === */
.particles { position: absolute; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.particle {
  position: absolute;
  bottom: -20px;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 8px var(--ember), 0 0 14px var(--amber);
  opacity: 0;
  animation: rise 7s linear infinite;
}

/* === LOGO + RUNE RING === */
.logo {
  position: relative;
  margin: 0 auto 32px;
}
.logo-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 50%;
}
.logo-runes {
  position: absolute;
  inset: 0;
  animation: spin 60s linear infinite;
}
.rune {
  position: absolute;
  left: 50%; top: 50%;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 14px;
  color: var(--gold-dim);
  letter-spacing: 0.1em;
  transform-origin: 0 0;
  text-shadow: 0 0 6px rgba(232, 98, 26, 0.5);
}

/* === FOOTER === */
footer {
  background: var(--black);
  border-top: 1px solid var(--ember);
  padding: 56px 0 28px;
  margin-top: 80px;
}
.footer-bottom {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* === KEYFRAMES === */
@keyframes flicker {
  0%, 100% { transform: translateX(-50%) scaleY(1) scaleX(1); opacity: 1; }
  25%  { transform: translateX(-50%) scaleY(1.08) scaleX(0.95); opacity: 0.95; }
  50%  { transform: translateX(-50%) scaleY(0.94) scaleX(1.04); opacity: 1; }
  75%  { transform: translateX(-50%) scaleY(1.02) scaleX(0.98); opacity: 0.92; }
}
@keyframes rise {
  0%   { transform: translateY(0) translateX(0) scale(0.6); opacity: 0; }
  10%  { opacity: 0.9; }
  50%  { opacity: 1; transform: translateY(-50vh) translateX(20px) scale(1); }
  100% { transform: translateY(-100vh) translateX(-10px) scale(0.4); opacity: 0; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float-up {
  0%   { transform: translateY(0); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: translateY(-30px); opacity: 0; }
}
