:root {
  color-scheme: dark;
  --ink: #f2f0e7;
  --paper: #e9e6da;
  --night: #0b1210;
  --night-soft: #111b18;
  --green: #93f2bd;
  --green-deep: #173b2b;
  --amber: #f0b95c;
  --line: rgba(242, 240, 231, 0.16);
  --muted: #9ca9a2;
  --display: "Arial Narrow", "Avenir Next Condensed", "Helvetica Neue", sans-serif;
  --mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--display);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: fixed;
  top: 0;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--green);
  color: var(--night);
  transform: translateY(-110%);
}

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

.site-header,
footer {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--green);
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.85rem;
}

nav {
  display: flex;
  gap: 2rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav a,
.footer-links a,
.text-link {
  transition: color 160ms ease;
}

nav a:hover,
nav a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  color: var(--green);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(370px, 0.92fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
  width: min(1180px, calc(100% - 48px));
  min-height: 690px;
  margin: 0 auto;
  padding: 6rem 0 7rem;
}

.eyebrow,
.kicker,
.card-number {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--green);
}

.eyebrow span {
  width: 24px;
  height: 1px;
  background: currentColor;
}

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

h1 {
  max-width: 780px;
  margin: 1.4rem 0 1.7rem;
  font-size: clamp(3.7rem, 7vw, 6.6rem);
  font-weight: 750;
  letter-spacing: -0.065em;
  line-height: 0.91;
}

h1 em {
  color: var(--green);
  font-style: normal;
  font-weight: 400;
}

.lede {
  max-width: 650px;
  margin-bottom: 2.3rem;
  color: #b7c0bb;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.65;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 1.25rem;
  border: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

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

.button-primary {
  border-color: var(--green);
  background: var(--green);
  color: var(--night);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #b0f8cd;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--ink);
}

.availability {
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.availability span {
  margin-right: 0.35rem;
  color: var(--amber);
}

.terminal-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(147, 242, 189, 0.42);
  background: #080d0b;
  box-shadow: 22px 22px 0 var(--green-deep), 0 30px 80px rgba(0, 0, 0, 0.35);
  font-family: var(--mono);
}

.terminal-frame::before {
  position: absolute;
  z-index: 2;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0, transparent 3px, rgba(147, 242, 189, 0.025) 4px);
  content: "";
  pointer-events: none;
}

.terminal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 49px;
  padding: 0 1rem;
  border-bottom: 1px solid var(--line);
  color: #c7cec9;
  font-size: 0.7rem;
}

.terminal-host::before {
  margin-right: 0.5rem;
  color: var(--green);
  content: "◆";
}

.terminal-status {
  color: var(--muted);
}

.terminal-status i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 9px var(--green);
}

.terminal-body {
  min-height: 335px;
  padding: 1.5rem 1.25rem;
  color: #dce2de;
  font-size: clamp(0.68rem, 1.2vw, 0.82rem);
  line-height: 1.85;
}

.terminal-body p {
  margin-bottom: 0.15rem;
}

.terminal-body .spacer {
  height: 0.7rem;
}

.prompt {
  color: var(--green);
}

.muted {
  color: #68756f;
}

.changed {
  color: var(--amber);
}

.cursor-line {
  margin-top: 0.7rem;
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  margin-left: 0.25rem;
  background: var(--green);
  vertical-align: -0.15em;
  animation: blink 1.1s steps(1) infinite;
}

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

.key-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  border-top: 1px solid var(--line);
  background: var(--line);
}

.key-row span {
  display: grid;
  min-height: 47px;
  place-items: center;
  background: #0d1512;
  color: #8e9a94;
  font-size: 0.63rem;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.signal-strip p {
  margin: 0;
  padding: 1.5rem clamp(1rem, 3vw, 3rem);
  border-right: 1px solid var(--line);
  color: #b8c0bc;
  font-family: var(--mono);
  font-size: 0.7rem;
  text-align: center;
  text-transform: uppercase;
}

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

.signal-strip strong {
  margin-right: 0.6rem;
  color: var(--green);
  font-weight: 500;
}

.principles {
  padding: 9rem max(24px, calc((100vw - 1180px) / 2));
  background: var(--paper);
  color: var(--night);
}

.section-heading {
  display: grid;
  grid-template-columns: 0.55fr 1.25fr 0.8fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 4rem;
}

.kicker {
  color: #52705f;
}

.section-heading h2,
.capabilities-intro h2,
.open-build h2 {
  margin-bottom: 0;
  font-size: clamp(2.8rem, 5vw, 5rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.section-heading > p:last-child {
  color: #4f5b54;
  font-size: 1rem;
  line-height: 1.65;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.2rem;
}

.principle-card {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.4rem);
}

.principle-card:nth-child(1) {
  grid-column: span 5;
}

.principle-card:nth-child(2) {
  grid-column: span 3;
}

.principle-card:nth-child(3) {
  grid-column: span 4;
}

.principle-card h3 {
  margin: 4.5rem 0 1rem;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.principle-card > p {
  max-width: 36rem;
  color: inherit;
  opacity: 0.7;
}

.card-dark {
  background: var(--night);
  color: var(--ink);
}

.card-dark .card-number {
  color: var(--green);
}

.card-light {
  border: 1px solid #a9b0aa;
  background: transparent;
}

.card-accent {
  background: var(--green);
}

.fingerprint,
.platform-pills,
.state-flow {
  margin-top: auto;
}

.fingerprint {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 0.8rem;
  padding: 1rem;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.62rem;
}

.fingerprint span {
  color: var(--green);
}

.fingerprint code {
  overflow: hidden;
  color: #aab5af;
  text-overflow: ellipsis;
}

.fingerprint b {
  grid-column: 1 / -1;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
  color: var(--amber);
  font-weight: 500;
}

.platform-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.platform-pills span {
  padding: 0.45rem 0.65rem;
  border: 1px solid #9da59f;
  font-family: var(--mono);
  font-size: 0.58rem;
  text-transform: uppercase;
}

.state-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.62rem;
  text-transform: uppercase;
}

.state-flow span {
  padding: 0.5rem 0.6rem;
  border: 1px solid rgba(11, 18, 16, 0.42);
}

.capabilities {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(4rem, 9vw, 9rem);
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 9rem 0;
}

.capabilities-intro {
  position: sticky;
  top: 3rem;
  align-self: start;
}

.capabilities-intro .kicker,
.open-build .kicker {
  color: var(--green);
}

.capability-list article {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.capability-list article:last-child {
  border-bottom: 1px solid var(--line);
}

.capability-icon {
  color: var(--green);
  font-family: var(--mono);
  font-size: 1.7rem;
}

.capability-list h3 {
  margin-bottom: 0.55rem;
  font-size: 1.4rem;
  letter-spacing: -0.025em;
}

.capability-list p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

.open-build {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: 4rem;
  align-items: end;
  padding: 7rem max(24px, calc((100vw - 1180px) / 2));
  background: var(--green-deep);
}

.open-build > p {
  max-width: 540px;
  margin-bottom: 0;
  color: #b7c8bd;
}

.text-link {
  grid-column: 2;
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  min-height: 150px;
  color: var(--muted);
  font-size: 0.75rem;
}

footer p {
  margin: 0;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1.5rem;
  font-family: var(--mono);
  text-transform: uppercase;
}

.document-page {
  width: min(920px, calc(100% - 48px));
  margin: 0 auto;
  padding: 7rem 0 9rem;
}

.document-hero {
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--line);
}

.document-hero h1 {
  margin-bottom: 1.5rem;
}

.document-summary {
  max-width: 720px;
  color: #b7c0bb;
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
}

.document-date {
  margin: 2rem 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.document-content {
  max-width: 760px;
  padding-top: 2rem;
}

.document-content section {
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.document-content h2 {
  margin-bottom: 0.9rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.035em;
}

.document-content p {
  color: #b7c0bb;
  line-height: 1.75;
}

.document-content p:last-child {
  margin-bottom: 0;
}

.document-content a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-color: rgba(147, 242, 189, 0.45);
  text-underline-offset: 0.2em;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 4.5rem;
  }

  .terminal-frame {
    width: min(100%, 620px);
  }

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

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

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

  .section-heading,
  .capabilities,
  .open-build {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 1.5rem;
  }

  .principle-card:nth-child(1),
  .principle-card:nth-child(2) {
    grid-column: span 6;
  }

  .principle-card:nth-child(3) {
    grid-column: span 12;
  }

  .capabilities-intro {
    position: static;
  }

  .open-build {
    gap: 2rem;
  }

  .text-link {
    grid-column: 1;
  }

  footer {
    grid-template-columns: 1fr 1fr;
  }

  footer p {
    display: none;
  }
}

@media (max-width: 620px) {
  .site-header,
  .hero,
  .capabilities,
  .document-page,
  footer {
    width: min(100% - 32px, 1180px);
  }

  .site-header {
    min-height: 72px;
  }

  .brand {
    font-size: 0.78rem;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  nav a:not(:last-child) {
    display: none;
  }

  .hero {
    min-height: auto;
    gap: 3.5rem;
    padding: 4rem 0 5rem;
  }

  h1 {
    font-size: clamp(3.25rem, 16vw, 4.4rem);
  }

  .button {
    width: 100%;
  }

  .terminal-frame {
    box-shadow: 10px 10px 0 var(--green-deep);
  }

  .terminal-body {
    min-height: 290px;
    padding: 1rem;
  }

  .key-row span {
    min-height: 42px;
  }

  .signal-strip {
    grid-template-columns: 1fr;
  }

  .signal-strip p,
  .signal-strip p:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .signal-strip p:last-child {
    border-bottom: 0;
  }

  .principles,
  .capabilities {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  .principle-card:nth-child(1),
  .principle-card:nth-child(2),
  .principle-card:nth-child(3) {
    grid-column: span 12;
  }

  .principle-card {
    min-height: 360px;
  }

  .capability-list article {
    grid-template-columns: 42px 1fr;
    gap: 0.8rem;
  }

  .open-build {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  footer {
    grid-template-columns: 1fr;
    padding: 2.5rem 0;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
