@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('/fonts/instrument-serif-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('/fonts/geist-mono-latin-wght-normal.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #080b16;
  --bg-2: #0d1224;
  --ink: #ede6d6;
  --ink-90: rgba(237, 230, 214, 0.9);
  --ink-70: rgba(237, 230, 214, 0.7);
  --ink-50: rgba(237, 230, 214, 0.5);
  --line: rgba(237, 230, 214, 0.13);
  --glass: rgba(237, 230, 214, 0.14);
  --glass-hover: rgba(237, 230, 214, 0.22);
  --accent: #ff5a3c;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --pad: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }
svg { display: block; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: #0d1224; }

.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 84px;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  transition: background-color 0.4s var(--ease), height 0.4s var(--ease), backdrop-filter 0.4s;
}
.nav.is-stuck {
  height: 68px;
  background: rgba(8, 11, 22, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 8px; justify-self: start; }
.mark { width: 30px; height: 30px; color: var(--ink); }
.brand-name { font-family: var(--serif); font-size: 29px; line-height: 1; letter-spacing: -0.01em; padding-bottom: 3px; }

.nav-links { display: flex; gap: 38px; }
.nav-links a { font-size: 15px; color: rgba(237, 230, 214, 0.85); transition: color 0.2s; }
.nav-links a:hover { color: #fff; }

.nav-right { justify-self: end; display: flex; align-items: center; gap: 18px; }
.icon-link { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--ink); transition: background-color 0.2s; }
.icon-link:hover { background: var(--glass); }
.icon-link svg { width: 15px; height: 15px; }

/* ---------- Pills ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.25s, color 0.25s, transform 0.25s var(--ease), opacity 0.25s;
}
.pill svg { width: 15px; height: 15px; flex: none; }
.pill .mark-sm { width: 19px; height: 19px; }
.pill:active { transform: scale(0.98); }

.pill-glass {
  background: var(--glass);
  color: #fff;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.pill-glass:hover { background: var(--glass-hover); }

.pill-solid { background: var(--ink); color: #0d1224; height: 46px; padding: 0 26px; }
.pill-solid:hover { background: #fff; }
.pill-solid svg { transition: transform 0.3s var(--ease); }
.pill-solid:hover svg { transform: translateX(3px); }
.pill-wide { min-width: 268px; }

.pill.is-off { opacity: 0.55; cursor: default; pointer-events: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 120px 24px 120px;
  isolation: isolate;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #0b1022 url('/img/hero.jpg') 62% 50% / cover no-repeat;
  animation: drift 28s ease-in-out infinite alternate;
  transform-origin: 70% 40%;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(30% 20% at 50% 38%, rgba(8, 11, 22, 0.74), rgba(8, 11, 22, 0) 100%),
    radial-gradient(60% 46% at 50% 47%, rgba(8, 11, 22, 0.42), rgba(8, 11, 22, 0) 72%),
    linear-gradient(180deg, rgba(8, 11, 22, 0.35) 0%, rgba(8, 11, 22, 0) 22%, rgba(8, 11, 22, 0) 62%, var(--bg) 100%);
}
@keyframes drift {
  from { transform: scale(1.02); }
  to { transform: scale(1.09) translate3d(-1.2%, -0.6%, 0); }
}

.hero-inner {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: -3vh;
}

h1, h2 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.04;
  color: #fff;
  text-wrap: balance;
}
h1 { font-size: 46px; text-shadow: 0 2px 30px rgba(8, 11, 22, 0.55); }
h2 { font-size: 44px; }
h2.h-sm { font-size: 30px; letter-spacing: -0.03em; line-height: 1.15; }

.ask {
  width: 100%;
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 60px;
  padding: 0 10px 0 22px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(4, 6, 14, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.5);
  transition: box-shadow 0.3s;
}
.ask:focus-within { box-shadow: 0 18px 60px rgba(4, 6, 14, 0.5), 0 0 0 3px rgba(255, 90, 60, 0.55); }
.ask input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: #10152a;
}
.ask input::placeholder { color: #8a8f9d; }
.ask button {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: #e9eaee;
  color: #6c7180;
  transition: background-color 0.2s, color 0.2s;
}
.ask button svg { width: 18px; height: 18px; }
.ask.has-text button { background: var(--accent); color: #fff; }

.hero-actions { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

.hero-note { margin: 16px 0 0; font-size: 12px; color: rgba(237, 230, 214, 0.62); }

.ca-line {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(237, 230, 214, 0.75);
  padding: 6px 10px;
  border-radius: 8px;
  transition: background-color 0.2s, color 0.2s;
}
.ca-line:hover { background: var(--glass); color: #fff; }
.ca-tag { color: rgba(237, 230, 214, 0.5); }
.ca-copy { font-family: var(--sans); font-weight: 500; color: #fff; }

.learn {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--ink-70);
  transition: color 0.2s;
}
.learn:hover { color: #fff; }
.learn svg { width: 18px; height: 18px; animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: 190px 0; }

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 64px;
}
.split-copy { max-width: 420px; }
.lede { margin: 14px 0 0; max-width: 400px; font-size: 15px; line-height: 1.5; color: var(--ink-90); text-wrap: pretty; }

.features { list-style: none; margin: 76px 0 0; padding: 0; max-width: 250px; }
.features li {
  padding: 21px 0;
  border-top: 1px solid var(--line);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink-70);
  transition: color 0.3s, padding-left 0.4s var(--ease);
}
.features li:hover { color: #fff; padding-left: 8px; }

.split-art { display: grid; place-items: center; min-width: 0; }
#pool { width: min(100%, 620px); height: auto; aspect-ratio: 1; }

/* ---------- Token ---------- */
.token-grid { display: grid; gap: 0; }
.token-copy { max-width: 440px; }

.rows { margin: 44px 0 0; max-width: 820px; }
.row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.row:last-child { border-bottom: 1px solid var(--line); }
.row dt { font-size: 19px; font-weight: 500; letter-spacing: -0.02em; color: #fff; }
.row dd { margin: 0; text-align: right; font-size: 14px; color: var(--ink-90); min-width: 0; }

.ca-inline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-90);
  padding: 5px 0 5px 10px;
  border-radius: 8px;
  transition: color 0.2s;
}
.ca-inline:hover { color: #fff; }
.ca-inline .js-ca-full { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca-inline .ca-copy {
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--glass);
  font-size: 12px;
}
.ca-inline:hover .ca-copy { background: var(--glass-hover); }

.token-cta { margin-top: 34px; }

.stats {
  margin-top: 150px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  max-width: 980px;
}
.stat { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid var(--line); }
.stat-label { font-size: 13px; color: rgba(237, 230, 214, 0.8); }
.stat-num { font-size: 48px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.stat-num small { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink-70); margin-left: 2px; }

/* ---------- Graph ---------- */
.graph { width: min(100%, 600px); height: auto; overflow: visible; }
.graph-lines line { stroke: rgba(237, 230, 214, 0.28); stroke-width: 1; }
.graph-lines line.dashed { stroke-dasharray: 2 5; stroke: rgba(237, 230, 214, 0.34); }
.node rect { fill: #1b2036; transition: fill 0.3s; }
.node text {
  fill: #fff;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-anchor: middle;
}
.node:hover rect { fill: #262c48; }
.node-more rect { fill: var(--bg); stroke: rgba(237, 230, 214, 0.34); stroke-dasharray: 2 5; }
.node-more text { fill: var(--ink-70); }

/* ---------- Close ---------- */
.close { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding: 0; }
.close-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 60px;
}
.close-inner h2 { font-size: 46px; }
.close-inner .pill-wide { margin-top: 30px; }
.close-inner .hero-actions { margin-top: 10px; }

.foot {
  width: min(100% - 48px, 400px);
  margin: 0 auto;
  padding: 26px 0 44px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 26px;
  font-size: 15px;
  color: rgba(237, 230, 214, 0.8);
}
.foot a { transition: color 0.2s; }
.foot a:hover { color: #fff; }
.foot a.is-off { opacity: 0.55; pointer-events: none; }
.foot svg { width: 15px; height: 15px; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Simple page (app) ---------- */
.simple {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 120px 24px 80px;
  text-align: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.simple-inner { max-width: 520px; display: flex; flex-direction: column; align-items: center; }
.simple .big-mark { width: 92px; height: 92px; color: var(--ink); margin-bottom: 34px; }
.simple p { margin: 16px 0 0; color: var(--ink-90); max-width: 400px; text-wrap: pretty; }
.simple .hero-actions { margin-top: 30px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  :root { --pad: 40px; }
  .nav-links { gap: 26px; }
  .section { padding: 150px 0; }
}

@media (max-width: 980px) {
  .nav { grid-template-columns: auto 1fr auto; }
  .nav-links { gap: 16px; justify-self: center; }
  .nav-links a { font-size: 14.5px; }
}

@media (max-width: 860px) {
  :root { --pad: 22px; }
  .nav { grid-template-columns: 1fr auto; height: 68px; }
  .nav.is-stuck { height: 60px; }
  .nav-links { display: none; }
  .nav-right { gap: 8px; }
  .brand-name { font-size: 27px; }

  .hero { padding: 100px 20px 110px; }
  .hero-bg { background-size: auto 118%; background-position: 80% 100%; animation: none; transform: none; }
  .hero-bg::after { background: radial-gradient(90% 16% at 50% 39%, rgba(8, 11, 22, 0.6), rgba(8, 11, 22, 0) 100%), linear-gradient(180deg, rgba(8, 11, 22, 0.3) 0%, rgba(8, 11, 22, 0) 20%, rgba(8, 11, 22, 0) 62%, var(--bg) 100%); }
  .hero-inner { margin-top: 0; }
  h1 { font-size: 38px; }
  h2 { font-size: 36px; }
  h2.h-sm { font-size: 28px; }
  .ask { height: 56px; margin-top: 26px; }

  .section { padding: 110px 0; }
  .split-grid { grid-template-columns: 1fr; gap: 56px; }
  .features { margin-top: 44px; max-width: none; }
  .features li { font-size: 20px; padding: 18px 0; }

  .row { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
  .row dd { text-align: left; color: var(--ink-70); }
  .ca-inline { padding-left: 0; }

  .stats { margin-top: 90px; grid-template-columns: 1fr; gap: 0; }
  .stat { padding: 22px 0; flex-direction: row; align-items: baseline; justify-content: space-between; }
  .stat-num { font-size: 40px; }

  .close-inner h2 { font-size: 38px; }
  .pill-wide { min-width: 0; width: min(100%, 300px); }
}

@media (max-width: 380px) {
  h1 { font-size: 33px; }
  .nav .pill { padding: 0 15px; height: 38px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg, .learn svg { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
