:root {
  color-scheme: dark;
  --bg: #050e0b;
  --panel: rgba(14, 31, 26, .74);
  --line: rgba(198, 255, 226, .12);
  --text: #edf7f1;
  --muted: #8da69b;
  --green: #55f2a4;
  --green-soft: #9bf7c8;
  --amber: #e6b96a;
  --shadow: 0 30px 90px rgba(0, 0, 0, .38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    linear-gradient(rgba(255,255,255,.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.016) 1px, transparent 1px),
    var(--bg);
  background-size: 48px 48px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

a { color: inherit; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.mono { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }

.ambient {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: .12;
  z-index: -1;
}
.ambient-one { top: -180px; right: -80px; background: var(--green); }
.ambient-two { bottom: 10%; left: -260px; background: #167b64; }

.topbar {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  gap: 13px;
  align-items: center;
  text-decoration: none;
  font-weight: 500;
  font-size: 23px;
  letter-spacing: -.045em;
}
.brand-mark {
  position: relative;
  width: 32px;
  height: 36px;
  display: inline-block;
  flex: 0 0 auto;
}
.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(50% 0, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
}
.brand-mark::before { background: var(--green-soft); }
.brand-mark::after {
  inset: 3px;
  background: var(--bg);
}
.brand-mark i {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--green-soft);
  transform-origin: center;
}
.brand-mark i:nth-child(1) { transform: translate(-50%, -50%) rotate(30deg); }
.brand-mark i:nth-child(2) { transform: translate(-50%, -50%) rotate(90deg); }
.brand-mark i:nth-child(3) { transform: translate(-50%, -50%) rotate(150deg); }
.system-state {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
}
.pulse {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(85,242,164,.08);
  animation: pulse 2.4s infinite;
}

.hero {
  padding-block: 64px 76px;
}
.hero-poster {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(155,247,200,.17);
  border-radius: 28px;
  background: #030806;
  box-shadow: var(--shadow);
}
.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 72%, rgba(2,9,6,.62)),
    radial-gradient(circle at 74% 48%, rgba(85,242,164,.07), transparent 30%);
}
.hero-poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.poster-status {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 22px;
  min-width: 185px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border: 1px solid rgba(155,247,200,.17);
  border-radius: 14px;
  background: rgba(4,14,10,.78);
  box-shadow: 0 14px 40px rgba(0,0,0,.3);
  backdrop-filter: blur(14px);
}
.poster-status strong,
.poster-status small { display: block; }
.poster-status strong {
  margin-bottom: 4px;
  color: var(--text);
  font: 700 11px/1.1 "SFMono-Regular", Consolas, monospace;
}
.poster-status small { color: var(--muted); font-size: 10px; }
.mobile-hero-copy { display: none; }
.eyebrow {
  color: var(--green);
  font: 600 12px/1.2 "SFMono-Regular", Consolas, monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 22px;
  font-size: clamp(58px, 18vw, 80px);
  line-height: .86;
  letter-spacing: -.07em;
  font-weight: 590;
}
h1 span { color: var(--green-soft); }
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
.button {
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 650;
  font-size: 14px;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); border-color: rgba(155,247,200,.4); }
.button:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.button.primary { background: var(--green); color: #062017; }
.button.secondary { background: rgba(255,255,255,.025); }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
}
.metric {
  min-height: 166px;
  padding: 28px 24px;
  border-right: 1px solid var(--line);
}
.metric:last-child { border-right: 0; }
.metric p { color: var(--muted); font-size: 12px; }
.metric strong { display: block; font-size: 34px; letter-spacing: -.05em; }
.metric strong small { font-size: 14px; color: var(--muted); font-weight: 500; }
.metric > span {
  display: block;
  margin-top: 18px;
  color: var(--green);
  font: 11px/1 "SFMono-Regular", Consolas, monospace;
  text-transform: uppercase;
}

.network-section { padding-block: 145px; }
.section-heading {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: end;
  gap: 80px;
  margin-bottom: 62px;
}
.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(42px, 5.5vw, 72px);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 580;
}
.section-heading > p {
  margin-bottom: 6px;
  color: var(--muted);
  line-height: 1.7;
}
.network-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 18px;
}
.node-list, .latency-panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: 0 20px 50px rgba(0,0,0,.12);
}
.node-list { overflow: hidden; }
.node-row {
  min-height: 105px;
  display: grid;
  grid-template-columns: 44px 1fr auto auto;
  align-items: center;
  gap: 15px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
}
.node-row:last-child { border-bottom: 0; }
.node-row.current { background: rgba(85,242,164,.045); }
.node-row.muted { opacity: .68; }
.country {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--green-soft);
  background: rgba(85,242,164,.08);
  font: 700 11px/1 "SFMono-Regular", Consolas, monospace;
}
.node-row strong, .node-row small { display: block; }
.node-row strong { font-size: 14px; }
.node-row small { margin-top: 5px; color: var(--muted); font-size: 11px; }
.node-code { color: var(--muted); font-size: 10px; }
.status {
  padding: 7px 9px;
  border-radius: 999px;
  font: 700 9px/1 "SFMono-Regular", Consolas, monospace;
  text-transform: uppercase;
}
.status.online { color: var(--green); background: rgba(85,242,164,.08); }
.status.ready { color: var(--amber); background: rgba(230,185,106,.09); }
.latency-panel { padding: 24px; min-width: 0; }
.chart-head { display: flex; align-items: center; justify-content: space-between; }
.chart-head p { margin-bottom: 5px; color: var(--muted); font-size: 11px; }
.chart-head strong { font-size: 16px; }
.chart-badge {
  padding: 7px 9px;
  color: var(--green);
  background: rgba(85,242,164,.07);
  border-radius: 8px;
  font: 700 9px/1 "SFMono-Regular", Consolas, monospace;
}
#latency-chart { display: block; width: 100%; height: 245px; margin-top: 16px; }
.chart-scale {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font: 9px/1 "SFMono-Regular", Consolas, monospace;
}

.architecture {
  padding-block: 140px;
  border-block: 1px solid var(--line);
  background: rgba(255,255,255,.014);
}
.architecture-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.architecture-grid article {
  min-height: 255px;
  padding: 30px;
  border-right: 1px solid var(--line);
}
.architecture-grid article:last-child { border-right: 0; }
.step { color: var(--green); font: 12px/1 "SFMono-Regular", Consolas, monospace; }
.architecture-grid h3 { margin-top: 75px; margin-bottom: 12px; font-size: 20px; }
.architecture-grid p { color: var(--muted); line-height: 1.6; font-size: 14px; }

.footer {
  min-height: 140px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
}
.footer .compact { color: var(--text); font-size: 18px; }
.footer .brand-mark { transform: scale(.82); transform-origin: left center; }
.footer p { margin: 0; }
.footer p:last-child { text-align: right; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(85,242,164,.07); }
  50% { box-shadow: 0 0 0 10px rgba(85,242,164,0); }
}

@media (max-width: 900px) {
  .hero { padding-top: 42px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section-heading { grid-template-columns: 1fr; gap: 24px; }
  .network-layout { grid-template-columns: 1fr; }
  .architecture-grid { grid-template-columns: 1fr; }
  .architecture-grid article { border-right: 0; border-bottom: 1px solid var(--line); }
  .architecture-grid article:last-child { border-bottom: 0; }
  .architecture-grid h3 { margin-top: 38px; }
}

@media (max-width: 600px) {
  .shell { width: min(100% - 24px, 1180px); }
  .topbar { min-height: 70px; }
  .brand { font-size: 20px; }
  .brand-mark { width: 28px; height: 32px; }
  .brand-mark i { width: 25px; }
  .system-state span:last-child { display: none; }
  .hero { padding-block: 22px 64px; }
  .hero-poster {
    aspect-ratio: 1 / 1;
    border-radius: 20px;
  }
  .hero-poster img {
    width: auto;
    min-width: 178%;
    max-width: none;
    object-position: 72% center;
    transform: translateX(-42%);
  }
  .hero-poster::after {
    background: linear-gradient(180deg, transparent 55%, rgba(2,9,6,.82));
  }
  .poster-status { right: 14px; bottom: 14px; min-width: 170px; }
  .mobile-hero-copy {
    display: block;
    padding: 42px 4px 0;
  }
  .mobile-hero-copy p:last-child {
    color: var(--muted);
    line-height: 1.65;
  }
  .hero-actions { flex-direction: column; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric { border-right: 0; border-bottom: 1px solid var(--line); }
  .metric:nth-child(3) { border-bottom: 1px solid var(--line); }
  .metric:last-child { border-bottom: 0; }
  .network-section, .architecture { padding-block: 92px; }
  .node-row { grid-template-columns: 40px 1fr auto; padding-inline: 15px; }
  .node-code { display: none; }
  .latency-panel { padding: 18px; }
  .footer { grid-template-columns: 1fr; gap: 16px; padding-block: 36px; }
  .footer p:last-child { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }
}
