/**
 * layout.css
 * Background starfield canvas, top navigation, and the hero section
 * with its stat row.
 */

/* ambient starfield background */
#bg-stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .55;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* NAV */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(8, 11, 20, .72);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  max-width: 1180px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: .02em;
}

.brand svg {
  width: 26px;
  height: 26px;
}

.brand small {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: .12em;
  margin-top: 1px;
}

.tabs {
  display: flex;
  gap: 6px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 4px;
}

.tab-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  padding: 9px 18px;
  border-radius: 100px;
  cursor: pointer;
  transition: .2s;
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--violet), #5B4FD9);
  color: #fff;
  box-shadow: 0 4px 18px -4px rgba(124, 111, 255, .6);
}

.tab-btn:not(.active):hover {
  color: var(--text);
}

section {
  position: relative;
  z-index: 1;
}

/* stat cards — big highlight + 2 secondary + 2x2 category grid */
.stats-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat-highlight {
  background: linear-gradient(135deg, #F5C453, #E0A63A);
  border-radius: var(--radius);
  padding: 26px 24px;
  color: #211405;
}

.stat-highlight .stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(33, 20, 5, .16);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.stat-highlight .stat-icon svg {
  width: 20px;
  height: 20px;
}

.stat-highlight .stat-big-num {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 5vw, 40px);
  letter-spacing: -.01em;
  line-height: 1;
}

.stat-highlight .stat-big-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: 8px;
  opacity: .8;
}

.stats-secondary-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat-secondary {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.stat-secondary .stat-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(245, 196, 83, .12);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.stat-secondary .stat-icon svg {
  width: 16px;
  height: 16px;
}

.stat-secondary .stat-big-num {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 24px;
}

.stat-secondary .stat-big-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-top: 6px;
}

.stats-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat-mini {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.stat-mini .stat-mini-num {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: var(--gold);
}

.stat-mini .stat-mini-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-top: 4px;
}

@media (min-width: 720px) {
  .stats-cards {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 12px;
  }

  .stat-highlight {
    grid-row: 1 / 3;
  }

  .stats-secondary-row {
    display: contents;
  }

  .stats-grid-2x2 {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, 1fr);
  }
}
.hero {
  padding: 86px 0 60px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 196, 83, .1);
  border: 1px solid rgba(245, 196, 83, .35);
  color: var(--gold);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  letter-spacing: .08em;
  padding: 7px 14px;
  border-radius: 100px;
  margin-bottom: 26px;
}

.badge svg {
  width: 13px;
  height: 13px;
}

h1.headline {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.03;
  letter-spacing: -.02em;
  max-width: 820px;
  margin: 0 0 20px;
}

h1.headline .accent {
  background: linear-gradient(120deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 560px;
  margin: 0 0 34px;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--violet), #5B4FD9);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  padding: 14px 26px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px -8px rgba(124, 111, 255, .55);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  padding: 14px 26px;
  border-radius: 10px;
  cursor: pointer;
}

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}
