/* ─────────────────────────────────────────────────────────────
   Loompad: main stylesheet
   Palette (seed 8212 → hue 292):
     indigo ink   #12111d  base
     loom slate   #1d1a2c  raised surfaces
     raw cotton   #ece7f2  text
     heather      #a49eb8  secondary text
     madder       #cf7bf5  accent
   ───────────────────────────────────────────────────────────── */

/* Heading font. Drop your font into /public/fonts/ and point src at it.
   If the file is missing, Sora (Google Fonts) is used instead. */
@font-face {
  font-family: 'LoompadDisplay';
  src: url('/fonts/heading.woff2') format('woff2'), url('/fonts/heading.ttf') format('truetype'), url('/fonts/heading.otf') format('opentype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #12111d;
  --ink-deep: #0b0a13;
  --loom: #1d1a2c;
  --cotton: #ece7f2;
  --heather: #a49eb8;
  --mute: #6f6987;
  --accent: #cf7bf5;
  --accent-soft: rgba(207, 123, 245, 0.14);
  --accent-ink: #1b0f22;
  --up: #5fe0b1;
  --down: #ff7a8a;
  --glass: rgba(29, 26, 44, 0.52);
  --glass-strong: rgba(24, 22, 37, 0.78);
  --line: rgba(236, 231, 242, 0.1);
  --line-strong: rgba(236, 231, 242, 0.2);

  --r-s: 6px;
  --r: 10px;
  --r-l: 18px;

  --maxw: 1480px;
  --gutter: clamp(18px, 3.2vw, 48px);
  --nav-h: 84px;

  --font-head: 'LoompadDisplay', 'Sora', system-ui, sans-serif;
  --font-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.menu-open, html.intro-lock { overflow: hidden; }
body {
  margin: 0;
  background: radial-gradient(1200px 800px at 30% 20%, #1b1830 0%, var(--ink) 55%, var(--ink-deep) 100%) fixed;
  color: var(--cotton);
  font: 400 18px/1.6 var(--font-body);
  min-height: 100vh;
  padding-bottom: calc(var(--nav-h) + 48px);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html.has-cursor, html.has-cursor * { cursor: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.mono { font-family: var(--font-mono); font-feature-settings: 'zero' 1; }
.ic { width: 22px; height: 22px; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.is-up { color: var(--up); }
.is-down { color: var(--down); }
.is-flat { color: var(--heather); }

/* ── Layout ─────────────────────────────────────────────── */
.wrap { width: min(var(--maxw), 100% - var(--gutter) * 2); margin-inline: auto; position: relative; }
main { position: relative; z-index: 2; }
.bg-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.section { margin-block: clamp(56px, 8vw, 120px); }

/* ── Type ───────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-head); font-style: normal; font-weight: 600; letter-spacing: -0.02em; line-height: 1.04; margin: 0; }
.dot { color: var(--accent); }
.h-page { font-size: clamp(48px, 6.4vw, 104px); max-width: 14ch; }
.h-section { font-size: clamp(34px, 3.8vw, 58px); max-width: 18ch; }
.h-card { font-size: clamp(24px, 2vw, 30px); }
.lede { font-size: clamp(19px, 1.4vw, 22px); color: var(--heather); max-width: 58ch; margin: 22px 0 0; }
.muted { color: var(--heather); }
p { margin: 0 0 1em; }
kbd { font: 500 13px var(--font-mono); padding: 2px 7px; border: 1px solid var(--line-strong); border-radius: 5px; color: var(--heather); }

.page-head { padding-top: clamp(130px, 14vw, 190px); padding-bottom: clamp(28px, 4vw, 52px); }
.page-head .lede { margin-top: 26px; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  --h: 60px;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: var(--h); padding: 0 28px;
  border-radius: var(--r); border: 1px solid var(--line-strong);
  background: rgba(236, 231, 242, 0.04); color: var(--cotton);
  font-weight: 600; font-size: 18px; letter-spacing: 0.005em; text-decoration: none;
  transition: transform 0.35s var(--ease), background 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.35s var(--ease);
  white-space: nowrap; position: relative; isolation: isolate;
}
.btn:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #dc97f8; color: var(--accent-ink); box-shadow: 0 14px 40px -12px rgba(207, 123, 245, 0.6); }
.btn-ghost { background: transparent; }
.btn-lg { --h: 70px; padding: 0 36px; font-size: 20px; }
.btn-sm { --h: 46px; padding: 0 18px; font-size: 16px; }
.btn kbd { margin-left: 2px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: var(--r);
  border: 1px solid var(--line-strong); background: rgba(236, 231, 242, 0.04); color: var(--cotton);
  transition: border-color 0.25s, background 0.25s, transform 0.35s var(--ease);
}
.icon-btn:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-2px); }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px var(--gutter);
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.logo { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.logo-mark { flex: none; transition: transform 0.8s var(--ease); }
.logo:hover .logo-mark { transform: rotate(90deg); }
.logo-name { font: 600 32px/1 var(--font-head); letter-spacing: -0.03em; }
.header-right { display: flex; align-items: center; gap: 12px; }
.btn-wallet { --h: 54px; padding: 0 22px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: var(--glass); }
.btn-wallet.is-connected { border-color: var(--accent); }
.btn-wallet.is-connected .ic { color: var(--accent); }
.btn-wallet span { font-family: var(--font-body); }

.ca-chip {
  display: inline-flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 18px;
  border-radius: var(--r); border: 1px solid var(--line-strong); background: var(--glass);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.25s;
}
.ca-chip:hover:not([disabled]) { border-color: var(--accent); }
.ca-chip[disabled] { cursor: default; }
.ca-label { font-weight: 600; color: var(--accent); font-size: 15px; }
.ca-value { font-size: 16px; color: var(--cotton); }
.ca-chip .ic { width: 18px; height: 18px; color: var(--heather); }
.ca-compact .ca-value { font-size: 15px; }

/* ── Scroll progress ────────────────────────────────────── */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }

/* ── Reed nav ───────────────────────────────────────────── */
.reed {
  position: fixed; left: 50%; bottom: 18px; z-index: 55; transform: translateX(-50%);
  width: min(1180px, calc(100% - 24px)); height: var(--nav-h);
  display: flex; align-items: stretch; gap: 10px;
}
.reed-track {
  position: relative; flex: 1; display: flex; align-items: stretch; overflow-x: auto; scrollbar-width: none;
  border-radius: var(--r-l); border: 1px solid var(--line-strong);
  background:
    repeating-linear-gradient(90deg, rgba(236, 231, 242, 0.05) 0 1px, transparent 1px 9px),
    var(--glass-strong);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
}
.reed-track::-webkit-scrollbar { display: none; }
.reed-item {
  position: relative; flex: 1 0 auto; min-width: 104px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  text-decoration: none; color: var(--heather); font-size: 16px; font-weight: 500;
  transition: color 0.3s, transform 0.45s var(--ease);
}
.reed-item .ic { width: 22px; height: 22px; transition: transform 0.45s var(--ease); }
.reed-thread {
  position: absolute; left: 50%; top: -14px; bottom: -14px; width: 2px; margin-left: -1px;
  background: linear-gradient(transparent, rgba(236, 231, 242, 0.18) 20%, rgba(236, 231, 242, 0.18) 80%, transparent);
  transform: scaleY(0.4); opacity: 0; transition: transform 0.5s var(--ease), opacity 0.3s, background 0.3s;
}
.reed-item:hover, .reed-item.is-lifted { color: var(--cotton); }
.reed-item.is-lifted .ic { transform: translateY(-4px); }
.reed-item.is-lifted .reed-thread { opacity: 1; transform: scaleY(1); }
.reed-item.is-active { color: var(--cotton); }
.reed-item.is-active .ic { color: var(--accent); }
.reed-item.is-active .reed-thread { opacity: 1; transform: scaleY(1); background: linear-gradient(transparent, var(--accent) 25%, var(--accent) 75%, transparent); opacity: 0.55; }
.reed-shuttle {
  position: absolute; left: 0; bottom: 8px; width: 56px; height: 7px; pointer-events: none;
  background: var(--accent); border-radius: 50%;
  clip-path: polygon(0 50%, 22% 0, 78% 0, 100% 50%, 78% 100%, 22% 100%);
  transition: transform 0.55s var(--ease);
}
.reed-menu {
  flex: none; display: flex; align-items: center; gap: 12px; padding: 0 26px;
  border-radius: var(--r-l); border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink);
  font-weight: 600; font-size: 18px; transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.reed-menu kbd { color: var(--accent-ink); border-color: rgba(27, 15, 34, 0.35); }
.reed-menu:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -16px rgba(207, 123, 245, 0.7); }

/* ── Full-screen menu ───────────────────────────────────── */
.menu {
  position: fixed; inset: 0; z-index: 80; overflow-y: auto;
  background: rgba(11, 10, 19, 0.86); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.45s var(--ease), visibility 0s linear 0.45s;
}
.menu.is-open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 0.45s var(--ease), visibility 0s; }
.menu-inner { padding-block: 24px 60px; }
.menu-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: clamp(24px, 4vw, 56px); }
.menu-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 90px); align-items: start; }
.menu-list { list-style: none; margin: 0; padding: 0; counter-reset: m; }
.menu-list li { border-top: 1px solid var(--line); transform: translateY(18px); opacity: 0; transition: transform 0.6s var(--ease), opacity 0.6s var(--ease); }
.menu.is-open .menu-list li { transform: none; opacity: 1; }
.menu-list li:nth-child(2) { transition-delay: 40ms; } .menu-list li:nth-child(3) { transition-delay: 80ms; }
.menu-list li:nth-child(4) { transition-delay: 120ms; } .menu-list li:nth-child(5) { transition-delay: 160ms; }
.menu-list li:nth-child(6) { transition-delay: 200ms; } .menu-list li:nth-child(7) { transition-delay: 240ms; }
.menu-list li:nth-child(8) { transition-delay: 280ms; }
.menu-list a { display: flex; align-items: center; gap: 22px; padding: 18px 8px; text-decoration: none; transition: padding 0.4s var(--ease), color 0.3s; }
.menu-list a:hover, .menu-list a:focus-visible { padding-left: 22px; }
.menu-ic { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--line-strong); border-radius: var(--r); color: var(--heather); flex: none; transition: color 0.3s, border-color 0.3s, background 0.3s; }
.menu-list a:hover .menu-ic, .menu-list a:focus-visible .menu-ic, .menu-list a.is-current .menu-ic { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.menu-txt { display: flex; flex-direction: column; gap: 4px; }
.menu-title { font: 600 clamp(30px, 3.4vw, 48px)/1 var(--font-head); letter-spacing: -0.02em; }
.menu-desc { color: var(--heather); font-size: 17px; }
.menu-draft { position: sticky; top: 24px; }
.draft-grid { display: grid; grid-template-columns: repeat(16, 1fr); gap: 3px; aspect-ratio: 1; padding: 14px; border-radius: var(--r-l); border: 1px solid var(--line-strong); background: var(--ink-deep); }
.draft-grid span { border-radius: 2px; background: rgba(236, 231, 242, 0.07); transition: background 0.35s var(--ease) var(--d), transform 0.35s var(--ease) var(--d); }
.draft-grid span.on { background: var(--accent); transform: scale(0.86); }
.draft-caption { margin-top: 14px; color: var(--heather); font-size: 16px; }
.draft-caption span { color: var(--cotton); }

/* ── Cursor ─────────────────────────────────────────────── */
.cursor-ring, .cursor-dot { position: fixed; left: 0; top: 0; z-index: 10001; pointer-events: none; }
.cursor-ring {
  width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  border: 1.5px solid var(--accent); transition: width 0.3s var(--ease), height 0.3s var(--ease), margin 0.3s var(--ease), background 0.3s, opacity 0.2s;
}
.cursor-ring.is-hot { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: rgba(207, 123, 245, 0.12); }
.cursor-ring.is-down { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--cotton); }
.thread-canvas { position: fixed; inset: 0; z-index: 10000; pointer-events: none; }

/* ── Glass panels ───────────────────────────────────────── */
.panel {
  position: relative; border-radius: var(--r-l); border: 1px solid var(--line);
  background: var(--glass); backdrop-filter: blur(20px) saturate(1.25); -webkit-backdrop-filter: blur(20px) saturate(1.25);
  padding: clamp(24px, 3.2vw, 52px);
}
.panel::before {
  content: ''; position: absolute; left: -1px; top: 28px; bottom: 28px; width: 3px; border-radius: 3px;
  background: linear-gradient(transparent, var(--accent) 20%, var(--accent) 80%, transparent); opacity: 0.85;
}
.panel-flat::before { display: none; }
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

.stat-box { background: var(--ink-deep); border: 1px solid var(--line); border-top: 2px solid var(--accent); border-radius: var(--r); padding: 22px 24px; }
.stat-num { font: 600 clamp(40px, 4vw, 60px)/1 var(--font-head); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat-cap { margin-top: 10px; color: var(--heather); font-size: 16px; }

/* ── Forms ──────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 10px; }
.field > label, .field-label { font-weight: 600; font-size: 17px; }
.field .hint { color: var(--heather); font-size: 15px; }
.input, .textarea, .select {
  width: 100%; min-height: 62px; padding: 14px 18px; border-radius: var(--r);
  border: 1px solid var(--line-strong); background: rgba(11, 10, 19, 0.55); font-size: 18px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field.has-error .input, .field.has-error .textarea { border-color: var(--down); }
.err { color: var(--down); font-size: 15px; min-height: 0; }
.err:empty { display: none; }
.seg { display: inline-flex; padding: 5px; border-radius: var(--r); border: 1px solid var(--line-strong); background: rgba(11, 10, 19, 0.5); gap: 4px; }
.seg button { min-height: 48px; padding: 0 20px; border: 0; border-radius: 7px; background: transparent; color: var(--heather); font-weight: 600; transition: background 0.25s, color 0.25s; }
.seg button[aria-pressed='true'] { background: var(--accent); color: var(--accent-ink); }
.seg button:hover:not([aria-pressed='true']) { color: var(--cotton); }

/* ── Toasts ─────────────────────────────────────────────── */
.toasts { position: fixed; top: 100px; right: var(--gutter); z-index: 90; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: var(--r); background: var(--glass-strong); border: 1px solid var(--line-strong); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); animation: toast-in 0.5s var(--ease); transition: opacity 0.4s, transform 0.4s; font-size: 16px; }
.toast .ic { color: var(--accent); width: 18px; height: 18px; }
.toast-error .ic { color: var(--down); }
.toast.out { opacity: 0; transform: translateX(20px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px); } }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer { position: relative; z-index: 2; padding-block: 40px 20px; border-top: 1px solid var(--line); margin-top: 100px; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 12px; }
.footer-note { color: var(--mute); font-size: 15px; margin-top: 22px; max-width: 70ch; }
.site-footer .logo-name { font-size: 26px; }

/* ── Intro ──────────────────────────────────────────────── */
.intro {
  position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center;
  background: var(--ink-deep); transition: opacity 0.9s var(--ease), visibility 0s linear 0.9s;
}
.intro.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.intro-stage { display: flex; flex-direction: column; align-items: center; gap: 30px; }
.intro-loom { width: min(380px, 64vw, 46vh); height: auto; overflow: visible; transition: transform 1.1s var(--ease); }
.intro.is-woven .intro-loom { transform: rotate(45deg) scale(0.72); }
.intro-loom .warp { stroke: #e8e1f2; stroke-width: 16; stroke-dasharray: 240; stroke-dashoffset: 240; transition: stroke-dashoffset 0.9s var(--ease); }
.intro-loom .weft { stroke: var(--accent); stroke-width: 16; stroke-dasharray: 240; stroke-dashoffset: 240; transition: stroke-dashoffset 0.32s var(--ease-io); }
.intro-loom .patch { fill: var(--accent); opacity: 0; transition: opacity 0.2s; }
.intro-loom .on { stroke-dashoffset: 0; }
.intro-loom .patch.on { opacity: 1; }
.intro-loom .name { font: 600 7.4px var(--font-mono); letter-spacing: 0.06em; fill: #1b0f22; opacity: 0; transition: opacity 0.5s var(--ease); }
.intro-loom .name.on { opacity: 0.88; }
.intro-loom .shuttle { fill: var(--cotton); transition: transform 0.32s var(--ease-io); }
.intro.is-woven .shuttle { opacity: 0; transition: opacity 0.3s; }
.intro-word { font: 600 clamp(56px, 9vw, 120px)/1 var(--font-head); letter-spacing: -0.04em; display: flex; overflow: hidden; }
.intro-word span { display: inline-block; transform: translateY(110%); transition: transform 0.8s var(--ease); }
.intro.is-woven .intro-word span { transform: none; }
.intro-status { color: var(--heather); font-size: 16px; min-height: 1.6em; font-family: var(--font-mono); }
.intro-enter { opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); min-width: 220px; }
.intro.is-ready .intro-enter { opacity: 1; transform: none; pointer-events: auto; }
.intro.is-leaving .intro-loom .warp-g:nth-child(odd) { transform: translateY(-120vh); transition: transform 0.9s var(--ease-io); }
.intro.is-leaving .intro-loom .warp-g:nth-child(even) { transform: translateY(120vh); transition: transform 0.9s var(--ease-io); }

/* ── Home hero ──────────────────────────────────────────── */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding-top: 110px; }
.hero-inner {
  margin-left: calc(2vw + clamp(0px, 9vw, 150px)); width: fit-content; max-width: 100%;
  padding: clamp(26px, 3.4vw, 56px) clamp(24px, 3.6vw, 60px);
  border-radius: var(--r-l); border: 1px solid var(--line-strong);
  background: rgba(18, 17, 29, 0.42);
  backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6);
  position: relative;
}
.hero-inner::before { content: ''; position: absolute; left: -1px; top: 32px; bottom: 32px; width: 3px; border-radius: 3px; background: linear-gradient(transparent, var(--accent) 20%, var(--accent) 80%, transparent); }
.hero-sub { font-size: clamp(19px, 1.5vw, 24px); color: var(--heather); max-width: 46ch; margin: clamp(20px, 2.4vw, 30px) 0 0; opacity: 0; transform: translateY(14px); transition: opacity 0.9s var(--ease) 0.25s, transform 0.9s var(--ease) 0.25s; }
.is-ready .hero-sub { opacity: 1; transform: none; }
.hero-title { font-size: clamp(54px, 7.4vw, 136px); line-height: 0.96; letter-spacing: -0.045em; font-weight: 600; text-shadow: 0 2px 40px rgba(11, 10, 19, 0.55); }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-title .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.is-ready .hero-title .line > span { transform: none; }
.is-ready .hero-title .line:nth-child(2) > span { transition-delay: 0.09s; }
.is-ready .hero-title .line:nth-child(3) > span { transition-delay: 0.18s; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: clamp(34px, 4vw, 54px); opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease) 0.35s, transform 0.9s var(--ease) 0.35s; }
.is-ready .hero-actions { opacity: 1; transform: none; }
.hero-actions .ca-chip { min-height: 70px; padding: 0 22px; }
.hero-actions .icon-btn { width: 70px; height: 70px; }
.hero-scroll { position: absolute; left: 50%; bottom: calc(var(--nav-h) + 40px); width: 2px; height: 56px; background: linear-gradient(var(--accent), transparent); transform-origin: top; animation: drop 2.4s var(--ease) infinite; }
@keyframes drop { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Live strip */
.strip-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.strip { display: flex; flex-direction: column; }
.strip-row { display: grid; grid-template-columns: 52px minmax(120px, 1.1fr) minmax(0, 3fr) 120px 90px; align-items: center; gap: 22px; padding: 16px 6px; border-top: 1px solid var(--line); text-decoration: none; transition: background 0.3s, padding 0.4s var(--ease); border-radius: 8px; }
.strip-row:hover { background: rgba(236, 231, 242, 0.04); padding-left: 16px; }
.strip-row img, .tok-ic { width: 46px; height: 46px; border-radius: 50%; background: var(--loom); object-fit: cover; }
.strip-name { font-weight: 600; font-size: 19px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strip-bar { height: 12px; border-radius: 6px; background: repeating-linear-gradient(90deg, currentColor 0 6px, transparent 6px 9px); opacity: 0.75; transform-origin: left; transform: scaleX(0); transition: transform 1.4s var(--ease); }
.in .strip-bar { transform: scaleX(var(--w, 0.1)); }
.strip-price { font-family: var(--font-mono); font-size: 16px; text-align: right; }
.strip-chg { font-family: var(--font-mono); font-size: 16px; text-align: right; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 40px; counter-reset: st; }
.step { padding: 8px 28px 8px 0; position: relative; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step-n { font: 500 15px var(--font-mono); color: var(--accent); }
.step h3 { font-size: 26px; margin: 14px 0 12px; }
.step p { color: var(--heather); margin: 0; }
.step canvas { width: 100%; height: 130px; margin-bottom: 8px; }

/* Loom links */
.loom-links { display: grid; grid-template-columns: repeat(3, 1fr); }
.loom-link { padding: 30px; text-decoration: none; display: flex; flex-direction: column; gap: 16px; position: relative; transition: background 0.3s; border-radius: var(--r); }
.loom-link + .loom-link { border-left: 1px solid var(--line); }
.loom-link:hover { background: rgba(236, 231, 242, 0.04); }
.loom-link .ic { width: 34px; height: 34px; color: var(--accent); }
.loom-link h3 { font-size: 30px; }
.loom-link p { color: var(--heather); margin: 0; }
.loom-link .go { margin-top: auto; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.loom-link .go .ic { width: 20px; height: 20px; transition: transform 0.4s var(--ease); }
.loom-link:hover .go .ic { transform: translateX(6px); }

/* ── Board ──────────────────────────────────────────────── */
.toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.toolbar-left, .toolbar-right { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.search { position: relative; min-width: min(360px, 100%); }
.search .ic { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--heather); }
.search .input { padding-left: 52px; }
.refresh-clock { display: inline-flex; align-items: center; gap: 12px; color: var(--heather); font-size: 15px; }
.refresh-clock svg { width: 30px; height: 30px; transform: rotate(-90deg); }
.refresh-clock circle { fill: none; stroke-width: 3; }
.refresh-clock .bgc { stroke: var(--line-strong); }
.refresh-clock .fgc { stroke: var(--accent); stroke-dasharray: 75.4; stroke-linecap: round; }

.board-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.board-table th { text-align: right; font: 500 15px var(--font-body); color: var(--heather); padding: 12px 14px; border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
.board-table th:first-child, .board-table td:first-child { text-align: left; }
.board-table th button { background: none; border: 0; color: inherit; font: inherit; padding: 0; display: inline-flex; gap: 6px; align-items: center; }
.board-table th button[aria-sort='descending']::after { content: '↓'; color: var(--accent); }
.board-table th button[aria-sort='ascending']::after { content: '↑'; color: var(--accent); }
.board-table td { padding: 14px; text-align: right; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 16px; white-space: nowrap; }
.board-table tbody tr { transition: background 0.25s; }
.board-table tbody tr:hover { background: rgba(236, 231, 242, 0.04); }
.tok { display: flex; align-items: center; gap: 14px; text-decoration: none; font-family: var(--font-body); }
.tok-name { font-weight: 600; font-size: 18px; max-width: 18ch; overflow: hidden; text-overflow: ellipsis; display: block; }
.tok-sym { color: var(--heather); font-size: 15px; font-family: var(--font-mono); }
.spark { width: 120px; height: 36px; display: block; margin-left: auto; }
.table-scroll { overflow-x: auto; }

.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.tile { padding: 22px; border-radius: var(--r-l); border: 1px solid var(--line); background: rgba(11, 10, 19, 0.45); text-decoration: none; display: flex; flex-direction: column; gap: 16px; transition: border-color 0.3s, transform 0.4s var(--ease); }
.tile:hover { border-color: var(--accent); transform: translateY(-4px); }
.tile-top { display: flex; gap: 14px; align-items: center; }
.tile-price { font: 600 28px var(--font-head); letter-spacing: -0.02em; }
.tile-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; font-size: 14px; color: var(--heather); }
.tile-meta b { display: block; color: var(--cotton); font: 500 16px var(--font-mono); }
.tile .spark { width: 100%; height: 56px; }

.empty, .loading { padding: 60px 20px; text-align: center; color: var(--heather); }
.loading::before { content: ''; display: block; width: 80px; height: 6px; margin: 0 auto 18px; border-radius: 3px; background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 12px); background-size: 24px 100%; animation: weave-load 0.8s linear infinite; }
@keyframes weave-load { to { background-position: 24px 0; } }

/* ── Coin ───────────────────────────────────────────────── */
.coin-head { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.coin-head img { width: 84px; height: 84px; border-radius: 50%; background: var(--loom); }
.coin-title { font-size: clamp(40px, 4.6vw, 72px); }
.coin-sub { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 10px; color: var(--heather); }
.coin-price { font: 600 clamp(40px, 4vw, 64px)/1 var(--font-head); letter-spacing: -0.03em; text-align: right; }
.chips { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; flex-wrap: wrap; }
.chip { font: 500 15px var(--font-mono); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); }
.coin-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 20px; margin-top: 28px; }
.chart-wrap { position: relative; }
.chart-svg { width: 100%; height: clamp(280px, 34vw, 440px); display: block; overflow: visible; }
.chart-tip { position: absolute; top: 0; pointer-events: none; padding: 10px 14px; border-radius: var(--r-s); background: var(--glass-strong); border: 1px solid var(--line-strong); font: 500 14px var(--font-mono); opacity: 0; transition: opacity 0.2s; white-space: nowrap; }
.chart-note { color: var(--mute); font-size: 14px; margin-top: 10px; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kv .stat-box { padding: 18px; }
.kv .stat-num { font-size: clamp(24px, 2vw, 32px); }
.kv .stat-cap { margin-top: 6px; font-size: 15px; }
.links-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.pools { margin-top: 18px; }
.pool { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.pool span:last-child { font-family: var(--font-mono); }
.coin-search { display: flex; gap: 12px; max-width: 760px; margin-top: 30px; }
.coin-search .input { flex: 1; font-family: var(--font-mono); }

/* ── Accordion (protocol) ───────────────────────────────── */
.acc-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); align-items: start; }
.acc-visual { position: sticky; top: 110px; aspect-ratio: 1; padding: 0; overflow: hidden; }
.acc-visual canvas { width: 100%; height: 100%; display: block; }
.acc-visual .vis-label { position: absolute; left: 24px; bottom: 20px; color: var(--heather); font-size: 15px; }
.acc-visual .vis-label b { color: var(--cotton); font-weight: 600; }
.acc { border-top: 1px solid var(--line-strong); }
.acc-row { border-bottom: 1px solid var(--line-strong); position: relative; }
.acc-row::before { content: ''; position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--accent); transition: width 0.7s var(--ease); }
.acc-row.is-open::before { width: 100%; }
.acc-btn { width: 100%; display: flex; align-items: center; gap: 20px; padding: 28px 4px; background: none; border: 0; text-align: left; }
.acc-btn .ic { width: 30px; height: 30px; color: var(--heather); transition: color 0.3s; }
.acc-title { font: 600 clamp(26px, 2.4vw, 38px)/1.1 var(--font-head); letter-spacing: -0.02em; flex: 1; transition: transform 0.5s var(--ease); }
.acc-row.is-open .acc-btn .ic { color: var(--accent); }
.acc-row.is-open .acc-title, .acc-btn:hover .acc-title { transform: translateX(8px); }
.acc-plus { width: 22px; height: 22px; position: relative; flex: none; }
.acc-plus::before, .acc-plus::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: currentColor; transition: transform 0.45s var(--ease); }
.acc-plus::after { transform: rotate(90deg); }
.acc-row.is-open .acc-plus::after { transform: rotate(0); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.55s var(--ease); }
.acc-row.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(200px, 1fr); gap: 24px; padding: 0 4px 30px 54px; align-items: start; }
.acc-body p { color: var(--heather); margin: 0; }

/* ── Launch ─────────────────────────────────────────────── */
.launch-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); gap: 20px; align-items: start; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 22px; }
.form-grid .full { grid-column: 1 / -1; }
.drop { display: flex; align-items: center; gap: 18px; padding: 18px; border: 1.5px dashed var(--line-strong); border-radius: var(--r); background: rgba(11, 10, 19, 0.45); transition: border-color 0.25s, background 0.25s; position: relative; }
.drop.is-over { border-color: var(--accent); background: var(--accent-soft); }
.drop input { position: absolute; inset: 0; opacity: 0; }
.drop-thumb { width: 72px; height: 72px; border-radius: 50%; background: var(--loom); display: grid; place-items: center; overflow: hidden; flex: none; color: var(--heather); }
.drop-thumb img { width: 100%; height: 100%; object-fit: cover; }
.check { display: flex; gap: 14px; align-items: flex-start; font-size: 17px; }
.check input { width: 24px; height: 24px; accent-color: var(--accent); margin-top: 2px; flex: none; }
.preview { position: sticky; top: 110px; }
.preview canvas { width: 100%; aspect-ratio: 1.3; display: block; }
.preview-card { display: flex; gap: 16px; align-items: center; margin-top: 10px; }
.preview-card .drop-thumb { width: 64px; height: 64px; }
.preview-name { font: 600 28px/1.1 var(--font-head); letter-spacing: -0.02em; word-break: break-word; }
.preview-desc { color: var(--heather); margin-top: 16px; font-size: 16px; min-height: 3em; word-break: break-word; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; align-items: center; color: var(--mute); font-size: 15px; transition: color 0.3s; }
.checks li .ic { width: 18px; height: 18px; }
.checks li.ok { color: var(--cotton); }
.checks li.ok .ic { color: var(--up); }
.checks li.bad .ic { color: var(--down); }
.confirm { text-align: left; }
.confirm h2 { font-size: clamp(36px, 4vw, 60px); }
.confirm dl { display: grid; grid-template-columns: max-content 1fr; gap: 12px 26px; margin: 28px 0; }
.confirm dt { color: var(--heather); }
.confirm dd { margin: 0; font-family: var(--font-mono); word-break: break-all; }
.confirm-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.ref { color: var(--accent); }

/* ── Shortlist ──────────────────────────────────────────── */
.sl-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr); gap: 20px; align-items: start; }
.deck { position: relative; height: 520px; perspective: 1400px; }
.card {
  position: absolute; inset: 0; border-radius: var(--r-l); border: 1px solid var(--line-strong);
  background: var(--glass-strong); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  padding: 32px; display: flex; flex-direction: column; gap: 18px; touch-action: none;
  transition: transform 0.55s var(--ease), opacity 0.45s;
}
.card.is-dragging { transition: none; }
.card:nth-child(1) { z-index: 4; } .card:nth-child(2) { z-index: 3; } .card:nth-child(3) { z-index: 2; }
.card:nth-child(2) { transform: translateY(18px) scale(0.96); opacity: 0.6; }
.card:nth-child(3) { transform: translateY(36px) scale(0.92); opacity: 0.3; }
.card:nth-child(n + 4) { opacity: 0; pointer-events: none; }
.card-head { display: flex; gap: 18px; align-items: center; }
.card-head img { width: 72px; height: 72px; border-radius: 50%; background: var(--loom); }
.card .spark { width: 100%; height: 120px; }
.card-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: auto; }
.card-stamp { position: absolute; top: 28px; right: 28px; padding: 8px 16px; border: 2px solid; border-radius: 8px; font-weight: 700; opacity: 0; transform: rotate(8deg); }
.card-stamp.keep { color: var(--up); }
.card-stamp.pass { color: var(--down); left: 28px; right: auto; transform: rotate(-8deg); }
.deck-actions { display: flex; justify-content: center; gap: 16px; margin-top: 70px; }
.deck-actions .btn { min-width: 170px; }
.btn-keep:hover { border-color: var(--up); background: rgba(95, 224, 177, 0.1); }
.btn-pass:hover { border-color: var(--down); background: rgba(255, 122, 138, 0.1); }
.kept { list-style: none; margin: 18px 0 0; padding: 0; max-height: 520px; overflow-y: auto; }
.kept li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.kept a { flex: 1; text-decoration: none; display: flex; gap: 12px; align-items: center; }
.kept img { width: 36px; height: 36px; border-radius: 50%; background: var(--loom); }
.kept button { background: none; border: 0; color: var(--heather); padding: 6px; }
.kept button:hover { color: var(--down); }
.sl-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ── Studio ─────────────────────────────────────────────── */
.studio-layout { display: grid; grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr); gap: 20px; align-items: start; }
.draft-editor { display: grid; gap: 3px; aspect-ratio: 1; padding: 12px; border-radius: var(--r); background: var(--ink-deep); border: 1px solid var(--line-strong); user-select: none; touch-action: none; }
.draft-editor button { border: 0; border-radius: 2px; background: rgba(236, 231, 242, 0.08); padding: 0; transition: background 0.2s, transform 0.2s; }
.draft-editor button.on { background: var(--accent); transform: scale(0.9); }
.draft-editor button:hover { outline: 1px solid var(--accent); }
.presets { display: flex; flex-wrap: wrap; gap: 8px; }
.studio-preview { position: relative; aspect-ratio: 1.15; padding: 0; overflow: hidden; }
.studio-preview canvas { width: 100%; height: 100%; display: block; }
.colors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.colors input[type='color'] { width: 100%; height: 56px; border-radius: var(--r); border: 1px solid var(--line-strong); background: none; padding: 4px; }
.range { width: 100%; accent-color: var(--accent); height: 30px; }
.exports { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.code-out { font: 400 14px/1.5 var(--font-mono); background: var(--ink-deep); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; max-height: 180px; overflow: auto; white-space: pre-wrap; word-break: break-all; color: var(--heather); margin: 0; }
.stack { display: grid; gap: 24px; }

/* ── Tension ────────────────────────────────────────────── */
.tension-stage { position: relative; padding: 0; overflow: hidden; height: clamp(460px, 62vh, 720px); }
.tension-stage canvas { width: 100%; height: 100%; display: block; }
.tension-tip { position: absolute; pointer-events: none; padding: 14px 16px; border-radius: var(--r); background: var(--glass-strong); border: 1px solid var(--line-strong); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); min-width: 200px; opacity: 0; transition: opacity 0.2s; font-size: 15px; z-index: 3; }
.tension-tip b { font: 600 20px var(--font-head); display: block; margin-bottom: 6px; }
.tension-tip span { display: flex; justify-content: space-between; gap: 18px; font-family: var(--font-mono); }
.legend { display: flex; gap: 26px; flex-wrap: wrap; color: var(--heather); font-size: 15px; margin-top: 16px; }
.legend i { display: inline-block; width: 26px; height: 4px; border-radius: 2px; vertical-align: middle; margin-right: 8px; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 20px; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .acc-layout, .coin-layout, .launch-layout, .sl-layout, .studio-layout, .menu-body { grid-template-columns: 1fr; }
  .acc-visual { position: relative; top: 0; aspect-ratio: 1.4; }
  .preview { position: relative; top: 0; }
  .menu-draft { display: none; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 30px; }
  .step:nth-child(3) { border-left: 0; padding-left: 0; }
  .stats-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  :root { --nav-h: 72px; }
  .logo-name { font-size: 26px; }
  .logo-mark { width: 36px; height: 36px; }
  .btn-wallet span { display: none; }
  .btn-wallet { padding: 0 15px; }
  .ca-compact { display: none; }
  .hero-inner { margin-left: 0; }
  .reed-item { min-width: 84px; font-size: 14px; }
  .reed-menu span, .reed-menu kbd { display: none; }
  .reed-menu { padding: 0 20px; }
  .form-grid, .acc-body, .kv { grid-template-columns: 1fr; }
  .acc-body { padding-left: 4px; }
  .steps, .loom-links { grid-template-columns: 1fr; }
  .step + .step, .loom-link + .loom-link { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 22px; }
  .strip-row { grid-template-columns: 46px 1fr 90px; }
  .strip-bar, .strip-price { display: none; }
  .coin-head { grid-template-columns: auto 1fr; }
  .coin-head > :last-child { grid-column: 1 / -1; text-align: left; }
  .coin-price, .chips { text-align: left; justify-content: flex-start; }
  .deck { height: 480px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
