:root {
  color-scheme: dark;
  --bg: #090b0f;
  --bg-secondary: #0e1117;
  --card: #11151c;
  --border: #202631;
  --text: #f2f4f7;
  --muted: #858d99;
  --accent: #6ea8ff;
  --success: #42d392;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

header {
  height: 68px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: rgba(9, 11, 15, 0.88);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #07101f;
  font-size: 13px;
  font-weight: 800;
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 13px;
}

nav a:hover { color: var(--text); }

.status {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px rgba(66, 211, 146, 0.5);
}

.hero {
  padding: 110px 0 90px;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(circle at 50% 0%, rgba(76, 125, 200, 0.13), transparent 42%);
}

.hero-content {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  margin-bottom: 22px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-secondary);
  color: var(--muted);
  font-size: 12px;
}

.eyebrow span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}

h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  font-weight: 650;
}

.hero-description {
  max-width: 620px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 18px;
  border-radius: 7px;
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 550;
  transition: 0.15s ease;
}

.button-primary {
  background: var(--text);
  color: #090b0f;
  border-color: var(--text);
}

.button-primary:hover { opacity: 0.9; }

.button-secondary {
  background: var(--bg-secondary);
  color: var(--text);
}

.button-secondary:hover { background: #151a21; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border);
}

.stat {
  padding: 34px 28px;
  border-right: 1px solid var(--border);
}

.stat:last-child { border-right: 0; }

.stat-value {
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.stat-label {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

section {
  padding: 90px 0;
  border-bottom: 1px solid var(--border);
}

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

.section-header {
  max-width: 650px;
  margin-bottom: 42px;
}

.section-title {
  margin: 0;
  font-size: 31px;
  letter-spacing: -0.035em;
  font-weight: 600;
}

.section-description {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--border);
  background: var(--border);
}

.feature {
  min-height: 220px;
  padding: 30px;
  background: var(--card);
}

.feature-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-secondary);
  color: var(--accent);
  font-size: 15px;
}

.feature h3 {
  margin: 0 0 9px;
  font-size: 15px;
  font-weight: 600;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.network {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.network-map {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--bg-secondary);
  background-size: 35px 35px;
}

.map-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(110, 168, 255, 0.35), transparent);
  transform-origin: left center;
}

.line-1 { width: 310px; left: 20%; top: 38%; transform: rotate(12deg); }
.line-2 { width: 250px; left: 38%; top: 52%; transform: rotate(-25deg); }
.line-3 { width: 280px; left: 35%; top: 64%; transform: rotate(17deg); }

.node {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(110, 168, 255, 0.08), 0 0 18px rgba(110, 168, 255, 0.5);
}

.node-1 { left: 19%; top: 35%; }
.node-2 { left: 48%; top: 47%; }
.node-3 { left: 72%; top: 30%; }
.node-4 { left: 66%; top: 67%; }
.node-5 { left: 31%; top: 72%; }

.network-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid var(--border);
  background: var(--border);
}

.region {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: var(--card);
  font-size: 13px;
}

.region-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.region-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}

.region-latency {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.delivery-grid,
.docs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.delivery-card,
.docs-card,
.prose-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--card);
}

.delivery-card h3,
.docs-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.delivery-card p,
.docs-card p,
.prose-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.prose-card h3 { margin: 0 0 10px; font-size: 16px; }
.prose-card p + p { margin-top: 12px; }
.prose-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.code {
  margin-top: 18px;
  padding: 14px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #090b0f;
  color: #aab3c0;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
}

.status-panel,
.incident-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--card);
}

.incident-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.status-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-large {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 14px rgba(66, 211, 146, 0.45);
}

.status-title { font-size: 14px; font-weight: 600; }

.status-subtitle {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.uptime {
  color: var(--success);
  font-size: 13px;
  font-weight: 550;
}

footer { padding: 40px 0; }

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

.footer-links { display: flex; gap: 22px; }
.footer-links a:hover { color: var(--text); }

@media (max-width: 800px) {
  nav { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .features { grid-template-columns: 1fr; }
  .network,
  .delivery-grid,
  .docs-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .container,
  .header-inner { width: min(100% - 28px, 1180px); }
  .hero { padding: 80px 0 65px; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .stats { grid-template-columns: 1fr; }
  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .stat:last-child { border-bottom: 0; }
  .footer-inner {
    flex-direction: column;
    gap: 18px;
  }
  .status-panel,
  .incident-row { grid-template-columns: 1fr; gap: 12px; }
}
