:root {
  --bg: #050806;
  --panel: #0b1510;
  --panel-strong: #10251a;
  --text: #eef8ef;
  --muted: #a7b8aa;
  --green: #4cff89;
  --green-soft: #88f7ad;
  --cyan: #6ce4d7;
  --amber: #f4c35b;
  --rust: #d76845;
  --line: rgba(136, 247, 173, 0.22);
  --measure: 80ch;
  --page: min(92vw, 1180px);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  background:
    linear-gradient(180deg, rgba(76, 255, 137, 0.07), transparent 38rem),
    radial-gradient(circle at 75% 12%, rgba(244, 195, 91, 0.1), transparent 20rem),
    var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans", "Aptos", "Segoe UI", sans-serif;
  line-height: 1.6;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
}

code,
pre,
.brand-mark {
  font-family: "Berkeley Mono", "SFMono-Regular", Consolas, monospace;
}

pre {
  margin: 0;
  overflow-x: auto;
}

.skip-link {
  background: var(--green);
  color: #031006;
  left: 1rem;
  padding: 0.75rem 1rem;
  position: fixed;
  top: -5rem;
  z-index: 30;
}

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

.matrix-field {
  height: 100%;
  inset: 0;
  opacity: 0.26;
  pointer-events: none;
  position: fixed;
  width: 100%;
  z-index: -1;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(16px);
  background: rgba(5, 8, 6, 0.78);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 max(4vw, calc((100vw - 1180px) / 2));
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 800;
  gap: 0.75rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  align-items: center;
  background: var(--green);
  color: #031006;
  display: inline-flex;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.site-header nav {
  align-items: center;
  display: flex;
  gap: clamp(0.8rem, 2.3vw, 2rem);
}

.site-header nav a {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-header nav a:hover {
  color: var(--green);
}

.hero {
  display: grid;
  gap: clamp(2rem, 6vw, 5rem);
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  margin: 0 auto;
  max-width: var(--page);
  min-height: calc(100vh - 76px);
  padding: clamp(4rem, 8vw, 8rem) 0;
}

.hero-copy {
  align-self: center;
}

.eyebrow,
.section-kicker {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  margin: 0 0 1.35rem;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(3.5rem, 8vw, 7.2rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.92;
  margin-bottom: 2rem;
  max-width: 10ch;
}

h2 {
  font-size: clamp(2rem, 4.8vw, 4.15rem);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.02;
  margin-bottom: 1.4rem;
}

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

.hero-intro,
.measure p {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  max-width: var(--measure);
}

.hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 2.2rem;
}

.button,
.text-link {
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button {
  background: var(--green);
  color: #031006;
  padding: 0.95rem 1.15rem;
  text-decoration: none;
}

.text-link {
  color: var(--cyan);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.terminal,
.code-panel,
.diagram,
.command-grid article {
  background: rgba(11, 21, 16, 0.86);
  border: 1px solid var(--line);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.36);
  min-width: 0;
}

.hero-terminal {
  align-self: center;
}

.terminal-bar {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0 1rem;
}

.terminal-bar span {
  background: var(--rust);
  display: block;
  height: 9px;
  width: 9px;
}

.terminal-bar span:nth-child(2) {
  background: var(--amber);
}

.terminal-bar span:nth-child(3) {
  background: var(--green);
}

.terminal-bar p {
  color: var(--muted);
  font-family: "Berkeley Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.75rem;
  margin: 0 0 0 auto;
}

.terminal pre,
.code-panel pre,
.diagram pre {
  color: var(--text);
  font-size: clamp(0.82rem, 1.2vw, 0.96rem);
  line-height: 1.7;
  padding: 1.2rem;
}

.terminal pre,
.terminal code {
  overflow-x: hidden;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  word-break: break-word;
}

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

.content-band,
.commands {
  margin: 0 auto;
  max-width: var(--page);
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.measure {
  max-width: var(--measure);
}

.split,
.content-band:first-of-type {
  align-items: start;
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1fr) minmax(290px, 0.72fr);
}

.diagram,
.code-panel {
  position: relative;
}

.diagram::before,
.code-panel::before {
  color: var(--green);
  content: "01101101";
  font-family: "Berkeley Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
  left: 1.2rem;
  letter-spacing: 0.2em;
  position: absolute;
  top: -1.85rem;
}

.command-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 2.5rem;
}

.command-grid article {
  min-height: 260px;
  padding: 1.15rem;
}

.command-grid span {
  color: var(--amber);
  display: block;
  font-family: "Berkeley Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
  margin-bottom: 1.6rem;
}

.command-grid code {
  background: #061009;
  color: var(--green-soft);
  display: block;
  font-size: 0.82rem;
  margin: 1rem 0;
  overflow-wrap: anywhere;
  padding: 0.7rem;
}

.command-grid p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  margin: 3rem auto 0;
  max-width: var(--page);
  padding: 2rem 0 3rem;
}

.site-footer p {
  margin: 0;
}

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

@media (max-width: 940px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.85rem;
    padding-bottom: 1rem;
    padding-top: 1rem;
    position: relative;
  }

  .site-header nav {
    flex-wrap: wrap;
  }

  .hero,
  .split,
  .content-band:first-of-type {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

@media (max-width: 620px) {
  :root {
    --page: min(90vw, 1180px);
  }

  .site-header nav a {
    font-size: 0.72rem;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.2rem);
  }

  .command-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
  }
}
