:root {
  --bg: #0b1f33;
  --surface-1: #122a4a;
  --surface-2: #1a3a63;
  --text: #eaf2fb;
  --text-muted: #93aac4;
  --accent: #7dd3fc;
  --accent-support: #fbbf24;
  --danger: #f87171;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-6: 48px;
  --space-8: 64px;

  --radius: 4px;
  --glow: 0 0 24px rgba(125, 211, 252, 0.25);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  line-height: 1.5;
  position: relative;
  overflow-x: hidden;
}

.grid-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(
      rgba(125, 211, 252, 0.08) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(125, 211, 252, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  animation: drift 60s linear infinite;
}

@keyframes drift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 32px 64px;
  }
}

.site-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.wordmark {
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  margin: 0;
}

.wordmark__bond {
  display: inline-block;
  width: 0.55em;
  height: 1em;
  vertical-align: -0.12em;
  position: relative;
}

.wordmark__bond::before,
.wordmark__bond::after {
  content: "";
  position: absolute;
  left: 0.08em;
  width: 0.4em;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  animation: bond-pulse 2.4s var(--ease) 1;
}

.wordmark__bond::before {
  top: 0.4em;
}

.wordmark__bond::after {
  top: 0.62em;
}

@keyframes bond-pulse {
  0% {
    box-shadow: 0 0 0 rgba(125, 211, 252, 0);
  }
  30% {
    box-shadow: 0 0 10px rgba(125, 211, 252, 0.9);
  }
  100% {
    box-shadow: 0 0 0 rgba(125, 211, 252, 0);
  }
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.9rem;
}

.header-nav a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 160ms var(--ease);
}

.header-nav a:hover,
.header-nav a:focus-visible {
  color: var(--text);
}

.header-nav__cta {
  color: var(--accent) !important;
  font-weight: 700;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4) var(--space-8);
}

.hero {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  min-height: 60vh;
  padding: var(--space-6) 0;
}

.hero__copy {
  flex: 1.1;
  min-width: 0;
}

.eyebrow {
  color: var(--accent-support);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  margin: 0 0 var(--space-2);
}

.hero h2 {
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.1;
  margin: 0 0 var(--space-3);
}

.lede {
  color: var(--text-muted);
  max-width: 56ch;
  font-size: 1rem;
  margin: 0 0 var(--space-4);
}

.cta-button {
  display: inline-block;
  background: var(--accent);
  color: #06263d;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
  padding: var(--space-2) var(--space-4);
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease);
}

.cta-button:hover,
.cta-button:focus-visible {
  box-shadow: var(--glow);
  transform: translateY(-1px);
}

.hero__note {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: var(--space-2) 0 0;
}

.hero__sample {
  flex: 0.9;
  min-width: 280px;
  background: var(--surface-1);
  border: 1px solid var(--accent-support);
  border-radius: var(--radius);
  padding: var(--space-3);
  box-shadow: var(--glow);
}

.hero__sample-label {
  color: var(--text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 var(--space-1);
}

.hero__sample-input {
  display: block;
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: var(--space-1) var(--space-2);
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: var(--space-3);
}

.hero__sample-structure {
  width: 100%;
  height: auto;
  display: block;
}

.hero__sample-readout {
  text-align: right;
  color: var(--accent-support);
  font-weight: 700;
  margin: var(--space-2) 0 0;
}

.specs {
  border-top: 1px dashed rgba(125, 211, 252, 0.35);
  border-bottom: 1px dashed rgba(125, 211, 252, 0.35);
  padding: var(--space-6) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.specs__row {
  display: grid;
  grid-template-columns: 3rem 16rem 1fr;
  gap: var(--space-3);
  align-items: baseline;
}

.specs__index {
  color: var(--accent-support);
  font-weight: 700;
}

.specs__row h3 {
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  margin: 0;
  font-size: 1.1rem;
}

.specs__row p {
  color: var(--text-muted);
  margin: 0;
  max-width: 60ch;
}

.explainer {
  max-width: 70ch;
  margin: 0 auto;
  padding: var(--space-6) 0;
  border-top: 1px dashed rgba(125, 211, 252, 0.35);
}

.explainer h2 {
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin: 0 0 var(--space-3);
}

.explainer h3 {
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.1rem;
  margin: var(--space-4) 0 var(--space-2);
  color: var(--accent);
}

.explainer p,
.explainer li,
.faq dd {
  color: var(--text-muted);
}

.explainer p {
  margin: 0 0 var(--space-2);
}

.explainer code {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 0.1em 0.4em;
  color: var(--accent);
  font-size: 0.9em;
}

.explainer ol {
  margin: 0;
  padding-left: 1.4em;
}

.explainer ol li {
  margin-bottom: var(--space-1);
}

.faq {
  margin: 0;
}

.faq dt {
  color: var(--text);
  font-weight: 700;
  margin-top: var(--space-3);
}

.faq dd {
  margin: var(--space-1) 0 0;
}

.closing {
  text-align: center;
  padding: var(--space-8) 0;
}

.closing h2 {
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin: 0 0 var(--space-4);
}

.site-footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: var(--space-4);
}

.site-footer a {
  color: var(--text-muted);
}

.site-footer__more {
  margin: var(--space-1) 0 0;
  font-size: 0.8rem;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }

  .specs__row {
    grid-template-columns: 2.5rem 1fr;
  }

  .specs__row h3 {
    grid-column: 2;
  }

  .specs__row p {
    grid-column: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .grid-backdrop {
    animation: none;
  }

  .wordmark__bond::before,
  .wordmark__bond::after {
    animation: none;
  }
}
