:root {
  --bg: #05070a;
  --bg-alt: #0b0e14;
  --surface: #171a21;
  --surface-alt: #20242e;
  --surface-hover: #262b38;
  --border: #2a3040;
  --border-strong: #3a4256;
  --text: #f8fafc;
  --text-secondary: #cbd5e1;
  --muted: #94a3b8;
  --accent: #f36523;
  --accent-hover: #ff7a3d;
  --accent-text: #ff8547;
  --accent-soft: rgba(243, 101, 35, 0.14);
  --promo: #d91c1c;
  --trust-bg: #cfd5df;
  --trust-text: #1e2430;
  --pill-light: #e2e8f0;
  --pill-light-text: #0f172a;
  --ok: #22c55e;
  --ok-soft: rgba(34, 197, 94, 0.14);
  --radius: 10px;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.42);
}

[data-theme="light"] {
  --bg: #f4f6f9;
  --bg-alt: #e9eef5;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --surface-hover: #f1f5f9;
  --border: #d9e1ec;
  --border-strong: #bac6d8;
  --text: #0f172a;
  --text-secondary: #334155;
  --muted: #526177;
  --trust-bg: #ffffff;
  --pill-light: #0f172a;
  --pill-light-text: #ffffff;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Top Promo / Network Banner */
.promo-bar {
  background: var(--promo);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  padding: 7px 16px;
}
.promo-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.promo-badge {
  background: rgba(0, 0, 0, 0.28);
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Header */
.header {
  background: rgba(11, 14, 20, 0.96);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(8px);
}
[data-theme="light"] .header {
  background: rgba(255, 255, 255, 0.96);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; }
.brand-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}
.brand-title {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand-tld {
  color: var(--accent);
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.brand-sub {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}
.nav a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 2px;
  transition: color 0.15s;
}
.nav a:hover, .nav a.active {
  color: var(--accent-text);
  text-decoration: none;
}

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.theme-btn, .lang-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 999px;
  height: 36px;
  padding: 0 12px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.theme-btn:hover { border-color: var(--accent); color: var(--text); }

/* Pill Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-sm { padding: 8px 16px; font-size: 12px; }
.btn-accent { background: var(--accent); color: #ffffff; }
.btn-accent:hover { background: var(--accent-hover); }
.btn-light { background: var(--pill-light); color: var(--pill-light-text); }
.btn-light:hover { opacity: 0.92; }
.btn-dark { background: var(--surface-alt); color: var(--text); border-color: var(--border-strong); }
.btn-dark:hover { border-color: var(--accent); color: var(--accent-text); }

.mobile-toggle {
  display: none;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
}

/* Hero + Anycast World Map */
.hero {
  padding: 56px 0 48px;
  background: radial-gradient(ellipse at 72% 40%, rgba(243, 101, 35, 0.08), transparent 60%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 36px;
  align-items: center;
}
.hero h1 {
  font-size: 38px;
  line-height: 1.18;
  margin: 0 0 18px;
  letter-spacing: -0.025em;
  font-weight: 800;
}
.hero-rule {
  width: 68px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 0 0 18px;
}
.hero-lead {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0 0 26px;
  max-width: 560px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.map-panel {
  position: relative;
  background: linear-gradient(180deg, rgba(23, 26, 33, 0.72), rgba(11, 14, 20, 0.85));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 16px 12px;
  box-shadow: var(--shadow);
}
[data-theme="light"] .map-panel {
  background: #141820;
  color: #f8fafc;
}
.map-panel img {
  display: block;
  width: 100%;
  height: auto;
}
.map-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: #cbd5e1;
  flex-wrap: wrap;
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  color: #f8fafc;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
}

/* Sections */
.section { padding: 48px 0; }
.section-tight { padding: 30px 0; }
.section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto 32px;
  font-size: 15px;
}

/* 4-Column Pricing Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: stretch;
}
.plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.plan-card.featured {
  border-color: var(--accent);
}
.plan-title {
  padding: 18px 16px 14px;
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.plan-price-bar {
  background: var(--accent);
  color: #ffffff;
  text-align: center;
  padding: 12px 14px;
}
.plan-price-bar small {
  display: block;
  font-size: 11px;
  opacity: 0.92;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.plan-price-bar strong {
  font-size: 22px;
  font-weight: 800;
}
.plan-features {
  list-style: none;
  margin: 0;
  padding: 18px 18px 12px;
  flex: 1;
}
.plan-features li {
  position: relative;
  padding: 6px 0 6px 20px;
  font-size: 13.5px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}
.plan-features li:last-child { border-bottom: none; }
.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.plan-cta {
  padding: 14px 18px 20px;
  text-align: center;
}
.plan-cta .btn { width: 100%; }

.migration-note {
  text-align: center;
  margin-top: 22px;
  font-size: 14.5px;
  color: var(--text-secondary);
}
.migration-note strong { color: var(--accent-text); }

/* Why Section + Benchmark Card */
.why-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 32px;
  align-items: center;
}
.why-grid h2 {
  font-size: 28px;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.why-grid p { color: var(--text-secondary); margin: 0 0 14px; }

.bench-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.bench-head {
  background: var(--surface-alt);
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
}
.badge-live {
  background: var(--ok-soft);
  color: var(--ok);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
}
.bench-rows { padding: 14px 18px; }
.bench-row {
  display: grid;
  grid-template-columns: 140px 1fr 68px;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 13px;
}
.bench-bar-track {
  height: 8px;
  background: var(--surface-alt);
  border-radius: 999px;
  overflow: hidden;
}
.bench-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #ff9457);
  border-radius: 999px;
}
.w-86 { width: 86%; }
.w-78 { width: 78%; }
.w-74 { width: 74%; }
.w-68 { width: 68%; }
.w-92 { width: 92%; }
.bench-ms {
  text-align: right;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-weight: 700;
  color: var(--accent-text);
}

/* DNSPerf Claim + Trusted Partners Bar */
.perf-banner {
  text-align: center;
  padding: 20px 24px;
  margin-bottom: 24px;
}
.perf-banner h3 {
  font-size: 22px;
  margin: 0 0 6px;
}
.perf-banner span { color: var(--accent); }
.perf-banner p { margin: 0; font-size: 13px; color: var(--muted); }

.trusted-box {
  background: var(--trust-bg);
  color: var(--trust-text);
  border-radius: 14px;
  padding: 26px 28px;
  text-align: center;
}
.trusted-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #475569;
  margin-bottom: 18px;
}
.logos-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px 20px;
  align-items: center;
}
.logo-chip {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: #1e293b;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
}

/* Orange-Header Feature Box (Enterprise DNS & Support Metrics) */
.orange-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.orange-card-head {
  background: var(--accent);
  color: #ffffff;
  text-align: center;
  padding: 15px 20px;
  font-size: 18px;
  font-weight: 800;
}
.orange-card-body { padding: 26px 28px; }
.check-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 32px;
  margin-bottom: 22px;
}
.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-secondary);
}
.check-mark {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
}

/* Additional Services 4-Column Grid */
.services-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.svc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
}
.svc-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.svc-card h3 { font-size: 17px; margin: 0 0 10px; }
.svc-card p { font-size: 13.5px; color: var(--muted); margin: 0 0 14px; }
.svc-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
  margin-bottom: 16px;
  font-size: 13px;
}
.svc-footer { margin-top: auto; }
.svc-footer .btn { width: 100%; }

/* Domain Checker Widget */
.domain-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.domain-row {
  display: flex;
  gap: 6px;
}
.domain-input, .domain-select {
  background: var(--bg-alt);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 13px;
  outline: none;
}
.domain-input { flex: 1; min-width: 0; }
.domain-input:focus, .domain-select:focus { border-color: var(--accent); }
.domain-result {
  font-size: 12.5px;
  min-height: 18px;
  color: var(--muted);
}
.domain-result.ok { color: var(--ok); font-weight: 600; }
.domain-result.warn { color: var(--accent-text); font-weight: 600; }

/* Support Metrics 3-col */
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
  margin-bottom: 24px;
}
.support-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.15;
}
.support-cap {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-top: 6px;
}

/* Glossary 2-col */
.glossary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 28px;
}
.glossary-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
}
.glossary-item h4 {
  margin: 0 0 6px;
  color: var(--accent-text);
  font-size: 15.5px;
}
.glossary-item p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}

/* Subpages Shared Elements */
.page-head {
  padding: 38px 0 28px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.page-head h1 { margin: 0 0 8px; font-size: 32px; letter-spacing: -0.02em; }
.page-head p { margin: 0; color: var(--muted); max-width: 720px; }

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

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
}
.info-card h3 { margin: 0 0 8px; font-size: 17px; }
.info-card p { margin: 0 0 12px; color: var(--muted); font-size: 13.5px; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  font-size: 13.5px;
}
.data-table th, .data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.data-table th {
  background: var(--surface-alt);
  color: var(--muted);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.data-table tr:last-child td { border-bottom: none; }

.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.92em; }
.text-center { text-align: center; }
.mt-14 { margin-top: 14px; }
.mt-20 { margin-top: 20px; }

/* Error Pages */
.error-wrap {
  max-width: 600px;
  margin: 72px auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px 32px;
  box-shadow: var(--shadow);
}
.error-code {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-text);
  background: var(--accent-soft);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.error-wrap h1 { margin: 0 0 10px; font-size: 28px; }
.error-wrap p { color: var(--muted); margin: 0 0 22px; }

/* Multi-Column Footer */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 48px 0 26px;
  margin-top: 40px;
  font-size: 13.5px;
  color: var(--muted);
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-bottom: 30px;
}
.footer h4 {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 12px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 7px; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--accent-text); text-decoration: none; }

.cert-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.cert-badge {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  line-height: 1.3;
}
.cert-badge strong {
  display: block;
  color: var(--accent-text);
  font-size: 12px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
}
.footer-legal { display: flex; gap: 16px; flex-wrap: wrap; }

/* Sign-In Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 10, 0.78);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
  backdrop-filter: blur(4px);
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  max-width: 400px;
  width: 100%;
  padding: 26px;
  box-shadow: var(--shadow);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.modal-head h3 { margin: 0; font-size: 18px; }
.modal-close {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
}
.modal label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin: 10px 0 6px;
}
.modal input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--bg-alt);
  color: var(--text);
  font-size: 14px;
}
.modal input:focus { outline: none; border-color: var(--accent); }
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

@media (max-width: 1024px) {
  .pricing-grid, .services-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .why-grid, .footer-cols { grid-template-columns: 1fr; }
  .logos-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 68px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 14px 24px;
    gap: 10px;
  }
  .nav.open { display: flex; }
  .mobile-toggle { display: inline-flex; }
  .pricing-grid, .services-4, .glossary-grid, .check-grid-2, .support-grid, .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
  .hero h1 { font-size: 28px; }
}
