/* ============================================================
   base.css — Reset, Body, Layout Primitives
   ============================================================ */

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

img, video {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ── Body ───────────────────────────────────────────────── */
body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Custom Scrollbar ───────────────────────────────────── */
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: var(--color-navy);
}
::-webkit-scrollbar-thumb {
  background: var(--color-royal);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-royal-light);
}

/* ── Container ──────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

/* ── Section Base ────────────────────────────────────────── */
.section {
  padding-block: var(--section-pad-y);
  position: relative;
  overflow: hidden;
}

/* ── Grid Overlay (hero bg) ─────────────────────────────── */
.grid-overlay {
  background-image:
    linear-gradient(rgba(27, 79, 216, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 79, 216, 0.07) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── Blob: Ambient Background Glow ──────────────────────── */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.blob--blue  { background: var(--gradient-blob-blue); }
.blob--gold  { background: var(--gradient-blob-gold); }
.blob--teal  { background: var(--gradient-blob-teal); }

/* ── Stars Canvas ────────────────────────────────────────── */
.stars-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  animation: twinkle linear infinite;
}

/* ── Section-Relative Z-Index ────────────────────────────── */
.z-content {
  position: relative;
  z-index: 1;
}

/* ── Section Label ───────────────────────────────────────── */
.section-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.section-label--center {
  display: flex;
  justify-content: center;
}
.section-label--center::before,
.section-label--center::after {
  content: '';
  flex: 1;
  max-width: 40px;
  height: 1px;
  background: var(--color-gold);
  opacity: 0.4;
}

/* ── Display Typography ──────────────────────────────────── */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.05;
  color: var(--color-white);
}

.section-body {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.75;
}

.text-gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  background: linear-gradient(135deg, #fff, var(--color-royal-pale));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
