:root {
  color-scheme: dark;
  --bg: #050705;
  --bg-soft: #0c1110;
  --ink: #eff9eb;
  --muted: #9aa99d;
  --dim: #5f7367;
  --line: rgba(168, 255, 186, 0.22);
  --green: #72f286;
  --cyan: #5bd7ff;
  --amber: #f8c75c;
  --rose: #ff6f9d;
  --paper: #101713;
  --panel: rgba(7, 13, 11, 0.82);
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(rgba(114, 242, 134, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(114, 242, 134, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, #050705 0%, #0b1010 42%, #07100d 100%);
  background-size: 42px 42px, 42px 42px, auto;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.035) 0,
    rgba(255, 255, 255, 0.035) 1px,
    transparent 1px,
    transparent 5px
  );
  mix-blend-mode: overlay;
  opacity: 0.32;
}

.page-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(255, 111, 157, 0.05), transparent 34%, rgba(91, 215, 255, 0.045)),
    linear-gradient(180deg, transparent, rgba(248, 199, 92, 0.035));
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(239, 249, 235, 0.1);
  background: rgba(5, 7, 5, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.84rem;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  width: 1.55rem;
  height: 1.55rem;
  display: inline-grid;
  place-items: center;
}

.brand-sigil {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 10px rgba(114, 242, 134, 0.32));
}

.brand-sigil .sigil-ring,
.brand-sigil .sigil-stem {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-sigil .sigil-ring {
  stroke: rgba(91, 215, 255, 0.62);
  stroke-width: 1.35;
}

.brand-sigil .sigil-stem {
  stroke: var(--green);
  stroke-width: 1.85;
}

.brand-sigil .sigil-node {
  stroke: #050705;
  stroke-width: 0.8;
}

.brand-sigil .sigil-node-core {
  fill: var(--green);
}

.brand-sigil .sigil-node-a {
  fill: var(--cyan);
}

.brand-sigil .sigil-node-b {
  fill: var(--amber);
}

.brand-sigil .sigil-node-c {
  fill: var(--rose);
}

.nav {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
}

.nav a,
.header-status,
.button,
.command-line button {
  min-height: 2.45rem;
  border: 1px solid rgba(239, 249, 235, 0.14);
  border-radius: 6px;
  text-decoration: none;
}

.nav a {
  display: inline-flex;
  align-items: center;
  padding: 0 0.9rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav a:hover {
  border-color: var(--line);
  color: var(--green);
  background: rgba(114, 242, 134, 0.06);
}

.header-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.75rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  white-space: nowrap;
}

.pulse {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px rgba(114, 242, 134, 0.84);
  animation: pulse 1.8s ease-in-out infinite;
}

main {
  position: relative;
}

.hero {
  position: relative;
  min-height: 88svh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(22rem, 0.85fr);
  grid-template-rows: 1fr auto;
  gap: 1.25rem;
  align-items: end;
  padding: 8rem 5vw 2rem;
  overflow: hidden;
}

#lodurr-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 35%;
  background: linear-gradient(180deg, transparent, rgba(5, 7, 5, 0.78));
  pointer-events: none;
}

.hero-copy,
.terminal-card,
.metrics {
  position: relative;
  z-index: 1;
}

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

.eyebrow,
.section-kicker,
.module-card small,
.inspector-top,
.doc-rail,
.command-line label,
.terminal-bar,
.site-footer {
  font-family: var(--mono);
}

.eyebrow,
.section-kicker {
  margin: 0 0 1rem;
  color: var(--cyan);
  font-size: 0.75rem;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 1rem;
  font-family: var(--mono);
  font-size: 6.5rem;
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow:
    0 0 18px rgba(114, 242, 134, 0.34),
    0 0 2px rgba(239, 249, 235, 0.6);
}

.lede {
  max-width: 47rem;
  color: #d7ead7;
  font-size: 1.16rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 1rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.button.primary {
  border-color: rgba(114, 242, 134, 0.6);
  background: var(--green);
  color: #041006;
  font-weight: 700;
}

.button.ghost {
  color: var(--ink);
  background: rgba(239, 249, 235, 0.04);
}

.button.ghost:hover {
  border-color: rgba(91, 215, 255, 0.55);
}

.terminal-card {
  align-self: center;
  max-width: 33rem;
  border: 1px solid rgba(114, 242, 134, 0.28);
  border-radius: 8px;
  background: rgba(4, 9, 7, 0.82);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.72rem 0.85rem;
  border-bottom: 1px solid rgba(239, 249, 235, 0.1);
  color: var(--muted);
  font-size: 0.76rem;
}

.terminal-bar span {
  width: 0.56rem;
  height: 0.56rem;
  border-radius: 50%;
  background: var(--rose);
}

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

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

.terminal-bar strong {
  margin-left: 0.35rem;
  font-weight: 500;
}

.terminal-card pre {
  min-height: 15.5rem;
  margin: 0;
  padding: 1rem;
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.75;
  white-space: pre-wrap;
}

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

.metrics article {
  min-height: 7.5rem;
  padding: 1rem;
  border: 1px solid rgba(239, 249, 235, 0.12);
  border-radius: 8px;
  background: rgba(11, 17, 16, 0.76);
}

.metrics span {
  display: block;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 2.2rem;
  line-height: 1;
}

.metrics p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.ticker {
  position: relative;
  overflow: hidden;
  border-block: 1px solid rgba(239, 249, 235, 0.1);
  background: #0b0f0d;
}

.ticker div {
  display: flex;
  width: max-content;
  gap: 2rem;
  padding: 0.8rem 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  animation: ticker 24s linear infinite;
}

.ticker span {
  color: var(--muted);
}

.ticker span:nth-child(4n + 1) {
  color: var(--green);
}

.ticker span:nth-child(4n + 2) {
  color: var(--cyan);
}

.ticker span:nth-child(4n + 3) {
  color: var(--amber);
}

.ticker span:nth-child(4n) {
  color: var(--rose);
}

.section {
  padding: 6.5rem 5vw;
}

.section-heading {
  max-width: 53rem;
}

.section-heading h2,
.doc-paper h2 {
  margin-bottom: 1rem;
  font-size: 3.1rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.section-heading p,
.doc-paper p {
  color: #c5d3c6;
  font-size: 1rem;
}

.work-section {
  background: linear-gradient(180deg, rgba(5, 7, 5, 0.94), rgba(9, 15, 13, 0.98));
}

.module-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(20rem, 0.8fr);
  gap: 1rem;
  align-items: start;
  margin-top: 2rem;
}

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

.module-card {
  position: relative;
  min-height: 17rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid rgba(239, 249, 235, 0.13);
  border-radius: 8px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(239, 249, 235, 0.035), transparent 48%),
    var(--paper);
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.module-card:hover,
.module-card.is-active {
  transform: translateY(-3px);
  border-color: rgba(114, 242, 134, 0.62);
  background:
    linear-gradient(135deg, rgba(114, 242, 134, 0.1), transparent 56%),
    var(--paper);
}

.module-index {
  color: var(--amber);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.module-card strong {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 1.1rem;
}

.module-card p {
  margin-bottom: auto;
  color: #cbd8cc;
}

.module-card small {
  color: var(--muted);
  font-size: 0.72rem;
}

.inspector {
  position: sticky;
  top: 6rem;
  padding: 1rem;
  border: 1px solid rgba(91, 215, 255, 0.28);
  border-radius: 8px;
  background: rgba(7, 13, 15, 0.88);
}

.inspector-top {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.inspector-top span {
  color: var(--cyan);
  font-size: 0.72rem;
}

.inspector-top strong {
  font-size: 1.7rem;
  line-height: 1.1;
}

.inspector p {
  color: #dce8dd;
}

.inspector dl {
  display: grid;
  gap: 0.65rem;
  margin: 1.4rem 0 0;
}

.inspector dl div {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(239, 249, 235, 0.1);
}

.inspector dt {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.inspector dd {
  margin: 0;
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.kernel-section {
  background: #080b0a;
}

.kernel-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(22rem, 1.1fr);
  gap: 2rem;
  align-items: center;
}

.stack-diagram {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.stack-row {
  position: relative;
  min-height: 5.75rem;
  display: grid;
  grid-template-columns: minmax(10rem, 0.7fr) 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(239, 249, 235, 0.12);
  border-radius: 8px;
  background: #101511;
  overflow: hidden;
}

.stack-row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.3rem;
  background: var(--green);
}

.row-hermes::before {
  background: var(--cyan);
}

.row-agents::before {
  background: var(--amber);
}

.row-harness::before {
  background: var(--rose);
}

.row-memory::before {
  background: var(--green);
}

.stack-row span {
  font-family: var(--mono);
  font-weight: 700;
}

.stack-row p {
  margin: 0;
  color: var(--muted);
}

.doc-section {
  background:
    linear-gradient(180deg, rgba(239, 249, 235, 0.03), transparent 24%),
    #0d1110;
}

.doc-portal {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 28rem);
  gap: 1.25rem;
  align-items: stretch;
  max-width: 84rem;
  margin: 0 auto;
}

.doc-portal-card {
  position: relative;
  display: flex;
  min-height: 21rem;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  overflow: hidden;
  padding: 1.25rem;
  border: 1px solid rgba(91, 215, 255, 0.25);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(91, 215, 255, 0.1), transparent 45%),
    rgba(6, 10, 7, 0.86);
}

.doc-portal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(239, 249, 235, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239, 249, 235, 0.035) 1px, transparent 1px);
  background-size: 1.1rem 1.1rem;
  mask-image: linear-gradient(130deg, black, transparent 72%);
}

.doc-portal-card span,
.doc-portal-card strong,
.doc-portal-card p,
.doc-portal-card a {
  position: relative;
}

.doc-portal-card span {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0;
}

.doc-portal-card strong {
  color: var(--text);
  font-family: var(--mono);
  font-size: clamp(1.45rem, 2vw, 2.25rem);
  line-height: 1;
}

.doc-portal-card p {
  color: #c5d3c6;
}

.doc-shell {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  max-width: 84rem;
  margin: 0 auto;
}

.doc-rail {
  position: sticky;
  top: 6rem;
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem;
  border: 1px solid rgba(239, 249, 235, 0.12);
  border-radius: 8px;
  background: rgba(5, 7, 5, 0.52);
  font-size: 0.74rem;
  max-height: calc(100svh - 7rem);
  overflow-y: auto;
}

.doc-rail span {
  color: var(--amber);
}

.doc-rail a {
  min-height: 1.85rem;
  display: flex;
  align-items: center;
  border-left: 1px solid rgba(239, 249, 235, 0.12);
  padding-left: 0.65rem;
  color: var(--muted);
  text-decoration: none;
}

.doc-rail a:hover {
  color: var(--green);
}

.doc-paper {
  padding: 2rem;
  border: 1px solid rgba(239, 249, 235, 0.13);
  border-radius: 8px;
  background: #121813;
}

.gitbook-doc {
  background:
    linear-gradient(90deg, rgba(239, 249, 235, 0.035), transparent 18rem),
    #121813;
}

.manual-meta {
  margin: -0.35rem 0 1.5rem;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.doc-lede {
  font-size: 1.08rem;
}

.doc-paper h3 {
  margin: 2.7rem 0 0.75rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(239, 249, 235, 0.1);
  color: var(--amber);
  font-family: var(--mono);
  font-size: 1rem;
}

.manual-callout,
.proof-box {
  margin: 1.5rem 0;
  padding: 1rem;
  border: 1px solid rgba(91, 215, 255, 0.28);
  border-radius: 8px;
  background: rgba(91, 215, 255, 0.055);
}

.manual-callout.secondary {
  border-color: rgba(248, 199, 92, 0.28);
  background: rgba(248, 199, 92, 0.055);
}

.manual-callout strong,
.proof-box strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.manual-callout.secondary strong,
.proof-box strong {
  color: var(--amber);
}

.manual-callout p,
.proof-box p {
  margin-bottom: 0;
}

.manual-table {
  width: 100%;
  margin: 1.4rem 0 2rem;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid rgba(239, 249, 235, 0.12);
  border-radius: 8px;
  font-size: 0.9rem;
}

.manual-table th,
.manual-table td {
  padding: 0.78rem;
  border-bottom: 1px solid rgba(239, 249, 235, 0.09);
  text-align: left;
  vertical-align: top;
}

.manual-table th {
  color: var(--cyan);
  background: rgba(91, 215, 255, 0.06);
  font-family: var(--mono);
  font-size: 0.74rem;
}

.manual-table td {
  color: #c5d3c6;
}

.equation-block {
  margin: 1rem 0;
  border: 1px solid rgba(114, 242, 134, 0.26);
  border-radius: 8px;
  background: #060a07;
  overflow-x: auto;
}

.equation-block span {
  display: block;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid rgba(239, 249, 235, 0.1);
  color: var(--amber);
  font-family: var(--mono);
  font-size: 0.74rem;
}

.equation-block code {
  display: block;
  padding: 0.9rem;
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.82rem;
  white-space: nowrap;
}

.manual-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.2rem 0 2rem;
}

.manual-steps article {
  min-height: 8rem;
  padding: 0.9rem;
  border: 1px solid rgba(239, 249, 235, 0.12);
  border-radius: 8px;
  background: rgba(6, 10, 7, 0.72);
}

.manual-steps span {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--rose);
  font-family: var(--mono);
  font-size: 0.74rem;
}

.manual-steps p {
  margin: 0;
}

.reference-list {
  display: grid;
  gap: 0.8rem;
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: #c5d3c6;
}

.reference-list li::marker {
  color: var(--amber);
}

.reference-list a {
  color: var(--cyan);
}

.reference-list span {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
}

.code-panel {
  margin: 1.8rem 0 2rem;
  border: 1px solid rgba(114, 242, 134, 0.28);
  border-radius: 8px;
  background: #060a07;
  overflow: hidden;
}

.code-panel span {
  display: block;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(239, 249, 235, 0.1);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.code-panel pre {
  margin: 0;
  padding: 1rem;
  overflow-x: auto;
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.82rem;
}

.key-section {
  background:
    linear-gradient(180deg, rgba(91, 215, 255, 0.04), transparent 32%),
    #070b0d;
}

.key-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 24rem);
  gap: 1.25rem;
  align-items: end;
}

.key-disclaimer {
  display: grid;
  gap: 0.5rem;
  padding: 1rem;
  border: 1px solid rgba(248, 199, 92, 0.24);
  border-radius: 8px;
  background: rgba(248, 199, 92, 0.055);
}

.key-disclaimer strong,
.key-disclaimer span,
.provider-switch legend,
.key-input-row label,
.key-hints,
.panel-title,
.key-status dt,
.key-status dd,
.provider-graph span,
.audit-log,
.big-code-panel pre {
  font-family: var(--mono);
}

.key-disclaimer strong {
  color: var(--amber);
  font-size: 0.82rem;
}

.key-disclaimer span {
  color: #d9e4d7;
  font-size: 0.78rem;
}

.key-console {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem);
  gap: 1rem;
  align-items: stretch;
  margin-top: 2rem;
}

.key-form,
.key-status,
.graph-panel,
.audit-panel,
.big-code-panel {
  border: 1px solid rgba(239, 249, 235, 0.13);
  border-radius: 8px;
  background: rgba(13, 19, 17, 0.9);
}

.key-form {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.provider-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.provider-switch legend {
  grid-column: 1 / -1;
  margin-bottom: 0.15rem;
  color: var(--cyan);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.provider-switch label {
  position: relative;
  min-height: 3rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(239, 249, 235, 0.14);
  border-radius: 6px;
  color: var(--muted);
  background: #070b0a;
  cursor: pointer;
}

.provider-switch input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.provider-switch span {
  font-family: var(--mono);
  font-size: 0.84rem;
}

.provider-switch label:has(input:checked) {
  border-color: rgba(114, 242, 134, 0.7);
  color: var(--green);
  background: rgba(114, 242, 134, 0.08);
}

.key-input-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
}

.key-input-row label {
  color: var(--cyan);
  font-size: 0.78rem;
}

.key-input-row input {
  width: 100%;
  min-height: 3rem;
  border: 1px solid rgba(239, 249, 235, 0.14);
  border-radius: 6px;
  padding: 0 0.85rem;
  color: var(--green);
  background: #050705;
  outline: none;
}

.key-input-row input:focus {
  border-color: rgba(91, 215, 255, 0.66);
}

.key-input-row button,
.key-hints button {
  min-height: 3rem;
  border: 1px solid rgba(239, 249, 235, 0.14);
  border-radius: 6px;
  padding: 0 1rem;
  cursor: pointer;
  font-family: var(--mono);
}

.key-input-row button {
  border-color: rgba(114, 242, 134, 0.7);
  background: var(--green);
  color: #041006;
  font-weight: 700;
}

.key-hints {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.76rem;
}

.key-hints button {
  min-height: 2.35rem;
  color: var(--rose);
  background: rgba(255, 111, 157, 0.06);
}

.key-status {
  position: relative;
  min-height: 16rem;
  display: grid;
  align-items: end;
  padding: 1rem;
  overflow: hidden;
}

.status-orbit {
  position: absolute;
  inset: 1rem 1rem auto auto;
  width: 8rem;
  aspect-ratio: 1;
  border: 1px solid rgba(91, 215, 255, 0.18);
  border-radius: 50%;
  animation: rotate 12s linear infinite;
}

.status-orbit span {
  position: absolute;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px rgba(114, 242, 134, 0.7);
}

.status-orbit span:nth-child(1) {
  inset: -0.32rem auto auto 50%;
}

.status-orbit span:nth-child(2) {
  inset: auto -0.32rem 22% auto;
  background: var(--cyan);
}

.status-orbit span:nth-child(3) {
  inset: auto auto 7% 10%;
  background: var(--amber);
}

.key-status dl {
  position: relative;
  display: grid;
  gap: 0.65rem;
  margin: 0;
}

.key-status dl div {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 0.75rem;
  border-top: 1px solid rgba(239, 249, 235, 0.1);
  padding-top: 0.65rem;
}

.key-status dt {
  color: var(--dim);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.key-status dd {
  margin: 0;
  color: var(--green);
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.runtime-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(20rem, 0.9fr);
  gap: 1rem;
  margin-top: 1rem;
}

.graph-panel,
.audit-panel,
.big-code-panel {
  overflow: hidden;
}

.panel-title {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(239, 249, 235, 0.1);
}

.panel-title span {
  color: var(--cyan);
  font-size: 0.74rem;
}

.panel-title strong {
  color: var(--ink);
  font-size: 0.86rem;
  text-align: right;
}

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

.provider-graph article {
  min-height: 10rem;
  display: grid;
  align-content: start;
  gap: 0.55rem;
  padding: 0.85rem;
  border: 1px solid rgba(239, 249, 235, 0.12);
  border-radius: 8px;
  background: #080e0c;
}

.provider-graph article.is-hot {
  border-color: rgba(114, 242, 134, 0.68);
  box-shadow: inset 0 0 0 1px rgba(114, 242, 134, 0.14);
}

.provider-graph span {
  color: var(--amber);
  font-size: 0.72rem;
}

.provider-graph strong {
  font-family: var(--mono);
  font-size: 0.92rem;
}

.provider-graph p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.audit-log {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 1rem;
  list-style: none;
  color: #c8d8ca;
  font-size: 0.78rem;
}

.audit-log li {
  display: grid;
  grid-template-columns: 4.2rem 1fr;
  gap: 0.7rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(239, 249, 235, 0.08);
}

.audit-log time {
  color: var(--amber);
}

.big-code-panel {
  margin-top: 1rem;
  background: #060a07;
}

.big-code-panel pre {
  max-height: 26rem;
  margin: 0;
  padding: 1rem;
  overflow: auto;
  color: var(--green);
  font-size: 0.78rem;
  line-height: 1.65;
}

.lab-section {
  background: #060807;
}

.lab-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(24rem, 1.15fr);
  gap: 2rem;
  align-items: start;
}

.timeline {
  display: grid;
  gap: 0.75rem;
}

.timeline article {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.4rem 1rem;
  padding: 1rem;
  border: 1px solid rgba(239, 249, 235, 0.12);
  border-radius: 8px;
  background: var(--paper);
}

.timeline time {
  grid-row: span 2;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.74rem;
}

.timeline strong {
  font-family: var(--mono);
}

.timeline p {
  margin: 0;
  color: var(--muted);
}

.command-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  margin-top: 2rem;
  padding: 0.8rem;
  border: 1px solid rgba(91, 215, 255, 0.22);
  border-radius: 8px;
  background: rgba(7, 13, 15, 0.78);
}

.command-line label {
  color: var(--cyan);
  font-size: 0.78rem;
}

.command-line input {
  width: 100%;
  min-height: 2.8rem;
  border: 1px solid rgba(239, 249, 235, 0.12);
  border-radius: 6px;
  padding: 0 0.85rem;
  color: var(--green);
  background: #050705;
  outline: none;
}

.command-line input:focus {
  border-color: rgba(114, 242, 134, 0.62);
}

.command-line button {
  padding: 0 1rem;
  color: #061106;
  background: var(--amber);
  border-color: rgba(248, 199, 92, 0.7);
  cursor: pointer;
  font-family: var(--mono);
  font-weight: 700;
}

.command-output {
  min-height: 2rem;
  margin: 0.8rem 0 0;
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.84rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 5vw 2rem;
  border-top: 1px solid rgba(239, 249, 235, 0.1);
  color: var(--muted);
  font-size: 0.74rem;
}

.site-footer p {
  margin: 0;
}

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

@keyframes pulse {
  0%,
  100% {
    opacity: 0.42;
    transform: scale(0.9);
  }

  50% {
    opacity: 1;
    transform: scale(1.18);
  }
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

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

  .nav {
    order: 3;
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.1rem;
  }

  .hero,
  .module-layout,
  .kernel-grid,
  .doc-portal,
  .doc-shell,
  .lab-grid,
  .key-heading,
  .key-console,
  .runtime-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 6.5rem;
  }

  h1 {
    font-size: 4.25rem;
  }

  .terminal-card,
  .inspector,
  .doc-rail {
    position: static;
  }

  .doc-rail {
    display: flex;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding-inline: 0.85rem;
  }

  .header-status {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 5.75rem 1rem 1rem;
  }

  h1 {
    font-size: 3.5rem;
  }

  .lede {
    font-size: 1rem;
  }

  .metrics,
  .module-grid,
  .command-line,
  .provider-switch,
  .key-input-row,
  .provider-graph,
  .manual-steps {
    grid-template-columns: 1fr;
  }

  .key-hints,
  .panel-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .section {
    padding: 4.5rem 1rem;
  }

  .section-heading h2,
  .doc-paper h2 {
    font-size: 2.2rem;
  }

  .module-card {
    min-height: 14rem;
  }

  .stack-row,
  .timeline article {
    grid-template-columns: 1fr;
  }

  .timeline time {
    grid-row: auto;
  }

  .doc-paper {
    padding: 1rem;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
