:root {
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #e6edf8;
  background: #080d16;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(38, 70, 156, 0.22), transparent 30rem),
    linear-gradient(135deg, #080d16 0%, #101626 48%, #0a101a 100%);
}

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

.app-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid #1d2940;
  background: rgba(9, 14, 24, 0.92);
  padding: 22px 18px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #3847a9;
  border-radius: 8px;
  color: #a7b4ff;
  background: #171d3c;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand small {
  margin-top: 3px;
  color: #75819a;
  font-size: 12px;
}

.search-shell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid #202d45;
  border-radius: 8px;
  color: #77849d;
  background: #0f1726;
  font-size: 13px;
}

.nav {
  margin-top: 24px;
}

.nav-section + .nav-section {
  margin-top: 24px;
}

.nav-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8291b0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  margin-top: 6px;
  padding: 7px 10px;
  border-radius: 8px;
  color: #d5ddec;
  font-size: 14px;
}

.nav-link:hover {
  background: #141d30;
  color: #ffffff;
}

.nav-link em,
.index-list em {
  flex: 0 0 auto;
  color: #00d39a;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.doc-main {
  width: min(1120px, 100%);
  padding: 48px clamp(20px, 5vw, 72px) 80px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 34px;
  align-items: center;
  min-height: 430px;
}

.eyebrow,
.doc-meta {
  color: #00d39a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.markdown-doc h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.02;
}

.hero p {
  max-width: 720px;
  color: #aab7cc;
  font-size: 18px;
  line-height: 1.65;
}

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

.hero-actions a {
  min-height: 42px;
  padding: 11px 15px;
  border: 1px solid #2d3a58;
  border-radius: 8px;
  background: #151f33;
  font-weight: 800;
}

.hero-actions a:first-child {
  border-color: #008f6a;
  color: #001f18;
  background: #00d39a;
}

.hero-panel,
.feature-grid article,
.doc-index,
.markdown-doc,
.state-box {
  border: 1px solid #1d2940;
  border-radius: 8px;
  background: rgba(15, 23, 38, 0.82);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.25);
}

.hero-panel {
  padding: 18px;
}

.signal-row {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid #24314b;
  border-radius: 8px;
  background: #111a2a;
}

.signal-row span,
.metric-grid span,
.timeline-card span {
  color: #8190aa;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signal-row strong {
  color: #eef4ff;
  font-size: 15px;
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #24314b;
  border-radius: 8px;
  background: #111a2a;
}

.metric-grid strong {
  color: #c5ceff;
}

.timeline-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #5a2730;
  border-radius: 8px;
  color: #ff6c7f;
  background: #21121d;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.feature-grid article {
  min-height: 190px;
  padding: 20px;
}

.feature-grid svg {
  color: #737dff;
}

.feature-grid h2,
.doc-index h2 {
  margin: 14px 0 8px;
  font-size: 20px;
}

.feature-grid p,
.index-list small,
.markdown-doc header p {
  color: #a4b0c6;
  line-height: 1.6;
}

.doc-index {
  margin-top: 18px;
  padding: 24px;
}

.index-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.index-list a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid #24314b;
  border-radius: 8px;
  background: #111a2a;
}

.index-list strong,
.index-list small {
  display: block;
}

.index-list small {
  margin-top: 4px;
}

.markdown-doc {
  padding: clamp(22px, 4vw, 52px);
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.doc-meta span {
  padding: 5px 8px;
  border: 1px solid #26354f;
  border-radius: 8px;
  background: #111a2a;
}

.markdown-doc header {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid #25324a;
}

.markdown-doc header h1 {
  font-size: clamp(34px, 5vw, 56px);
}

.markdown-doc h2 {
  margin-top: 36px;
  font-size: 26px;
}

.markdown-doc h3 {
  margin-top: 26px;
  color: #d9e2f3;
  font-size: 20px;
}

.markdown-doc p,
.markdown-doc li {
  color: #c5cfdf;
  font-size: 16px;
  line-height: 1.75;
}

.markdown-doc a {
  color: #7fdcff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.markdown-doc code {
  padding: 2px 5px;
  border: 1px solid #25324a;
  border-radius: 5px;
  color: #c8d2ff;
  background: #0c1320;
}

.markdown-doc pre {
  overflow-x: auto;
  padding: 16px;
  border: 1px solid #25324a;
  border-radius: 8px;
  background: #080e18;
}

.markdown-doc blockquote {
  margin: 22px 0;
  padding: 14px 18px;
  border-left: 3px solid #00d39a;
  color: #d6efe7;
  background: #0d1b1e;
}

.state-box {
  padding: 24px;
  color: #aab7cc;
}

.state-box.error {
  border-color: #69303b;
  color: #ff9aac;
}

.download-link {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 9px 12px;
  border: 1px solid #26354f;
  border-radius: 8px;
  color: #aab7cc;
  background: rgba(12, 18, 30, 0.92);
  font-size: 12px;
}

.marketing-main {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 84px;
}

.site-nav,
.marketing-hero,
.problem-section,
.product-section,
.sovereignty-section,
.roadmap-section,
.platform-section,
.final-cta {
  border: 1px solid #1d2940;
  border-radius: 8px;
  background: rgba(11, 17, 29, 0.82);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.24);
}

.site-nav {
  position: sticky;
  top: 16px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 12px 14px;
  backdrop-filter: blur(16px);
}

.marketing-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.marketing-brand strong,
.marketing-brand small {
  display: block;
}

.marketing-brand strong {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.marketing-brand small {
  color: #75819a;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav > div {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-nav > div a {
  color: #aab7cc;
  font-size: 13px;
  font-weight: 800;
}

.site-nav > div a:hover {
  color: #ffffff;
}

.marketing-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: 28px;
  align-items: center;
  margin-top: 18px;
  padding: clamp(28px, 5vw, 64px);
}

.marketing-hero h1,
.problem-section h2,
.product-copy h2,
.sovereignty-section h2,
.roadmap-section h2,
.platform-section h2,
.final-cta h2 {
  margin: 0;
  color: #f3f7ff;
  letter-spacing: 0;
  line-height: 1.04;
}

.marketing-hero h1 {
  max-width: 760px;
  font-size: clamp(42px, 6vw, 78px);
}

.marketing-hero p,
.problem-section p,
.product-copy p,
.sovereignty-section p,
.roadmap-section p,
.platform-section p,
.final-cta p {
  color: #aab7cc;
  line-height: 1.65;
}

.marketing-hero p {
  max-width: 660px;
  font-size: 19px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 11px 15px;
  border: 1px solid #26354f;
  border-radius: 8px;
  color: #8d9ab3;
  background: #101827;
  font-size: 13px;
  font-weight: 800;
}

.product-shot {
  overflow: hidden;
  min-height: 420px;
  padding: 14px;
  border: 1px solid #22304b;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(12, 18, 30, 0.72), rgba(12, 18, 30, 0.18)),
    #070c14;
}

.shot-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding: 11px 12px;
  border: 1px solid #24314b;
  border-radius: 8px;
  color: #dce6f7;
  background: #111a2a;
}

.shot-bar span {
  font-weight: 900;
}

.shot-bar em {
  color: #00d39a;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.library-row,
.turn-card,
.metric-card {
  margin-top: 10px;
  border: 1px solid #24314b;
  border-radius: 8px;
  background: #101827;
}

.library-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
}

.library-row strong,
.turn-card strong,
.metric-card strong {
  color: #f0f5ff;
}

.library-row span,
.turn-card span {
  color: #7f8cff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.library-row em {
  padding: 4px 7px;
  border-radius: 999px;
  color: #00d39a;
  background: #09251f;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.turn-card {
  padding: 14px;
}

.turn-card strong,
.turn-card span {
  display: inline-flex;
  margin-right: 8px;
}

.turn-card p {
  margin: 12px 0 0;
  color: #d5deed;
  line-height: 1.55;
}

.metric-card {
  position: relative;
  padding: 13px;
}

.metric-card > div:first-child {
  display: flex;
  justify-content: space-between;
}

.metric-card span {
  color: #f6a900;
  font-size: 12px;
  font-weight: 900;
}

.metric-card p {
  margin: 10px 0 7px;
  color: #71809b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.metric-card em {
  display: block;
  margin-top: 7px;
  color: #00d39a;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  text-align: right;
}

.dominance {
  height: 7px;
  border-radius: 999px;
  background: #182338;
}

.dominance i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #00d39a, #f6a900, #ff516b);
}

.problem-section,
.sovereignty-section,
.roadmap-section,
.platform-section,
.final-cta {
  margin-top: 18px;
  padding: clamp(24px, 4vw, 44px);
}

.problem-section h2,
.sovereignty-section h2,
.roadmap-section h2,
.platform-section h2,
.final-cta h2 {
  max-width: 760px;
  font-size: clamp(30px, 4vw, 48px);
}

.problem-section > p,
.sovereignty-section > div > p,
.roadmap-section > div > p {
  max-width: 820px;
  font-size: 18px;
}

.compact-points,
.sovereignty-grid,
.roadmap-grid,
.platform-columns,
.cta-grid {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

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

.compact-points span,
.sovereignty-grid span {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  min-height: 72px;
  padding: 14px;
  border: 1px solid #22304b;
  border-radius: 8px;
  color: #d8e2f0;
  background: #101827;
  line-height: 1.45;
}

.compact-points svg {
  flex: 0 0 auto;
  color: #00d39a;
  margin-top: 2px;
}

.product-sections {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.product-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(440px, 1.15fr);
  gap: 28px;
  align-items: center;
  padding: clamp(24px, 4vw, 44px);
}

.product-section:nth-child(even) .product-copy {
  order: 2;
}

.product-copy h2 {
  font-size: clamp(30px, 4vw, 50px);
}

.product-copy > p {
  font-size: 18px;
}

.product-copy ul {
  display: grid;
  gap: 9px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.product-copy li {
  color: #d8e2f0;
}

.product-copy li::before {
  content: "·";
  margin-right: 9px;
  color: #00d39a;
  font-weight: 900;
}

.callout-line {
  margin-top: 22px;
  padding: 14px 16px;
  border-left: 3px solid #00d39a;
  color: #d6efe7 !important;
  background: #0d1b1e;
}

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

.sovereignty-grid span {
  min-height: 54px;
}

.roadmap-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
}

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

.roadmap-grid article,
.platform-columns > div,
.cta-grid a {
  border: 1px solid #22304b;
  border-radius: 8px;
  background: #101827;
}

.roadmap-grid article {
  padding: 18px;
}

.roadmap-grid h3,
.platform-columns h3 {
  margin: 0 0 9px;
}

.roadmap-grid p {
  margin: 0;
}

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

.platform-columns > div {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-content: flex-start;
  padding: 18px;
}

.platform-columns h3 {
  flex: 0 0 100%;
}

.platform-columns span {
  padding: 7px 10px;
  border: 1px solid #2a3955;
  border-radius: 999px;
  color: #d9e2f3;
  background: #121d30;
  font-size: 13px;
  font-weight: 800;
}

.muted {
  color: #8390a6 !important;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #7fdcff;
  font-weight: 900;
}

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

.cta-grid a {
  min-height: 74px;
  padding: 16px;
  color: #f0f5ff;
  font-weight: 900;
}

.cta-grid a:hover {
  border-color: #00d39a;
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
  }

  .hero,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .doc-main {
    padding-top: 28px;
  }

  .site-nav,
  .marketing-hero,
  .product-section,
  .roadmap-section {
    grid-template-columns: 1fr;
  }

  .site-nav {
    position: relative;
    top: 0;
  }

  .product-section:nth-child(even) .product-copy {
    order: initial;
  }

  .compact-points,
  .sovereignty-grid,
  .platform-columns,
  .cta-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .hero h1,
  .markdown-doc h1,
  .markdown-doc header h1 {
    font-size: 34px;
  }

  .index-list a {
    display: grid;
  }

  .download-link {
    position: static;
    margin: 0 20px 24px;
    justify-content: center;
  }

  .marketing-main {
    width: min(100% - 24px, 1220px);
  }

  .site-nav > div,
  .compact-points,
  .sovereignty-grid,
  .roadmap-grid,
  .platform-columns,
  .cta-grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-shot {
    min-height: 320px;
  }

  .library-row {
    grid-template-columns: 1fr;
  }
}
