:root {
  color-scheme: dark;
  --black: #000000;
  --charcoal: #111111;
  --white: #ffffff;
  --muted: #b7b7b7;
  --dim: #737373;
  --rule: #2f2f2f;
  --rule-hard: #525252;
  --blueprint: #0057ff;
  --orange: #ff4500;
  --font-sans: "Inter", Arial, Helvetica, sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;
  --section-pad: clamp(92px, 15vw, 210px);
  --edge: clamp(20px, 5vw, 80px);
  --max: 1120px;
  --copy: 700px;
  --motion: 220ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-sans);
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg width='56' height='56' viewBox='0 0 56 56' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0H56M0 0V56' fill='none' stroke='%230057ff' stroke-opacity='.32' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 56px 56px;
  opacity: 0.22;
}

main {
  overflow: hidden;
}

::selection {
  background: var(--blueprint);
  color: var(--white);
}

.section-black {
  background: var(--black);
}

.section-charcoal {
  background: var(--charcoal);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 96px var(--edge);
  isolation: isolate;
}

.hero::after,
.section::after {
  position: absolute;
  left: var(--edge);
  right: var(--edge);
  bottom: 0;
  height: 1px;
  content: "";
  background: var(--rule);
}

.hero-inner {
  width: min(100%, 1040px);
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  text-align: center;
}

.schematic-field {
  position: absolute;
  inset: auto 50% 50%;
  width: min(86vw, 720px);
  aspect-ratio: 1;
  transform: translate(50%, 50%);
  opacity: 0.2;
  z-index: 1;
}

.schematic-field svg,
.terrain-map svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

svg path,
svg circle {
  fill: none;
  stroke: var(--blueprint);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

svg .signal,
svg .route-engineered {
  stroke: var(--white);
  stroke-width: 2;
}

.eyebrow,
.section-label,
.map-label {
  margin: 0;
  color: var(--blueprint);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

h1 {
  margin-top: 24px;
  font-size: clamp(56px, 15vw, 176px);
  line-height: 0.78;
}

h2 {
  max-width: 900px;
  margin-top: 26px;
  font-size: clamp(42px, 8vw, 106px);
  line-height: 0.88;
}

.subheadline {
  margin: 34px 0 0;
  color: var(--white);
  font-size: clamp(18px, 2.3vw, 30px);
  font-weight: 700;
  line-height: 1.25;
}

.hook {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 23px);
  font-style: italic;
  line-height: 1.55;
}

.section {
  position: relative;
  padding: var(--section-pad) var(--edge);
}

.section-shell {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  justify-items: center;
  text-align: center;
}

.section-shell > p:not(.section-label) {
  max-width: var(--copy);
  margin: 34px auto 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.65;
}

.split {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: clamp(56px, 9vw, 120px);
  align-items: center;
  justify-items: stretch;
  text-align: left;
}

.split .section-label,
.split h2,
.split p {
  margin-left: 0;
  margin-right: 0;
}

.split div > p:not(.section-label) {
  max-width: 620px;
  margin-top: 30px;
  color: var(--muted);
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.65;
}

.terrain-map {
  position: relative;
  min-height: 420px;
  border: 1px solid var(--rule-hard);
  background-color: var(--black);
  background-image: url("data:image/svg+xml,%3Csvg width='28' height='28' viewBox='0 0 28 28' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0H28M0 0V28' fill='none' stroke='%23ffffff' stroke-opacity='.08' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 28px 28px;
  padding: 42px;
}

.terrain-map::before,
.terrain-map::after {
  position: absolute;
  content: "";
  background: var(--blueprint);
}

.terrain-map::before {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  opacity: 0.45;
}

.terrain-map::after {
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  opacity: 0.45;
}

.map-label {
  position: absolute;
  z-index: 2;
  color: var(--white);
  background: var(--black);
  padding: 8px 10px;
  border: 1px solid var(--rule-hard);
}

.map-label.top {
  top: 22px;
  left: 22px;
}

.map-label.bottom {
  right: 22px;
  bottom: 22px;
}

.terrain-map .route-default {
  stroke: var(--orange);
  stroke-width: 2;
}

.terrain-map .barrier {
  stroke: var(--white);
  stroke-width: 2.4;
}

.capture-form {
  width: min(100%, 760px);
  margin-top: 42px;
  color: var(--white);
  font-family: var(--font-sans);
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr) minmax(170px, auto);
  gap: 8px;
  border: 1px solid var(--rule-hard);
  padding: 12px;
  background: var(--black);
}

.asset .capture-form {
  margin-top: 52px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.capture-form input,
.capture-form button {
  min-height: 58px;
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 13px;
}

.capture-form input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--rule-hard);
  background: var(--black);
  color: var(--white);
  padding: 0 16px;
}

.capture-form input::placeholder {
  color: var(--dim);
}

.capture-form button {
  border: 1px solid var(--blueprint);
  background: var(--blueprint);
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 26px;
  cursor: pointer;
  transition: background var(--motion), color var(--motion), border-color var(--motion);
}

.capture-form button:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--black);
}

.capture-form button:focus-visible,
.capture-form input:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.footer {
  padding: 34px var(--edge);
  background: var(--black);
  border-top: 1px solid var(--rule);
}

.footer p {
  width: min(100%, var(--max));
  margin: 0 auto;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-inner,
  .section-shell {
    animation: rise 680ms ease both;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(18px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .split .section-label,
  .split h2,
  .split p {
    margin-left: auto;
    margin-right: auto;
  }

  .terrain-map {
    width: min(100%, 560px);
    margin: 0 auto;
  }

  .capture-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  :root {
    --section-pad: 104px;
    --edge: 20px;
  }

  .hero {
    align-items: center;
    padding-top: 70px;
    padding-bottom: 70px;
  }

  h1 {
    font-size: clamp(54px, 18vw, 88px);
  }

  h2 {
    font-size: clamp(38px, 12vw, 58px);
  }

  .terrain-map {
    min-height: 320px;
    padding: 28px;
  }

  .map-label {
    font-size: 10px;
  }
}
