:root {
  --bg: #0e1116;
  --bg-alt: #151a22;
  --surface: #1b2230;
  --ink: #e9edf3;
  --muted: #9aa6b8;
  --line: #283042;
  --accent: #ff6b3d;      /* terracotta */
  --accent-2: #2a9d8f;    /* teal */
  --blue: #4f86f7;
  --radius: 16px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .nav__brand { font-family: "Space Grotesk", system-ui, sans-serif; }

a { color: inherit; }

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 24px;
  background: rgba(14, 17, 22, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__brand { font-weight: 700; text-decoration: none; font-size: 1.05rem; }
.nav__brand span { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav__links { display: flex; gap: 20px; margin-left: auto; }
.nav__links a { color: var(--muted); text-decoration: none; font-size: .92rem; transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
.nav__cta {
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color .2s, background .2s;
}
.nav__cta:hover { border-color: var(--accent); background: rgba(255,107,61,.08); }
@media (max-width: 760px) { .nav__links { display: none; } }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(70px, 12vw, 150px) 24px clamp(50px, 8vw, 90px);
  text-align: center;
}
.hero__glow {
  position: absolute;
  inset: -30% 0 auto 0;
  height: 600px;
  background: radial-gradient(60% 60% at 50% 0%, rgba(255,107,61,.28), transparent 70%),
              radial-gradient(50% 50% at 70% 20%, rgba(42,157,143,.22), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.hero__inner { position: relative; max-width: 800px; margin: 0 auto; }
.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  color: var(--accent);
  margin: 0 0 14px;
}
.hero__title { font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.05; margin: 0 0 22px; }
.hero__title em { font-style: normal; background: linear-gradient(90deg, var(--accent), #ffb37d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: var(--muted); margin: 0 auto 32px; max-width: 640px; }
.hero__sub strong { color: var(--ink); }
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__snapshot { margin-top: 26px; font-size: .85rem; color: var(--muted); }

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 999px;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn--primary { background: var(--accent); color: #1a0f0a; box-shadow: 0 10px 30px rgba(255,107,61,.35); }
.btn--primary:hover { transform: translateY(-2px); }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent-2); background: rgba(42,157,143,.1); }

/* ---------- STATS ---------- */
.stats {
  max-width: var(--maxw);
  margin: -20px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 18px;
  text-align: center;
}
.stat__num { display: block; font-family: "Space Grotesk"; font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; color: var(--accent); }
.stat__label { display: block; font-size: .82rem; color: var(--muted); margin-top: 6px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- SECTIONS ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(60px, 9vw, 110px) 24px; }
.section--alt { max-width: none; background: var(--bg-alt); border-block: 1px solid var(--line); }
.section--alt > * { max-width: var(--maxw); margin-inline: auto; }
.section__head { margin-bottom: 40px; max-width: 720px; }
.kicker { text-transform: uppercase; letter-spacing: .16em; font-size: .76rem; color: var(--accent-2); font-weight: 600; }
.section h2 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); margin: 10px 0 0; line-height: 1.1; }
.section__lead { color: var(--muted); font-size: 1.08rem; margin-top: 16px; }

/* ---------- CARDS ---------- */
.grid { display: grid; gap: 18px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .grid--3 { grid-template-columns: 1fr; } }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card__icon { font-size: 1.8rem; }
.card h3 { margin: 14px 0 8px; font-size: 1.2rem; }
.card p { color: var(--muted); margin: 0; }

.note {
  margin-top: 28px;
  padding: 16px 20px;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  color: var(--muted);
  font-size: .95rem;
}

/* ---------- CHART ---------- */
.chart-wrap {
  position: relative;
  height: 560px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.chart-wrap canvas { width: 100% !important; height: 100% !important; display: block; }
@media (max-width: 640px) {
  .chart-wrap { height: 520px; padding: 14px; }
}

/* ---------- MAPS ---------- */
.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.map-frame iframe { width: 100%; height: 620px; border: 0; display: block; background: #fff; }
.map-frame--sm iframe { height: 520px; }

.legend { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 22px; color: var(--muted); font-size: .92rem; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 7px; vertical-align: middle; }

/* ---------- ENCART ---------- */
.encart {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 26px;
}
.encart__media { margin: 0; flex: 0 0 200px; text-align: center; }
.encart__media img { width: 100%; height: auto; border-radius: 12px; display: block; margin: 0 auto; }
.encart__media figcaption { font-size: .72rem; color: var(--muted); margin-top: 8px; line-height: 1.45; text-align: center; }
.encart__media a { color: var(--accent-2); }
.encart__body { flex: 1; }
.encart__body h3 { margin: 0 0 10px; font-family: "Space Grotesk"; font-size: 1.15rem; }
.encart__body p { color: var(--ink); line-height: 1.65; margin: 0 0 10px; }
.encart__source { font-size: .82rem; color: var(--muted); }
.encart__source a { color: var(--accent-2); }
@media (max-width: 640px) {
  .encart { flex-direction: column; }
  .encart__media { flex-basis: auto; align-self: center; max-width: 240px; }
}

/* ---------- STEPS ---------- */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
.steps li span { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #1a0f0a; font-weight: 700; font-family: "Space Grotesk"; }
.steps code { background: rgba(255,255,255,.06); padding: 2px 6px; border-radius: 5px; font-size: .88em; }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 24px; text-align: center; color: var(--muted); font-size: .9rem; }
.footer a { color: var(--accent-2); }
.footer p { margin: 6px 0; }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
