/* self-hosted fonts (no CDN dependency) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Inter-400-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Inter-400-latin-ext.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/Inter-500-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/Inter-500-latin-ext.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/Inter-600-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/Inter-600-latin-ext.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/SpaceGrotesk-400-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/SpaceGrotesk-400-latin-ext.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/SpaceGrotesk-500-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/SpaceGrotesk-500-latin-ext.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/SpaceGrotesk-600-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/SpaceGrotesk-600-latin-ext.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/SpaceGrotesk-700-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/SpaceGrotesk-700-latin-ext.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/JetBrainsMono-400-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/JetBrainsMono-400-latin-ext.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/JetBrainsMono-500-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/JetBrainsMono-500-latin-ext.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/JetBrainsMono-600-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/JetBrainsMono-600-latin-ext.woff2') format('woff2');
}

:root {
  --ink: #08090d;
  --panel: #0e1118;
  --panel-2: #12151e;
  --line: rgba(231, 236, 255, 0.08);
  --line-strong: rgba(231, 236, 255, 0.18);
  --text: #edf0f8;
  --steel: #929cb0;
  --muted: #5c6678;
  --signal: #ffb03a;   /* headlight / warning light */
  --data: #7c9eff;     /* backlit gauge */
  --good: #38d180;     /* historical scrape */
  --sans: "Inter", system-ui, sans-serif;
  --disp: "Space Grotesk", var(--sans);
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(255, 176, 58, 0.26); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; border-radius: 4px; }

/* ambient: faint instrument grid, one warm glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 18% -12%, rgba(255, 176, 58, 0.07), transparent 60%),
    radial-gradient(760px 520px at 92% -6%, rgba(124, 158, 255, 0.05), transparent 55%),
    var(--ink);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(231, 236, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(231, 236, 255, 0.022) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 75% 55% at 50% -2%, black, transparent 78%);
  pointer-events: none;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(8, 9, 13, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 176, 58, 0.5);
  border-radius: 9px;
  color: var(--signal);
  font-family: var(--mono); font-weight: 600; font-size: 12px;
}
.brand-name { font-weight: 600; font-size: 15px; letter-spacing: 0.01em; }
.brand-dim { color: var(--muted); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--steel); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--text); }

/* ---------- hero ---------- */
.hero { padding: 104px 24px 0; }
.hero-inner { max-width: 1080px; margin: 0 auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--steel); margin-bottom: 26px;
}
.signal-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 12px rgba(255, 176, 58, 0.8); animation: blink 2.2s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero h1 {
  font-family: var(--disp);
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.lede {
  max-width: 560px;
  color: var(--steel);
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 44px;
}

/* odometer — the signature */
.odo {
  max-width: 640px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 2px solid var(--signal);
  border-radius: var(--radius);
  padding: 26px 30px 24px;
  margin-bottom: 18px;
  position: relative;
}
.odo-label {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--signal);
  margin-bottom: 10px;
}
.odo-readout {
  display: flex;
  font-family: var(--mono);
  font-size: clamp(34px, 6.5vw, 64px);
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.odo-cell { width: 1ch; height: 1.15em; overflow: hidden; }
.odo-cell.comma { width: 0.55ch; display: grid; place-items: center; color: var(--muted); }
.odo-cell.plus { width: auto; margin-left: 2px; color: var(--signal); }
.odo-col { display: flex; flex-direction: column; }
.odo-col b { height: 1.15em; display: block; line-height: 1.15em; font-weight: 600; }
.odo-sub {
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  margin-top: 12px;
}

/* strip of mini stats */
.strip {
  display: flex;
  max-width: 640px;
  margin-bottom: 34px;
}
.strip-cell {
  flex: 1;
  padding: 18px 24px 18px 0;
  margin-right: 24px;
  border-right: 1px solid var(--line);
}
.strip-cell:last-child { margin-right: 0; border-right: none; }
.strip-num {
  font-family: var(--disp); font-size: 28px; font-weight: 700; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  display: block;
}
.strip-lab {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; padding-bottom: 84px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 10px;
  font-weight: 600; font-size: 15px; text-decoration: none; transition: all .15s;
}
.btn-primary {
  background: var(--signal); color: #17100a;
  box-shadow: 0 8px 28px rgba(255, 176, 58, 0.18);
}
.btn-primary:hover { background: #ffc266; transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: var(--signal); color: var(--signal); }

/* ---------- sections ---------- */
.section { padding: 84px 24px; }
.section-inner, .section-head, .feature-grid, .dict-grid, .filters, #country-groups, .contact-card {
  max-width: 1080px; margin-left: auto; margin-right: auto;
}
.section-alt { background: var(--panel); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 42px; }
.section-head h2 { font-family: var(--disp); font-size: 30px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.sub { color: var(--steel); font-size: 16px; max-width: 620px; }

/* layers */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.feature {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: transform .15s, border-color .15s;
}
.feature:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.feature h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.01em; }
.feature p { color: var(--steel); font-size: 14.5px; }

/* ---------- data dictionary ---------- */
.dict-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; }
.dict-col h3 { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 16px; }
.dict-note { color: var(--steel); font-size: 14px; margin-bottom: 16px; }
.dict { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.dict dt { font-family: var(--mono); font-size: 12.5px; color: var(--signal); padding: 11px 16px 2px; }
.dict dd { font-size: 14px; color: var(--steel); padding: 0 16px 11px; }
.dict dt, .dict dd { border-top: 1px solid var(--line); }
.dict dt:first-child, .dict dd:first-of-type { border-top: none; }

/* ---------- filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.chip {
  padding: 7px 15px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent;
  color: var(--steel); font-size: 13px; font-weight: 500; cursor: pointer;
  font-family: var(--sans); transition: all .13s;
}
.chip:hover { color: var(--text); border-color: var(--signal); }
.chip-active { background: var(--signal); border-color: var(--signal); color: #17100a; font-weight: 600; }

/* ---------- countries & cards ---------- */
.country-group { margin-bottom: 68px; }
.country-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.country-flag { font-size: 22px; line-height: 1; }
.country-name { font-family: var(--disp); font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }

.dataset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.dataset {
  display: flex; flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform .15s, border-color .15s;
}
.dataset:hover { transform: translateY(-2px); border-color: var(--line-strong); }

.ds-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.ds-name { font-size: 16px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.ds-source { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-bottom: 12px; }
.ds-plain { color: var(--steel); font-size: 14.5px; margin-bottom: 16px; }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.06em; padding: 4px 9px; border-radius: 999px;
  border: 1px solid transparent; text-transform: uppercase; white-space: nowrap;
}
.badge-backfill { color: var(--good); border-color: rgba(56, 209, 128, 0.35); background: rgba(56, 209, 128, 0.08); }
.badge-recurring { color: var(--data); border-color: rgba(124, 158, 255, 0.32); background: rgba(124, 158, 255, 0.08); }
.badge-vpn { color: #b9a8ff; border-color: rgba(185, 168, 255, 0.35); background: rgba(185, 168, 255, 0.08); }
.badge-live { color: var(--good); border-color: rgba(56, 209, 128, 0.35); background: rgba(56, 209, 128, 0.08); font-weight: 600; }
.badge-capability { color: var(--signal); border-color: rgba(255, 176, 58, 0.4); background: rgba(255, 176, 58, 0.08); font-weight: 600; }
.ds-badges { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }

.ds-fields { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 16px; }
.field-chip {
  font-family: var(--mono); font-size: 11px; color: var(--steel);
  padding: 2px 7px; border: 1px solid var(--line); border-radius: 6px;
}

.ds-infer { margin-bottom: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.ds-infer-label { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 8px; }
.ds-infer ul { list-style: none; }
.ds-infer li { color: var(--steel); font-size: 13.5px; padding-left: 16px; position: relative; margin-bottom: 4px; }
.ds-infer li::before { content: "→"; position: absolute; left: 0; color: var(--signal); font-size: 12px; top: 1px; }

.ds-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ds-count { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.ds-download {
  font-family: var(--mono); font-size: 12px; font-weight: 600; text-decoration: none;
  color: #17100a; background: var(--signal);
  padding: 6px 13px; border-radius: 8px; transition: background .15s, transform .15s;
}
.ds-download:hover { background: #ffc266; transform: translateY(-1px); }
.ds-ready { font-size: 12px; color: var(--signal); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- contact ---------- */
.contact { padding-top: 30px; padding-bottom: 90px; }
.contact-card {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-top: 2px solid var(--signal);
  border-radius: var(--radius);
  padding: 52px 44px; text-align: center;
}
.contact-card h2 { font-family: var(--disp); font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 14px; }
.contact-card p { color: var(--steel); font-size: 16px; max-width: 560px; margin: 0 auto 26px; }
.contact-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.contact-actions .btn-ghost { font-family: var(--mono); font-size: 14px; }

/* ---------- reveal + motion ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
.hidden { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .signal-dot { animation: none; }
}

@media (max-width: 860px) {
  .dict-grid { grid-template-columns: 1fr; }
  .strip { flex-direction: column; gap: 0; }
  .strip-cell { margin-right: 0; border-right: none; border-bottom: 1px solid var(--line); padding: 14px 0; }
  .strip-cell:last-child { border-bottom: none; }
  .nav-links a:not(.nav-cta) { display: none; }
  .contact-card { padding: 40px 24px; }
}
