:root {
  --harbor: #0b3342;
  --harbor-deep: #06232e;
  --signal: #0f6a6d;
  --signal-bright: #31a6a0;
  --amber: #e4a24f;
  --mist: #e6eef1;
  --fog: #f8fbfa;
  --ink-soft: #526b73;
  --line: rgba(11, 51, 66, 0.18);
  --shadow: 0 28px 70px rgba(6, 35, 46, 0.16);
  --display: "Arial Narrow", "Aptos Narrow", "Roboto Condensed", sans-serif;
  --body: Verdana, Geneva, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--harbor);
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    var(--mist);
  background-size: 42px 42px;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 72% 22%, rgba(248, 251, 250, 0.96), transparent 35%);
  z-index: -1;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  padding: 0.7rem 1rem;
  color: var(--fog);
  background: var(--harbor-deep);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.masthead,
main,
footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.masthead {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.wordmark-mark {
  width: 34px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--harbor);
  border-radius: 50%;
}

.wordmark-mark::before,
.wordmark-mark::after,
.wordmark-mark i {
  content: "";
  grid-area: 1 / 1;
  border-radius: 50%;
}

.wordmark-mark::before {
  width: 20px;
  height: 20px;
  border: 1px dashed var(--harbor);
}

.wordmark-mark::after {
  width: 6px;
  height: 6px;
  background: var(--amber);
}

.wordmark-mark i {
  width: 2px;
  height: 14px;
  background: var(--signal);
  transform: translateY(-7px);
  transform-origin: center 14px;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink-soft);
  font-size: 0.76rem;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(228, 162, 79, 0.16);
}

body[data-health="online"] .status-dot {
  background: var(--signal-bright);
  box-shadow: 0 0 0 5px rgba(49, 166, 160, 0.16);
}

body[data-health="offline"] .status-dot {
  background: #ad4e48;
  box-shadow: 0 0 0 5px rgba(173, 78, 72, 0.14);
}

.hero {
  min-height: 660px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
  padding-block: 5rem;
}

.hero-copy {
  max-width: 680px;
}

.kicker {
  margin: 0 0 1.5rem;
  color: var(--signal);
  font-size: 0.78rem;
  font-weight: 700;
}

h1,
h2,
p {
  text-wrap: pretty;
}

h1,
h2 {
  margin: 0;
  font-family: var(--display);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 760px;
  font-size: clamp(4rem, 9vw, 7.5rem);
  font-stretch: condensed;
}

h2 {
  font-size: clamp(2.6rem, 5.6vw, 5.2rem);
}

.lede {
  max-width: 620px;
  margin: 2.2rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-top: 2.2rem;
}

.primary-action,
.copy-action {
  border: 1px solid var(--harbor-deep);
  color: var(--fog);
  background: var(--harbor-deep);
  cursor: pointer;
  font-weight: 700;
}

.primary-action {
  padding: 0.95rem 1.25rem;
}

.copy-action {
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
}

.primary-action:hover,
.copy-action:hover {
  color: var(--harbor-deep);
  background: transparent;
}

.text-link {
  text-underline-offset: 0.3em;
  text-decoration-thickness: 1px;
  font-size: 0.9rem;
  font-weight: 700;
}

.primary-action:focus-visible,
.copy-action:focus-visible,
a:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}

.signal-stage {
  position: relative;
  width: min(100%, 450px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  justify-self: end;
  border-radius: 50%;
  color: var(--fog);
  background: var(--harbor-deep);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.signal-stage::before {
  content: "";
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(248, 251, 250, 0.12);
  border-radius: 50%;
}

.signal-orbit,
.signal-orbit span {
  position: absolute;
  border-radius: 50%;
}

.signal-orbit {
  inset: 0;
}

.orbit-track {
  border: 1px dashed rgba(248, 251, 250, 0.22);
}

.orbit-track-outer {
  inset: 15%;
}

.orbit-track-inner {
  inset: 29%;
}

.orbit-sweep {
  left: 50%;
  top: 50%;
  width: 40%;
  height: 2px;
  border-radius: 0 !important;
  background: linear-gradient(90deg, var(--amber), transparent);
  transform-origin: left center;
  animation: sweep 7s linear infinite;
}

.orbit-sweep::after {
  content: "";
  position: absolute;
  right: -3px;
  top: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 18px var(--amber);
}

.signal-core {
  position: relative;
  z-index: 2;
  width: 54%;
  text-align: center;
}

.signal-label,
.signal-detail {
  display: block;
  color: rgba(248, 251, 250, 0.66);
  font-size: 0.72rem;
}

.signal-core strong {
  display: block;
  margin: 0.45rem 0;
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.95;
}

.manifest {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(3rem, 9vw, 8rem);
  padding: 7rem 0;
  border-top: 1px solid var(--line);
}

.section-heading p,
.protocol-intro > p:not(.kicker) {
  max-width: 52ch;
  color: var(--ink-soft);
}

.rule-list {
  margin: 0;
}

.rule-list > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1.5rem;
  padding: 1.45rem 0;
  border-top: 1px solid var(--line);
}

.rule-list > div:last-child {
  border-bottom: 1px solid var(--line);
}

.rule-list dt {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 800;
}

.rule-list dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.protocol {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1.2fr);
  gap: clamp(3rem, 9vw, 8rem);
  padding: 7rem clamp(1.5rem, 5vw, 5rem);
  color: var(--fog);
  background: var(--harbor);
}

.protocol .kicker {
  color: #70cdc5;
}

.protocol-intro > p:not(.kicker) {
  color: rgba(248, 251, 250, 0.68);
}

.protocol .copy-action {
  color: var(--harbor-deep);
  background: var(--amber);
  border-color: var(--amber);
}

.protocol .copy-action:hover {
  color: var(--fog);
  background: transparent;
}

.copy-feedback {
  min-height: 1.5em;
  margin: 0.6rem 0 0;
  color: #9cd9d4 !important;
  font-size: 0.76rem;
}

.route-sheet {
  align-self: center;
  border-top: 1px solid rgba(248, 251, 250, 0.24);
}

.route {
  display: grid;
  grid-template-columns: 64px minmax(180px, 1fr) 90px;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(248, 251, 250, 0.18);
}

.route .verb,
.route > span:last-child {
  color: rgba(248, 251, 250, 0.58);
  font-size: 0.7rem;
}

.route code {
  color: var(--fog);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.92rem;
}

.route-public code {
  color: #82d9d1;
}

.telemetry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-top: 0;
}

.telemetry > div {
  padding: 1.5rem;
}

.telemetry > div + div {
  border-left: 1px solid var(--line);
}

.telemetry span,
.telemetry strong {
  display: block;
}

.telemetry span {
  color: var(--ink-soft);
  font-size: 0.7rem;
}

.telemetry strong {
  margin-top: 0.3rem;
  font-family: var(--display);
  font-size: 1.2rem;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 3rem 0 4rem;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

footer p {
  margin: 0;
}

.host {
  font-family: Consolas, "Courier New", monospace;
}

@keyframes sweep {
  to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .signal-stage {
    width: min(78vw, 430px);
    justify-self: center;
  }

  .manifest,
  .protocol {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .masthead,
  main,
  footer {
    width: min(100% - 28px, 1180px);
  }

  .masthead {
    min-height: 72px;
  }

  .header-status {
    max-width: 130px;
    text-align: right;
  }

  .hero {
    gap: 3.5rem;
    padding-block: 4rem;
  }

  h1 {
    font-size: clamp(3.6rem, 18vw, 5.4rem);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .manifest,
  .protocol {
    padding-block: 4.5rem;
  }

  .protocol {
    margin-inline: -14px;
    padding-inline: 1.25rem;
  }

  .rule-list > div {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .route {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .route > span:last-child {
    display: none;
  }

  .telemetry {
    grid-template-columns: 1fr;
  }

  .telemetry > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .orbit-sweep {
    animation: none;
    transform: rotate(-28deg);
  }
}
