@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: dark;
  --bg: #09090b;
  --bg-elevated: #0d0f12;
  --bg-panel: rgba(14, 16, 19, 0.94);
  --bg-panel-strong: rgba(18, 20, 24, 0.98);
  --bg-inline: rgba(255, 255, 255, 0.04);
  --bg-inline-strong: rgba(255, 255, 255, 0.07);
  --text: #f4f6f8;
  --text-soft: #b4bac5;
  --text-faint: #7d8593;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow: 0 0 0 1px rgba(255, 255, 255, 0.015);
  --success: #c8e3cf;
  --warning: #ddcfb0;
  --danger: #efc0be;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.045), transparent 34rem),
    linear-gradient(180deg, #09090b 0%, #0a0b0d 100%);
  color: var(--text);
  font-family: "Inter", sans-serif;
  line-height: 1.5;
  letter-spacing: -0.012em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.035), transparent 24rem),
    radial-gradient(circle at 80% 18%, rgba(255, 255, 255, 0.02), transparent 24rem);
  opacity: 0.8;
}

a {
  color: #f2f4f8;
  text-decoration-color: rgba(255, 255, 255, 0.24);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}

a:hover {
  color: #ffffff;
  text-decoration-color: rgba(255, 255, 255, 0.48);
}

img {
  max-width: 100%;
}

code,
pre {
  font-family: "IBM Plex Mono", monospace;
}

code {
  padding: 0.12rem 0.36rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: #f7f8fb;
  font-size: 0.92em;
}

pre {
  margin: 0;
  overflow-x: auto;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(11, 12, 14, 0.98), rgba(9, 10, 12, 0.98));
  color: #f2f3f5;
  font-size: 0.85rem;
  line-height: 1.55;
}

.shell {
  width: min(76rem, calc(100% - 2rem));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 0.85rem 0 0;
}

.topbar .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(13, 14, 17, 0.92), rgba(10, 11, 13, 0.96));
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
  display: block;
}

.brand-copy {
  display: grid;
  gap: 0.02rem;
}

.brand-copy strong {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-copy span {
  color: var(--text-faint);
  font-size: 0.82rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav a {
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

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

.hero {
  padding: 1.35rem 0 1rem;
}

.hero-grid,
.split,
.compare-grid,
.page-grid,
.cards,
.resource-grid,
.path-grid,
.signal-grid,
.bento-grid {
  display: grid;
  gap: 0.9rem;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.18fr) minmax(21rem, 0.82fr);
  align-items: stretch;
}

.hero-copy,
.page-title,
.page-card,
.card,
.compare-card,
.resource-card,
.cta-band,
.path-card,
.signal-card,
.finding-frame,
.decision-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.028), transparent 18rem),
    linear-gradient(180deg, var(--bg-panel-strong), var(--bg-panel));
  box-shadow: var(--shadow);
}

.hero-copy,
.page-title,
.page-card,
.card,
.compare-card,
.resource-card,
.cta-band,
.path-card,
.signal-card,
.finding-frame,
.decision-card {
  padding: 1.1rem;
}

.hero-copy {
  padding: 1.45rem;
}

.home-hero .hero-copy {
  display: grid;
  gap: 1rem;
}

.kicker,
.eyebrow,
.path-label,
.finding-step-title,
.plan-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 0.3rem 0.56rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: #d7dce3;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero h1,
.page-title h1,
.section-head h2,
.page-card h2,
.compare-card h3,
.resource-card h3,
.path-card h3,
.signal-card h3,
.finding-frame h2,
.card h3,
.prose h2,
.prose h3 {
  margin: 0;
  color: var(--text);
  letter-spacing: -0.05em;
  line-height: 0.96;
}

.hero h1 {
  font-size: clamp(3.2rem, 6vw, 5rem);
  max-width: 9.5ch;
}

.page-title h1 {
  font-size: clamp(2.15rem, 5vw, 4rem);
}

.section-head h2 {
  font-size: clamp(1.85rem, 3.8vw, 3rem);
}

.lead,
.page-title p,
.section-head p,
.card p,
.page-card p,
.compare-card p,
.resource-card p,
.path-card p,
.signal-card p,
.finding-frame p,
.small,
.section-note,
.decision-note,
.prose p,
.prose li {
  color: var(--text-soft);
}

.lead,
.page-title p {
  margin: 0;
  font-size: 1rem;
  max-width: 40rem;
}

.highlight {
  color: #ffffff;
}

.action-row,
.link-row,
.footer-links,
.status-row,
.hero-links {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.action-row {
  margin-top: 0.15rem;
}

.status-row,
.hero-links {
  margin-top: 0.1rem;
}

.hero-links a {
  color: var(--text-faint);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
}

.hero-links a:hover {
  color: var(--text);
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  padding: 0.62rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.button {
  background: #f5f6f8;
  border-color: rgba(255, 255, 255, 0.9);
  color: #0a0b0d;
}

.button:hover {
  color: #0a0b0d;
  background: #ffffff;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-strong);
  color: var(--text);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.42rem 0.62rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  font-size: 0.82rem;
}

.pill strong {
  color: var(--text);
}

.hero-route-list {
  display: grid;
  gap: 0.55rem;
}

.hero-route {
  display: grid;
  grid-template-columns: 5.2rem minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  min-height: 3rem;
  padding: 0.72rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.hero-route span {
  color: #dde2e9;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-route code {
  padding: 0;
  border: 0;
  background: transparent;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 0.83rem;
}

.decision-card {
  display: grid;
  gap: 0.9rem;
  align-content: start;
  padding: 1rem;
}

.decision-list {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.decision-item {
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.decision-item header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.7rem;
}

.decision-item strong {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.decision-item p,
.decision-item small,
.decision-note {
  margin: 0.32rem 0 0;
}

.decision-item small,
.decision-note {
  color: var(--text-faint);
}

.severity {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.46rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.severity-error {
  color: var(--danger);
  border-color: rgba(239, 192, 190, 0.16);
  background: rgba(169, 59, 59, 0.12);
}

.severity-warning {
  color: var(--warning);
  border-color: rgba(221, 207, 176, 0.14);
  background: rgba(118, 91, 39, 0.12);
}

.section {
  padding: 1rem 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.95rem;
}

.section-head p {
  margin: 0.35rem 0 0;
  max-width: 42rem;
}

.cards,
.resource-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.path-grid {
  grid-template-columns: 1.25fr 1fr 1fr;
}

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

.card h3,
.page-card h2,
.compare-card h3,
.resource-card h3,
.path-card h3,
.signal-card h3,
.finding-frame h2 {
  margin-top: 0.58rem;
  font-size: 1.18rem;
  line-height: 1.08;
}

.page-card ul,
.page-card ol,
.compare-card ul,
.path-card ul,
.resource-card ul,
.prose ul {
  margin: 0.8rem 0 0;
  padding-left: 1.05rem;
}

.path-card.featured,
.compare-card.featured {
  border-color: var(--line-strong);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.04), transparent 18rem),
    linear-gradient(180deg, rgba(18, 20, 24, 0.98), rgba(12, 13, 16, 0.98));
}

.section-contrast {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-lg) + 2px);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.026), transparent 18rem),
    linear-gradient(180deg, rgba(14, 16, 19, 0.98), rgba(10, 11, 13, 0.98));
}

.finding-step {
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.finding-step:first-of-type {
  border-top: 0;
}

.page {
  padding: 1rem 0 2.4rem;
}

.page-title {
  margin-bottom: 0.95rem;
}

.prose-card {
  padding: 1.25rem;
}

.prose {
  display: grid;
  gap: 0.95rem;
}

.prose h2 {
  font-size: 1.45rem;
}

.prose h3 {
  font-size: 1.02rem;
}

.cta-band {
  display: grid;
  gap: 0.75rem;
  padding: 1.25rem;
}

.cta-band h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
}

.footer {
  padding: 1.25rem 0 2.4rem;
}

.footer .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.footer-links a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--text);
}

.small {
  margin: 0;
  font-size: 0.86rem;
}

/* Homepage-specific layout */

.hero-main {
  display: grid;
  gap: 1rem;
}

.hero-main .lead {
  max-width: 39rem;
}

.console-panel {
  display: grid;
  gap: 0.9rem;
}

.console-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.75rem;
}

.console-head h2,
.bento-card h3 {
  font-size: 1rem;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.console-head p,
.bento-card p {
  margin: 0.35rem 0 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.5rem;
  padding: 0.28rem 0.52rem;
  border: 1px solid rgba(239, 192, 190, 0.18);
  border-radius: 999px;
  background: rgba(169, 59, 59, 0.12);
  color: var(--danger);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.console-run {
  border-radius: 12px;
}

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

.console-summary > div {
  padding: 0.75rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.console-summary span {
  display: block;
  color: var(--text-faint);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.console-summary strong {
  display: block;
  margin-top: 0.28rem;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.finding-stream {
  display: grid;
  gap: 0.55rem;
}

.finding-row {
  display: grid;
  gap: 0.34rem;
  padding: 0.78rem 0.82rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.finding-row header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.finding-row strong {
  font-size: 0.92rem;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.finding-row p,
.finding-row small {
  margin: 0;
}

.finding-row p {
  color: var(--text-soft);
  font-size: 0.85rem;
}

.finding-row small {
  color: var(--text-faint);
  font-size: 0.8rem;
}

.console-foot {
  padding-top: 0.2rem;
  color: var(--text-faint);
  font-size: 0.82rem;
}

.bento-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.95fr) minmax(0, 0.95fr);
}

.bento-card {
  display: grid;
  gap: 0.85rem;
}

.bento-card.wide {
  grid-column: span 2;
}

.surface-table,
.dense-list,
.mini-matrix {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.surface-row,
.dense-list li,
.mini-matrix li {
  display: grid;
  gap: 0.22rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
}

.surface-row:first-child,
.dense-list li:first-child,
.mini-matrix li:first-child {
  border-top: 0;
  padding-top: 0;
}

.surface-row:last-child,
.dense-list li:last-child,
.mini-matrix li:last-child {
  padding-bottom: 0;
}

.surface-topic {
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.surface-detail,
.dense-list li,
.mini-matrix li {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.matrix-block {
  display: grid;
  gap: 0;
}

.matrix-line {
  display: grid;
  grid-template-columns: 6.2rem 1fr;
  gap: 0.8rem;
  padding: 0.78rem 0;
  border-top: 1px solid var(--line);
}

.matrix-line:first-child {
  border-top: 0;
  padding-top: 0;
}

.matrix-line:last-child {
  padding-bottom: 0;
}

.matrix-line strong,
.matrix-line span:first-child {
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.matrix-line span:last-child,
.matrix-line a {
  color: var(--text-soft);
  font-size: 0.9rem;
  text-decoration: none;
}

.matrix-line a:hover {
  color: var(--text);
}

.workflow-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 0.9rem;
}

.subtle {
  color: var(--text-faint);
}

@media (max-width: 1080px) {
  .hero-grid,
  .workflow-grid,
  .bento-grid,
  .split,
  .compare-grid,
  .page-grid,
  .cards,
  .resource-grid,
  .path-grid,
  .signal-grid {
    grid-template-columns: 1fr;
  }

  .bento-card.wide {
    grid-column: auto;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 1rem, 76rem);
  }

  .topbar {
    padding-top: 0.55rem;
  }

  .topbar .shell {
    align-items: flex-start;
    padding: 0.82rem;
  }

  .nav {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.1rem;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    white-space: nowrap;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 12vw, 3.8rem);
  }

  .page-title h1 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .hero-copy,
  .page-title,
  .page-card,
  .card,
  .compare-card,
  .resource-card,
  .cta-band,
  .path-card,
  .signal-card,
  .finding-frame,
  .decision-card {
    padding: 1rem;
  }

  .action-row,
  .link-row,
  .hero-links,
  .status-row,
  .footer-links {
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  .button-secondary {
    width: 100%;
  }

  .hero-route,
  .matrix-line {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .console-head,
  .decision-item header {
    flex-direction: column;
  }

  .console-summary {
    grid-template-columns: 1fr 1fr;
  }

  .footer .shell {
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .console-summary {
    grid-template-columns: 1fr;
  }
}
