:root {
  color-scheme: dark;
  --bg: #071017;
  --bg-soft: #0d1a24;
  --bg-contrast: #132533;
  --surface: rgba(11, 21, 30, 0.76);
  --surface-strong: rgba(14, 27, 38, 0.94);
  --border: rgba(164, 201, 224, 0.18);
  --text: #edf5fb;
  --muted: #9eb3c2;
  --accent: #7fd6d0;
  --accent-strong: #f3b56e;
  --accent-deep: #1d6d7a;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --shell: min(1180px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(127, 214, 208, 0.12), transparent 30%),
    linear-gradient(180deg, #051018 0%, #09131b 100%);
  color: var(--text);
}

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

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

.shell {
  width: var(--shell);
  margin: 0 auto;
}

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

.nav-row,
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.wordmark {
  font-size: 1rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero {
  position: relative;
  min-height: 92svh;
  overflow: clip;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 8, 12, 0.48) 0%, rgba(3, 9, 14, 0.74) 48%, rgba(5, 14, 20, 0.96) 100%),
    linear-gradient(90deg, rgba(4, 10, 14, 0.84) 0%, rgba(4, 10, 14, 0.28) 48%, rgba(4, 10, 14, 0.78) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 92svh;
  padding: 126px 0 72px;
}

.eyebrow,
.section-kicker,
.lane-label,
.stack-rank,
.fact-label {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

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

h1 {
  max-width: 720px;
  font-size: clamp(3.4rem, 7vw, 6.4rem);
  line-height: 0.95;
}

h2 {
  max-width: 720px;
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  line-height: 1;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.15;
}

.hero-copy,
.section-copy,
.flow-step p,
.read-node p,
.asset-panel p,
.stack-item p,
.status-list p,
.intro-grid p,
.bridge-flow p,
.doc-card p,
.docs-summary-panel p {
  color: var(--muted);
  line-height: 1.6;
}

.hero-copy {
  max-width: 700px;
  margin-top: 18px;
  font-size: 1.1rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 600;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent-strong), #cf8c4d);
  color: #09131b;
}

.button-secondary {
  background: rgba(10, 24, 34, 0.52);
  border-color: rgba(255, 255, 255, 0.14);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(100%, 900px);
  margin-top: 42px;
}

.hero-facts > div {
  min-height: 110px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(6, 14, 20, 0.48);
  backdrop-filter: blur(10px);
}

.fact-label {
  display: block;
  margin-bottom: 10px;
}

.hero-facts strong,
.status-list strong {
  display: block;
  font-size: 1.02rem;
  line-height: 1.3;
}

.section {
  padding: 80px 0;
}

.intro-band {
  background: rgba(4, 12, 18, 0.86);
}

.section-contrast {
  background: linear-gradient(180deg, rgba(6, 13, 20, 0.92) 0%, rgba(12, 22, 31, 0.98) 100%);
}

.status-band {
  background: rgba(11, 24, 34, 0.9);
}

.intro-grid,
.section-head,
.status-grid,
.docs-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.control-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(8, 17, 24, 0.62);
}

.segment {
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.segment.is-active {
  background: rgba(127, 214, 208, 0.14);
  color: var(--text);
}

.view-panel {
  display: none;
  margin-top: 28px;
}

.view-panel.is-active {
  display: block;
}

.lane-grid,
.asset-grid,
.stack-grid,
.flow-grid,
.status-list,
.doc-grid {
  display: grid;
  gap: 18px;
}

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

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

.stack-grid,
.doc-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 28px;
}

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

.lane,
.asset-panel,
.stack-item,
.flow-step,
.status-list article,
.doc-card,
.docs-summary-panel {
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.lane-root {
  background: linear-gradient(180deg, rgba(21, 50, 68, 0.72), rgba(10, 20, 28, 0.92));
}

.lane-middle {
  background: linear-gradient(180deg, rgba(43, 61, 72, 0.72), rgba(12, 22, 31, 0.92));
}

.lane-surface {
  background: linear-gradient(180deg, rgba(73, 52, 34, 0.76), rgba(17, 24, 31, 0.94));
}

.clean-list {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.65;
}

.flow-step span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--accent-strong);
  font-size: 1.8rem;
  font-weight: 700;
}

.read-strip,
.bridge-flow {
  display: grid;
  gap: 18px;
}

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

.read-node,
.bridge-flow article {
  padding: 22px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(7, 17, 25, 0.48);
}

.bridge-flow {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 28px;
}

.bridge-flow span,
.read-node strong {
  display: block;
  margin-bottom: 12px;
  font-size: 1.02rem;
}

.stack-item-primary {
  background: linear-gradient(180deg, rgba(71, 52, 30, 0.84), rgba(18, 28, 37, 0.94));
}

.docs-hero {
  padding: 120px 0 44px;
  background: linear-gradient(180deg, rgba(6, 14, 20, 0.94) 0%, rgba(9, 19, 27, 0.9) 100%);
}

.docs-summary-panel {
  background: var(--surface-strong);
}

.docs-title {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: #061018;
  color: var(--muted);
}

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

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

@media (max-width: 1100px) {
  .flow-grid,
  .stack-grid,
  .doc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .intro-grid,
  .section-head,
  .status-grid,
  .lane-grid,
  .asset-grid,
  .read-strip,
  .bridge-flow,
  .hero-facts,
  .docs-hero-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    min-height: 100svh;
    padding-top: 112px;
  }

  .nav-row,
  .footer-row {
    min-height: 64px;
  }
}

@media (max-width: 640px) {
  :root {
    --shell: calc(100vw - 24px);
  }

  .nav-row,
  .footer-row {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 12px 0;
  }

  .stack-grid,
  .flow-grid,
  .doc-grid {
    grid-template-columns: 1fr;
  }

  .button,
  .segment {
    width: 100%;
  }

  .hero-actions,
  .control-row {
    width: 100%;
  }
}


.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 30;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #edf5fb;
  color: #071017;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
