:root {
  --sage-900: #3f4f43;
  --sage-700: #5d7263;
  --sage-500: #8fa394;
  --sage-400: #a8bbae;
  --sage-300: #c3d1c5;
  --sage-200: #d5dfd6;
  --sage-100: #e6ede7;
  --cream-50: #fbf8f2;
  --cream-100: #f4efe6;
  --cream-200: #ebe4d6;
  --cream-300: #ddd4c3;
  --ink: #1c1c18;
  --ink-2: #2e2e28;
  --muted: #6a6a62;
  --muted-2: #8a8a82;
  --line: rgba(28, 28, 24, 0.1);
  --line-strong: rgba(28, 28, 24, 0.16);
  --up: #3d6b4f;
  --up-soft: #dce8e0;
  --down: #a14a3a;
  --down-soft: #f3ddd8;
  --surface: rgba(251, 248, 242, 0.78);
  --surface-solid: #fbf8f2;
  --shadow: 0 18px 50px rgba(28, 28, 24, 0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --header-h: 72px;
  --font: "Outfit", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 80px;
  --focus: 0 0 0 2px var(--cream-50), 0 0 0 4px var(--ink);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream-100);
  line-height: 1.5;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select {
  font: inherit;
}

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

.side-link,
.tab,
.watch-row,
.nav-link {
  cursor: pointer;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

[hidden] {
  display: none !important;
}

.sub {
  color: var(--muted);
  font-size: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.grid-page {
  background-color: var(--cream-100);
  background-image:
    linear-gradient(90deg, rgba(183, 198, 184, 0.55) 0%, rgba(244, 239, 230, 0.2) 58%, rgba(244, 239, 230, 0) 100%),
    linear-gradient(rgba(28, 28, 24, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 28, 24, 0.055) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
  background-position: 0 0, -1px -1px, -1px -1px;
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(16px);
  background: rgba(244, 239, 230, 0.78);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

.brand-mark-wrap {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  flex: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  object-fit: cover;
  transform: scale(1.9);
}

.brand-name {
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 14px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.header-nav a,
.nav-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: color 180ms ease, background 180ms ease;
}

.header-nav a:hover,
.nav-link:hover,
.header-nav a.is-active {
  color: var(--ink);
  background: rgba(28, 28, 24, 0.04);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  font-weight: 560;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-ink {
  background: var(--ink);
  color: var(--cream-50);
}

.btn-ink:hover {
  background: var(--ink-2);
}

.btn-ghost {
  border: 1px solid var(--line-strong);
  background: rgba(251, 248, 242, 0.55);
  color: var(--ink);
}

.btn-ghost:hover {
  background: #fff;
}

.btn-sage {
  background: var(--sage-300);
  color: var(--ink);
}

.btn-sage:hover {
  background: var(--sage-400);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--sage-300);
  height: clamp(240px, 38vw, 520px);
}

.hero-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: hero-drift 24s ease-in-out infinite alternate;
  will-change: transform;
}

.hero-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 248, 242, 0.78);
  padding: 16px 0;
}

.hero-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-kicker {
  margin: 0 0 8px;
  color: var(--muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 500;
}

.hero-title {
  margin: 0;
  font-size: clamp(40px, 7vw, 88px);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 0.95;
}

.hero-tag {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 248, 242, 0.62);
  overflow: hidden;
}

.ticker-track {
  display: flex;
  gap: 36px;
  width: max-content;
  animation: ticker 36s linear infinite;
  padding: 12px 0;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  color: var(--ink-2);
}

.ticker-item .chg.up { color: var(--up); }
.ticker-item .chg.down { color: var(--down); }

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.section {
  padding: var(--space-6) 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-700);
  font-weight: 600;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.lede {
  margin: 0;
  max-width: 42ch;
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.stat {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
}

.stat:last-child { border-right: 0; }

.stat b {
  display: block;
  font-size: 28px;
  font-weight: 560;
  letter-spacing: -0.03em;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease;
}

.feature:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: #fff;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--sage-200);
  color: var(--ink);
}

.feature h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 560;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.product-panel {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}

.panel {
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px 8px;
}

.panel-hd h3 {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.equity {
  padding: 0 20px 8px;
}

.equity strong {
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.04em;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.equity small {
  display: block;
  margin-top: 4px;
  color: var(--up);
  font-weight: 560;
}

.chart-wrap {
  height: 220px;
  padding: 0 8px 8px;
}

.chart-wrap svg,
.chart-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.holdings {
  display: flex;
  flex-direction: column;
}

.holding {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  min-height: 64px;
  transition: background 180ms ease;
}

.holding:hover {
  background: rgba(255, 255, 255, 0.55);
}

.holding b { font-weight: 560; }
.holding .sub { color: var(--muted); font-size: 12px; }
.holding .px { font-variant-numeric: tabular-nums; text-align: right; }
.spark { width: 84px; height: 32px; }

.markets-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.markets-table th,
.markets-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}

.markets-table th {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 560;
  background: rgba(198, 211, 200, 0.28);
}

.markets-table tr:last-child td { border-bottom: 0; }
.markets-table tbody tr { transition: background 160ms ease; }
.markets-table tbody tr:hover { background: rgba(255, 255, 255, 0.7); }

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

.asset-ico {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sage-200);
  font-size: 12px;
  font-weight: 700;
  flex: none;
}

.token-logo-wrap {
  position: relative;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  flex: none;
  box-shadow: 0 1px 3px rgba(28, 28, 24, 0.12);
}

.token-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: logo-in 0.45s ease both;
}

.logo-fallback {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border-radius: 50%;
}

.token-stack {
  display: flex;
  align-items: center;
  margin-top: 18px;
}

.token-stack .token-logo-wrap {
  margin-left: -8px;
  border: 2px solid var(--cream-50);
  transition: transform 200ms ease, z-index 200ms ease;
  z-index: 1;
}

.token-stack .token-logo-wrap:first-child { margin-left: 0; }

.token-stack .token-logo-wrap:hover {
  transform: translateY(-4px) scale(1.08);
  z-index: 2;
}

.ticket-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chg.up { color: var(--up); }
.chg.down { color: var(--down); }
.num-right { text-align: right; }

.live-stamp {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--sage-700);
  font-weight: 560;
}

.live-stamp::before {
  content: "";
  display: inline-block;
  width: 7px;
  animation: pulse-dot 1.8s ease-in-out infinite;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 0 3px rgba(61, 107, 79, 0.18);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.step {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  min-height: 180px;
}

.step-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--sage-700);
  letter-spacing: 0.12em;
}

.step h3 {
  margin: 12px 0 8px;
  font-size: 22px;
  font-weight: 500;
}

.step p {
  margin: 0;
  color: var(--muted);
}

.cta-band {
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  min-height: 280px;
  display: grid;
  align-items: center;
  padding: 40px;
  background:
    linear-gradient(90deg, rgba(183, 198, 184, 0.72), rgba(244, 239, 230, 0.55)),
    url("../img/cover.png") center/cover;
}

.cta-band h2 { max-width: 12ch; }
.cta-band p { color: var(--ink-2); max-width: 42ch; margin: 12px 0 20px; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Wallet modal */
.modal-root[hidden] { display: none; }

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.modal-scrim {
  position: absolute;
  inset: 0;
  background: rgba(28, 28, 24, 0.42);
  backdrop-filter: blur(6px);
}

.modal {
  position: relative;
  width: min(420px, calc(100% - 32px));
  margin: 12vh auto 0;
  background: var(--cream-50);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 22px 20px 18px;
}

.modal h2 {
  font-size: 24px;
  letter-spacing: -0.03em;
}

.modal-lead {
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.wallet-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wallet-btn {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px 10px 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.wallet-btn:hover,
.wallet-btn:focus-visible {
  border-color: var(--ink);
  background: var(--sage-100);
}

.wallet-btn::after {
  content: "";
  margin-left: auto;
  width: 7px;
  height: 7px;
  border-right: 1.7px solid var(--muted);
  border-bottom: 1.7px solid var(--muted);
  transform: rotate(-45deg);
  flex: none;
}

.wallet-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #fff;
  flex: none;
  box-shadow: 0 1px 2px rgba(28, 28, 24, 0.12);
}

.wallet-ico img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  display: block;
}

.wallet-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.wallet-btn b { display: block; font-weight: 560; font-size: 15px; }
.wallet-btn small { color: var(--muted); font-size: 12px; }

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.modal-foot {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--muted-2);
}

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--cream-50);
  padding: 12px 16px;
  border-radius: 10px;
  z-index: 90;
  font-size: 14px;
}

.wallet-status {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
  font-family: var(--mono);
}

.wallet-status.is-on { display: inline-flex; }

/* Docs */
.docs-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  padding: 36px 0 80px;
}

.docs-side {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.docs-side a {
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
}

.docs-side a:hover,
.docs-side a.is-active {
  background: rgba(28, 28, 24, 0.05);
  color: var(--ink);
}

.docs-body {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px;
  max-width: 760px;
}

.docs-body h1 {
  margin: 0 0 8px;
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.docs-body h2 {
  margin: 36px 0 10px;
  font-size: 24px;
}

.docs-body p,
.docs-body li {
  color: var(--ink-2);
}

.docs-body code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--sage-100);
  padding: 1px 6px;
  border-radius: 6px;
}

.callout {
  border: 1px solid var(--line);
  background: var(--sage-100);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 16px 0;
}

/* App */
body.page-app {
  background: var(--cream-100);
}

.app-shell {
  display: grid;
  grid-template-columns: 220px 1fr 320px;
  min-height: calc(100svh - var(--header-h));
}

.app-side,
.app-ticket {
  border-right: 1px solid var(--line);
  padding: 18px 14px;
}

.app-ticket {
  border-right: 0;
  border-left: 1px solid var(--line);
  background: rgba(251, 248, 242, 0.7);
}

.side-link {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.side-link.is-active,
.side-link:hover {
  background: rgba(28, 28, 24, 0.05);
  color: var(--ink);
}

.app-main {
  padding: 22px 24px 40px;
}

.app-equity {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.app-chg { font-weight: 560; margin: 4px 0 16px; }
.app-chart { height: 280px; }

.tabs {
  display: flex;
  gap: 6px;
  margin: 8px 0 18px;
}

.tab {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
}

.tab.is-on {
  background: var(--ink);
  color: var(--cream-50);
}

.watch-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.7fr 0.6fr;
  gap: 8px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.watch-row:hover { background: rgba(255,255,255,0.45); }

.ticket h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--cream-200);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 14px;
}

.seg button {
  min-height: 40px;
  border-radius: 8px;
  font-weight: 560;
}

.seg button.is-on.buy { background: var(--up); color: #fff; }
.seg button.is-on.sell { background: var(--down); color: #fff; }

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.field span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 560;
}

.field input {
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  padding: 0 12px;
  background: #fff;
}

.gate {
  min-height: calc(100svh - var(--header-h));
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 20px;
}

.gate-card {
  width: min(460px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.connected-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--up);
}

@media (max-width: 980px) {
  .stats,
  .feature-grid,
  .product-panel,
  .steps,
  .app-shell,
  .docs-shell {
    grid-template-columns: 1fr;
  }

  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .app-side { display: none; }
  .app-ticket { border-left: 0; border-top: 1px solid var(--line); }
  .docs-side { position: static; flex-direction: row; flex-wrap: wrap; }
  .markets-table td:nth-child(4),
  .markets-table th:nth-child(4) { display: none; }
}

@media (max-width: 720px) {
  .header-nav { display: none; }
  .header-nav.is-open {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 12px;
    background: var(--cream-50);
    border-bottom: 1px solid var(--line);
    z-index: 30;
  }
  .menu-toggle { display: inline-grid; place-items: center; }
  .hero-title { letter-spacing: 0.04em; }
  .cta-band { padding: 28px 20px; }
  .docs-body { padding: 22px 18px; }
  .watch-row { grid-template-columns: 1fr auto auto; }
  .watch-row .spark { display: none; }
}

.will-reveal {
  opacity: 0;
  transform: translateY(22px);
}

.will-reveal.is-in {
  animation: rise-in 0.7s cubic-bezier(0.22, 0.8, 0.28, 1) both;
  animation-delay: var(--d, 0ms);
}

.flash-up { animation: flash-up 0.7s ease; }
.flash-down { animation: flash-down 0.7s ease; }

.chart-line {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: chart-draw 1.5s ease forwards;
}

.chart-dot {
  opacity: 0;
  animation: pop-dot 0.35s ease 1.25s forwards;
}

.modal-root:not([hidden]) .modal-scrim {
  animation: fade-in 0.22s ease;
}

.modal-root:not([hidden]) .modal {
  animation: pop-in 0.28s cubic-bezier(0.22, 0.8, 0.28, 1);
}

.site-header {
  animation: header-in 0.45s ease both;
}

@keyframes hero-drift {
  from { transform: scale(1.02); }
  to { transform: scale(1.08); }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

@keyframes logo-in {
  from { opacity: 0; transform: scale(0.72); }
  to { opacity: 1; transform: none; }
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(61, 107, 79, 0.18); transform: scale(1); }
  50% { box-shadow: 0 0 0 7px rgba(61, 107, 79, 0.08); transform: scale(1.15); }
}

@keyframes flash-up {
  0% { background: rgba(61, 107, 79, 0.22); }
  100% { background: transparent; }
}

@keyframes flash-down {
  0% { background: rgba(161, 74, 58, 0.2); }
  100% { background: transparent; }
}

@keyframes chart-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes pop-dot {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pop-in {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

@keyframes header-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track,
  .hero-cover,
  .live-stamp::before,
  .token-logo,
  .chart-line,
  .chart-dot,
  .site-header,
  .will-reveal,
  .will-reveal.is-in,
  .modal-root:not([hidden]) .modal,
  .modal-root:not([hidden]) .modal-scrim {
    animation: none !important;
  }
  .will-reveal {
    opacity: 1;
    transform: none;
  }
  .feature, .btn, .wallet-btn, .token-stack .token-logo-wrap { transition: none; }
}
