:root {
  --bg: #0a0a0c;
  --panel: #111216;
  --panel-2: #171920;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(212,175,55,0.35);
  --text: #f4f1ea;
  --muted: rgba(255,255,255,0.72);
  --soft: rgba(255,255,255,0.5);
  --gold: #d4af37;
  --gold-2: #f0d87a;
  --shadow: 0 16px 42px rgba(0,0,0,0.35);
  --radius: 22px;
  --shell: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(212,175,55,0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(255,255,255,0.05), transparent 24%),
    linear-gradient(180deg, #09090b 0%, #0c0d12 45%, #09090b 100%);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(var(--shell), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(10,10,12,0.78);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

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

.brand-lockup {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}

.brand-kicker {
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-name {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.header-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

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

.hero-section {
  padding: 68px 0 42px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 26px;
  align-items: stretch;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow-muted {
  color: rgba(240,216,122,0.82);
}

.hero-copy h1 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.hero-text {
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-pills span,
.pill,
.tag {
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.84);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 0.82rem;
  line-height: 1;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-weight: 600;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.button:hover,
.mode-btn:hover,
.expand-btn:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #111;
  border-color: rgba(212,175,55,0.5);
}

.hero-panel,
.feature-card,
.board-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.015));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 22px;
}

.panel-topline,
.board-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.panel-label,
.card-category {
  margin: 0;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.panel-rank,
.rank {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(212,175,55,0.18);
  color: var(--gold-2);
  font-weight: 800;
}

.marquee-panel h2,
.section-head h2,
.feature-card h2,
.board-main h3,
.roadmap-step h3 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.01em;
}

.marquee-panel h2 {
  margin-top: 10px;
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 0.98;
  text-transform: uppercase;
}

.marquee-panel p,
.section-note,
.supporting-copy,
.board-main p,
.repo-note-card p,
.roadmap-step p,
.next-step-list,
.workflow-list,
.obs-stat span {
  color: var(--muted);
}

.mini-metrics {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.mini-metrics li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.mini-metrics strong {
  color: var(--text);
  font-size: 0.92rem;
}

.sticky-modes-wrap {
  position: sticky;
  top: 72px;
  z-index: 25;
  padding: 0 0 18px;
  background: linear-gradient(180deg, rgba(10,10,12,0.95), rgba(10,10,12,0.55));
}

.sticky-modes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 999px;
  padding: 12px 16px;
  background: rgba(17,18,22,0.82);
  backdrop-filter: blur(10px);
}

.modes-label {
  margin: 0;
  color: var(--soft);
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mode-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mode-btn,
.expand-btn {
  cursor: pointer;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.035);
  color: var(--text);
  font: inherit;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.mode-btn {
  min-height: 40px;
  padding: 0 14px;
}

.mode-btn.is-active {
  background: rgba(212,175,55,0.18);
  border-color: rgba(212,175,55,0.4);
  color: var(--gold-2);
}

.board-section,
.feature-grid,
.dual-grid,
.observability-wrap,
.roadmap-section,
.repo-note-wrap {
  margin-top: 34px;
  margin-bottom: 34px;
}

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

.section-head.compact {
  align-items: start;
  margin-bottom: 18px;
}

.section-head h2,
.feature-card h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  line-height: 0.98;
  text-transform: uppercase;
}

.section-note {
  max-width: 420px;
  margin: 0;
  font-size: 0.95rem;
}

.board-list {
  display: grid;
  gap: 18px;
}

.board-card {
  padding: 22px;
}

.board-main {
  flex: 1;
}

.board-main h3 {
  font-size: clamp(1.55rem, 2.3vw, 2rem);
  line-height: 0.98;
  margin-top: 6px;
  text-transform: uppercase;
}

.card-summary {
  margin: 10px 0 0;
  font-size: 1rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.peek-row {
  margin: 12px 0 0;
  font-size: 0.95rem;
}

.expand-btn {
  min-height: 42px;
  padding: 0 16px;
}

.board-expand {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

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

.detail-grid h4 {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detail-grid p,
.detail-grid li {
  color: var(--muted);
}

.artifact-list,
.signal-list {
  margin: 0;
  padding-left: 18px;
}

.feature-grid,
.dual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.feature-card {
  padding: 24px;
}

.diagram-shell {
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  overflow: hidden;
}

pre {
  margin: 0;
  border-radius: 16px;
  background: #0b0c10;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 18px;
  overflow-x: auto;
}

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
}

.workflow-list {
  margin: 0;
  padding-left: 20px;
}

.workflow-list li + li {
  margin-top: 10px;
}

.obs-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.obs-stat {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.025);
}

.obs-stat span {
  display: block;
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.obs-stat strong {
  display: block;
  margin-top: 8px;
  font-size: 1.55rem;
  color: var(--text);
}

.obs-bars {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  min-height: 130px;
  padding: 12px 0 4px;
}

.obs-bars span {
  display: block;
  height: var(--h);
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, var(--gold-2), rgba(212,175,55,0.32));
}

.roadmap-shell {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.roadmap-step {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 22px 18px 20px;
  overflow: hidden;
  min-height: 220px;
}

.roadmap-step::after {
  content: "";
  position: absolute;
  top: 34px;
  right: -22px;
  width: 44px;
  height: 2px;
  background: rgba(212,175,55,0.55);
}

.roadmap-step:last-child::after {
  display: none;
}

.roadmap-num {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #111;
  background: var(--gold);
  margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(212,175,55,0.22);
}

.roadmap-step h3 {
  font-size: 1.05rem;
  line-height: 1.15;
  margin-bottom: 10px;
}

.next-step-list {
  margin: 14px 0 0;
  padding-left: 18px;
}

.next-step-list li + li {
  margin-top: 8px;
}

@media (max-width: 1100px) {
  .hero-grid,
  .feature-grid,
  .dual-grid {
    grid-template-columns: 1fr;
  }

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

  .roadmap-step::after {
    display: none;
  }

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

@media (max-width: 760px) {
  .header-inner,
  .section-head,
  .sticky-modes {
    flex-direction: column;
    align-items: start;
  }

  .header-nav {
    gap: 12px;
  }

  .detail-grid,
  .roadmap-shell,
  .obs-grid {
    grid-template-columns: 1fr;
  }

  .page-shell {
    width: min(var(--shell), calc(100% - 20px));
  }

  .hero-section {
    padding-top: 40px;
  }

  .sticky-modes-wrap {
    top: 64px;
  }
}
