:root {
  color-scheme: dark;
  --background: #071422;
  --background-deep: #050f1b;
  --text: #f4f1ea;
  --muted: #9aa7b5;
  --line: rgba(139, 160, 184, 0.28);
  --line-strong: rgba(164, 183, 204, 0.54);
  --accent: #378ff2;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 72% 44%, rgba(26, 59, 94, 0.16), transparent 34%),
    linear-gradient(120deg, var(--background-deep), var(--background));
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-shell {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  min-height: 100svh;
  padding: clamp(32px, 4vw, 62px) clamp(28px, 5.4vw, 84px) clamp(28px, 4vw, 58px);
  overflow: hidden;
  isolation: isolate;
}

.site-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(109, 137, 168, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109, 137, 168, 0.1) 1px, transparent 1px);
  background-size: 210px 210px;
  mask-image: linear-gradient(90deg, transparent 18%, black 82%);
}

.wordmark {
  display: inline-block;
  color: var(--text);
  font-size: clamp(30px, 3.1vw, 52px);
  font-weight: 650;
  letter-spacing: -0.045em;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(430px, 0.92fr) minmax(520px, 1.08fr);
  align-items: center;
  min-height: 0;
}

.hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: 52px 0 12px;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(70px, 7.25vw, 118px);
  font-weight: 400;
  letter-spacing: -0.052em;
  line-height: 0.91;
}

.hero-copy p {
  max-width: 620px;
  margin: clamp(30px, 3vw, 48px) 0 0;
  color: rgba(244, 241, 234, 0.92);
  font-size: clamp(19px, 1.55vw, 27px);
  line-height: 1.43;
}

.network {
  position: absolute;
  top: 50%;
  right: -7vw;
  width: min(67vw, 900px);
  aspect-ratio: 1;
  transform: translateY(-49%);
  opacity: 0.9;
  z-index: 0;
}

.network::before {
  content: "";
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(41, 99, 159, 0.14), transparent 66%);
  filter: blur(22px);
}

.network svg { width: 100%; height: 100%; overflow: visible; }
.orbits { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 6 8; }
.spokes { fill: none; stroke: var(--line-strong); stroke-width: 1.05; }
.nodes circle { fill: var(--background); stroke: var(--line-strong); stroke-width: 2; }
.nodes circle.accent { fill: rgba(55, 143, 242, 0.18); stroke: var(--accent); }
.hub circle:first-child { fill: var(--background-deep); stroke: var(--accent); stroke-width: 2; }
.hub circle:last-child { fill: rgba(26, 65, 105, 0.16); stroke: var(--line); stroke-width: 1; }

.site-status {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(42px, 7vh, 82px);
  color: var(--muted);
  font-size: 18px;
}

.site-status span {
  width: 13px;
  height: 13px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px var(--background);
  background: var(--accent);
  animation: status-breathe 3.6s ease-in-out infinite;
}

footer {
  color: #8492a2;
  font-size: 16px;
  letter-spacing: 0.01em;
}

footer b { margin: 0 7px; color: var(--accent); font-weight: 400; }

@keyframes status-breathe {
  0%, 100% { opacity: 0.55; transform: scale(0.88); }
  50% { opacity: 1; transform: scale(1); }
}

@media (max-width: 900px) {
  .site-shell {
    grid-template-rows: auto auto 1fr auto auto;
    padding: 42px 28px 32px;
  }

  .wordmark { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }

  .hero {
    display: block;
    min-height: auto;
  }

  .hero-copy { padding-top: 84px; }

  h1 {
    font-size: clamp(58px, 15.3vw, 82px);
    line-height: 0.96;
    letter-spacing: -0.055em;
  }

  .hero-copy p {
    max-width: 580px;
    margin-top: 32px;
    font-size: clamp(18px, 5.15vw, 24px);
  }

  .network {
    top: auto;
    right: 50%;
    bottom: 5vh;
    width: min(126vw, 640px);
    transform: translateX(50%);
    opacity: 0.84;
  }

  .site-status {
    grid-row: 4;
    justify-self: center;
    margin: 0 0 30px;
    font-size: 16px;
  }

  footer {
    grid-row: 5;
    width: 100%;
    padding-top: 24px;
    border-top: 1px solid rgba(139, 160, 184, 0.24);
    text-align: center;
  }
}

@media (max-width: 420px) {
  .site-shell { padding-inline: 24px; }
  .wordmark { font-size: 42px; }
  .hero-copy { padding-top: 68px; }
  .network { bottom: 7vh; width: 138vw; }
}

@media (prefers-reduced-motion: reduce) {
  .site-status span { animation: none; }
}
