/* cdn.pizza — public site design system (light-first) */

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/jetbrains-mono-var.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand: #ff6b35;
  --brand-strong: #e85a24;
  --brand-soft: #fff1ea;
  --brand-line: #f6d9c9;
  --ink: #12151c;
  --ink-2: #2e3542;
  --muted: #5a6272;
  --line: #e4e7ed;
  --bg: #ffffff;
  --bg-soft: #f6f7fa;
  --ok: #16a34a;
  --warn: #d97706;
  --bad: #dc2626;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 12px 32px rgba(18, 21, 28, 0.07);
  --shadow-soft: 0 6px 18px rgba(18, 21, 28, 0.05);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  overflow-x: clip;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

img,
svg {
  max-width: 100%;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

.site-shell {
  width: min(calc(100% - 48px), 1180px);
  margin-inline: auto;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.site-header-inner {
  min-height: 68px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  display: block;
  width: 158px;
  height: auto;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.15s ease, background 0.15s ease;
}

.site-nav a:hover {
  color: var(--brand);
}

.site-nav a.active {
  color: var(--brand);
  background: var(--brand-soft);
}

.site-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switcher {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
}

.lang-switcher a {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: color 0.15s ease, background 0.15s ease;
}

.lang-switcher a:hover {
  color: var(--ink);
}

.lang-switcher a.active {
  background: var(--brand-soft);
  color: var(--brand);
}

.menu-button {
  display: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 10px 22px rgba(255, 107, 53, 0.24);
}

.btn.primary:hover {
  background: var(--brand-strong);
  border-color: var(--brand-strong);
}

.btn.secondary,
.btn.ghost {
  background: var(--bg);
  border-color: var(--line);
  color: var(--ink);
}

.btn.secondary:hover,
.btn.ghost:hover {
  border-color: var(--ink-2);
}

.btn.compact {
  min-height: 38px;
  padding: 9px 14px;
  font-size: 0.84rem;
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  align-items: center;
  gap: 48px;
  padding: 68px 0 60px;
}

.page-hero {
  padding: 64px 0 48px;
}

.hero h1,
.page-hero h1 {
  max-width: 640px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.4rem, 4.4vw, 3.8rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
}

.hero p,
.page-hero p,
.measure {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--ink-2);
  font-size: clamp(1.02rem, 1.35vw, 1.17rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.security-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.72fr);
  align-items: center;
  gap: 64px;
  padding: 68px 0 34px;
}

.security-hero-copy {
  min-width: 0;
}

.security-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  box-shadow: var(--shadow);
}

.security-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.security-panel h2,
.security-panel p {
  margin: 0;
}

.security-panel h2 {
  font-size: 1.08rem;
}

.security-panel-head span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ok);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
}

.security-panel-head i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.security-flow {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.security-flow-row {
  display: grid;
  grid-template-columns: minmax(76px, auto) 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.security-flow-row strong {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
}

.security-flow-row span {
  min-width: 0;
  color: var(--ink-2);
  font-weight: 650;
  text-align: right;
}

.security-panel > p {
  padding: 13px 14px;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius);
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 0.88rem;
  font-weight: 750;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 44px;
  max-width: 640px;
  border-block: 1px solid var(--line);
}

.proof-strip span {
  min-height: 68px;
  display: grid;
  place-items: center;
  padding: 12px 14px;
  border-right: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
}

.proof-strip span:last-child {
  border-right: 0;
}

/* ---------- Product preview ---------- */

.product-preview {
  position: relative;
}

.product-preview::before {
  content: '';
  position: absolute;
  inset: 8% 0 -4% 0;
  border-radius: 32px;
  background:
    radial-gradient(60% 60% at 30% 30%, rgba(255, 107, 53, 0.12), transparent 70%),
    radial-gradient(50% 50% at 75% 70%, rgba(18, 21, 28, 0.06), transparent 70%);
  pointer-events: none;
}

.preview-window {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.preview-top {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 46px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}

.preview-top span {
  margin-right: auto;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.preview-top span strong {
  color: var(--brand);
  font-weight: 800;
}

.preview-top i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
}

.preview-body {
  display: grid;
  grid-template-columns: 128px 1fr;
}

.preview-body aside {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 12px;
  border-right: 1px solid var(--line);
  background: var(--bg-soft);
}

.preview-body aside span {
  padding: 8px 10px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.preview-body aside span:first-child {
  background: var(--brand-soft);
  color: var(--brand);
}

.preview-body main {
  padding: 20px;
}

.preview-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.preview-row strong {
  font-size: 0.95rem;
}

.preview-row small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ok);
  font-size: 0.78rem;
  font-weight: 700;
}

.preview-row small::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
}

.preview-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.preview-metrics div {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.preview-metrics b {
  display: block;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.preview-metrics span {
  color: var(--muted);
  font-size: 0.74rem;
}

.preview-chart {
  display: block;
  width: 100%;
  margin-top: 22px;
  color: var(--brand);
}

/* ---------- Sections ---------- */

.section {
  padding: 64px 0;
}

.section.soft {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

.section h2,
.cta-band h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.65rem, 2.5vw, 2.25rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section h2.center {
  text-align: center;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px;
}

.section-head p {
  max-width: 600px;
  margin: 0;
  color: var(--muted);
}

.steps,
.use-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 36px;
}

.use-grid {
  grid-template-columns: repeat(4, 1fr);
}

.steps article,
.use-grid article {
  padding: 26px;
  border-right: 1px solid var(--line);
}

.steps article:first-child,
.use-grid article:first-child {
  padding-left: 0;
}

.steps article:last-child,
.use-grid article:last-child {
  border-right: 0;
}

.steps strong {
  color: var(--brand);
  font-family: var(--mono);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1;
}

h3 {
  margin: 12px 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

p {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1fr);
  align-items: center;
  gap: 56px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--brand);
  font-weight: 700;
}

.text-link:hover {
  color: var(--brand-strong);
}

.text-link::after {
  content: '→';
}

/* ---------- Cards ---------- */

.map-card,
.snapshot-panel,
.table-card,
.tld-panel,
.trust-box,
.code-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.map-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
}

.map-viewport {
  position: relative;
}

.map-card svg {
  display: block;
  width: 100%;
  height: auto;
}

.world-dots circle {
  fill: #c8cfdb;
  opacity: 0.78;
}

.pop-point {
  fill: var(--ink-2);
  stroke: #fff;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.map-marker {
  cursor: pointer;
  outline: none;
}

.map-hit {
  fill: transparent;
  pointer-events: all;
  stroke: transparent;
  stroke-width: 2;
  transition: fill 0.15s ease, stroke 0.15s ease;
}

.live-map-point {
  fill: var(--ink-2);
  stroke: #fff;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.live-map-point.operational {
  fill: var(--ok);
}

.live-map-point.degraded,
.live-map-point.maintenance {
  fill: var(--warn);
}

.live-map-point.outage {
  fill: var(--bad);
}

.map-marker .pop-point,
.map-marker .live-map-point {
  transition: filter 0.15s ease, stroke 0.15s ease, stroke-width 0.15s ease;
}

.map-marker:hover .pop-point,
.map-marker:hover .live-map-point,
.map-marker:focus-visible .pop-point,
.map-marker:focus-visible .live-map-point,
.map-marker.active .pop-point,
.map-marker.active .live-map-point {
  filter: drop-shadow(0 4px 8px rgba(18, 21, 28, 0.22));
  stroke: var(--brand);
  stroke-width: 5;
}

.map-marker:hover .map-hit,
.map-marker:focus-visible .map-hit {
  fill: rgba(255, 112, 67, 0.08);
}

.map-marker.active .map-hit {
  fill: rgba(255, 112, 67, 0.12);
  stroke: rgba(255, 112, 67, 0.34);
}

.map-legend {
  position: absolute;
  left: 24px;
  bottom: 20px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--ink);
}

.map-legend strong {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.map-legend span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.map-detail {
  display: grid;
  grid-template-columns: minmax(150px, 0.65fr) 1.35fr;
  gap: 6px 18px;
  align-items: center;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--ok);
  border-radius: calc(var(--radius) - 2px);
  background: rgba(255, 255, 255, 0.94);
}

.map-detail[hidden] {
  display: none;
}

.map-detail.degraded,
.map-detail.maintenance {
  border-left-color: var(--warn);
}

.map-detail.outage {
  border-left-color: var(--bad);
}

.map-detail span {
  display: block;
  grid-column: 1;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.map-detail strong {
  display: block;
  grid-column: 1;
  color: var(--ink);
  font-size: 1.05rem;
}

.map-detail p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.84rem;
  font-weight: 600;
}

.map-detail p:first-of-type {
  grid-column: 2;
  grid-row: 1;
}

.map-detail p:last-of-type {
  grid-column: 2;
  grid-row: 2;
}

/* ---------- POP cards & index ---------- */

.flag {
  flex: none;
  width: 18px;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(18, 21, 28, 0.14);
}

.pop-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pop-card-head h3 {
  flex: 1;
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.pop-card-head .status-dot {
  margin-left: auto;
}

.pop-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  margin-left: auto;
  padding: 3px 0;
  color: var(--ok);
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.pop-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.pop-status.degraded,
.pop-status.maintenance {
  color: var(--warn);
}

.pop-status.outage {
  color: var(--bad);
}

.pop-card-meta {
  margin: 8px 0 0;
  font-size: 0.9rem;
}

.pop-card-tags {
  margin: 12px 0 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.tier-badge {
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.tier-badge.margherita {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink-2);
}

.tier-badge.diavola {
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  color: var(--brand-strong);
}

.tier-badge.capricciosa {
  background: #f4efff;
  border: 1px solid #d9ccf5;
  color: #6941a5;
}

.pop-price {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.pop-card-uptime {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.status-dot.operational {
  background: var(--ok);
}

.status-dot.degraded,
.status-dot.maintenance {
  background: var(--warn);
}

.status-dot.outage {
  background: var(--bad);
}

/* ---------- Live status strip ---------- */

.live-status-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 8px auto 40px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--line);
  box-shadow: var(--shadow-soft);
}

.live-status-strip > div {
  min-width: 0;
  padding: 16px 18px;
  background: var(--bg);
}

.live-status-strip .strip-label {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.live-status-strip strong {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.status-dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted);
}

.status-dot.operational {
  background: var(--ok);
}

.status-dot.degraded,
.status-dot.maintenance {
  background: var(--warn);
}

.status-dot.outage {
  background: var(--bad);
}

/* ---------- Beta / pricing band ---------- */

.beta-pricing {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

.beta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.price-panel {
  padding-left: 64px;
  border-left: 1px solid var(--line);
}

.price-panel ul,
.security-list,
.snapshot-panel ul {
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.price-panel li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  color: var(--ink-2);
  font-weight: 600;
}

.price-panel li::before {
  content: '';
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

/* ---------- Pricing page ---------- */

.pricing-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
  align-items: start;
  gap: 24px;
  padding-top: 24px;
}

.pricing-card {
  padding: 24px;
}

.pricing-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.pricing-card-head h2,
.pricing-card-head p {
  margin: 0;
}

.pricing-card-head p {
  margin-top: 6px;
  color: var(--muted);
}

.pricing-card-head span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid var(--brand-line);
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
}

.pricing-card table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 6px;
}

.pricing-card > p {
  margin: 18px 0;
  color: var(--ink-2);
  font-weight: 650;
}

.pricing-summary {
  display: grid;
  gap: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  box-shadow: var(--shadow-soft);
}

.pricing-summary h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.pricing-summary div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.pricing-summary span {
  color: var(--muted);
  font-weight: 650;
}

.pricing-summary strong {
  color: var(--ink);
  font-weight: 800;
  text-align: right;
}

/* ---------- Terminal / code ---------- */

.terminal {
  margin: 0;
  padding: 22px 24px;
  overflow: auto;
  border-radius: var(--radius-lg);
  background: #10131a;
  color: #e8ecf4;
  box-shadow: var(--shadow);
}

.terminal code {
  font-family: var(--mono);
  font-size: 0.88rem;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.terminal .prompt {
  color: var(--brand);
  font-weight: 600;
}

.dev-strip {
  align-items: start;
}

.code-card code {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 880px;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 700;
}

.faq p {
  margin-bottom: 0;
  max-width: 720px;
}

/* ---------- Network page ---------- */

.network-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 24px;
  align-items: start;
}

.network-map-section {
  padding-top: 28px;
  padding-bottom: 34px;
}

.snapshot-panel,
.table-card,
.tld-panel {
  padding: 26px;
}

.table-card,
.tld-panel {
  overflow-x: auto;
}

.network-map {
  margin-top: 16px;
}

.snapshot-panel h2 {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.snapshot-panel ul {
  max-height: 420px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.snapshot-panel li {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
}

.snapshot-panel li:last-child {
  border-bottom: 0;
}

.snapshot-panel li .dot,
.capability-list article span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
}

.snapshot-panel li .dot.degraded,
.snapshot-panel li .dot.maintenance {
  background: var(--warn);
}

.snapshot-panel li .dot.outage {
  background: var(--bad);
}

.snapshot-panel li small {
  color: var(--ok);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

.snapshot-panel li:has(.dot.degraded) small,
.snapshot-panel li:has(.dot.maintenance) small {
  color: var(--warn);
}

.snapshot-panel li:has(.dot.outage) small {
  color: var(--bad);
}

.pop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.pop-grid article {
  position: relative;
  overflow: hidden;
  min-height: 154px;
  padding: 20px 20px 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.pop-grid article::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--ok);
}

.pop-grid article.degraded::before,
.pop-grid article.maintenance::before {
  background: var(--warn);
}

.pop-grid article.outage::before {
  background: var(--bad);
}

.network-pop-section {
  padding-top: 40px;
}

/* ---------- Developers page ---------- */

.dev-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
  gap: 40px;
}

.capability-list {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
}

.capability-list article {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}

.capability-list article:last-child {
  border-bottom: 0;
}

.capability-list p {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}

.muted {
  color: var(--muted);
}

.code-card,
.trust-box {
  padding: 26px;
}

.trust-box a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: var(--ink-2);
  font-weight: 600;
}

.trust-box a::before {
  content: '→';
  color: var(--brand);
}

.trust-box a:hover {
  color: var(--brand);
}

/* ---------- Tables ---------- */

.pricing-table table,
.tld-table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.tld-table td:first-child {
  font-weight: 700;
  color: var(--ink);
}

.tld-table td {
  font-variant-numeric: tabular-nums;
}

.tld-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.tld-toolbar input {
  width: min(100%, 320px);
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 14px;
  background: var(--bg);
  color: var(--ink);
}

.tld-toolbar input::placeholder {
  color: var(--muted);
}

.tld-toolbar > span {
  color: var(--muted);
  font-size: 0.88rem;
  white-space: nowrap;
}

.tld-toolbar strong {
  color: var(--ink);
}

.tld-more td {
  padding: 0;
  border-bottom: 0;
}

.tld-more button {
  width: 100%;
  padding: 13px;
  border: 0;
  background: var(--bg-soft);
  color: var(--brand);
  font-weight: 700;
  cursor: pointer;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.tld-more button:hover {
  background: var(--brand-soft);
}

/* ---------- Security page ---------- */

.security-checks-section {
  padding-top: 16px;
}

.security-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.security-list article {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 20px;
  min-height: 126px;
  overflow: hidden;
  padding: 22px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.security-list article::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--brand);
}

.security-list p,
.security-list h3 {
  margin: 0;
}

.security-list p {
  margin-top: 4px;
  color: var(--muted);
}

.security-list strong {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.12);
  color: var(--ok);
  font-size: 0.85rem;
}

/* ---------- CTA band ---------- */

.cta-band {
  width: min(calc(100% - 48px), 1180px);
  margin: 32px auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 36px;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-lg);
  background: var(--brand-soft);
}

.cta-band p {
  margin: 8px 0 0;
  color: var(--ink-2);
}

.cta-band .btn {
  flex: none;
  white-space: nowrap;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) repeat(3, minmax(120px, 180px));
  gap: 32px;
}

.footer-brand img {
  width: 150px;
}

.footer-grid p {
  max-width: 320px;
  font-size: 0.92rem;
}

.footer-grid strong {
  display: block;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 0.9rem;
}

.footer-grid a {
  display: block;
  margin: 8px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-grid a:hover {
  color: var(--brand);
}

.footer-note {
  color: var(--muted);
  font-size: 0.86rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 1040px) {
  .site-header-inner {
    grid-template-columns: auto auto;
  }

  .menu-button {
    display: inline-flex;
    justify-self: end;
  }

  .site-nav,
  .site-actions {
    grid-column: 1 / -1;
    display: none;
  }

  .site-header.is-open .site-nav,
  .site-header.is-open .site-actions {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    padding-bottom: 12px;
  }

  .hero,
  .security-hero,
  .split,
  .network-grid,
  .dev-grid,
  .pricing-overview {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 48px 0;
  }

  .steps,
  .use-grid,
  .beta-grid,
  .pop-grid,
  .live-status-strip,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .steps article,
  .use-grid article {
    padding-left: 0;
  }

  .price-panel {
    padding-left: 0;
    border-left: 0;
  }

  .split {
    gap: 32px;
  }

  .security-hero {
    gap: 34px;
    padding-bottom: 24px;
  }
}

@media (max-width: 720px) {
  .site-shell,
  .cta-band {
    width: min(calc(100% - 28px), 1180px);
  }

  .hero,
  .page-hero,
  .section {
    padding: 44px 0;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .page-hero h1 {
    font-size: 2.1rem;
  }

  .security-hero {
    padding: 44px 0 18px;
  }

  .hero-actions,
  .cta-band {
    align-items: stretch;
    flex-direction: column;
  }

  .cta-band {
    padding: 26px;
  }

  .cta-band .btn,
  .hero-actions .btn {
    width: 100%;
  }

  .proof-strip {
    grid-template-columns: 1fr 1fr;
  }

  .proof-strip span {
    min-height: 58px;
    border-bottom: 1px solid var(--line);
  }

  .proof-strip span:nth-child(2n) {
    border-right: 0;
  }

  .proof-strip span:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .preview-body {
    grid-template-columns: 1fr;
  }

  .preview-body aside {
    display: none;
  }

  .preview-metrics,
  .steps,
  .use-grid,
  .security-list,
  .beta-grid,
  .pop-grid,
  .live-status-strip,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .steps article,
  .use-grid article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 20px 0;
  }

  .steps article:last-child,
  .use-grid article:last-child {
    border-bottom: 0;
  }

  .brand img {
    width: 136px;
  }

  .map-legend {
    position: static;
    margin-top: 10px;
  }

  .map-detail {
    grid-template-columns: 1fr;
    margin-top: 12px;
  }

  .map-detail span,
  .map-detail strong,
  .map-detail p:first-of-type,
  .map-detail p:last-of-type {
    grid-column: 1;
    grid-row: auto;
  }

  .live-map-panel,
  .snapshot-panel,
  .table-card,
  .tld-panel,
  .code-card,
  .trust-box {
    padding: 18px;
  }

  .security-panel {
    padding: 18px;
  }

  .security-flow-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .security-flow-row span {
    text-align: left;
  }

  .security-list article {
    min-height: 0;
    padding: 20px 18px 20px 22px;
  }

  .pricing-card,
  .pricing-summary {
    padding: 18px;
  }

  .pricing-card-head {
    display: block;
  }

  .pricing-card-head span {
    margin-top: 12px;
  }

  .pricing-summary div {
    display: block;
  }

  .pricing-summary strong {
    display: block;
    margin-top: 3px;
    text-align: left;
  }

  .section-head,
  .tld-toolbar {
    display: block;
  }

  .tld-toolbar input {
    width: 100%;
    margin-bottom: 10px;
  }

  table {
    font-size: 0.86rem;
  }

  th,
  td {
    padding: 11px 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
