:root {
  --bg: #07090C;
  --panel: #0C1117;
  --panel-2: #10161E;
  --line: #1A2028;
  --line-2: #242C36;
  --fg: #E6EDF3;
  --muted: #6B7683;
  --dim: #3D4651;
  --accent: #5BF29C;
  --accent-dim: #1F6B44;
  --warn: #F2C94C;
  --danger: #F26B5B;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* ============ GLOBAL FRAME ============ */
.frame {
  min-height: 100vh;
  position: relative;
  padding: 0;
}
.frame::before,
.frame::after {
  content: '';
  position: fixed;
  left: 40px;
  right: 40px;
  height: 1px;
  background: var(--line);
  z-index: 1;
  pointer-events: none;
}
.frame::before { top: 68px; }
.frame::after { bottom: 68px; }

.side-rail {
  position: fixed;
  top: 0; bottom: 0;
  width: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--dim);
  letter-spacing: 0.15em;
  z-index: 2;
  pointer-events: none;
}
.side-rail.left { left: 0; border-right: 1px solid var(--line); }
.side-rail.right { right: 0; border-left: 1px solid var(--line); }
.side-rail .vtext {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* ============ TOP NAV ============ */
.topbar {
  position: sticky;
  top: 0;
  height: 68px;
  display: flex;
  align-items: center;
  padding: 0 64px;
  background: rgba(7, 9, 12, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.logo-mark {
  width: 22px;
  height: 22px;
  position: relative;
}
.logo-mark svg { display: block; }
.logo-name { color: var(--fg); }
.logo-name .dim { color: var(--muted); }

.nav {
  display: flex;
  gap: 36px;
  margin-left: 64px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav a {
  color: var(--muted);
  padding: 6px 0;
  position: relative;
  transition: color 0.15s;
}
.nav a:hover { color: var(--fg); }
.nav a.active { color: var(--fg); }
.nav a.active::before {
  content: '';
  position: absolute;
  left: -14px; top: 50%;
  width: 6px; height: 1px;
  background: var(--accent);
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -22px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s;
}
.nav a:hover::after { transform: scaleX(1); }

.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}
.status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--accent);
  color: #041C10;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--accent);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: filter 0.15s, transform 0.1s;
  cursor: pointer;
}
.cta:hover { filter: brightness(1.1); }
.cta:active { transform: translateY(1px); }
.cta.ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line-2);
  clip-path: none;
}
.cta.ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ============ HERO ============ */
.hero {
  padding: 72px 64px 80px;
  display: grid;
  grid-template-columns: minmax(380px, 1fr) 1.3fr;
  gap: 48px;
  align-items: center;
  position: relative;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 28px;
}
.eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--accent);
}
.hero h1 {
  font-size: clamp(40px, 4.6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin-bottom: 28px;
}
.hero h1 .accent { color: var(--accent); }
.hero h1 .outline {
  -webkit-text-stroke: 1px var(--fg);
  color: transparent;
}
.hero p.lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 460px;
  margin-bottom: 36px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 44px;
}
.meta-row {
  display: flex;
  gap: 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}
.meta-row .k { color: var(--fg); margin-right: 6px; }

/* ============ MAP PANEL ============ */
.map-panel {
  position: relative;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(91,242,156,0.03), transparent 60%),
    var(--panel);
  padding: 20px;
  aspect-ratio: 16 / 11;
}
.map-panel::before,
.map-panel::after,
.map-panel .c-tl,
.map-panel .c-tr,
.map-panel .c-bl,
.map-panel .c-br {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  border-color: var(--accent);
  border-style: solid;
  border-width: 0;
}
.map-panel::before { top: -1px; left: -1px; border-top-width: 1px; border-left-width: 1px; }
.map-panel::after  { top: -1px; right: -1px; border-top-width: 1px; border-right-width: 1px; }
.map-panel .c-bl   { bottom: -1px; left: -1px; border-bottom-width: 1px; border-left-width: 1px; }
.map-panel .c-br   { bottom: -1px; right: -1px; border-bottom-width: 1px; border-right-width: 1px; }

.map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.map-header .ticks {
  display: flex;
  gap: 2px;
}
.map-header .ticks span {
  width: 4px; height: 10px; background: var(--line-2);
}
.map-header .ticks span.on { background: var(--accent); }

.map-wrap {
  position: relative;
  width: 100%;
  height: calc(100% - 80px);
}
.map-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.continent {
  fill: none;
  stroke: #2A3340;
  stroke-width: 0.6;
}
.continent.fill {
  fill: #0F1720;
  stroke: #263141;
  stroke-width: 0.4;
  /* non-zero even-odd rule lets nested rings render correctly from Natural Earth data */
  fill-rule: evenodd;
  vector-effect: non-scaling-stroke;
}
/* Country border overlay (drawn after the land fill) — subtle hairlines so the HUD feel stays. */
.country-stroke {
  fill: none;
  stroke: #1B2530;
  stroke-width: 0.35;
  stroke-linejoin: round;
  stroke-linecap: round;
  opacity: 0.85;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}
.grid-line {
  stroke: #151C25;
  stroke-width: 0.4;
}
.city-node {
  cursor: pointer;
}
.city-dot {
  fill: var(--accent);
}
.city-ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 0.8;
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
}
.city-node.active .city-ring {
  animation: ringPulse 2.2s ease-out infinite;
}
@keyframes ringPulse {
  0% { opacity: 0.9; transform: scale(0.4); }
  100% { opacity: 0; transform: scale(3.2); }
}
.city-node:hover .city-dot {
  fill: #fff;
}
.city-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 7px;
  fill: var(--muted);
  letter-spacing: 0.1em;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
}
.city-node.active .city-label,
.city-node:hover .city-label {
  opacity: 1;
  fill: var(--fg);
}

.connection-arc {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
  stroke-dasharray: 3 3;
  opacity: 0.85;
  animation: dashmove 1.2s linear infinite;
  filter: drop-shadow(0 0 3px rgba(91,242,156,0.6));
}
@keyframes dashmove {
  to { stroke-dashoffset: -12; }
}

.map-footer {
  position: absolute;
  left: 20px; right: 20px; bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
}
.readout {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.readout .big {
  font-size: 22px;
  color: var(--accent);
  letter-spacing: 0;
  font-weight: 500;
}
.readout .label { color: var(--dim); font-size: 9px; }

/* Country selector HUD */
.country-tag {
  position: absolute;
  background: rgba(13, 17, 23, 0.95);
  border: 1px solid var(--accent);
  padding: 8px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--fg);
  text-transform: uppercase;
  pointer-events: none;
  transition: left 0.4s ease, top 0.4s ease;
  z-index: 3;
  min-width: 140px;
}
.country-tag::before {
  content: '';
  position: absolute;
  top: -5px; left: -5px;
  width: 8px; height: 8px;
  border-top: 1px solid var(--accent);
  border-left: 1px solid var(--accent);
}
.country-tag::after {
  content: '';
  position: absolute;
  bottom: -5px; right: -5px;
  width: 8px; height: 8px;
  border-bottom: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
}
.country-tag .ct-name { color: var(--fg); font-weight: 600; }
.country-tag .ct-meta { color: var(--muted); margin-top: 2px; font-size: 9px; }
.country-tag .ct-ping { color: var(--accent); }

/* ============ FEATURE STRIP ============ */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr) minmax(140px, auto);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 0 64px;
}
.feature-cell {
  padding: 28px 28px;
  border-right: 1px solid var(--line);
  position: relative;
}
.feature-cell:last-child { border-right: none; }
.feature-cell .idx {
  position: absolute;
  top: 14px; right: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--dim);
  letter-spacing: 0.1em;
}
.feature-cell h4 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.feature-cell p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.feature-cell .ico {
  width: 18px; height: 18px;
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent);
}
.protocol-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  gap: 10px;
}
.protocol-list span { color: var(--fg); }
.protocol-list span::before { content: '/ '; color: var(--accent); }

/* ============ SECTIONS ============ */
section.block {
  padding: 120px 64px;
  border-top: 1px solid var(--line);
  position: relative;
}
.section-head {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  margin-bottom: 64px;
  align-items: baseline;
}
.section-head .sec-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.section-head .sec-num::before {
  content: '';
  display: inline-block;
  width: 24px; height: 1px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 10px;
}
.section-head h2 {
  font-size: clamp(32px, 3.4vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 500;
  max-width: 900px;
}
.section-head h2 .outline {
  -webkit-text-stroke: 1px var(--fg);
  color: transparent;
}

/* STATS */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.stat {
  background: var(--bg);
  padding: 40px 28px;
  position: relative;
}
.stat .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 48px;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 8px;
  font-weight: 500;
}
.stat .num .unit { color: var(--accent); font-size: 28px; }
.stat .lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.stat::after {
  content: '';
  position: absolute;
  top: 14px; right: 14px;
  width: 6px; height: 6px;
  border: 1px solid var(--accent);
}

/* FEATURES 3-COL */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}
.feature-card {
  padding: 40px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  min-height: 280px;
}
.feature-card:nth-child(3n) { border-right: none; }
.feature-card:nth-last-child(-n+3) { border-bottom: none; }
.feature-card .fi-idx {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--dim);
  letter-spacing: 0.2em;
  margin-bottom: 36px;
  display: flex;
  justify-content: space-between;
}
.feature-card .fi-idx .tag { color: var(--accent); }
.feature-card h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
  line-height: 1.15;
}
.feature-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 320px;
}
.feature-card .art {
  position: absolute;
  right: 24px; bottom: 24px;
  color: var(--accent-dim);
  opacity: 0.7;
}

/* PRICING */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.plan {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 32px 28px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.plan.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(91,242,156,0.04), transparent 60%), var(--panel);
}
.plan .tier {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.plan.featured .tier { color: var(--accent); }
.plan .price {
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}
.plan .price .per {
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
}
.plan .tagline {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.plan ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  margin-bottom: 28px;
  flex: 1;
}
.plan li {
  display: flex;
  gap: 10px;
  color: var(--fg);
  align-items: flex-start;
}
.plan li::before {
  content: '';
  flex-shrink: 0;
  width: 14px; height: 14px;
  margin-top: 3px;
  border: 1px solid var(--accent);
  background: linear-gradient(45deg, transparent 45%, var(--accent) 45%, var(--accent) 55%, transparent 55%);
}
.plan li.off { color: var(--dim); }
.plan li.off::before { border-color: var(--line-2); background: none; }
.plan .corner-label {
  position: absolute;
  top: -1px; right: -1px;
  background: var(--accent);
  color: #041C10;
  padding: 6px 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
}

/* TESTIMONIAL / QUOTE BAND */
.quote-band {
  padding: 100px 64px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.quote-band blockquote {
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 400;
  max-width: 560px;
}
.quote-band blockquote::before {
  content: '"';
  display: block;
  font-size: 80px;
  color: var(--accent);
  line-height: 0.5;
  margin-bottom: 24px;
  font-family: 'JetBrains Mono', monospace;
}
.quote-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 28px;
}
.quote-meta .name { color: var(--fg); }

.review-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.review {
  border: 1px solid var(--line);
  padding: 20px 22px;
  background: var(--panel);
}
.review .stars {
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.2em;
  font-size: 12px;
  margin-bottom: 10px;
}
.review p {
  font-size: 14px;
  color: var(--fg);
  margin-bottom: 10px;
  line-height: 1.5;
}
.review .r-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* DOWNLOAD BAND */
.download-band {
  padding: 140px 64px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.download-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 40%, rgba(91,242,156,0.08), transparent 50%),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(91,242,156,0.04) 39px 40px);
  pointer-events: none;
}
.download-band > * { position: relative; z-index: 1; }
.download-band h2 {
  font-size: clamp(40px, 4vw, 64px);
  line-height: 1;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin-bottom: 24px;
}
.download-band h2 .accent { color: var(--accent); }
.download-band p {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 32px;
  max-width: 420px;
}
.dl-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.dl-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border: 1px solid var(--line-2);
  background: var(--panel);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.dl-btn:hover { border-color: var(--accent); color: var(--accent); }
.dl-btn .os { font-size: 9px; color: var(--muted); display: block; margin-bottom: 2px; letter-spacing: 0.2em; }
.dl-btn:hover .os { color: var(--accent); }

.phone-mock {
  position: relative;
  width: 280px;
  height: 560px;
  margin-left: auto;
  border: 1px solid var(--line-2);
  border-radius: 36px;
  padding: 14px;
  background: linear-gradient(180deg, #0D1117, #050709);
  box-shadow:
    0 0 0 1px rgba(91,242,156,0.05),
    0 40px 80px rgba(0,0,0,0.5);
}
.phone-mock .notch {
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 24px;
  background: #000;
  border-radius: 14px;
  z-index: 3;
}
.phone-screen {
  background: #07090C;
  border-radius: 26px;
  height: 100%;
  padding: 44px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
  position: relative;
}

/* FOOTER */
footer.foot {
  border-top: 1px solid var(--line);
  padding: 64px 64px 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
}
footer.foot .f-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--dim);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
footer.foot ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
footer.foot a {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.15s;
}
footer.foot a:hover { color: var(--accent); }
.foot-bottom {
  padding: 24px 64px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* TICKER */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--panel);
  padding: 14px 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  display: flex;
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  gap: 48px;
  padding-right: 48px;
  animation: tickerMove 40s linear infinite;
}
.ticker-track .sep { color: var(--accent); }
@keyframes tickerMove {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================
   RESPONSIVE
   ── Desktop:  ≥ 1200px  (default rules)
   ── Laptop:   1024–1199
   ── Tablet:   720–1023
   ── Phone:    ≤ 719
   ============================================ */

/* LAPTOP (≤1199) ──────────────────────────── */
@media (max-width: 1199px) {
  .hero { gap: 32px; padding: 56px 48px 64px; grid-template-columns: minmax(320px, 1fr) 1.1fr; }
  .hero h1 { font-size: clamp(38px, 5.2vw, 60px); }
  .feature-strip { grid-template-columns: repeat(2, 1fr); margin: 0 48px; }
  .feature-strip .feature-cell:nth-child(2n) { border-right: none; }
  .feature-strip .feature-cell { border-bottom: 1px solid var(--line); }
  .feature-strip .protocol-list { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 28px; border-top: 1px solid var(--line); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card:nth-child(3n) { border-right: 1px solid var(--line); }
  .feature-card:nth-child(2n) { border-right: none; }
  .feature-card:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .feature-card:nth-last-child(-n+2) { border-bottom: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: 1fr; gap: 12px; }
  .quote-band, .download-band { grid-template-columns: 1fr; gap: 48px; }
  .phone-mock { margin: 0 auto; }
  footer.foot { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 56px 48px 36px; }
  .hero, section.block, .quote-band, .download-band { padding-left: 48px; padding-right: 48px; }
  .topbar { padding: 0 48px; }
  .foot-bottom { padding: 24px 48px; }
  .nav { gap: 22px; margin-left: 32px; }
  .side-rail { display: none; }
  .frame::before, .frame::after { left: 24px; right: 24px; }
  /* blog */
  .blog-hero, .blog-grid { padding-left: 48px; padding-right: 48px; }
  .blog-grid { grid-template-columns: 200px 1fr; gap: 40px; }
  .feature-post { grid-template-columns: 1fr; }
  .feature-post .fp-art { min-height: 200px; border-left: none; border-top: 1px solid var(--line); }
  /* contact */
  .contact-hero, .contact-grid { padding-left: 48px; padding-right: 48px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-card { padding: 32px; }
}

/* TABLET (≤1023) ──────────────────────────── */
@media (max-width: 1023px) {
  /* Nav — collapse to icon menu */
  .topbar { padding: 0 32px; height: 60px; position: relative; }
  .nav {
    position: absolute;
    top: 60px; left: 0; right: 0;
    flex-direction: column;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    padding: 12px 32px;
    gap: 0;
    margin: 0;
    display: none;
    z-index: 60;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: none; }
  .nav a::after { display: none; }
  .nav a.active::before { left: auto; right: 0; }
  .topbar-right .status-pill { display: none; }
  .nav-toggle {
    display: inline-flex !important;
    flex-direction: column;
    gap: 4px;
    margin-left: 16px;
    padding: 10px;
    border: 1px solid var(--line);
    background: transparent;
    cursor: pointer;
  }
  .nav-toggle span { width: 16px; height: 1px; background: var(--fg); display: block; }

  /* Hero */
  .hero { grid-template-columns: 1fr; padding: 48px 32px 56px; gap: 40px; }
  .hero h1 { font-size: clamp(40px, 7vw, 56px); }
  .map-panel { aspect-ratio: 4 / 3; padding: 16px; }
  .map-footer { left: 16px; right: 16px; bottom: 16px; }
  .readout .big { font-size: 18px; }

  /* Strip */
  .feature-strip { grid-template-columns: repeat(2, 1fr); margin: 0 32px; }
  .feature-strip .protocol-list { flex-direction: row; gap: 20px; }

  /* Sections */
  section.block { padding: 80px 32px; }
  .section-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 40px; }
  .section-head h2 { font-size: clamp(30px, 5vw, 44px); }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card { border-right: none !important; min-height: 220px; padding: 32px 28px; }
  .feature-card:nth-last-child(1) { border-bottom: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 32px 24px; }
  .stat .num { font-size: 40px; }
  .quote-band { padding: 72px 32px; gap: 40px; grid-template-columns: 1fr; }
  .quote-band blockquote { font-size: 22px; }
  .download-band { padding: 80px 32px; }
  .phone-mock { width: 240px; height: 480px; }

  /* Footer */
  footer.foot { grid-template-columns: 1fr 1fr; padding: 48px 32px 32px; gap: 40px; }
  footer.foot > div:first-child { grid-column: 1 / -1; }
  .foot-bottom { padding: 20px 32px; flex-wrap: wrap; gap: 12px; }

  /* Blog */
  .blog-hero { padding: 56px 32px 40px; }
  .blog-grid { grid-template-columns: 1fr; gap: 32px; padding: 48px 32px 80px; }
  .blog-side { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; }
  .feature-post .fp-text { padding: 32px 28px; }
  .feature-post .fp-text h2 { font-size: 28px; }
  .posts { grid-template-columns: 1fr; }
  .post { border-right: none !important; }
  .post:last-child { border-bottom: none; }
  .newsletter { flex-direction: column; align-items: flex-start; padding: 28px; }
  .newsletter form { min-width: 0; width: 100%; }

  /* Contact */
  .contact-hero { padding: 56px 32px 40px; }
  .contact-grid { padding: 48px 32px 80px; grid-template-columns: 1fr; }
  .contact-card { padding: 28px; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-foot { flex-direction: column-reverse; align-items: stretch; gap: 16px; }
  .form-foot .cta { justify-content: center; }
  .office-strip { grid-template-columns: 1fr; }
  .office { border-right: none; border-bottom: 1px solid var(--line); }
  .office:last-child { border-bottom: none; }

  /* Frame rails hidden already via 1199 breakpoint */
  .frame::before { top: 60px; }
}

/* PHONE (≤719) ────────────────────────────── */
@media (max-width: 719px) {
  html, body { font-size: 15px; }
  .topbar { padding: 0 20px; }
  .logo { font-size: 13px; }
  .topbar-right .cta { padding: 10px 14px; font-size: 11px; }
  .topbar-right .cta svg { display: none; }
  .nav { padding: 12px 20px; }

  .hero { padding: 36px 20px 48px; gap: 32px; }
  .eyebrow { font-size: 10px; margin-bottom: 20px; }
  .hero h1 { font-size: clamp(34px, 9vw, 44px); margin-bottom: 20px; }
  .hero p.lede { font-size: 15px; margin-bottom: 28px; }
  .hero-ctas { flex-direction: column; align-items: stretch; gap: 10px; margin-bottom: 32px; }
  .hero-ctas .cta { justify-content: center; }
  .meta-row { flex-direction: column; gap: 10px; font-size: 10px; }

  .map-panel { padding: 14px; aspect-ratio: 5 / 4; }
  .map-header { font-size: 9px; flex-wrap: wrap; gap: 8px; }
  .map-header .ticks { display: none; }
  .city-label { display: none; }
  .country-tag { min-width: 110px; padding: 6px 10px; font-size: 9px; }
  .map-footer { bottom: 12px; left: 14px; right: 14px; font-size: 9px; }
  .readout .big { font-size: 16px; }
  .readout .label { font-size: 8px; }

  .ticker { padding: 10px 0; font-size: 10px; }

  .feature-strip { grid-template-columns: 1fr; margin: 0 20px; }
  .feature-strip .feature-cell { border-right: none; padding: 24px 20px; }
  .feature-strip .protocol-list { flex-direction: row; flex-wrap: wrap; padding: 20px; }

  section.block { padding: 64px 20px; }
  .section-head h2 { font-size: clamp(26px, 8vw, 36px); }
  .sec-num { font-size: 10px; }

  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 24px 18px; }
  .stat .num { font-size: 32px; }
  .stat .num .unit { font-size: 18px; }
  .stat .lbl { font-size: 9px; }

  .feature-card { padding: 28px 22px; min-height: 0; }
  .feature-card .fi-idx { margin-bottom: 24px; }
  .feature-card h3 { font-size: 20px; }
  .feature-card .art { display: none; }

  .pricing { grid-template-columns: 1fr; gap: 12px; }
  .plan { padding: 28px 22px 24px; }
  .plan .price { font-size: 40px; }

  .quote-band { padding: 56px 20px; }
  .quote-band blockquote { font-size: 20px; }
  .quote-band blockquote::before { font-size: 60px; }

  .download-band { padding: 64px 20px; }
  .download-band h2 { font-size: clamp(30px, 8vw, 44px); }
  .dl-row { flex-direction: column; align-items: stretch; }
  .dl-btn { justify-content: flex-start; }
  .phone-mock { width: 100%; max-width: 260px; height: auto; aspect-ratio: 1 / 2; margin: 0 auto; }

  footer.foot { grid-template-columns: 1fr; padding: 40px 20px 28px; gap: 28px; }
  footer.foot > div:first-child { grid-column: auto; }
  .foot-bottom { padding: 16px 20px; font-size: 9px; }

  /* Blog */
  .blog-hero { padding: 40px 20px 32px; }
  .blog-hero h1 { font-size: clamp(32px, 9vw, 44px); }
  .blog-hero .meta-strip { flex-direction: column; gap: 10px; font-size: 10px; }
  .blog-grid { padding: 40px 20px 64px; gap: 28px; }
  .blog-side { grid-template-columns: 1fr; gap: 24px; }
  .feature-post .fp-text { padding: 24px 22px; }
  .feature-post .fp-text h2 { font-size: 22px; }
  .feature-post .fp-art { min-height: 160px; }
  .post { padding: 24px 22px; }
  .post h3 { font-size: 18px; }
  .newsletter { padding: 22px; }
  .newsletter h3 { font-size: 18px; }
  .newsletter form { flex-direction: column; }

  /* Contact */
  .contact-hero { padding: 40px 20px 32px; }
  .contact-hero h1 { font-size: clamp(32px, 9vw, 44px); }
  .contact-grid { padding: 40px 20px 64px; }
  .contact-card { padding: 22px; }
  .form-grid { grid-template-columns: 1fr; gap: 16px; }
  .chips { gap: 6px; }
  .chip { padding: 8px 10px; font-size: 10px; }
  .channel { padding: 20px; }
  .pgp-card pre { font-size: 9px; }
  .office { padding: 22px; }
  .office .coords { top: 20px; right: 20px; font-size: 8px; }

  /* Hide obsolete rules from the old block below */
}

/* Old catch-all kept as fallback for 1100–1199 edge */
@media (max-width: 1100px) and (min-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .foot-bottom { padding: 24px 32px; }
  .nav { gap: 18px; margin-left: 28px; }
  .side-rail { display: none; }
  .frame::before, .frame::after { left: 16px; right: 16px; }
}
