:root {
  --bg: #0c0c0e;
  --surface: #141418;
  --card: #1a1a20;
  --accent: #e8ff47;
  --accent2: #ff4757;
  --accent3: #00d4ff;
  --moss: #7fd88e;
  --gold: #ffc107;
  --text: #f0f0ee;
  --muted: #6b6b78;
  --border: #2a2a35;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
  max-width: 100vw;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}

/* NAV */
nav {
  position: sticky;
  top: 0;
  background: rgba(12,12,14,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  padding: 0 24px;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 4px;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-inner::-webkit-scrollbar { display: none; }

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 8px 8px 8px 0;
  margin-right: 8px;
  text-decoration: none;
}
.nav-logo img {
  height: 32px;
  width: auto;
  display: block;
  object-fit: contain;
}
.logo-text {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--accent);
  margin-left: 8px;
  letter-spacing: -0.02em;
}

/* Hamburger button - hidden on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 38px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s ease;
  transform-origin: center;
}
/* Animated X */
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-links {
  display: flex;
  gap: 4px;
  flex: 1;
  justify-content: flex-end;
}

.nav-btn {
  background: none;
  border: none;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  padding: 14px 16px;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  display: inline-block;
}
.nav-btn:hover { color: var(--accent); }
.nav-btn.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 700; }

/* MOBILE NAV */
@media (max-width: 700px) {
  nav {
    padding: 0 16px;
    position: sticky; /* Already sticky, but ensure context */
  }

  .nav-inner {
    flex-wrap: nowrap; /* Don't wrap — keep menu btn on same row */
    overflow: visible;
    position: relative;
    min-height: 48px;
    align-items: center;
  }

  /* Show hamburger on mobile */
  .nav-toggle {
    display: flex;
    margin-left: auto;
    flex-shrink: 0;
  }

  /* Dropdown floats OVER the page, does not push content */
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: -16px;
    right: -16px;
    width: calc(100% + 32px);
    background: rgba(20,20,24,0.99);
    border-top: 1px solid var(--border);
    border-bottom: 2px solid var(--accent);
    z-index: 200;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
    gap: 0;
    justify-content: flex-start;
  }
  .nav-links.open { display: flex; }

  .nav-btn {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    margin: 0;
    width: 100%;
    font-size: 12px;
    letter-spacing: 0.06em;
  }
  .nav-btn:last-child { border-bottom: none; }
  .nav-btn.active {
    background: rgba(232,255,71,0.05);
    color: var(--accent);
    border-left: 3px solid var(--accent);
    padding-left: 13px;
  }
}

/* CONTAINER */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  position: relative;
  z-index: 2;
}

/* CALLOUTS (Used across multiple pages) */
.callout {
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 24px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.callout.fire { background: rgba(255,71,87,0.08); border-left: 4px solid var(--accent2); }
.callout.green { background: rgba(127,216,142,0.08); border-left: 4px solid var(--moss); }
.callout.blue { background: rgba(0,212,255,0.08); border-left: 4px solid var(--accent3); }
.callout.gold { background: rgba(255,193,7,0.08); border-left: 4px solid var(--gold); }

.callout-icon { font-size: 22px; flex-shrink: 0; margin-top: 1px; }
.callout-body h4 { font-weight: 700; font-size: 14px; margin-bottom: 5px; }
.callout.fire .callout-body h4 { color: var(--accent2); }
.callout.green .callout-body h4 { color: var(--moss); }
.callout.blue .callout-body h4 { color: var(--accent3); }
.callout.gold .callout-body h4 { color: var(--gold); }
.callout-body p { font-size: 13.5px; color: var(--muted); line-height: 1.65; }
.callout-body strong { color: var(--text); font-weight: 700; }

/* NOTE STYLE */
.note {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  margin-bottom: 30px;
  border-radius: 0 4px 4px 0;
  display: flex;
  gap: 12px;
  font-family: 'DM Sans', sans-serif;
}
.note-icon { font-size: 18px; line-height: 1; }
.note-text { font-size: 14px; line-height: 1.6; color: var(--text); }
.note-text strong { color: var(--accent); font-family: 'Space Mono', monospace; text-transform: uppercase; font-size: 12px; margin-right: 4px; }

/* SECTION HEADS (Used across multiple pages) */
.section-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.section-head h2 {
  font-family: 'Black Ops One', cursive;
  font-size: 28px;
  letter-spacing: 0px;
}

.section-num {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 4px 10px;
  border-radius: 2px;
}

.section-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
  position: relative;
  z-index: 2;
}

footer p {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

footer p strong { color: var(--accent); }

/* ANIMATIONS */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* INDEX SPECIFIC CSS */
header.hero {
  padding: 70px 0 50px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 36px;
  align-items: center;
  border-bottom: 2px solid var(--accent);
  margin-bottom: 50px;
}
.badge {
  display: inline-block;
  background: var(--accent);
  color: #000;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 2px;
  margin-bottom: 20px;
  animation: fadeSlideUp 0.5s ease both;
}
h1 {
  font-family: 'Black Ops One', cursive;
  font-size: clamp(46px, 7vw, 80px);
  line-height: 0.92;
  letter-spacing: -2px;
  animation: fadeSlideUp 0.6s 0.1s ease both;
}
h1 span { color: var(--accent); display: block; }
.hero-sub {
  font-size: 16px;
  color: var(--muted);
  margin-top: 20px;
  max-width: 480px;
  font-weight: 300;
  line-height: 1.65;
  animation: fadeSlideUp 0.6s 0.2s ease both;
}
.stats-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fadeSlideUp 0.6s 0.3s ease both;
}
.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
}
.stat-row:last-child { border: none; padding: 0; }
.stat-label {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.stat-val {
  font-family: 'Black Ops One', cursive;
  font-size: 20px;
  color: var(--text);
}
.stat-val.fire { color: var(--accent2); }
.stat-val.green { color: var(--moss); }
@media (max-width: 768px) {
  header.hero { grid-template-columns: 1fr; }
}
