:root {
  --ink: #101820;
  --ink-soft: #40505f;
  --muted: #6d7a86;
  --paper: #f7f5ef;
  --paper-2: #ece8dd;
  --panel: #ffffff;
  --line: #d9d3c5;
  --line-dark: #b9b09f;
  --blue: #0067ff;
  --blue-dark: #0046b8;
  --green: #12785d;
  --shadow: 0 18px 55px rgba(16, 24, 32, 0.1);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(16, 24, 32, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(16, 24, 32, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 44px 44px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
}

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

a:hover {
  color: var(--blue);
}

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

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

h1,
h2,
h3,
h4,
.logo,
.button,
.pill {
  letter-spacing: -0.035em;
}

h1 {
  max-width: 920px;
  margin-bottom: 1.25rem;
  font-size: clamp(3.4rem, 9vw, 7.6rem);
  line-height: 0.9;
}

h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.96;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.45rem;
  line-height: 1.1;
}

h4 {
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

code,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

pre {
  overflow-x: auto;
  margin: 0.8rem 0 0;
  padding: 1rem;
  border: 1px solid #293241;
  border-radius: 0;
  background: #101820;
  color: #d9fff4;
  font-size: 0.9rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--ink);
  background: rgba(247, 245, 239, 0.92);
  backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 900;
}

.logo-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid var(--ink);
  background: var(--blue);
  color: #fff;
  font-weight: 950;
  box-shadow: 4px 4px 0 var(--ink);
}

.nav-links {
  display: flex;
  align-items: stretch;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 1px solid var(--line-dark);
}

.nav-links li {
  display: flex;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 0 1rem;
  border-right: 1px solid var(--line-dark);
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 750;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--ink);
  color: var(--paper);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
  padding: clamp(4rem, 9vw, 8rem) 0 clamp(3rem, 7vw, 6rem);
}

.hero.narrow {
  grid-template-columns: minmax(0, 900px);
}

.eyebrow,
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.eyebrow {
  margin-bottom: 1.25rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 0.65rem;
  border: 1px solid var(--ink);
  background: var(--paper-2);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.lead {
  max-width: 780px;
  margin-bottom: 1.8rem;
  color: var(--ink-soft);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.45;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.1rem;
  border: 2px solid var(--ink);
  background: var(--blue);
  color: #fff;
  font-weight: 900;
  box-shadow: 4px 4px 0 var(--ink);
}

.button:hover {
  background: var(--blue-dark);
  color: #fff;
  transform: translate(1px, 1px);
  box-shadow: 3px 3px 0 var(--ink);
}

.button.secondary {
  background: var(--panel);
  color: var(--ink);
}

.button.secondary:hover {
  background: var(--paper-2);
  color: var(--ink);
}

.showcase {
  border: 2px solid var(--ink);
  background: var(--panel);
  box-shadow: 10px 10px 0 var(--ink);
  padding: 1rem;
}

.terminal {
  min-height: 360px;
  border: 1px solid var(--ink);
  background: #101820;
  color: #e6f4ef;
}

.terminal-bar {
  display: flex;
  gap: 0.4rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.dot {
  width: 10px;
  height: 10px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: transparent;
}

.terminal-body {
  display: grid;
  padding: 0;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
}

.terminal-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.terminal-line span:last-child {
  color: #78f0c4;
}

section {
  padding: clamp(3rem, 7vw, 6rem) 0;
}

section + section {
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(220px, 0.25fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.section-head p {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

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

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

.flagship-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.flagship-card {
  min-height: 360px;
  padding: 1.6rem;
  border-width: 2px;
  background: #fffdf8;
  box-shadow: 8px 8px 0 var(--ink);
}

.flagship-card h3 {
  font-size: clamp(2rem, 3vw, 2.75rem);
}

.supporting-title {
  margin: 3rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
}

.supporting-title p {
  margin-bottom: 0;
  color: var(--muted);
}

.card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.35rem;
  border: 1px solid var(--ink);
  background: var(--panel);
  box-shadow: 0 1px 0 var(--ink);
}

.card:hover {
  box-shadow: 6px 6px 0 var(--ink);
  transform: translate(-2px, -2px);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.card p {
  color: var(--ink-soft);
}

.tags {
  margin-bottom: 1rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.8rem;
}

.meta span {
  padding: 0.15rem 0.4rem;
  border: 1px solid var(--line-dark);
  background: var(--paper);
}

.card-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 1rem;
  color: var(--blue);
  font-weight: 900;
}

.card-link::after {
  content: " ->";
}

.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--paper-2);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
}

.steps {
  display: grid;
  gap: 0.9rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 4.25rem;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 1.25rem;
  top: 1.35rem;
  color: var(--blue);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
  font-weight: 900;
}

.mission {
  padding: clamp(1.5rem, 5vw, 4rem);
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  box-shadow: 10px 10px 0 var(--blue);
}

.mission .lead {
  color: #d8dedf;
}

.site-footer {
  padding: 3rem 0;
  border-top: 2px solid var(--ink);
  background: var(--paper-2);
  color: var(--ink-soft);
}

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

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li + li {
  margin-top: 0.4rem;
}

.copyright {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 1rem 0 0;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    border-top: 1px solid var(--line-dark);
  }

  .nav-links a {
    min-height: 48px;
  }

  .hero,
  .section-head,
  .grid,
  .grid.two,
  .flagship-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: start;
  }

  .showcase,
  .mission {
    box-shadow: 6px 6px 0 var(--ink);
  }

  .step {
    padding-left: 1.25rem;
    padding-top: 3.5rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
