:root {
  --bg: #000000;
  --bg-alt: #07080b;
  --surface: #101218;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f4f7fb;
  --muted: #9aa3b2;
  --accent: #0066ff;
  --accent-bright: #2b86ff;
  --accent-ink: #ffffff;
  --linux: #e8eef8;
  --healthy: #22c55e;
  --watch: #f5c518;
  --elevated: #f59e0b;
  --high: #f97316;
  --critical: #ef4444;
  --sans: "Plus Jakarta Sans", "Helvetica Neue", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --wrap: 1120px;
  --radius: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}

h1,
h2,
h3,
h4 {
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

h1 {
  font-size: clamp(2.3rem, 5.6vw, 4.15rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.85rem);
  margin: 0 0 0.8rem;
}

h3 {
  font-size: 1.28rem;
  margin: 0 0 0.5rem;
}

p {
  color: var(--muted);
}

a {
  color: inherit;
}

code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: rgba(0, 102, 255, 0.12);
  color: #cfe0ff;
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 8px 12px;
  z-index: 20;
}

.skip-link:focus {
  top: 12px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin: 0 0 0.7rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo-mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  background: transparent;
}

.brand {
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: -0.05em;
  line-height: 1;
}

.brand-linux {
  color: var(--linux);
}

.brand-lens {
  color: var(--accent-bright);
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover,
.mobile-nav a:hover {
  color: var(--text);
}

.nav-cta {
  color: var(--accent-ink) !important;
  background: var(--accent);
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 700;
}

.menu-btn {
  display: none;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 14px;
  padding: 8px 20px 20px;
  border-bottom: 1px solid var(--line);
}

.mobile-nav a {
  text-decoration: none;
  color: var(--text);
}

.hero {
  padding: 64px 0 80px;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(0, 102, 255, 0.2), transparent 42%),
    radial-gradient(ellipse at 0% 20%, rgba(43, 134, 255, 0.08), transparent 36%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.lede {
  font-size: 1.12rem;
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 16px;
}

.hero-note {
  font-size: 0.92rem;
}

.hero-visual {
  display: grid;
  gap: 18px;
  justify-items: center;
}

.hero-logo {
  width: min(220px, 46vw);
  height: auto;
  background: transparent;
  filter: drop-shadow(0 18px 40px rgba(0, 102, 255, 0.28));
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: var(--accent-bright);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.terminal {
  width: 100%;
  background: #07090d;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 102, 255, 0.12);
}

.terminal-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.terminal pre {
  margin: 0;
  padding: 18px 16px 22px;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--text);
  overflow-x: auto;
}

.t-muted { color: var(--muted); }
.t-ok { color: var(--accent-bright); }
.t-warn { color: var(--elevated); }

.band.critical { color: var(--critical); }
.band.high { color: var(--high); }
.band.elevated { color: var(--elevated); }
.band.healthy { color: var(--healthy); }

.strip {
  border-block: 1px solid var(--line);
  padding: 22px 0;
}

.strip-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.strip p,
.strip li {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.strip ul {
  display: flex;
  gap: 18px;
  padding: 0;
  list-style: none;
}

.section {
  padding: 92px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 720px;
  margin-bottom: 40px;
}

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

.compare article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.compare-accent {
  border-color: rgba(0, 102, 255, 0.45);
  box-shadow: inset 0 0 0 1px rgba(0, 102, 255, 0.12);
}

.compare ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.estate-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
}

.estate-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.estate-count {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}

.estate-count strong {
  color: var(--accent-bright);
}

.bands {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.band-card {
  padding: 16px;
  border-radius: 14px;
  background: #0a0c10;
  border-top: 3px solid currentColor;
}

.band-card span {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
}

.band-card.healthy { color: var(--healthy); }
.band-card.watch { color: var(--watch); }
.band-card.high { color: var(--high); }
.band-card.critical { color: var(--critical); }

.attention h4 {
  margin: 0 0 10px;
}

.attention ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  columns: 2;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 0;
  margin: 0 0 28px;
  list-style: none;
}

.pipeline li,
.modes article,
.principle-grid article,
.journey li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.step {
  font-family: var(--mono);
  color: var(--accent-bright);
  font-size: 0.78rem;
}

.modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.risk-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.weights {
  margin: 28px 0;
}

.weights > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.weights dt {
  color: var(--muted);
}

.weights dd {
  margin: 0;
  font-family: var(--mono);
  color: var(--text);
}

.bands-legend {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--muted);
}

.bands-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
}

.bands-legend .healthy { background: var(--healthy); }
.bands-legend .watch { background: var(--watch); }
.bands-legend .elevated { background: var(--elevated); }
.bands-legend .high { background: var(--high); }
.bands-legend .critical { background: var(--critical); }

.host-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px;
}

.host-id {
  font-family: var(--mono);
  margin: 0;
  color: var(--text);
}

.host-meta {
  margin: 6px 0 0;
  font-size: 0.92rem;
}

.score-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  margin: 22px 0;
}

.score {
  background: #140808;
  border-radius: 16px;
  padding: 16px;
  text-align: center;
}

.score-num {
  display: block;
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 0.9;
  color: var(--critical);
}

.score-band {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--critical);
}

.reasons {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.reco {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.reco-kicker {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin: 0 0 8px;
}

.reco p {
  color: var(--text);
}

.options {
  padding-left: 1.1rem;
  color: var(--muted);
}

.reco-note {
  color: var(--muted) !important;
  font-size: 0.92rem;
}

.journey {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.edition-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.edition-tabs button {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.edition-tabs button[aria-selected="true"] {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.edition-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.edition-cmd {
  margin-bottom: 0;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cta {
  padding: 92px 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(0, 102, 255, 0.16), transparent 40%),
    var(--bg-alt);
}

.cta-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}

.snapshot-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-full,
.snapshot-form .btn,
.form-error,
.form-ok {
  grid-column: 1 / -1;
}

label {
  font-size: 0.88rem;
  color: var(--muted);
}

input,
select,
textarea {
  font: inherit;
  color: var(--text);
  background: #07090d;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.form-error {
  color: #ffb4a8;
  margin: 0;
}

.form-ok {
  color: var(--healthy);
  margin: 0;
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  overflow: hidden;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-mark {
  margin: 0 0 8px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.runbook {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.runbook article,
.runbook-extra > div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.code-block {
  margin: 12px 0;
  padding: 14px 16px;
  overflow-x: auto;
  border-radius: 12px;
  background: #07090d;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.55;
  color: #d7e4ff;
}

.code-block code {
  background: transparent;
  padding: 0;
  color: inherit;
}

.runbook-extra {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 16px;
  margin-bottom: 28px;
}

.runbook-extra ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.runbook-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 960px) {
  .nav {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
  }

  .mobile-nav:not([hidden]) {
    display: flex;
  }

  .hero-grid,
  .compare,
  .risk-grid,
  .cta-grid,
  .pipeline,
  .modes,
  .journey,
  .principle-grid,
  .bands,
  .score-row,
  .snapshot-form,
  .strip-inner,
  .footer-inner,
  .runbook,
  .runbook-extra {
    grid-template-columns: 1fr;
    display: grid;
  }

  .strip ul,
  .attention ul,
  .footer-links {
    display: grid;
    gap: 10px;
  }

  .hero,
  .section,
  .cta {
    padding: 64px 0;
  }
}

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