@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/static/hanken-grotesk-400.woff2") format("woff2");
}

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/static/hanken-grotesk-600.woff2") format("woff2");
}

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/static/hanken-grotesk-800.woff2") format("woff2");
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/static/geist-mono-400.woff2") format("woff2");
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/static/geist-mono-600.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --bg: #090a0c;
  --surface: #111318;
  --surface-raised: #171a21;
  --surface-quiet: #0d0f13;
  --border: #292e38;
  --border-strong: #3b4351;
  --text: #f3f4f6;
  --muted: #b7bdc8;
  --faint: #8f98a7;
  --blue: #7898ff;
  --blue-soft: #161f3a;
  --green: #25b977;
  --amber: #e6b86b;
  --display: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --mono: "Geist Mono", "Cascadia Mono", Consolas, monospace;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

img,
svg {
  max-width: 100%;
}

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

a:focus-visible {
  outline: 3px solid #b9c8ff;
  outline-offset: 3px;
}

p,
h1,
h2,
h3,
ul,
dl,
dd {
  margin-top: 0;
}

.shell {
  width: min(100%, 1180px);
  margin-inline: auto;
  padding-inline: 20px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: -100px;
  left: 8px;
  min-height: 44px;
  padding: 10px 14px;
  border: 2px solid var(--blue);
  border-radius: 5px;
  background: var(--surface-raised);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

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

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.header-row {
  display: grid;
  gap: 12px;
  padding-block: 14px;
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-self: start;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  line-height: 28px;
}

.brand img {
  width: 32px;
  height: 32px;
}

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

.site-nav a {
  display: inline-flex;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px 6px;
  border-radius: 5px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  overflow-wrap: anywhere;
  text-align: center;
}

.site-nav a[aria-current="page"] {
  background: var(--surface-raised);
  color: var(--text);
}

.hero {
  padding-block: 64px 52px;
}

.status,
.eyebrow,
.mock-label,
.coverage-badge,
.privacy-badge,
.local-mark {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid var(--blue);
  border-radius: 4px;
  color: #cbd6ff;
}

.hero h1 {
  max-width: 15ch;
  margin: 22px 0 0;
  font-size: 40px;
  font-weight: 800;
  line-height: 52px;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.statement-section h1 {
  max-width: 20ch;
  margin: 22px 0 0;
  font-size: 40px;
  font-weight: 800;
  line-height: 52px;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.lede {
  max-width: 75ch;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 28px;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.hero-actions,
.closing-actions {
  display: grid;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--blue);
  border-radius: 5px;
  background: var(--blue-soft);
  color: #e0e6ff;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  text-align: center;
}

.preview-section,
.content-section,
.closing-section,
.statement-section {
  padding-block: 64px;
  border-top: 1px solid var(--border);
}

.section-heading {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
}

.eyebrow {
  margin-bottom: 10px;
  color: #aebeff;
}

.section-heading h2,
.content-section > .shell > h2,
.closing-section h2,
.statement-section h2 {
  max-width: 20ch;
  margin-bottom: 0;
  font-size: 28px;
  font-weight: 800;
  line-height: 40px;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.section-heading p,
.section-intro,
.closing-section p,
.statement-section p,
.statement-section li {
  max-width: 68ch;
  margin-bottom: 0;
  color: var(--muted);
}

.mock-window {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
}

.mock-bar {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.mock-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--blue);
}

.mock-label {
  margin-left: auto;
  color: var(--faint);
  text-align: right;
}

.mock-body {
  min-width: 0;
  padding: 16px;
}

.mock-title-row {
  display: grid;
  gap: 10px;
}

.mock-title-row strong {
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
}

.quality-state,
.coverage-badge,
.privacy-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 6px 8px;
  border: 1px solid #4c6193;
  border-radius: 4px;
  color: #c0ceff;
}

.metric-grid {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.metric-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--border);
  background: var(--surface-raised);
}

.metric-card span,
.allocation-row span,
.period-label span,
.performance-stat dt {
  display: block;
  color: var(--faint);
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
}

.metric-card strong,
.performance-stat dd {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 24px;
  overflow-wrap: anywhere;
}

.mock-content-grid,
.preview-stack,
.boundary-grid,
.status-grid {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.mock-panel,
.boundary-card,
.status-card {
  min-width: 0;
  border: 1px solid var(--border);
  background: var(--surface-quiet);
}

.panel-heading {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.position-list {
  display: grid;
}

.position-item {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  line-height: 20px;
}

.position-item:last-child {
  border-bottom: 0;
}

.position-item span::before {
  display: block;
  margin-bottom: 2px;
  color: var(--faint);
  font-family: var(--display);
  font-size: 12px;
  line-height: 16px;
}

.position-item .symbol::before {
  content: "Symbol";
}

.position-item .asset::before {
  content: "Asset";
}

.position-item .quantity::before {
  content: "Quantity";
}

.position-item .data-state::before {
  content: "Data quality";
}

.allocation-list {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.allocation-row {
  display: grid;
  grid-template-columns: minmax(64px, auto) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  line-height: 16px;
}

.allocation-track {
  height: 8px;
  background: #252b35;
}

.allocation-fill {
  display: block;
  height: 100%;
  background: var(--blue);
}

.allocation-fill-stock {
  width: 52%;
}

.allocation-fill-option {
  width: 31%;
}

.allocation-fill-future {
  width: 17%;
}

.period-label {
  display: inline-grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: var(--surface-quiet);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.coverage-row,
.privacy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.coverage-badge::before {
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.coverage-partial {
  border-color: #806536;
  color: #f0c77c;
}

.performance-grid {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.chart-panel {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--border);
  background: var(--surface-quiet);
}

.chart-panel svg {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 12px;
}

.chart-grid-line {
  stroke: #303641;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.chart-return-area {
  fill: #18233f;
}

.chart-return-line {
  fill: none;
  stroke: var(--blue);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.chart-drawdown-line {
  fill: none;
  stroke: var(--amber);
  stroke-width: 2;
  stroke-dasharray: 7 6;
  vector-effect: non-scaling-stroke;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-line {
  width: 22px;
  height: 2px;
  background: var(--blue);
}

.legend-drawdown {
  background: var(--amber);
}

.performance-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.performance-stat {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border);
  background: var(--surface-raised);
}

.performance-stat dd {
  margin-bottom: 0;
}

.privacy-panel {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #365d52;
  background: #101d1a;
}

.privacy-badge {
  border-color: #477e6f;
  color: #a7e3d2;
}

.local-mark {
  margin: 12px 0 0;
  color: #b8c5d7;
  overflow-wrap: anywhere;
}

.boundary-card,
.status-card {
  padding: 20px;
}

.boundary-card h3,
.status-card h3,
.statement-section h3 {
  margin-bottom: 10px;
  font-size: 28px;
  font-weight: 800;
  line-height: 40px;
}

.boundary-card p,
.status-card li {
  margin-bottom: 0;
  color: var(--muted);
}

.status-card ul,
.statement-section ul {
  display: grid;
  gap: 8px;
  margin-bottom: 0;
  padding-left: 20px;
}

.closing-section {
  text-align: left;
}

.availability-note {
  padding-block: 56px;
  border-top: 1px solid var(--border);
}

.availability-note p {
  margin-bottom: 0;
  color: #d2dbff;
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
}

.statement-section {
  min-height: 55vh;
}

.statement-section > .shell {
  display: grid;
  gap: 30px;
}

.statement-block {
  display: grid;
  gap: 12px;
  max-width: 72ch;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.statement-block:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.not-found {
  display: grid;
  min-height: 65vh;
  align-content: center;
}

.site-footer {
  padding-block: 36px 44px;
  border-top: 1px solid var(--border);
}

.footer-row {
  display: grid;
  gap: 22px;
}

.footer-copy {
  max-width: 58ch;
  margin: 10px 0 0;
  color: var(--faint);
  font-size: 14px;
  line-height: 20px;
}

.footer-nav {
  justify-self: stretch;
}

@media (min-width: 520px) {
  .hero-actions,
  .closing-actions {
    display: flex;
    flex-wrap: wrap;
  }

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

  .mock-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .position-item {
    grid-template-columns: 0.8fr 0.8fr 0.7fr 1.2fr;
  }

  .position-item span::before {
    display: none;
  }
}

@media (min-width: 720px) {
  .shell {
    padding-inline: 28px;
  }

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

  .site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero {
    padding-block: 82px 66px;
  }

  .hero h1 {
    font-size: 52px;
    line-height: 68px;
  }

  .statement-section h1 {
    font-size: 52px;
    line-height: 68px;
  }

  .preview-section,
  .content-section,
  .closing-section,
  .statement-section {
    padding-block: 80px;
  }

  .section-heading {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 40px;
    align-items: end;
    margin-bottom: 36px;
  }

  .section-heading h2,
  .content-section > .shell > h2,
  .closing-section h2,
  .statement-section h2 {
    font-size: 40px;
    line-height: 52px;
  }

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

  .mock-body {
    padding: 24px;
  }

  .mock-content-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(230px, 0.75fr);
  }

  .performance-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  }

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

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

  .footer-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .footer-nav {
    justify-self: end;
  }
}

@media (min-width: 1100px) {
  .shell {
    padding-inline: 48px;
  }

  .hero {
    padding-block: 104px 78px;
  }

  .hero h1 {
    font-size: 64px;
    line-height: 80px;
  }

  .preview-stack {
    gap: 22px;
  }
}

@media (forced-colors: active) {
  .button,
  .status,
  .quality-state,
  .coverage-badge,
  .privacy-badge,
  .mock-window,
  .mock-panel,
  .metric-card,
  .boundary-card,
  .status-card {
    border: 1px solid CanvasText;
  }

  .button {
    background: ButtonFace;
    color: ButtonText;
  }

  .mock-dot,
  .coverage-badge::before,
  .allocation-fill,
  .legend-line {
    background: Highlight;
    forced-color-adjust: none;
  }
}

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