:root {
  color-scheme: dark;
  --ink: #f4fbf7;
  --muted: #a0b7b2;
  --dim: #66807b;
  --graphite: #071011;
  --panel: rgba(11, 24, 25, 0.76);
  --line: rgba(160, 183, 178, 0.18);
  --teal: #12d6c5;
  --coral: #ff715b;
  --brass: #d6b56d;
  --shadow: rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--graphite);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  font-family: Charter, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  background:
    radial-gradient(circle at 20% 10%, rgba(18, 214, 197, 0.11), transparent 28rem),
    linear-gradient(180deg, #071011 0%, #0b1716 56%, #071011 100%);
  letter-spacing: 0;
  overflow-x: hidden;
}

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

#abyss-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  padding: 18px clamp(18px, 4vw, 56px);
  background: linear-gradient(180deg, rgba(7, 16, 17, 0.88), rgba(7, 16, 17, 0));
}

.brand-mark,
.nav-action,
.button-primary,
.button-secondary {
  min-height: 44px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-family: Optima, Candara, "Segoe UI", sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-glyph {
  width: 22px;
  height: 22px;
  background:
    linear-gradient(135deg, var(--teal), transparent 52%),
    linear-gradient(315deg, var(--coral), transparent 56%),
    #0f2424;
  clip-path: polygon(50% 0, 92% 18%, 72% 100%, 28% 100%, 8% 18%);
  box-shadow: 0 0 24px rgba(18, 214, 197, 0.42);
}

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  color: var(--muted);
  font-family: Optima, Candara, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links a,
.site-footer a {
  transition: color 160ms ease;
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--teal);
}

.nav-action {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(18, 214, 197, 0.45);
  border-radius: 999px;
  color: var(--ink);
  font-family: Optima, Candara, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(11, 24, 25, 0.58);
  box-shadow: 0 14px 40px var(--shadow);
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: clamp(28px, 6vw, 92px);
  align-items: end;
  min-height: 92vh;
  padding: clamp(112px, 17vh, 180px) clamp(20px, 6vw, 84px) clamp(44px, 8vh, 80px);
}

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

.eyebrow,
.section-kicker,
.metric-label,
.card-index {
  font-family: Optima, Candara, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow,
.section-kicker,
.card-index {
  color: var(--brass);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 100%;
  margin-top: 14px;
  font-size: clamp(4.7rem, 14vw, 13rem);
  line-height: 0.78;
  letter-spacing: 0;
}

.hero-text {
  max-width: 650px;
  margin-top: clamp(24px, 4vw, 38px);
  color: var(--muted);
  font-size: clamp(1.12rem, 2.2vw, 1.65rem);
  line-height: 1.42;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 6px;
  font-family: Optima, Candara, "Segoe UI", sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button-primary {
  color: #071011;
  background: var(--teal);
  box-shadow: 0 18px 45px rgba(18, 214, 197, 0.22);
}

.button-secondary {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(244, 251, 247, 0.05);
}

.telemetry-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--panel);
  box-shadow: 0 24px 70px var(--shadow);
  backdrop-filter: blur(18px);
}

.telemetry-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: Optima, Candara, "Segoe UI", sans-serif;
  font-size: 0.88rem;
}

.telemetry-topline strong {
  color: var(--teal);
}

.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1px;
  background: var(--line);
}

.telemetry-grid div {
  min-height: 96px;
  padding: 16px;
  background: rgba(7, 16, 17, 0.76);
}

.metric-label {
  display: block;
  color: var(--dim);
}

.telemetry-grid strong {
  display: block;
  margin-top: 18px;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
}

.band {
  padding: clamp(72px, 11vw, 128px) clamp(20px, 6vw, 84px);
}

.section-heading,
.status-board {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: start;
  margin-top: 18px;
}

.section-heading h2,
.status-board h2 {
  font-size: clamp(2.2rem, 5vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.section-heading p,
.status-board p,
.capability-card p {
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.62;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(34px, 5vw, 58px);
}

.capability-card {
  min-height: 250px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: rgba(9, 20, 20, 0.72);
}

.capability-card h3 {
  margin-top: 54px;
  font-size: clamp(1.34rem, 2vw, 2rem);
  line-height: 1.05;
}

.capability-card p {
  margin-top: 18px;
}

.status-list span:last-child {
  color: var(--muted);
  font-family: Optima, Candara, "Segoe UI", sans-serif;
  font-size: 0.9rem;
}

.status-board {
  align-items: center;
}

.status-list {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 1px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  overflow: hidden;
}

.status-list li {
  display: grid;
  grid-template-columns: 18px minmax(120px, 0.8fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px;
  background: rgba(7, 16, 17, 0.78);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.status-dot.stable {
  background: var(--teal);
  box-shadow: 0 0 18px rgba(18, 214, 197, 0.72);
}

.status-dot.guarded {
  background: var(--brass);
  box-shadow: 0 0 18px rgba(214, 181, 109, 0.58);
}

.status-dot.review {
  background: var(--coral);
  box-shadow: 0 0 18px rgba(255, 113, 91, 0.56);
}

.status-list strong {
  font-size: 1.02rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 6vw, 84px) 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: Optima, Candara, "Segoe UI", sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.not-found-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.not-found {
  max-width: 620px;
  text-align: center;
}

.not-found h1 {
  margin-top: 12px;
  font-size: clamp(3.4rem, 12vw, 9rem);
}

.not-found p:not(.eyebrow) {
  margin: 24px 0 30px;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .section-heading,
  .status-board {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 118px;
  }

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

  .telemetry-panel {
    max-width: 560px;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand-mark {
    font-size: 0.82rem;
  }

  .nav-action {
    min-height: 40px;
    padding: 0 13px;
    font-size: 0.72rem;
  }

  h1 {
    font-size: clamp(4.1rem, 22vw, 6.4rem);
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button-primary,
  .button-secondary {
    width: 100%;
  }

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

  .status-list li {
    grid-template-columns: 1fr;
  }
}

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