:root {
  color-scheme: dark;
  --background: #030a13;
  --surface: #071421;
  --surface-strong: #0a1b2b;
  --line: #17384a;
  --line-bright: #2b7182;
  --text: #ecfbff;
  --muted: #94adc1;
  --cyan: #65eff9;
  --cyan-strong: #22d5e5;
  --green: #4be4ae;
  --amber: #ffae2b;
  --purple: #8c68e7;
  --max-width: 1200px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 72% 8%, rgb(25 92 112 / 17%), transparent 28rem),
    linear-gradient(rgb(12 31 47 / 35%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(12 31 47 / 35%) 1px, transparent 1px),
    var(--background);
  background-size: auto, 48px 48px, 48px 48px, auto;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  color: #001018;
  background: var(--cyan);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  min-height: 76px;
  padding: 0 4vw;
  border-bottom: 1px solid var(--line);
  background: rgb(3 10 19 / 88%);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  width: fit-content;
  color: var(--text);
  font-size: 0.95rem;
  letter-spacing: 0.11em;
  text-decoration: none;
}

.brand strong {
  color: var(--cyan);
}

.site-header nav,
.footer-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.site-header nav a,
.footer-links a {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-header nav a:hover,
.footer-links a:hover,
.header-action:hover {
  color: var(--cyan);
}

.header-action {
  justify-self: end;
  color: var(--text);
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
}

.hero,
.section,
.closing,
footer {
  width: min(calc(100% - 3rem), var(--max-width));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(32rem, 1.3fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  min-height: calc(100svh - 76px);
  padding: 5rem 0;
}

.eyebrow,
.section-number {
  margin: 0 0 1.5rem;
  color: var(--cyan);
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.eyebrow span {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 1rem var(--green);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 13ch;
  margin-bottom: 1.5rem;
  font-size: clamp(3.5rem, 7.3vw, 7rem);
  font-weight: 620;
  letter-spacing: -0.065em;
  line-height: 0.91;
}

h1 em {
  color: transparent;
  font-style: normal;
  -webkit-text-stroke: 1px #7891a3;
}

.hero-summary,
.section-copy > p,
.section-heading > p,
.workshop-feature p,
.closing > p {
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.8;
}

.hero-summary {
  max-width: 37rem;
  margin-bottom: 2rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.3rem;
  padding: 0.9rem 1.25rem;
  border: 1px solid var(--line-bright);
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.button-primary {
  border-color: var(--cyan);
  color: #00151c;
  background: var(--cyan);
}

.button-primary:hover {
  background: #a2f8ff;
}

.button-secondary {
  color: var(--text);
  background: rgb(7 20 33 / 72%);
}

.button-secondary:hover {
  border-color: var(--cyan);
}

.hero-note {
  margin-top: 1rem;
  color: #607b91;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-visual {
  position: relative;
  margin: 0;
}

.hero-visual::before,
.hero-visual::after {
  position: absolute;
  z-index: 1;
  width: 3rem;
  height: 3rem;
  content: "";
  pointer-events: none;
}

.hero-visual::before {
  top: -0.6rem;
  left: -0.6rem;
  border-top: 2px solid var(--cyan);
  border-left: 2px solid var(--cyan);
}

.hero-visual::after {
  right: -0.6rem;
  bottom: -0.6rem;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
}

.hero-visual img {
  width: 100%;
  border: 1px solid var(--line);
  box-shadow: 0 2rem 6rem rgb(0 0 0 / 48%);
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgb(7 20 33 / 70%);
}

.signal-strip div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1.6rem;
  border-right: 1px solid var(--line);
}

.signal-strip div:last-child {
  border-right: 0;
}

.signal-strip strong {
  color: var(--cyan);
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 1.25rem;
}

.signal-strip span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section {
  padding: clamp(5rem, 10vw, 9rem) 0;
  border-bottom: 1px solid var(--line);
}

.story {
  display: grid;
  grid-template-columns: 1fr minmax(20rem, 0.7fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
}

.section-copy h2,
.section-heading h2,
.closing h2 {
  max-width: 14ch;
  margin-bottom: 1.5rem;
  font-size: clamp(2.6rem, 5.5vw, 5rem);
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.section-copy > p {
  max-width: 42rem;
}

.signature {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.4rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.78rem !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.signature span {
  color: var(--text);
}

.signature a,
.text-link {
  color: var(--cyan);
  text-decoration: none;
}

.story-visual {
  margin: 0;
  transform: rotate(1.2deg);
}

.story-visual img {
  border: 1px solid var(--line-bright);
  box-shadow: 1.2rem 1.2rem 0 #071725;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.65fr);
  column-gap: 4rem;
  align-items: end;
  margin-bottom: 3rem;
}

.section-heading .section-number {
  grid-column: 1 / -1;
}

.section-heading h2,
.section-heading > p {
  margin-bottom: 0;
}

.path-grid,
.system-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.path-card {
  position: relative;
  min-height: 21rem;
  padding: 2rem;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgb(10 27 43 / 92%), rgb(4 13 23 / 92%));
}

.path-card.featured {
  border-color: var(--cyan-strong);
  box-shadow: inset 0 3px 0 var(--cyan);
}

.path-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 3.3rem;
  border: 1px solid var(--line-bright);
  color: var(--cyan);
  font-family: ui-monospace, "Cascadia Code", monospace;
}

.path-card h3,
.workshop-feature h3,
.system-grid h3 {
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.path-card p,
.system-grid p {
  color: var(--muted);
  line-height: 1.65;
}

.path-card a {
  position: absolute;
  bottom: 2rem;
  color: var(--cyan);
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
}

.workshop-feature {
  display: grid;
  grid-template-columns: minmax(20rem, 0.85fr) 1fr;
  align-items: center;
  gap: clamp(2.5rem, 8vw, 7rem);
  margin-top: 5rem;
  padding: clamp(1rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  background: rgb(7 20 33 / 72%);
}

.workshop-feature img {
  border: 1px solid var(--line-bright);
}

.workshop-feature h3 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.text-link {
  display: inline-block;
  margin-top: 1rem;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.technology .section-heading {
  margin-bottom: 4rem;
}

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

.system-grid article {
  padding: 1.6rem 0;
  border-top: 2px solid var(--line-bright);
}

.system-grid article:nth-child(2) {
  border-color: var(--green);
}

.system-grid article:nth-child(3) {
  border-color: var(--purple);
}

.system-grid article:nth-child(4) {
  border-color: var(--amber);
}

.system-grid span {
  color: var(--cyan);
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
}

.system-grid h3 {
  margin-top: 1.7rem;
  font-size: 1.25rem;
}

.closing {
  padding: clamp(6rem, 13vw, 11rem) 0;
  text-align: center;
}

.closing .eyebrow {
  justify-content: center;
}

.closing h2,
.closing > p {
  margin-right: auto;
  margin-left: auto;
}

.closing h2 {
  max-width: 13ch;
}

.closing > p {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.actions.centered {
  justify-content: center;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 3rem;
  padding: 3rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.7;
}

footer p {
  margin: 0.8rem 0 0;
}

footer a {
  color: var(--cyan);
}

.hosting {
  grid-column: 1 / -1;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

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

  .hero-copy {
    max-width: 46rem;
  }

  .story,
  .workshop-feature {
    grid-template-columns: 1fr 0.8fr;
    gap: 3rem;
  }

  .system-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 66px;
    padding: 0 1.25rem;
  }

  .brand {
    font-size: 0.78rem;
  }

  .header-action {
    font-size: 0.68rem;
  }

  .hero,
  .section,
  .closing,
  footer {
    width: min(calc(100% - 2rem), var(--max-width));
  }

  .hero {
    gap: 3rem;
    padding: 4rem 0;
  }

  h1 {
    font-size: clamp(3.2rem, 17vw, 5rem);
  }

  .signal-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .signal-strip div:nth-child(2) {
    border-right: 0;
  }

  .signal-strip div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .story,
  .workshop-feature,
  .section-heading,
  .path-grid,
  .system-grid,
  footer {
    grid-template-columns: 1fr;
  }

  .story-visual {
    width: min(85%, 28rem);
    margin-inline: auto;
  }

  .section-heading {
    gap: 1.5rem;
  }

  .path-card {
    min-height: 19rem;
  }

  .workshop-feature {
    padding: 1rem;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
  }

  .hosting {
    grid-column: auto;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

