/* Meshcore CWB — same palette and type as the presentation deck */
:root {
  --bg: #0F1A20;
  --surface: #15242C;
  --line: #22363F;
  --text: #E6ECE8;
  --muted: #A9BCC0;
  --dim: #7D939A;
  --amber: #F2A33A;
  --blue: #5A8FE0;
  --teal: #3BB3A6;
  --purple: #A98BE8;
  --forest: #2E5A4A;

  --font-display: 'Space Grotesk', Arial, sans-serif;
  --font-body: 'IBM Plex Sans', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --radius: 16px;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  margin: 0;
}

p { margin: 0; }

a { color: var(--amber); }

code, .mono { font-family: var(--font-mono); }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 26, 32, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
}
.brand img { width: 36px; height: 36px; }
.nav { display: flex; gap: 24px; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 16px;
}
.nav a:hover { color: var(--text); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 112px;
}
.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: center;
}
.hero-chirps {
  position: absolute;
  right: -40px;
  bottom: 0;
  width: 760px;
  max-width: 90%;
  pointer-events: none;
}
.pill {
  display: inline-block;
  font-weight: 600;
  font-size: 16px;
  color: var(--bg);
  background: var(--amber);
  padding: 4px 16px;
  border-radius: 999px;
}
.hero h1 {
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 700;
  margin: 24px 0 20px;
}
.hero .lead {
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--muted);
  max-width: 620px;
}
.hero-logo {
  align-self: start;
  margin-top: -24px;
  width: 100%;
  height: auto;
  border-radius: 48px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--amber);
}
.btn-primary { background: var(--amber); color: var(--bg); }
.btn-ghost { color: var(--amber); }
.btn:hover { filter: brightness(1.1); }

/* ---------- sections ---------- */
section { padding: 88px 0; }
section.alt { background: var(--surface); }

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--amber);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 600;
  margin-bottom: 16px;
}
.section-lead {
  color: var(--muted);
  max-width: 720px;
  margin-bottom: 40px;
}

.grid {
  display: grid;
  gap: 20px;
}
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 28px;
  border-top: 5px solid var(--accent, var(--amber));
}
section:not(.alt) .card { background: var(--surface); }
.card h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}
.card p { color: var(--muted); font-size: 16px; }

/* ---------- radio config ---------- */
.radio {
  border: 2px solid var(--amber);
  border-radius: var(--radius);
  padding: 32px;
  background: var(--bg);
  margin-bottom: 20px;
}
.radio-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}
.radio-head h3 { font-size: 26px; font-weight: 600; }
.radio-head p { color: var(--muted); }
.radio-head b { color: var(--text); }
.params {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.param {
  background: var(--amber);
  color: var(--bg);
  border-radius: 10px;
  padding: 14px 16px;
}
.param .label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.75;
}
.param .value {
  font-family: var(--font-mono);
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 700;
}
.radio-note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 16px;
}

.steps { counter-reset: step; }
.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--bg);
  border-radius: 14px;
  padding: 22px 24px;
}
.step-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent, var(--text));
  min-width: 28px;
}
.step h3 { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 16px; }
.step b { color: var(--text); font-weight: 600; }
.step code {
  color: var(--accent, var(--blue));
  font-size: 15px;
}

/* ---------- map ---------- */
.map-figure {
  margin: 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
}
.map-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
}
.stat {
  font-family: var(--font-display);
  font-size: 88px;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
}
.stat-label { color: var(--muted); margin-bottom: 24px; }

/* ---------- links ---------- */
.link-card { text-decoration: none; display: block; color: inherit; transition: transform .15s; }
.link-card:hover { transform: translateY(-3px); }
.link-card .mono { color: var(--accent); font-size: 15px; display: block; margin-top: 12px; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  color: var(--dim);
  font-size: 15px;
}
.site-footer .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-footer img { width: 28px; height: 28px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .params { grid-template-columns: repeat(2, 1fr); }
  .map-figure { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hero { padding: 56px 0 72px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-logo { width: 160px; order: -1; border-radius: 32px; margin-top: 0; }
  .nav { display: none; }
  .grid-4, .grid-2 { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .wrap { padding: 0 16px; }
  .radio { padding: 22px; }
}
