:root {
  color-scheme: dark;
  --bg: #05070a;
  --panel: rgba(8, 14, 22, 0.72);
  --line: rgba(154, 188, 204, 0.24);
  --text: #f3f7f6;
  --muted: #9eb0b2;
  --cyan: #7ce8dd;
  --green: #a9f08d;
  --amber: #ffc76f;
  --coral: #ff8a6c;
  --steel: #8aa5ff;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(124, 232, 221, 0.14), transparent 24rem),
    radial-gradient(circle at 78% 22%, rgba(255, 199, 111, 0.11), transparent 26rem),
    linear-gradient(135deg, #05070a 0%, #0b1115 46%, #07110f 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

#mesh {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.82;
}

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(124, 232, 221, 0.38);
  background: rgba(124, 232, 221, 0.08);
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
}

.brand-name {
  color: #dfe9e8;
  font-size: 0.95rem;
  font-weight: 650;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a,
.button {
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.05);
  color: #dbe6e5;
  font-size: 0.88rem;
  font-weight: 650;
  padding: 10px 14px;
}

.nav a:hover,
.button:hover {
  border-color: rgba(124, 232, 221, 0.55);
  color: #ffffff;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 72px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: 32px;
  align-items: end;
  min-height: calc(100vh - 120px);
  padding: 48px 0 38px;
}

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

.eyebrow {
  width: fit-content;
  margin: 0 0 18px;
  border-left: 3px solid var(--green);
  padding: 8px 12px;
  background: rgba(169, 240, 141, 0.08);
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(4.4rem, 13vw, 9.4rem);
  line-height: 0.82;
  font-weight: 900;
  letter-spacing: 0;
}

.lead {
  max-width: 700px;
  margin: 28px 0 0;
  color: #d3dddc;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
}

.primary {
  background: linear-gradient(135deg, rgba(124, 232, 221, 0.92), rgba(169, 240, 141, 0.88));
  color: #06100f;
}

.secondary {
  background: rgba(255, 255, 255, 0.06);
}

.signal-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 22px;
  backdrop-filter: blur(18px);
}

.signal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #eef7f5;
  font-size: 0.9rem;
  font-weight: 750;
}

.pulse {
  width: 10px;
  height: 10px;
  background: var(--green);
  box-shadow: 0 0 22px rgba(169, 240, 141, 0.86);
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0 0;
}

.signal-grid div,
.metric,
.system-grid article,
.notice {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
}

.signal-grid div {
  padding: 14px;
}

dt,
.metric span {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
}

dd {
  margin: 7px 0 0;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
}

.band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 42px;
}

.metric {
  min-height: 96px;
  padding: 18px;
}

.metric strong {
  display: block;
  margin-top: 12px;
  color: var(--text);
  font-size: 1.4rem;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.system-grid article {
  min-height: 280px;
  padding: 22px;
}

.node-label {
  color: var(--amber);
  font-size: 0.8rem;
  font-weight: 900;
}

h2 {
  margin: 58px 0 14px;
  font-size: 1.35rem;
}

.system-grid p,
.notice p {
  color: #c5d0d0;
  line-height: 1.6;
}

.system-grid a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--cyan);
  font-weight: 800;
}

.notice {
  margin-top: 14px;
  padding: 18px 22px;
}

.notice strong {
  color: var(--coral);
}

@media (max-width: 900px) {
  .topbar,
  .nav,
  .hero {
    align-items: stretch;
  }

  .topbar,
  .hero {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
  }

  .nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .nav a {
    text-align: center;
  }

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

  .band,
  .system-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .brand-name {
    white-space: normal;
  }

  .nav,
  .band,
  .system-grid,
  .signal-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(3.6rem, 22vw, 5rem);
  }
}
