:root {
  color-scheme: dark;
  --ink: #f7fbff;
  --muted: #aeb8c4;
  --paper: #0d1218;
  --panel: #111a23;
  --surface: #05070b;
  --surface-soft: #0a0f15;
  --line: #2b3542;
  --blue: #6fb6e8;
  --blue-strong: #4c9bd3;
  --blue-deep: #204a74;
  --green: #13b981;
  --amber: #c8862f;
  --red: #d85a5a;
  --shadow: 0 22px 58px rgba(0, 0, 0, 0.32);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
code { font: 0.92em "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 980px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 6.2vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}
h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.02;
  letter-spacing: 0;
}
h3 { margin-bottom: 10px; font-size: 1.08rem; letter-spacing: 0; }
.control-grid h3, .card-grid h3, .surface-grid h2, .surface-grid h3 {
  overflow-wrap: anywhere;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  padding: 0 48px;
  justify-content: space-between;
  background: rgba(5, 7, 11, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(14px);
}
.site-header, .brand, .nav-links, .hero-actions, .board-footer,
.pilot-points, .cta-band, .site-footer, .status-strip {
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { gap: 10px; font-weight: 800; text-transform: uppercase; }
.brand-mark {
  position: relative;
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  overflow: hidden;
  color: transparent;
  font-size: 0;
  background: #07111c;
  border: 1px solid rgba(111, 182, 232, 0.48);
  border-radius: 8px;
}
.brand-mark::before {
  position: absolute;
  inset: 2px;
  content: "";
  background: url("./assets/abizor-logo.png") center / contain no-repeat;
  filter: brightness(1.28) contrast(1.08) saturate(1.08);
  opacity: 0.95;
}
.nav-links { gap: 20px; color: var(--muted); font-size: 0.95rem; }
.nav-links a:hover, .nav-links a:focus-visible, .text-link { color: var(--blue); }
.header-cta {
  min-height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(111, 182, 232, 0.56);
  border-radius: 8px;
  color: var(--blue);
  font-weight: 800;
}

.hero, .page-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(5, 7, 11, 1) 0%, rgba(7, 13, 21, 1) 56%, rgba(5, 7, 11, 1) 100%),
    radial-gradient(circle at 78% 34%, rgba(35, 129, 227, 0.14), transparent 34%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.hero {
  min-height: 76svh;
  padding: 120px 48px 92px;
  background:
    linear-gradient(135deg, rgba(5, 7, 11, 1) 0%, rgba(7, 13, 21, 1) 56%, rgba(5, 7, 11, 1) 100%),
    radial-gradient(circle at 74% 42%, rgba(35, 129, 227, 0.16), transparent 34%);
}
.page-hero { padding: 100px 48px 84px; }
.hero::after, .page-hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(111, 182, 232, 0.46), transparent);
}
.hero-content, .section, .site-footer, .page-hero > *, .article-body,
.status-strip {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
}
.hero-content { margin-left: 0; }
.page-hero h1 {
  max-width: 1100px;
  margin-bottom: 34px;
  font-size: clamp(2.8rem, 5.2vw, 4.8rem);
  line-height: 1.08;
}
.hero-copy, .page-hero p {
  max-width: 720px;
  margin-bottom: 32px;
  color: #dce5ee;
  font-size: 1.2rem;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
.hero-actions { gap: 12px; flex-wrap: wrap; }
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  font-weight: 850;
}
.button.primary {
  color: #061018;
  background: #9ccdf0;
  border-color: #9ccdf0;
}
.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.045);
}
.button:hover, .button:focus-visible, .header-cta:hover, .header-cta:focus-visible {
  transform: translateY(-1px);
}

.status-strip {
  justify-content: space-between;
  padding: 20px 48px;
  margin-top: 0;
  background: rgba(13, 18, 24, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
}
.status-strip div { min-width: 0; }
.status-strip span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}
.status-strip strong { display: block; margin-top: 4px; font-size: 0.98rem; }

.section { padding: 92px 48px; }
.band {
  max-width: none;
  background: var(--surface-soft);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.section-heading { max-width: 820px; margin-bottom: 36px; }
.split, .pilot {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 72px;
  align-items: start;
}
.copy-column, .card-grid p, .loop-list p, .pilot p, .product-panel p,
.boundary-table span, .surface-grid p, .article-body p, .cta-band p {
  color: var(--muted);
}
.copy-column { font-size: 1.12rem; }

.control-grid, .card-grid, .loop-list, .surface-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.control-grid article, .card-grid article, .loop-list li, .pilot,
.surface-grid article, .boundary-table, .terminal-panel, .cta-band,
.control-board {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.control-grid article, .card-grid article { min-height: 190px; padding: 24px; }
.control-grid span {
  display: inline-grid;
  width: 38px;
  height: 30px;
  margin-bottom: 24px;
  place-items: center;
  color: #c6dff1;
  border: 1px solid rgba(111, 182, 232, 0.28);
  border-radius: 8px;
  font-weight: 900;
}
.control-grid p { color: var(--muted); }
.product-panel {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(13, 18, 24, 0.99), rgba(8, 13, 19, 0.96)),
    radial-gradient(circle at 78% 28%, rgba(35, 129, 227, 0.12), transparent 34%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
}
.terminal-panel {
  padding: 22px;
  overflow-x: auto;
  background: #070b10;
  color: #dce9f6;
}
.terminal-panel pre {
  margin: 0;
  white-space: pre-wrap;
}
.terminal-panel code { overflow-wrap: anywhere; }

.loop-list { padding: 0; list-style: none; counter-reset: loop; }
.loop-list li { min-height: 190px; padding: 22px; counter-increment: loop; }
.loop-list li::before {
  display: inline-grid;
  width: 32px;
  height: 32px;
  margin-bottom: 18px;
  place-items: center;
  color: #061018;
  background: #9ccdf0;
  border-radius: 8px;
  content: counter(loop);
  font-weight: 900;
}
.loop-list span { display: block; margin-bottom: 8px; font-weight: 850; }
.pilot { padding: 44px; }
.pilot-points { align-content: start; align-items: stretch; flex-wrap: wrap; gap: 10px; }
.pilot-points span {
  padding: 10px 12px;
  color: #d7e8f4;
  background: rgba(111, 182, 232, 0.07);
  border: 1px solid rgba(111, 182, 232, 0.2);
  border-radius: 8px;
  font-weight: 850;
}

.numbered-list { margin: 0; padding-left: 22px; color: var(--muted); font-size: 1.08rem; }
.numbered-list li + li { margin-top: 10px; }
.boundary-table { display: grid; overflow: hidden; }
.boundary-table div {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  padding: 18px 20px;
  border-top: 1px solid var(--line);
}
.boundary-table div:first-child { border-top: 0; }
.surface-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.surface-grid article { padding: 26px; }
.surface-grid h2 {
  max-width: 100%;
  font-size: clamp(1.55rem, 2.45vw, 2.05rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
  word-break: normal;
}
.surface-grid strong { display: block; margin-top: 14px; }
.cta-band {
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 34px 40px;
}
.cta-band p { flex-basis: 100%; }
.article-body {
  max-width: 840px;
  padding: 76px 48px;
  font-size: 1.08rem;
}
.article-body h2 { margin-top: 36px; font-size: 1.8rem; }
.text-link { display: inline-block; margin-top: 8px; font-weight: 850; }
.site-footer {
  justify-content: space-between;
  padding: 34px 48px;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.site-footer span:first-child { color: var(--ink); font-weight: 850; }

.control-board { margin-top: 28px; padding: 18px; box-shadow: var(--shadow); }
.control-board figcaption { margin-bottom: 12px; color: var(--muted); font-size: 0.88rem; font-weight: 800; }
.board-row {
  display: grid;
  grid-template-columns: 150px 130px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
}
.board-row.active { background: rgba(111, 182, 232, 0.07); }
.state { font: 0.88rem "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.decision {
  width: max-content;
  padding: 4px 8px;
  border-radius: 8px;
  color: white;
  font-size: 0.78rem;
  font-weight: 850;
}
.decision.allowed { background: var(--green); }
.decision.blocked { background: var(--red); }
.decision.needs { background: var(--amber); }
.action { color: var(--muted); }
.board-footer { justify-content: space-between; gap: 12px; padding: 16px 12px 0; color: var(--blue); font-size: 0.9rem; font-weight: 850; }

@media (max-width: 980px) {
  .site-header { padding: 0 22px; }
  .nav-links { display: none; }
  .header-cta { display: none; }
  .hero { min-height: 76svh; padding: 86px 22px 72px; }
  .page-hero { padding: 74px 22px 56px; }
  h1 { font-size: 2.8rem; line-height: 1; }
  .page-hero h1 { font-size: 2.65rem; line-height: 1.08; }
  h2 { font-size: 2rem; }
  .hero-copy, .page-hero p { font-size: 1.05rem; }
  .status-strip {
    display: grid;
    margin: 0;
    padding: 18px 22px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }
  .section, .article-body { padding: 58px 22px; }
  .split, .pilot, .boundary-table div, .board-row { grid-template-columns: 1fr; }
  .control-grid, .card-grid, .loop-list, .surface-grid { grid-template-columns: 1fr; }
  .pilot, .cta-band { padding: 28px; }
  .site-footer { flex-direction: column; align-items: flex-start; padding: 30px 22px; }
}
