@font-face {
  font-family: Outfit;
  font-weight: 300 800;
  font-display: swap;
  src: url(fonts/outfit-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Outfit;
  font-weight: 300 800;
  font-display: swap;
  src: url(fonts/outfit-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #55627a;
  --line: #e3e9f2;
  --accent: #4598f7;
  --accent-2: #19a7fb;
  --accent-ink: #1d5fd0;
  --warn-bg: #fdf0df;
  --warn: #9a4b00;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Outfit, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Nav */
nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}
nav .wrap { display: flex; align-items: center; gap: 32px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 24px; letter-spacing: -0.02em; }
.brand img { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 15px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px; font-weight: 600; font-size: 15px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-ink)); color: #fff; box-shadow: 0 8px 24px -8px rgba(69,152,247,.6); }
.btn-ghost { background: var(--surface); border: 1px solid var(--line); }

/* Hero */
.hero { position: relative; padding: 96px 0 72px; text-align: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto; height: 760px; z-index: -1;
  background: radial-gradient(closest-side, rgba(69,152,247,.22), transparent 70%);
}
h1 {
  font-size: clamp(44px, 7vw, 84px); line-height: 1.02; letter-spacing: -0.035em;
  margin: 28px auto 20px; max-width: 900px; font-weight: 700;
}
h1 .grad { background: linear-gradient(120deg, var(--accent-2), var(--accent-ink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 20px; color: var(--muted); max-width: 640px; margin: 0 auto 36px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-logo { width: 88px; height: 88px; filter: drop-shadow(0 18px 30px rgba(25,167,251,.35)); }

.trust { display: flex; justify-content: center; gap: 48px; margin-top: 64px; flex-wrap: wrap; }
.trust div { text-align: center; }
.trust strong { display: block; font-size: 32px; font-weight: 700; letter-spacing: -0.02em; }
.trust span { color: var(--muted); font-size: 14px; }

/* Sections */
section { padding: 80px 0; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
h2 { font-size: clamp(32px, 4.4vw, 48px); letter-spacing: -0.03em; line-height: 1.1; margin: 10px 0 14px; font-weight: 700; }
.sub { color: var(--muted); font-size: 18px; max-width: 620px; margin: 0; }
.head { margin-bottom: 40px; }

.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px;
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 12px 32px -20px rgba(15,23,42,.18);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .2s ease, box-shadow .2s ease;
}
a.card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(29,95,208,.45); }
.card h3 { margin: 0; font-size: 22px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); }
.card .icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: #eaf3ff; overflow: hidden; }
.card .icon img { width: 34px; height: 34px; object-fit: contain; }
.card .icon.full img { width: 100%; height: 100%; object-fit: cover; }
.card .icon.dark { background: #0a0e17; }
.card .link { margin-top: auto; padding-top: 8px; color: var(--accent-ink); font-weight: 600; font-size: 15px; }
.card.feature { padding: 36px; }
.card.feature h3 { font-size: 28px; }
.badge { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #eaf3ff; color: var(--accent-ink); }

/* Dev */
.dev { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.repo-list { display: grid; gap: 10px; }
.repo { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.repo b { font-family: ui-monospace, Menlo, monospace; font-size: 15px; }
.repo span { color: var(--muted); font-size: 14px; text-align: right; }

/* Footer */
.final { text-align: center; padding: 96px 0; }
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.socials { display: flex; gap: 20px; }
.socials a:hover { color: var(--text); }

@media (max-width: 900px) {
  .g3 { grid-template-columns: 1fr 1fr; }
  .dev { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  nav .btn { margin-left: auto; padding: 10px 16px; }
  .hero { padding: 64px 0 48px; }
  .lead { font-size: 18px; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .trust { gap: 28px; }
  .repo { flex-direction: column; align-items: flex-start; }
  .repo span { text-align: left; }
  section { padding: 56px 0; }
}

/* Product pages */
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.crumbs a:hover { color: var(--text); }
.product-hero { padding: 72px 0 40px; }
.product-hero h1 { margin: 16px 0 18px; max-width: 820px; font-size: clamp(40px, 6vw, 68px); }
.product-hero .lead { margin: 0 0 32px; }
.product-hero .cta { justify-content: flex-start; }
.product-logo { width: 64px; height: 64px; border-radius: 18px; }
.qa { display: grid; gap: 14px; max-width: 820px; }
.qa h3 { margin: 0 0 6px; font-size: 19px; }
.qa p { margin: 0; color: var(--muted); }
.card a.inline, .qa a, .sub a { color: var(--accent-ink); font-weight: 600; }

/* Blog */
.post-meta { font-size: 14px; color: var(--muted); }
.post { padding: 56px 0 80px; }
.post .wrap { max-width: 760px; }
.post h1 { margin: 12px 0 8px; font-size: clamp(36px, 5vw, 52px); text-align: left; max-width: none; }
.post-body { font-size: 18px; line-height: 1.7; }
.post-body h2 { font-size: 28px; margin: 40px 0 8px; }
.post-body p, .post-body ul { margin: 0 0 16px; }
.post-body li { margin-bottom: 6px; }
.post-body a { color: var(--accent-ink); font-weight: 600; }
.post-body a:hover { text-decoration: underline; }
.shot { margin: 24px 0 28px; }
.shot img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 12px 32px -20px rgba(15,23,42,.35); }
.shot.narrow img { max-width: 420px; margin: 0 auto; }
.shot figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); text-align: center; }
.post-body h3 { font-size: 21px; margin: 28px 0 6px; }
.post-body table { width: 100%; margin: 0 0 20px; border-collapse: collapse; font-size: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.post-body th, .post-body td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.post-body tr:last-child th, .post-body tr:last-child td { border-bottom: 0; }
.post-body th { font-weight: 600; white-space: nowrap; }
.post-body thead th { color: var(--muted); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.post-body code { font-family: ui-monospace, Menlo, monospace; font-size: .9em; }
.callout { padding: 16px 20px; border-radius: 14px; background: var(--warn-bg); color: var(--warn); }

/* Allocation chart */
:root { --liquidity: #2a78d6; --listings: #eb6834; --airdrops: #1baf7a; --team: #eda100; }
[data-key="liquidity"] { --series: var(--liquidity); }
[data-key="listings"] { --series: var(--listings); }
[data-key="airdrops"] { --series: var(--airdrops); }
[data-key="team"] { --series: var(--team); }
.swatch { display: inline-block; flex: none; width: 10px; height: 10px; margin-right: 8px; border-radius: 3px; background: var(--series); }
.alloc { position: relative; margin: 24px 0 20px; }
.unlock-chart { display: block; width: 100%; overflow: visible; touch-action: pan-y; }
.unlock-chart:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 4px; border-radius: 4px; }
.unlock-chart .grid { stroke: var(--line); stroke-width: 1; }
.unlock-chart .tick { fill: var(--muted); font-size: 12px; }
.unlock-chart .band { fill: var(--series); stroke: var(--bg); stroke-width: 2; stroke-linejoin: round; transition: opacity .15s ease; }
.unlock-chart .crosshair { stroke: var(--text); stroke-width: 1; pointer-events: none; }
.alloc.focused .band:not(.active) { opacity: .35; }
.unlock-tip {
  position: absolute; top: 12px; padding: 10px 12px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 12px 32px -16px rgba(15,23,42,.35);
  font-size: 13px; line-height: 1.4; white-space: nowrap; pointer-events: none;
}
.post-body .unlock-tip table { width: auto; margin: 6px 0 0; border: 0; border-radius: 0; font-size: 13px; background: none; }
.post-body .unlock-tip td { padding: 2px 0; border: 0; color: var(--muted); }
.post-body .unlock-tip td:first-child { display: flex; align-items: center; padding-right: 16px; }
.post-body .unlock-tip td:last-child { text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }
.post-body .unlock-tip .total td { padding-top: 6px; border-top: 1px solid var(--line); color: var(--text); font-weight: 600; }
.post-body .alloc-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 15px; color: var(--muted); }
.post-body .alloc-legend li { display: flex; align-items: center; gap: 4px; margin: 0; cursor: default; }
.alloc-legend b { color: var(--text); font-weight: 600; }
.post-body tr[data-key] { transition: background .15s ease; }
.post-body tr.active { background: var(--bg); }
