:root {
  --bg: #06111c;
  --bg-deep: #030a12;
  --panel: rgba(10, 20, 31, 0.78);
  --panel-strong: rgba(12, 25, 39, 0.92);
  --line: rgba(164, 204, 255, 0.16);
  --line-strong: rgba(164, 204, 255, 0.28);
  --text: #e8f2fb;
  --muted: #a2b7ca;
  --accent: #80f0d4;
  --accent-strong: #79a9ff;
  --glow: rgba(103, 164, 255, 0.25);
  --max-width: 1180px;
  --display-font: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --body-font: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(57, 96, 147, 0.22), transparent 28%),
    radial-gradient(circle at bottom right, rgba(62, 155, 130, 0.16), transparent 30%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  font-family: var(--body-font);
  line-height: 1.5;
}

a {
  color: inherit;
}

.backdrop {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.backdrop__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 92%);
}

.backdrop__glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(50px);
}

.backdrop__glow--north {
  top: -80px;
  right: 10%;
  width: 300px;
  height: 300px;
  background: rgba(119, 169, 255, 0.18);
}

.backdrop__glow--south {
  bottom: -120px;
  left: 8%;
  width: 360px;
  height: 360px;
  background: rgba(85, 240, 204, 0.14);
}

.site-header,
.section,
.site-footer {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 1rem 0;
  background: linear-gradient(180deg, rgba(3, 10, 18, 0.96), rgba(3, 10, 18, 0.78));
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(11, 24, 37, 0.82);
  font-family: var(--display-font);
  font-size: 1.35rem;
  color: var(--accent);
  box-shadow: 0 0 40px rgba(121, 169, 255, 0.14);
}

.brand__text {
  display: flex;
  flex-direction: column;
}

.brand__text strong {
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand__text small {
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
}

.button--ops {
  white-space: nowrap;
}

.app-shell {
  padding-top: 1.25rem;
}

.app-page {
  min-height: calc(100vh - 8rem);
}

.app-page[hidden] {
  display: none;
}

.section {
  padding: 5.5rem 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 2rem;
  align-items: center;
  min-height: calc(100vh - 5rem);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display-font);
  line-height: 1.05;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.8rem);
  max-width: 10ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  max-width: 16ch;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.hero__lede,
.section-heading p + h2 + p,
.panel p,
.card p,
.proof-tile p,
.site-footer p {
  color: var(--muted);
}

.hero__lede {
  max-width: 44rem;
  margin: 1.4rem 0 0;
  font-size: 1.08rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 2rem 0 1.4rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.95rem;
  padding: 0 1.15rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: rgba(164, 204, 255, 0.42);
}

.button--primary {
  background: linear-gradient(135deg, rgba(115, 168, 255, 0.22), rgba(128, 240, 212, 0.18));
}

.button--ghost {
  background: rgba(6, 18, 29, 0.64);
}

.signal-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.signal-strip li {
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 18, 29, 0.62);
  color: var(--muted);
  font-size: 0.9rem;
}

.hero__diagram {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 540px;
  margin-inline: auto;
}

.orbit {
  position: absolute;
  inset: 50%;
  border: 1px solid var(--line);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit--outer {
  width: 100%;
  height: 100%;
}

.orbit--mid {
  width: 72%;
  height: 72%;
}

.orbit--inner {
  width: 44%;
  height: 44%;
}

.node {
  position: absolute;
  display: grid;
  place-items: center;
  min-width: 6rem;
  min-height: 6rem;
  padding: 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: radial-gradient(circle at top, rgba(19, 39, 59, 0.98), rgba(5, 15, 24, 0.95));
  color: var(--text);
  text-align: center;
  box-shadow: 0 0 45px rgba(97, 149, 224, 0.12);
}

.node span {
  display: block;
  font-size: 0.78rem;
  line-height: 1.2;
}

.node--core {
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  min-width: 7.2rem;
  min-height: 7.2rem;
  color: var(--accent);
}

.node--bluepulse {
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
}

.node--tellus {
  top: 25%;
  right: 4%;
}

.node--greenpulse {
  bottom: 18%;
  right: 8%;
}

.node--skypulse {
  bottom: 2%;
  left: 52%;
  transform: translateX(-50%);
}

.node--starpulse {
  bottom: 18%;
  left: 8%;
}

.node--ser {
  top: 25%;
  left: 4%;
}

.node--cascade {
  top: 59%;
  left: 10%;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 2rem;
}

.thesis-grid,
.card-grid,
.proof-grid,
.engage-grid {
  display: grid;
  gap: 1rem;
}

.thesis-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.proof-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.engage-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.engage-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
}

.engage-intake {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.engage-intake__lede {
  margin: 0;
}

.engage-form {
  display: grid;
  gap: 0.9rem;
}

.engage-form label {
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.engage-form input,
.engage-form select,
.engage-form textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: rgba(7, 18, 29, 0.82);
  color: var(--text);
  font: inherit;
}

.engage-form textarea {
  resize: vertical;
}

.engage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.engage-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.engage-backend-ref {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(113, 194, 255, 0.28);
  border-radius: 0.8rem;
  background: rgba(16, 47, 73, 0.36);
  color: #cfe9ff;
  font-size: 0.88rem;
  white-space: pre-wrap;
}

.engage-preview-wrap {
  display: grid;
  gap: 0.6rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(7, 18, 29, 0.62);
}

.engage-preview {
  margin: 0;
  white-space: pre-wrap;
  color: var(--muted);
  font-family: "SFMono-Regular", SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.88rem;
}

.panel,
.card,
.proof-tile {
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 1.3rem;
  background: var(--panel);
  backdrop-filter: blur(10px);
}

.card--accent {
  background:
    linear-gradient(180deg, rgba(24, 45, 70, 0.92), rgba(9, 18, 29, 0.92)),
    var(--panel);
}

.card__kicker {
  margin: 0 0 0.8rem;
  color: var(--accent);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.card a,
.proof-tile a {
  display: inline-block;
  margin-top: 1rem;
  color: var(--accent);
  text-decoration: none;
}

.proof-tile__meta {
  display: inline-block;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0 0 2.5rem;
}

.site-footer__meta {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 1100px) {
  .thesis-grid,
  .card-grid,
  .proof-grid,
  .engage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .engage-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 3rem;
  }

  .hero__diagram {
    width: min(100%, 440px);
  }
}

@media (max-width: 640px) {
  .section {
    padding: 4rem 0;
  }

  .thesis-grid,
  .card-grid,
  .proof-grid,
  .engage-grid {
    grid-template-columns: 1fr;
  }

  .hero__actions,
  .signal-strip,
  .site-nav {
    width: 100%;
  }

  .site-nav {
    gap: 0.65rem 1rem;
  }

  .button {
    width: 100%;
  }

  .node {
    min-width: 4.8rem;
    min-height: 4.8rem;
  }

  .node span {
    font-size: 0.68rem;
  }

  .node--core {
    min-width: 6rem;
    min-height: 6rem;
  }
}
