:root {
  --bg: #070b12;
  --surface: #0c121f;
  --surface-soft: #0f1728;
  --ink: #eff4ff;
  --ink-soft: #a8b4cd;
  --line: rgba(180, 198, 232, 0.22);
  --cyan: #32d8df;
  --cyan-strong: #18b8bf;
  --blue: #4371ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Courier New", Courier, monospace;
  background:
    radial-gradient(circle at 12% -4%, rgba(67, 113, 255, 0.25), transparent 30%),
    radial-gradient(circle at 88% 4%, rgba(50, 216, 223, 0.24), transparent 28%),
    var(--bg);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
}

.background-glow {
  position: fixed;
  pointer-events: none;
  z-index: -3;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.26;
}

.background-glow-a {
  width: 340px;
  height: 340px;
  top: -120px;
  left: -90px;
  background: #35cedf;
}

.background-glow-b {
  width: 420px;
  height: 420px;
  right: -160px;
  top: 32vh;
  background: #4b68ff;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 0.7px, transparent 0.7px);
  background-size: 3px 3px;
  opacity: 0.16;
  pointer-events: none;
}

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

.dna-bit {
  position: absolute;
  --dna-w: 40px;
  width: var(--dna-w);
  height: calc(var(--dna-w) * 2.05);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 128' fill='none'%3E%3Cpath d='M17 6C35 14 35 26 17 34C-1 42 -1 54 17 62C35 70 35 82 17 90C-1 98 -1 110 17 118' stroke='%2368EBFF' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M47 6C29 14 29 26 47 34C65 42 65 54 47 62C29 70 29 82 47 90C65 98 65 110 47 118' stroke='%235A79FF' stroke-width='4' stroke-linecap='round'/%3E%3Cg stroke='%23C9DAFF' stroke-opacity='0.72' stroke-width='2'%3E%3Cline x1='20' y1='16' x2='44' y2='16'/%3E%3Cline x1='20' y1='30' x2='44' y2='30'/%3E%3Cline x1='20' y1='44' x2='44' y2='44'/%3E%3Cline x1='20' y1='58' x2='44' y2='58'/%3E%3Cline x1='20' y1='72' x2='44' y2='72'/%3E%3Cline x1='20' y1='86' x2='44' y2='86'/%3E%3Cline x1='20' y1='100' x2='44' y2='100'/%3E%3Cline x1='20' y1='114' x2='44' y2='114'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.56;
  filter: drop-shadow(0 0 12px rgba(86, 201, 255, 0.26));
  transform-origin: 50% 50%;
  animation: dna-float 24s linear infinite;
}

.bit-1 {
  top: 10%;
  left: 7%;
  --dna-w: 34px;
  animation-duration: 19s;
  animation-delay: -3s;
}

.bit-2 {
  top: 20%;
  left: 84%;
  --dna-w: 44px;
  animation-duration: 24s;
  animation-delay: -11s;
}

.bit-3 {
  top: 40%;
  left: 12%;
  --dna-w: 32px;
  animation-duration: 21s;
  animation-delay: -5s;
}

.bit-4 {
  top: 58%;
  left: 83%;
  --dna-w: 36px;
  animation-duration: 23s;
  animation-delay: -16.5s;
}

.bit-5 {
  top: 75%;
  left: 18%;
  --dna-w: 45px;
  animation-duration: 26.5s;
  animation-delay: -7s;
}

.bit-6 {
  top: 82%;
  left: 66%;
  --dna-w: 31px;
  animation-duration: 20s;
  animation-delay: -12s;
}

.bit-7 {
  top: 33%;
  left: 80%;
  --dna-w: 41px;
  animation-duration: 25.2s;
  animation-delay: -2s;
}

.bit-8 {
  top: 8%;
  left: 72%;
  --dna-w: 35px;
  animation-duration: 21.5s;
  animation-delay: -9s;
}

.bit-9 {
  top: 52%;
  left: 5%;
  --dna-w: 39px;
  animation-duration: 22s;
  animation-delay: -14s;
}

.bit-10 {
  top: 69%;
  left: 76%;
  --dna-w: 33px;
  animation-duration: 18s;
  animation-delay: -4.5s;
}

.site-nav {
  width: 100%;
  margin: 0;
  padding: 0.45rem 0.7rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.9rem;
  position: sticky;
  top: 0;
  z-index: 12;
  background: rgba(7, 11, 18, 0.42);
  border: 1px solid rgba(180, 198, 232, 0.2);
  border-radius: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ink);
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(1.6rem, 3.1vw, 2.35rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-rna {
  font-weight: 900;
  color: #d9f7ff;
  text-shadow: 0 0 10px rgba(112, 225, 255, 0.34);
}

.brand img {
  width: clamp(62px, 5vw, 80px);
  height: clamp(62px, 5vw, 80px);
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  justify-self: start;
}

.nav-links a {
  font-size: 0.92rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
  font-weight: 700;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible {
  outline: 3px solid rgba(50, 216, 223, 0.4);
  outline-offset: 2px;
}

.button.ghost {
  padding: 0.56rem 0.96rem;
  border: 1px solid rgba(174, 204, 255, 0.35);
  color: var(--ink);
  background: rgba(13, 23, 41, 0.78);
  font-size: 0.92rem;
}

.cta-right {
  justify-self: end;
}

.button.solid {
  padding: 0.76rem 1.18rem;
  color: #04131a;
  background: linear-gradient(135deg, var(--cyan) 0%, #58e9ef 100%);
  box-shadow: 0 10px 34px rgba(50, 216, 223, 0.36);
}

.button.text {
  color: var(--ink-soft);
  padding: 0.74rem 0.2rem;
}

main {
  width: min(1100px, calc(100% - 2.4rem));
  margin: 2.4rem auto 3.6rem;
}

.hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-kicker {
  margin: 0 0 0.85rem;
  color: #90a4cb;
  font-size: 0.76rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(1.9rem, 4.7vw, 3.85rem);
  letter-spacing: -0.03em;
  line-height: 1.02;
  max-width: none;
  white-space: nowrap;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: center;
}

.proof-pill {
  margin: 0.95rem 0 1.15rem;
  display: block;
  border: 1px solid rgba(169, 196, 255, 0.3);
  border-radius: 12px;
  padding: 0.58rem 0.95rem;
  color: #b1c2e3;
  background: rgba(11, 19, 33, 0.74);
  font-size: 0.86rem;
  line-height: 1.35;
}

.mcp-inline {
  margin: 0.72rem 0 0;
  color: #9db3d9;
  font-size: 0.83rem;
  white-space: nowrap;
}

.hero-value-points {
  margin: 0.5rem 0 0;
  color: #d2def6;
  font-size: 0.89rem;
  white-space: nowrap;
}

.hero-grid {
  margin-top: 1.7rem;
  display: grid;
  grid-template-columns: 1.1fr 0.95fr;
  gap: 1rem;
}

.signal-card,
.waitlist-card,
.layer-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(170deg, rgba(15, 23, 40, 0.86), rgba(8, 13, 23, 0.9));
  box-shadow: var(--shadow);
}

.signal-card {
  padding: 1.2rem;
}

.mini-heading {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #88a0cb;
  font-weight: 700;
}

.signal-card h2 {
  margin: 0.45rem 0 0;
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(1.3rem, 2.6vw, 1.72rem);
  max-width: none;
  white-space: nowrap;
}

.signal-card p:not(.mini-heading) {
  margin: 0.64rem 0 0;
  color: var(--ink-soft);
}

.signal-card pre {
  margin: 1rem 0 0;
  padding: 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(130, 151, 187, 0.3);
  background: rgba(2, 7, 14, 0.76);
  color: #93f1ff;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.82rem;
  overflow-x: auto;
}

.typing-code code {
  display: block;
}

.typing-line {
  display: block;
  min-height: 1.35em;
  width: fit-content;
  max-width: 100%;
  position: relative;
  white-space: nowrap;
}

.typing-line.is-typing::after {
  content: "";
  position: absolute;
  top: 0.14em;
  right: -5px;
  width: 2px;
  height: 1em;
  background: #bff6ff;
  animation: caret-blink 700ms step-end infinite;
}

.signal-model-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.42rem;
}

.model-kicker {
  margin-top: 1rem;
}

.signal-model-grid .layer-card {
  width: 100%;
}

.stack-card {
  opacity: 0.66;
  transform: translateY(6px);
  transition: opacity 300ms ease, transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.stack-card.is-active {
  opacity: 1;
  transform: translateY(0);
  border-color: rgba(122, 182, 234, 0.55);
}

.signal-model-grid .layer-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
}

.stack-heading {
  margin: 0;
  font-size: 1.05rem !important;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.signal-model-grid .layer-card p {
  font-size: 0.94rem;
}

.stack-connector {
  --pulse-delay: 0s;
  display: flex;
  justify-content: center;
  margin: -0.58rem 0;
}

.stack-connector.connector-a {
  --pulse-delay: 0.7s;
}

.stack-connector.connector-b {
  --pulse-delay: 2.1s;
}

.stack-connector svg {
  width: 34px;
  height: 52px;
}

.stack-strand {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stack-strand {
  stroke-width: 1.25;
  stroke-dasharray: 4 6;
}

.stack-strand.strand-a {
  stroke: rgba(122, 225, 255, 0.82);
}

.stack-strand.strand-b {
  stroke: rgba(112, 140, 255, 0.8);
}

.synergy-stack.is-live .stack-card {
  animation: stack-card-glow 4.2s ease-in-out infinite;
}

.synergy-stack.is-live .stack-card[data-stack="1"] {
  animation-delay: 0s;
}

.synergy-stack.is-live .stack-card[data-stack="2"] {
  animation-delay: 1.4s;
}

.synergy-stack.is-live .stack-card[data-stack="3"] {
  animation-delay: 2.8s;
}

.synergy-stack.is-live .stack-card h3,
.synergy-stack.is-live .stack-card p {
  animation: stack-text-glow 4.2s ease-in-out infinite;
}

.synergy-stack.is-live .stack-card[data-stack="1"] h3,
.synergy-stack.is-live .stack-card[data-stack="1"] p {
  animation-delay: 0s;
}

.synergy-stack.is-live .stack-card[data-stack="2"] h3,
.synergy-stack.is-live .stack-card[data-stack="2"] p {
  animation-delay: 1.4s;
}

.synergy-stack.is-live .stack-card[data-stack="3"] h3,
.synergy-stack.is-live .stack-card[data-stack="3"] p {
  animation-delay: 2.8s;
}

.synergy-stack.is-live .stack-connector .stack-strand {
  animation:
    wire-flow 1.35s linear infinite,
    stack-connector-glow 4.2s ease-in-out infinite;
  animation-delay: 0s, var(--pulse-delay);
}

.waitlist-card {
  padding: 1.2rem;
}

.waitlist-card h2 {
  margin: 0.45rem 0 0;
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(1.3rem, 2.6vw, 1.72rem);
}

.waitlist-copy {
  margin: 0.6rem 0 0.95rem;
  color: var(--ink-soft);
}

form {
  display: grid;
  gap: 0.46rem;
}

label {
  margin-top: 0.12rem;
  color: #d5e0f7;
  font-size: 0.86rem;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border-radius: 11px;
  border: 1px solid rgba(157, 180, 220, 0.32);
  background: rgba(10, 17, 30, 0.9);
  color: var(--ink);
  font: inherit;
  padding: 0.64rem 0.7rem;
}

textarea {
  min-height: 108px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #93a6ca;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(50, 216, 223, 0.3);
  border-color: transparent;
}

.consent {
  margin-top: 0.16rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: #b6c6e3;
  font-size: 0.82rem;
}

.consent input {
  width: auto;
  margin-top: 0.08rem;
}

.hp-field {
  position: absolute;
  left: -5000px;
}

button[type="submit"] {
  margin-top: 0.34rem;
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 0.77rem 0.9rem;
  color: #04131a;
  background: linear-gradient(135deg, var(--cyan) 0%, #5febef 100%);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

button[type="submit"]:disabled {
  opacity: 0.75;
  cursor: progress;
}

#form-status {
  min-height: 1.3rem;
  margin: 0.38rem 0 0;
  font-size: 0.84rem;
  font-weight: 700;
}

#form-status[data-tone="error"] {
  color: #ff9d9d;
}

#form-status[data-tone="success"] {
  color: #96ffd8;
}

.layer-card {
  position: relative;
  padding: 1rem;
  transition: border-color 480ms ease, box-shadow 480ms ease;
}

.layer-index {
  margin: 0;
  font-family: "Courier New", Courier, monospace;
  color: #8c9fc8;
  font-size: 0.8rem;
}

.layer-card h3 {
  margin: 0.38rem 0 0;
  font-family: "Courier New", Courier, monospace;
  font-size: 1.25rem;
}

.layer-card p {
  margin: 0.48rem 0 0;
  color: var(--ink-soft);
}

.site-footer {
  width: min(1100px, calc(100% - 2.4rem));
  margin: 0 auto 2.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(158, 182, 226, 0.2);
  color: #9bb0d8;
  font-size: 0.88rem;
  display: flex;
  justify-content: space-between;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes dna-float {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  25% {
    transform: translate3d(12px, -14px, 0) rotate(90deg);
  }
  50% {
    transform: translate3d(-12px, -22px, 0) rotate(180deg);
  }
  75% {
    transform: translate3d(10px, -9px, 0) rotate(270deg);
  }
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
}

@keyframes stack-card-glow {
  0%,
  70%,
  100% {
    border-color: rgba(122, 182, 234, 0.5);
    box-shadow: none;
  }
  12%,
  26% {
    border-color: rgba(132, 229, 238, 0.88);
    box-shadow: 0 0 16px rgba(117, 214, 255, 0.18);
  }
}

@keyframes stack-connector-glow {
  0%,
  70%,
  100% {
    filter: none;
    opacity: 0.68;
  }
  14%,
  30% {
    filter: drop-shadow(0 0 6px rgba(133, 223, 255, 0.24));
    opacity: 1;
  }
}

@keyframes stack-text-glow {
  0%,
  70%,
  100% {
    color: inherit;
    text-shadow: none;
  }
  12%,
  26% {
    color: #edf6ff;
    text-shadow: 0 0 8px rgba(131, 220, 255, 0.24);
  }
}

@keyframes wire-flow {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -36;
  }
}

@keyframes caret-blink {
  50% {
    opacity: 0;
  }
}

@media (max-width: 940px) {
  .site-nav {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0.55rem;
    margin-top: 0.65rem;
  }

  .brand {
    order: 1;
  }

  .nav-links {
    order: 2;
    justify-self: center;
    flex-wrap: wrap;
    justify-content: center;
  }

  .cta-right {
    order: 3;
    justify-self: center;
  }

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

  .signal-model-grid {
    gap: 0.48rem;
  }

  .hero h1,
  .signal-card h2 {
    white-space: normal;
  }

  .mcp-inline {
    white-space: normal;
  }

  .dna-bit {
    opacity: 0.34;
  }

  .bit-2,
  .bit-4,
  .bit-7,
  .bit-9 {
    display: none;
  }

  .site-footer {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .dna-field {
    display: none;
  }
}
