:root {
  --bg: #07101d;
  --surface: rgba(9, 21, 37, .72);
  --text: #f4f7fb;
  --muted: #aebed0;
  --accent: #7de8ff;
  --accent-strong: #c6f8ff;
  --line: rgba(125, 232, 255, .26);
  --pulse-scale: 1;
  --drift: 7px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 72% 28%, rgba(32, 115, 155, .20), transparent 34rem),
    radial-gradient(circle at 16% 74%, rgba(88, 71, 163, .15), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: clip;
  isolation: isolate;
  display: grid;
  align-items: center;
  padding: clamp(2rem, 8vw, 9rem) clamp(1.25rem, 7vw, 7rem);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg));
}

.hero-graphic {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.constellation {
  width: 100%;
  height: 100%;
  overflow: visible;
  color: var(--accent);
}

.constellation--mobile { display: none; }

.introgression-system svg path {
  fill: none;
}

.introgression-system .network-lines path {
  stroke-linecap: round;
  stroke-linejoin: round;
}

.introgression-system .node text {
  stroke: none;
}

.introgression-system .node-core,
.introgression-system .ambient-stars circle,
.introgression-system .travel-pulse {
  stroke: none;
}

.introgression-system .network-lines path {
  fill: none;
  stroke: currentColor;
  stroke-opacity: var(--line-energy, .55);
  stroke-width: 1.15;
  vector-effect: non-scaling-stroke;
}

.introgression-system .constellation--mobile .network-lines path {
  stroke: var(--line);
}

.introgression-system .ambient-stars circle,
.introgression-system .node-core {
  fill: currentColor;
}

.introgression-system .ambient-stars circle {
  opacity: .32;
  animation: twinkle 4s ease-in-out infinite alternate;
}

.introgression-system .ambient-stars circle:nth-child(2n) { animation-delay: -1.3s; }
.introgression-system .ambient-stars circle:nth-child(3n) { animation-delay: -2.5s; }

.introgression-system .node {
  color: var(--accent);
  opacity: .72;
  transition: opacity .28s ease, filter .28s ease;
}

.introgression-system .node text {
  fill: var(--muted);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: .6em;
}

.introgression-system .node-ring {
  fill: rgba(7, 16, 29, .72);
  stroke: currentColor;
  stroke-width: 1.25;
}

.introgression-system .node-ring--outer {
  opacity: .26;
  stroke-dasharray: 3 6;
  animation: spin 18s linear infinite;
}

.introgression-system .node-core { filter: drop-shadow(0 0 calc(6px * var(--pulse-scale)) currentColor); }

.introgression-system .node--minor { opacity: .45; }

.introgression-system .node.is-active {
  opacity: 1;
  filter: drop-shadow(0 0 calc(9px * var(--pulse-scale)) currentColor);
}

.introgression-system .node.is-active .node-ring {
  animation: node-bloom .72s ease-out;
}

.introgression-system .node--destination.is-active .node-ring--outer {
  animation: impact-ring 1.2s ease-out;
}

.introgression-system .travel-pulse {
  fill: var(--accent-strong);
  opacity: 0;
  transform-origin: center;
  filter: drop-shadow(0 0 calc(12px * var(--pulse-scale)) var(--accent));
}

.introgression-system .travel-pulse--secondary {
  opacity: .7;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(690px, 100%);
}

.hero-eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .19em;
}

h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(3.2rem, 7.7vw, 7.6rem);
  line-height: .93;
  letter-spacing: -.008em;
}

.hero-lede {
  max-width: 42rem;
  margin: 1.6rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.28rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .82rem 1.15rem;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-weight: 720;
  backdrop-filter: blur(12px);
}

.button--primary {
  background: var(--text);
  color: var(--bg);
}

.button--secondary { background: rgba(255,255,255,.035); }










.placeholder-section {
  min-height: 60vh;
  padding: 6rem clamp(1.25rem, 7vw, 7rem);
}

@keyframes twinkle {
  to { opacity: .75; }
}

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

@keyframes node-bloom {
  0% { transform: scale(.75); opacity: .2; }
  55% { transform: scale(1.45); opacity: 1; }
  100% { transform: scale(1); opacity: .78; }
}

@keyframes impact-ring {
  0% { transform: scale(.6); opacity: .8; }
  100% { transform: scale(2.15); opacity: 0; }
}

@media (max-width: 760px) {
  .hero {
    align-items: end;
    min-height: 100svh;
    padding: 24px 1.25rem 4.25rem;
  }

  .constellation--desktop { display: none; }
  .constellation--mobile { display: block; }

  .hero-graphic {
    inset: 0 0 18%;
    opacity: .78;
    transform: translateY(calc(var(--drift) * -1));
  }

  .hero-content {
    padding-top: 2rem;
  }

  h1 {
    max-width: 9ch;
    font-size: clamp(3.1rem, 15vw, 5.5rem);
  }

  .hero-lede {
    font-size: 1rem;
    max-width: 32rem;
  }

  .hero-actions {
    display: grid;
  }

  .button { width: 100%; }

  .introgression-system .node text { font-size: 12px; }
}

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

  .ambient-stars circle,
  .introgression-system .node-ring--outer {
    animation: none;
  }

  .introgression-system .travel-pulse { display: none; }
}


/* Living product-system assembly */
:root {
  --assembly: 1;
}

.introgression-system .network-lines path {
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--assembly));
  pathLength: 1;
  opacity: calc(.12 + (var(--assembly) * .88));
  transition: stroke-dashoffset .08s linear, opacity .18s ease;
}

.introgression-system .node {
  opacity: calc(.12 + (var(--assembly) * .60));
  transform-box: fill-box;
  transform-origin: center;
  scale: calc(.76 + (var(--assembly) * .24));
}

.ambient-stars {
  opacity: calc(.08 + (var(--assembly) * .92));
}

.hero-content {
  --content-shift: calc((1 - var(--assembly)) * 24px);
  transform: translateY(var(--content-shift));
  opacity: calc(.35 + (var(--assembly) * .65));
  transition: opacity .12s linear, transform .12s linear;
}

.system-status {
  display: grid;
  grid-template-columns: auto minmax(60px, 180px) auto;
  gap: .65rem;
  align-items: center;
  width: min(100%, 240px);
  margin-top: 1.25rem;
  font-size: .66rem;
  font-weight: 760;
  letter-: .8em;
  color: var(--muted);
}

.system-status__track {
  height: 1px;
  background: rgba(255,255,255,.14);
  overflow: hidden;
}

.system-status__fill {
  display: block;
  width: calc(var(--assembly) * 100%);
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.system-status__value {
  color: var(--accent);
}

.hero.is-complete .system-status__value::before {
  content: "ALIGNED";
  font-size: 0;
}

.hero.is-complete .system-status__value {
  font-size: 0;
}

.hero.is-complete .system-status__value::after {
  content: "ALIGNED";
  font-size: .66rem;
}

@media (max-width: 760px) {
  .system-status {
    grid-template-columns: auto 1fr;
  }

  .system-status__value {
    grid-column: 1 / -1;
  }
}


/* Large desktop composition: broad constellation with slight text overlap */
@media (min-width: 1100px) {
  .hero-graphic {
    left: 20%;
    width: 80%;
    right: auto;
  }

  .constellation--desktop {
    transform: translateX(-1.5%);
    transform-origin: center;
  }

  .hero-content {
    width: min(650px, 46vw);
    max-width: 46vw;
  }
}




/* Strong, independently variable connector illumination */
.introgression-system .network-lines path {
  --line-energy: .72;
  --line-duration: 3.8s;
  --line-delay: 0s;

  stroke: var(--accent);
  stroke-width: 1.25;
  stroke-opacity: calc(.20 + var(--line-energy) * .68);
  opacity: calc((.22 + var(--assembly) * .78) * var(--line-energy));

  filter:
    drop-shadow(0 0 calc(2px + 5px * var(--line-energy))
      rgba(125, 232, 255, calc(.25 + var(--line-energy) * .42)))
    drop-shadow(0 0 calc(5px + 12px * var(--line-energy))
      rgba(125, 232, 255, calc(.08 + var(--line-energy) * .22)));

  transition:
    stroke-opacity .75s ease,
    opacity .75s ease,
    filter .75s ease,
    stroke-dashoffset .08s linear;

  animation:
    connector-glow var(--line-duration) ease-in-out
    var(--line-delay) infinite alternate;
}

@keyframes connector-glow {
  0% {
    stroke-opacity: calc(.12 + var(--line-energy) * .36);
    filter:
      drop-shadow(0 0 2px rgba(125, 232, 255, .22))
      drop-shadow(0 0 5px rgba(125, 232, 255, .10));
  }

  48% {
    stroke-opacity: calc(.30 + var(--line-energy) * .62);
    filter:
      drop-shadow(0 0 calc(4px + 7px * var(--line-energy))
        rgba(125, 232, 255, calc(.34 + var(--line-energy) * .40)))
      drop-shadow(0 0 calc(9px + 16px * var(--line-energy))
        rgba(125, 232, 255, calc(.12 + var(--line-energy) * .24)));
  }

  100% {
    stroke-opacity: calc(.18 + var(--line-energy) * .48);
    filter:
      drop-shadow(0 0 calc(3px + 5px * var(--line-energy))
        rgba(125, 232, 255, calc(.28 + var(--line-energy) * .30)))
      drop-shadow(0 0 calc(7px + 12px * var(--line-energy))
        rgba(125, 232, 255, calc(.10 + var(--line-energy) * .20)));
  }
}

/* The route highlight remains steady and independent of connector flicker */
.travel-pulse--primary {
  opacity: 1;
  transition: none;
  filter:
    drop-shadow(0 0 9px var(--accent))
    drop-shadow(0 0 20px rgba(125, 232, 255, .72));
}

@media (max-width: 760px) {
  .hero {
    padding-top: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .introgression-system .network-lines path {
    animation: none;
  }
}
