:root {
  color-scheme: dark;
  --page: #0c1022;
  --panel: #141a30;
  --ink: #f5f3ff;
  --muted: #bec4d9;
  --line: #333954;
  --accent: #c8b4ff;
  --jackpot: #bca2ff;
  --pool: #7d95f5;
  --return: #6bc8de;
  --liquidity: #d491ea;
  --future: #e7c38e;
  font-family: Inter, 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 6rem; }
body { margin: 0; background: var(--page); color: var(--ink); line-height: 1.6; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input { font: inherit; }
button, summary, input[type='range'] { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
p, figure { margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1.12; }
h2 { font-size: clamp(2.1rem, 4vw, 3.5rem); letter-spacing: -.048em; }
h3 { font-size: 1.24rem; letter-spacing: -.02em; }
.container { width: min(100% - 3rem, 72rem); margin-inline: auto; }
.skip-link { position: absolute; top: -4rem; left: 1rem; z-index: 10; padding: .6rem 1rem; background: var(--accent); color: var(--page); }
.skip-link:focus { top: .75rem; }

.site-header { background: var(--page); position: sticky; top: 0; z-index: 3; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 4.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { display: block; width: clamp(7rem, 12vw, 9rem); height: auto; }
.main-nav { display: flex; align-items: center; gap: clamp(.9rem, 2.2vw, 1.7rem); }
.main-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; color: var(--muted); font-size: .9rem; font-weight: 650; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--ink); }
.menu-toggle { min-height: 2.75rem; padding: 0 .9rem; border: 1px solid var(--line); border-radius: .55rem; background: var(--panel); color: var(--ink); }
.menu-toggle[aria-expanded='true'] { border-color: var(--accent); }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.16fr); align-items: center; gap: 2rem; padding-block: clamp(3rem, 8vw, 6rem) 0; }
.hero-copy { display: grid; gap: 1rem; }
.eyebrow { color: var(--accent); font-weight: 750; font-size: .875rem; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { font-size: clamp(2.8rem, 6vw, 5.65rem); letter-spacing: -.075em; }
.hero h1 span { color: var(--accent); }
.hero-copy p:not(.eyebrow) { max-width: 33rem; color: var(--muted); }
.hero-copy .hero-lede { font-size: clamp(1.24rem, 2.35vw, 1.65rem); line-height: 1.36; font-weight: 650; color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .3rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .52rem 1rem; border: 1px solid transparent; border-radius: .55rem; text-decoration: none; font-weight: 750; font-size: .9rem; }
.button-primary { background: var(--accent); color: #1b1034; }
.button-primary:hover { background: #e0d3ff; }
.button-secondary { border-color: var(--line); color: var(--ink); }
.button-secondary:hover { border-color: var(--accent); background: #1c2038; }
.hero-art { position: relative; overflow: hidden; display: grid; min-width: 0; border: 1px solid #37355a; border-radius: 1.25rem; background: #0d1129; }
.hero-art img { width: 100%; height: auto; display: block; }
.hero-facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); margin: .65rem 0 0; padding-block: 1.2rem; border-block: 1px solid var(--line); }
.hero-facts div { padding-inline: clamp(.5rem, 3vw, 2rem); }
.hero-facts div + div { border-left: 1px solid var(--line); }
.hero-facts dt { color: var(--muted); font-size: .88rem; }
.hero-facts dd { margin: .15rem 0 0; font-size: clamp(1rem, 2.8vw, 1.4rem); font-weight: 700; }

.section { padding-top: clamp(3.5rem, 8vw, 6.25rem); }
.section-intro { display: grid; gap: .85rem; max-width: 47rem; margin-bottom: 1.7rem; }
.section-intro p, .work-grid p, .record p, .roadmap-list p, .token-panel p { color: var(--muted); }
.work-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; }
.work-grid article, .record, .allocation-panel, .token-panel { border: 1px solid var(--line); border-radius: .85rem; background: var(--panel); padding: clamp(1.15rem, 2.4vw, 1.75rem); }
.work-grid article { border-top: 2px solid var(--accent); }
.work-grid p, .record p, .token-panel p { margin-top: .7rem; }

.allocation { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 1rem; }
.allocation-track { display: grid; grid-template-columns: 50fr 20fr 10fr 10fr 10fr; gap: 3px; height: .72rem; margin-block: 1.2rem; overflow: hidden; border-radius: 10px; }
.allocation-track span:nth-child(1), .jackpot { background: var(--jackpot); }
.allocation-track span:nth-child(2), .pool { background: var(--pool); }
.allocation-track span:nth-child(3), .return { background: var(--return); }
.allocation-track span:nth-child(4), .liquidity { background: var(--liquidity); }
.allocation-track span:nth-child(5), .future { background: var(--future); }
.allocation-table { width: 100%; border-collapse: collapse; }
.allocation-table th, .allocation-table td { padding: .6rem .2rem; border-bottom: 1px solid var(--line); text-align: right; }
.allocation-table th:first-child { text-align: left; }
.allocation-table thead { color: var(--muted); font-size: .88rem; }
.allocation-table tbody th { font-weight: 600; }
.allocation-table td, .token-fees dd, output { font-variant-numeric: tabular-nums; }
.swatch { display: inline-block; width: .55rem; height: .55rem; margin-right: .55rem; border-radius: 50%; vertical-align: .12em; }
.example { padding-top: 1rem; }
.example label { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; font-weight: 650; }
.example output { color: var(--accent); }
.example input { width: 100%; margin: .15rem 0 0; min-height: 2.75rem; accent-color: var(--accent); }
.range-endpoints { display: flex; justify-content: space-between; color: var(--muted); font-size: .88rem; }
.token-panel { background: linear-gradient(155deg, #242047, var(--panel) 75%); }
.token-icon { display: grid; place-items: center; border: 1px solid #725caf; border-radius: 50%; width: 3.5rem; aspect-ratio: 1; color: var(--accent); font-size: 1.8rem; font-weight: 800; background: #2a2450; margin-bottom: 1rem; }
.token-fees { margin-bottom: 0; }
.token-fees div { display: flex; justify-content: space-between; gap: .8rem; padding-block: .62rem; border-top: 1px solid var(--line); }
.token-fees dd { margin: 0; color: var(--accent); font-weight: 750; }

.roadmap-list { border-top: 1px solid var(--line); }
.roadmap-list details { border-bottom: 1px solid var(--line); }
.roadmap-list summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.5rem; padding: .8rem .25rem; font-size: 1.1rem; font-weight: 700; list-style: none; }
.roadmap-list summary::-webkit-details-marker { display: none; }
.roadmap-list summary::after { content: '+'; color: var(--accent); font-size: 1.3rem; }
.roadmap-list details[open] summary::after { content: '−'; }
.roadmap-list p { max-width: 53rem; padding: 0 .25rem 1rem; }
.project-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.record h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
.text-link { display: block; width: fit-content; margin-top: 1rem; color: var(--accent); text-underline-offset: .22em; }
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; margin: 0; }
.team-grid div { border-block-start: 1px solid var(--line); padding: .9rem 0; }
.team-grid dt { font-weight: 750; }
.team-grid dd { margin: .15rem 0 0; color: var(--muted); }
.site-footer { margin-top: clamp(3.5rem, 8vw, 6rem); border-top: 1px solid var(--line); background: #110d22; }
.footer-grid { display: grid; grid-template-columns: 1.45fr repeat(3, minmax(0, 1fr)); gap: 2rem; padding-block: clamp(2.3rem, 6vw, 4rem); }
.footer-grid h2 { font-size: 1.2rem; letter-spacing: -.02em; margin-bottom: 1rem; }
.footer-about p { color: var(--muted); margin-bottom: .8rem; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; text-underline-offset: .2em; }
.footer-list, .footer-social { padding: 0; margin: 0; list-style: none; }
.footer-list { display: grid; gap: .65rem; }
.footer-list li { color: var(--muted); }
.footer-list a { color: var(--ink); }
.footer-icon-link { display: flex; width: fit-content; align-items: center; gap: .6rem; min-height: 2.5rem; }
.footer-icon-link img { flex: none; }
.footer-about .footer-icon-link { overflow-wrap: anywhere; }
.footer-bottom { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; padding-block: 1.25rem; border-top: 1px solid var(--line); }
.footer-bottom .brand { justify-self: start; }
.footer-bottom small { color: var(--muted); text-align: center; }

@media (max-width: 930px) {
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .container { width: min(100% - 2rem, 41rem); }
  .header-inner { flex-wrap: wrap; gap: .2rem .7rem; padding-block: .55rem; }
  .main-nav { flex-basis: 100%; flex-wrap: wrap; gap: 0 1.1rem; }
  .main-nav a { min-height: 2.55rem; }
  .hero { grid-template-columns: 1fr; gap: 1.4rem; padding-top: 2.7rem; }
  .hero-art { border-radius: .9rem; }
  .hero-facts { margin-top: 0; }
  .allocation, .project-notes { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-about { grid-column: 1 / -1; }
  .footer-bottom { grid-template-columns: 1fr; justify-items: center; }
  .footer-bottom .brand { justify-self: center; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: clamp(2.2rem, 11vw, 2.85rem); }
  .work-grid { grid-template-columns: 1fr; }
  .hero-facts dt { font-size: .79rem; }
  .allocation-table tbody { font-size: .9rem; }
  .swatch { margin-right: .3rem; }
  .footer-grid { column-gap: 1.25rem; }
}
