:root {
  --navy: #003b73;
  --navy-deep: #00264d;
  --header-bg: #003b73;
  --azure: #0084ff;
  --azure-deep: #0066cc;
  --azure-soft: #e8f3ff;
  --orange: #ff7a00;
  --gold: #ffb800;
  --ink: #0b1b2b;
  --slate: #555555;
  --paper: #f5f7fb;
  --white: #ffffff;
  --surface: #ffffff;
  --surface-muted: #fbfcfe;
  --line: #d7dee8;
  --up: #0f7b5a;
  --down: #c62828;
  --degraded: #e65100;
  --pending: #5c6b7a;
  --up-soft: #e6f6ef;
  --down-soft: #fdecea;
  --warn-soft: #fff3e8;
  --neutral-soft: #eef2f6;
  --shadow: 0 10px 30px rgba(11, 27, 43, 0.06);
  --radius: 14px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(1200px 420px at 8% -10%, rgba(0, 132, 255, 0.08), transparent 55%),
    radial-gradient(900px 380px at 100% 0%, rgba(255, 122, 0, 0.06), transparent 50%),
    var(--paper);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
}

img { max-width: 100%; height: auto; }
a { color: var(--azure); text-decoration: none; }
a:hover { color: var(--azure-deep); }

h1, h2, h3 {
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin: 0 0 12px;
}

h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 750;
  margin: 0 0 10px;
}

h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin: 0 0 8px;
}

p { margin: 0 0 14px; }
ul, ol { margin: 0 0 16px; padding-left: 1.2rem; }
li { margin-bottom: 6px; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--azure);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 20;
}
.skip-link:focus { left: 12px; color: #fff; }

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin: 0 auto;
}

.app-header {
  background: var(--header-bg);
  color: #fff;
  padding: 12px 20px;
  box-shadow: 0 8px 24px rgba(0, 59, 115, 0.18);
  position: sticky;
  top: 0;
  z-index: 40;
}

.app-header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  padding: 5px 10px;
}
.brand:hover { color: inherit; }
.brand img { height: 36px; width: auto; display: block; }

.nav-toggle {
  display: none;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: none;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 650;
}
.nav-toggle:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.app-nav {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.app-nav a {
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: 0.01em;
}
.app-nav a:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.app-nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.16); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.button,
a.button,
button,
.button-navy,
a.button-navy,
.button-signin,
a.button-signin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--azure);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(0, 132, 255, 0.18);
}
.button:hover,
a.button:hover,
button:hover { background: var(--azure-deep); color: #fff; }

.button-navy,
a.button-navy {
  background: var(--navy);
  color: #fff;
  box-shadow: none;
}
.button-navy:hover,
a.button-navy:hover {
  background: var(--navy-deep);
  color: #fff;
}

.button-signin,
a.button-signin {
  background: #fff;
  color: var(--navy);
  box-shadow: none;
}
.button-signin:hover,
a.button-signin:hover {
  background: var(--azure-soft);
  color: var(--navy);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--azure-deep);
}

.lede {
  margin: 0;
  color: var(--slate);
  max-width: 46rem;
  font-size: 1.05rem;
}

.beta-bar {
  background: var(--azure-soft);
  border-bottom: 1px solid #c5d8ea;
  color: var(--navy);
}
.beta-bar .wrap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px 0;
  font-size: 0.92rem;
  font-weight: 600;
}
.beta-bar p { margin: 0; }
.beta-bar a { font-weight: 750; }

main { flex: 1; }

.hero {
  padding: 56px 0 28px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 36px;
  align-items: center;
}

.hero-copy h1 span {
  color: var(--azure);
}

.hero-note {
  margin-top: 16px;
  color: var(--slate);
  font-size: 0.92rem;
}

.dash-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.dash-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.dash-card-head h2 { margin: 0; font-size: 1.2rem; }
.dash-label {
  margin: 0;
  color: var(--navy);
  font-size: 1.35rem;
  font-weight: 750;
}
.dash-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0 8px;
}
.dash-metric {
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}
.dash-metric strong {
  display: block;
  color: var(--navy);
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
}
.dash-metric span {
  color: var(--slate);
  font-size: 0.78rem;
}
.dash-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}
.dash-row:first-of-type { border-top: 0; }
.dash-name { font-weight: 650; color: var(--ink); }
.dash-meta { color: var(--slate); font-size: 0.82rem; }

.status {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--neutral-soft);
  color: var(--pending);
  white-space: nowrap;
}
.status-up { background: var(--up-soft); color: var(--up); }
.status-down { background: var(--down-soft); color: var(--down); }
.status-slow { background: var(--warn-soft); color: var(--degraded); }

.section {
  padding: 28px 0 12px;
}
.section-head {
  margin-bottom: 18px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.card-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.card p:last-child,
.card ul:last-child { margin-bottom: 0; }
.card a.stretched { font-weight: 650; }

.type-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}
.type-icon svg { width: 28px; height: 28px; display: block; }
.type-icon-http { background: #dcebff; color: #005ec4; }
.type-icon-ping { background: #d8f3e8; color: #0b6b4d; }
.type-icon-port { background: #e2e9f5; color: #003b73; }
.type-icon-heartbeat { background: #ffe6d2; color: #c44a00; }
.type-icon-dns { background: #e4e2ff; color: #3b3aa3; }
.type-icon-domain { background: #d9f1f4; color: #0b5f6b; }

.cities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.city {
  background: var(--azure-soft);
  color: var(--navy);
  border: 1px solid #c5d8ea;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.88rem;
  font-weight: 650;
}

.confirm-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 10px;
  align-items: stretch;
}
.confirm-arrow {
  align-self: center;
  color: var(--azure);
  font-weight: 800;
  font-size: 1.4rem;
}
.confirm-card {
  text-align: center;
  padding: 16px 12px;
}
.confirm-card .status { margin-top: 8px; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cta-band {
  margin: 36px 0 48px;
  background: linear-gradient(135deg, var(--navy) 0%, #00529e 58%, #0076e6 100%);
  color: #fff;
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 16px 40px rgba(0, 59, 115, 0.22);
}
.cta-band h2,
.cta-band p { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.86); max-width: 40rem; }
.cta-band .button { background: #fff; color: var(--navy); box-shadow: none; }
.cta-band .button:hover { background: var(--azure-soft); color: var(--navy); }
.cta-band .button-navy {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.cta-band .button-navy:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.page-hero {
  padding: 42px 0 8px;
}
.page-hero .lede { font-size: 1.08rem; }

.prose {
  max-width: 760px;
}
.prose-wide { max-width: none; }

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 8px;
}
.toc a {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 600;
  background: var(--surface);
}
.toc a:hover { border-color: var(--azure); color: var(--azure-deep); }

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}
.steps > li {
  position: relative;
  padding: 16px 16px 16px 64px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}
.steps > li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--azure-soft);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-weight: 800;
}
.steps ul {
  list-style: disc;
  padding-left: 1.2rem;
  margin: 10px 0 0;
}
.steps ul li {
  position: static;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin-bottom: 6px;
}

.details-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 10px;
}
.details-list summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
}
.details-list details[open] summary { margin-bottom: 8px; }

.form-card {
  max-width: 640px;
}
label {
  display: block;
  font-weight: 650;
  margin-bottom: 4px;
  color: var(--ink);
}
input[type="email"],
input[type="text"],
input[type="tel"],
input[type="url"],
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 16px;
  font: inherit;
  background: var(--surface);
  color: var(--ink);
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(0, 132, 255, 0.28);
  border-color: var(--azure);
}
.field-help {
  margin: -10px 0 16px;
  color: var(--slate);
  font-size: 0.88rem;
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.form-status {
  display: none;
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-weight: 650;
}
.form-status.is-visible { display: block; }
.form-status.is-ok { background: var(--up-soft); color: var(--up); }
.form-status.is-err { background: var(--down-soft); color: var(--down); }

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: var(--slate);
  font-size: 0.92rem;
}

.site-footer {
  margin-top: auto;
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.82);
  padding: 36px 20px 24px;
}
.footer-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: #9cc9f0; }
.site-footer h2 {
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-brand {
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  display: inline-flex;
  margin-bottom: 12px;
}
.footer-brand img { height: 40px; width: auto; display: block; }
.footer-meta {
  max-width: var(--wrap);
  margin: 24px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
}

code, .mono {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.9em;
  background: var(--neutral-soft);
  padding: 1px 6px;
  border-radius: 6px;
}

.callout {
  background: var(--azure-soft);
  border: 1px solid #c5d8ea;
  color: var(--navy);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 16px 0 22px;
}
.callout p { margin: 0; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.stat strong {
  display: block;
  color: var(--navy);
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}
.stat span { color: var(--slate); font-size: 0.88rem; }

@media (max-width: 960px) {
  .hero-grid,
  .split,
  .confirm-row,
  .card-grid,
  .card-grid-4,
  .stat-row,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .confirm-row { grid-template-columns: 1fr; }
  .confirm-arrow { transform: rotate(90deg); justify-self: center; }
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .app-nav,
  .header-actions { display: none; width: 100%; }
  .app-header.is-open .app-nav,
  .app-header.is-open .header-actions {
    display: flex;
  }
  .app-nav { flex-direction: column; align-items: flex-start; }
  .header-actions { justify-content: flex-start; }
}

@media (max-width: 720px) {
  .hero { padding-top: 32px; }
  .hero-grid,
  .split,
  .card-grid,
  .card-grid-2,
  .card-grid-4,
  .stat-row,
  .footer-grid,
  .dash-metrics {
    grid-template-columns: 1fr;
  }
  .wrap { width: min(var(--wrap), calc(100% - 28px)); }
  .cta-band { padding: 28px 20px; }
}
