:root {
  --bg: #0b0c0e;
  --panel: #121316;
  --panel-raised: #17181c;
  --input: #0e0f12;
  --border: #23252a;
  --border-strong: #30333a;
  --text: #ececee;
  --text-2: #a4a6ad;
  /* 4.7:1 or better on every surface, so secondary text stays readable (WCAG AA). */
  --text-3: #82858d;
  --accent: #4ade80;
  --accent-hover: #6ee79a;
  --accent-ink: #062812;
  --accent-soft: rgba(74, 222, 128, .1);
  --warn: #f5a524;
  --warn-soft: rgba(245, 165, 36, .1);
  --danger: #f2555a;
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 14px/1.5 var(--font);
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
}
body.has-dialog { overflow: hidden; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
code, .mono { font-family: var(--mono); font-size: 12.5px; }
.muted { color: var(--text-3); font-weight: 400; }
.small { font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--text); color: var(--bg); font-weight: 600; }
.skip-link:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: rgba(74, 222, 128, .28); color: var(--text); }
.icon { width: 16px; height: 16px; flex: none; }
.num { font-variant-numeric: tabular-nums; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 14px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font: 500 13.5px/1 var(--font); color: var(--text); text-decoration: none; white-space: nowrap;
  background: none; cursor: pointer;
  transition: background-color .12s, border-color .12s, color .12s, transform .08s;
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.is-loading .icon { animation: spin .8s linear infinite; }
.btn-primary { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn-secondary { background: var(--panel-raised); border-color: var(--border-strong); }
.btn-secondary:hover:not(:disabled) { background: #1e2025; border-color: #3b3e46; }
.btn-ghost { color: var(--text-2); }
.btn-ghost:hover:not(:disabled) { color: var(--text); background: var(--panel-raised); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
.btn-lg { height: 44px; font-size: 14.5px; }
.btn-block { width: 100%; }
.btn .icon { width: 14px; height: 14px; }
.btn[hidden] { display: none; }
.icon-btn { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 6px; background: none; color: var(--text-3); cursor: pointer; text-decoration: none; }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:hover { color: var(--text); background: var(--panel-raised); }
.icon-btn.sm { width: 24px; height: 24px; }
.icon-btn.sm svg, .icon-btn.sm .icon { width: 13px; height: 13px; }
.icon-btn.xs { width: 20px; height: 20px; border-radius: 5px; }
.icon-btn.xs svg, .icon-btn.xs .icon { width: 12px; height: 12px; }
.is-copied { color: var(--accent) !important; }

.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px;
  border: 1px solid var(--border-strong); border-radius: 6px;
  color: var(--text-2); font-size: 11.5px; font-weight: 500; white-space: nowrap;
}
.badge-live { color: var(--accent); border-color: rgba(74, 222, 128, .35); background: var(--accent-soft); }
.badge-warn { color: var(--warn); border-color: rgba(245, 165, 36, .35); background: var(--warn-soft); }
.badge-button { background: none; font-family: var(--font); cursor: pointer; transition: color .12s, border-color .12s; }
.badge-button:hover { color: var(--text); border-color: #3b3e46; }
.badge-button .icon { width: 12px; height: 12px; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(11, 12, 14, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.topbar-inner { display: flex; align-items: center; gap: 28px; max-width: 1180px; height: 56px; margin: 0 auto; padding: 0 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; letter-spacing: -.01em; text-decoration: none; }
.brand-mark { width: 26px; height: 18px; color: var(--text); }
.tabs { display: flex; gap: 2px; }
.tabs a { padding: 6px 10px; border-radius: 6px; color: var(--text-2); text-decoration: none; font-weight: 500; }
.tabs a:hover { color: var(--text); background: var(--panel-raised); }
.tabs a[aria-current="page"] { color: var(--text); background: var(--panel-raised); }
.topbar-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.wallet-button { gap: 8px; }
.wallet-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.wallet-button.is-connected .wallet-dot, .wallet-connected .wallet-dot { background: var(--accent); }
.wallet-button.is-connected #wallet-label { font-family: var(--mono); font-size: 12.5px; }

/* Page */
.page { max-width: 1180px; margin: 0 auto; padding: 32px 24px 64px; }
.page:focus, .view h1:focus { outline: none; }
/* Pages: src/boot.js and the router set html[data-page]; without script the home page shows. */
.view { display: none; }
html:not([data-page]) .view-home,
html[data-page="home"] .view-home,
html[data-page="launch"] .view-launch,
html[data-page="coins"] .view-coins,
html[data-page="coin"] .view-coin,
html[data-page="notfound"] .view-notfound { display: block; }
html[data-page] .view { animation: view-in .22s ease-out; }
@keyframes view-in { from { opacity: 0; transform: translateY(4px); } }
.page-head { margin-bottom: 24px; }
.page-head h1 { font-size: 22px; font-weight: 600; letter-spacing: -.015em; }
.page-head p { margin-top: 4px; color: var(--text-2); }
.page-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); }
.form-panel { min-width: 0; }
.section { display: grid; gap: 14px; padding: 22px 24px; }
.section + .section { border-top: 1px solid var(--border); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-head h2, .preview-head h2, .status-panel h2 { font-size: 14px; font-weight: 600; }
.section-head h2 { display: flex; align-items: center; gap: 10px; }
/* Launch form steps, numbered as on the home page; each turns into a check once filled in. */
.step-mark { display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; border: 1px solid var(--border-strong); border-radius: 50%; color: var(--text-2); font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; transition: background-color .15s, border-color .15s, color .15s; }
.step-mark.is-done { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.step-mark .icon { width: 12px; height: 12px; stroke-width: 2.6; }
.section-desc { color: var(--text-2); margin-top: -6px; }

/* Fields */
.field { display: grid; gap: 6px; min-width: 0; }
.label { font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.label-row { display: flex; justify-content: space-between; align-items: baseline; }
.counter { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.hint { font-size: 12.5px; color: var(--text-3); }
.error { font-size: 12.5px; color: var(--danger); }
.error:empty, .hint:empty { display: none; }
input, textarea {
  width: 100%; height: 38px; padding: 0 12px;
  background: var(--input); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font: 400 14px/1.4 var(--font);
  transition: border-color .12s, box-shadow .12s;
}
textarea { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #5e616a; }
input:hover, textarea:hover { border-color: #3b3e46; }
input:focus, textarea:focus { outline: none; border-color: rgba(74, 222, 128, .6); box-shadow: 0 0 0 3px rgba(74, 222, 128, .12); }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.mono-input { font-family: var(--mono); font-size: 13px; }
.file-picker { position: relative; display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 5px 7px; background: var(--input); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); }
.file-picker .file-picker-input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.file-picker-input:focus-visible + .file-picker-button { border-color: rgba(74, 222, 128, .6); box-shadow: 0 0 0 3px rgba(74, 222, 128, .12); }
.file-picker-name { min-width: 0; overflow: hidden; font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.token-grid { display: grid; grid-template-columns: 104px 1fr; gap: 16px; align-items: start; }
.token-fields { display: grid; gap: 12px; }
.image-upload { position: relative; display: grid; place-items: center; width: 104px; height: 104px; border: 1px dashed var(--border-strong); border-radius: var(--radius); background: var(--input); cursor: pointer; overflow: hidden; transition: border-color .12s; }
.image-upload:hover, .image-upload.is-drag { border-color: var(--text-3); }
.image-upload input { position: absolute; inset: 0; height: auto; opacity: 0; cursor: pointer; }
.image-preview { position: absolute; inset: 0; pointer-events: none; }
.image-preview img { width: 100%; height: 100%; object-fit: cover; }
.image-empty { display: grid; justify-items: center; gap: 4px; color: var(--text-3); font-size: 12px; pointer-events: none; }
.image-empty svg { width: 20px; height: 20px; }
.image-upload.has-image { border-style: solid; }
.image-upload.has-image .image-empty { visibility: hidden; }
.image-upload:focus-within { border-color: rgba(74, 222, 128, .6); box-shadow: 0 0 0 3px rgba(74, 222, 128, .12); }
.image-upload.has-image::after { content: 'Change'; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12.5px; font-weight: 500; opacity: 0; transition: opacity .12s; pointer-events: none; }
.image-upload.has-image:hover::after, .image-upload.has-image:focus-within::after { opacity: 1; }
.links summary { width: fit-content; color: var(--text-2); font-weight: 500; cursor: pointer; list-style: none; }
.links summary::-webkit-details-marker { display: none; }
.links summary::before { content: '+'; display: inline-block; width: 14px; color: var(--text-3); }
.links[open] summary::before { content: '−'; }
.links-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }

/* Custom pair */
.ca-form { display: flex; gap: 8px; }
.ca-form input { flex: 1; }
.lookup-state { display: flex; align-items: center; gap: 10px; color: var(--text-2); padding: 2px 0; }
.token-card { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--panel-raised); }
.token-card-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.token-card-head .token-id { min-width: 0; flex: 1; }
.token-name { font-weight: 600; }
.token-sub { display: flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 12.5px; }
.token-sub code { color: var(--text-2); }
.token-facts { display: grid; grid-template-columns: repeat(4, 1fr); }
.token-facts > div { padding: 10px 14px; border-right: 1px solid var(--border); min-width: 0; }
.token-facts > div:last-child { border-right: 0; }
.token-facts dt { font-size: 11.5px; color: var(--text-3); }
.token-facts dd { margin: 2px 0 0; font-size: 13px; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.token-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 8px 8px 14px; border-top: 1px solid var(--border); }
.token-card-foot .source { font-size: 12px; color: var(--text-3); }
.token-card-foot .actions { display: flex; gap: 2px; }
.token-card .warning { padding: 8px 14px; border-top: 1px solid var(--border); color: var(--warn); font-size: 12.5px; }
.manual { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--panel-raised); }
.manual[hidden] { display: none; }
.manual-intro { color: var(--text-2); }
.manual-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-wide { grid-column: 1 / -1; }
.manual-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* Token icons */
.disc { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: #24262b; color: var(--text-2); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.disc img { width: 100%; height: 100%; object-fit: cover; }
.disc-sm { width: 24px; height: 24px; font-size: 9.5px; }
.disc-lg { width: 40px; height: 40px; }
.disc-xl { width: 72px; height: 72px; font-size: 20px; }

/* Initial buy */
.buy-row { display: flex; gap: 10px; flex-wrap: wrap; }
.input-affix { position: relative; width: 200px; }
.input-affix input { padding-right: 48px; font-variant-numeric: tabular-nums; }
.affix { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-size: 12.5px; font-weight: 500; pointer-events: none; }
.presets { display: flex; gap: 6px; }
.preset { height: 38px; min-width: 52px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: none; color: var(--text-2); font: 500 13px var(--font); font-variant-numeric: tabular-nums; cursor: pointer; }
.preset:hover { color: var(--text); border-color: #3b3e46; }
.preset.is-active { color: var(--text); border-color: var(--text-3); background: var(--panel-raised); }
#buy-quote strong { color: var(--text); font-weight: 500; }

/* Rows (definition lists) */
.rows { display: grid; margin: 0; }
.rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; font-size: 13px; }
.rows > div + div { border-top: 1px solid var(--border); }
.rows dt { color: var(--text-3); flex: none; }
.rows dd { margin: 0; text-align: right; min-width: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.rows dd .muted { font-size: 12px; }
.footnote { font-size: 12px; color: var(--text-3); }
.footnote:empty { display: none; }

.section-submit { gap: 12px; }
.readiness { font-size: 12.5px; color: var(--text-3); text-align: center; }
.readiness:empty { display: none; }
.launch-status { font-size: 13px; text-align: center; }
.launch-status:empty { display: none; }
.launch-status[data-kind="pending"] { color: var(--text-2); }
.launch-status[data-kind="error"] { color: var(--danger); }
.launch-status[data-kind="success"] { color: var(--accent); }

.alert { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 13px; }
.alert > div { display: grid; gap: 2px; }
.alert span { color: var(--text-2); }
.alert[hidden] { display: none; }
.alert-warn { border: 1px solid rgba(245, 165, 36, .3); background: var(--warn-soft); }
.alert-warn .icon { color: var(--warn); margin-top: 1px; }

.spinner { display: inline-block; width: 14px; height: 14px; flex: none; border: 2px solid var(--border-strong); border-top-color: var(--text-2); border-radius: 50%; animation: spin .7s linear infinite; }
.spinner-xs { width: 10px; height: 10px; border-width: 1.5px; }
.btn-primary .spinner { border-color: rgba(6, 40, 18, .25); border-top-color: var(--accent-ink); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2s; } }

/* Result */
.result { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--panel-raised); }
.result-head { display: flex; align-items: center; gap: 10px; padding: 14px; border-bottom: 1px solid var(--border); }
.result-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); flex: none; }
.result-icon .icon { width: 15px; height: 15px; }
.result.is-pending .result-icon { background: var(--warn-soft); color: var(--warn); }
.result-head h3 { font-size: 14px; font-weight: 600; }
.result-head p { font-size: 12.5px; color: var(--text-3); }
.result .rows { padding: 4px 14px; }
.result-note { padding: 0 14px 12px; font-size: 12px; color: var(--text-3); }
.result-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--border); }
.result-actions-end { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.result-pair { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--text-2); }
.result-pair strong { color: var(--text); font-weight: 500; }

/* Pair card */
.side { position: sticky; top: 76px; display: grid; gap: 12px; }
.preview { display: grid; gap: 14px; padding: 18px; }
.preview-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.segmented { display: inline-flex; padding: 2px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--input); }
.segmented button { height: 26px; padding: 0 10px; border: 0; border-radius: 6px; background: none; color: var(--text-3); font: 500 12.5px var(--font); cursor: pointer; }
.segmented button:hover { color: var(--text-2); }
.segmented button[aria-selected="true"] { background: var(--panel-raised); color: var(--text); box-shadow: 0 0 0 1px var(--border-strong); }
.pair-header { display: flex; align-items: center; gap: 14px; }
.pair-icons { display: flex; flex: none; }
.pair-icon .disc { width: 44px; height: 44px; font-size: 13px; box-shadow: 0 0 0 3px var(--panel); }
.pair-icon-quote { margin-left: -12px; }
.pair-title { min-width: 0; }
.pair-label { font-size: 20px; font-weight: 600; letter-spacing: -.01em; overflow-wrap: anywhere; }
.pair-label .sep { color: var(--text-3); font-weight: 400; margin: 0 2px; }
.pair-label .placeholder { color: #3d4047; }
.pair-icon .disc-placeholder { background: var(--panel); border: 1.5px dashed var(--border-strong); }
.pair-names:empty { display: none; }
.pair-names { font-size: 12.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview > .badge { justify-self: start; }
.preview .btn-ghost { justify-self: start; margin-left: -10px; }
.status-panel { padding: 16px 18px; display: grid; gap: 12px; }
.status-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.status-row { display: grid; grid-template-columns: 16px 1fr; gap: 10px; align-items: start; font-size: 13px; }
.status-row > div { display: grid; gap: 1px; }
.status-row span:not(.status-mark) { color: var(--text-3); font-size: 12.5px; }
.status-mark { width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; border: 1.5px solid var(--border-strong); display: grid; place-items: center; }
.status-mark .icon { width: 10px; height: 10px; }
.is-done .status-mark { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.is-pending .status-mark { border-color: var(--text-3); border-top-color: transparent; animation: spin .8s linear infinite; }
.is-attention .status-mark { border-color: var(--warn); }
.is-info .status-mark { border-color: var(--text-3); border-style: dashed; }

/* Home */
.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; padding: 32px 0 24px; }
/* A faint grid that fades out around the pair card. Kept inside the page width, so it never scrolls sideways. */
.hero::before {
  content: ''; position: absolute; z-index: -1; inset: -32px 0 -24px; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 48px 48px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 55% 65% at 72% 42%, #000 5%, transparent 72%);
  mask-image: radial-gradient(ellipse 55% 65% at 72% 42%, #000 5%, transparent 72%);
}
.hero-copy { display: grid; gap: 20px; justify-items: start; }
.hero h1 { font-size: 44px; line-height: 1.08; font-weight: 600; letter-spacing: -.03em; text-wrap: balance; }
.lead { max-width: 58ch; color: var(--text-2); font-size: 16px; line-height: 1.6; }
.lead strong { color: var(--text); font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; color: var(--text-3); font-size: 13px; }
.hero-points li { display: inline-flex; align-items: center; gap: 6px; }
.hero-points .icon { width: 14px; height: 14px; color: var(--accent); }
.pair-demo { display: grid; gap: 12px; margin: 0; padding: 20px; box-shadow: 0 40px 80px -48px rgba(74, 222, 128, .28); }
.pair-demo-caption { font-size: 12.5px; font-weight: 500; color: var(--text-3); }
.pair-demo-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px; border: 1px solid rgba(74, 222, 128, .28); border-radius: var(--radius-sm); background: var(--panel-raised); }
.pair-demo-row + .pair-demo-row { border: 1px solid var(--border-strong); background: none; }
.pair-demo-row + .pair-demo-row.is-live { border-color: rgba(74, 222, 128, .28); background: var(--panel-raised); }
.pair-demo-row .disc { width: 36px; height: 36px; box-shadow: 0 0 0 3px var(--panel-raised); }
.pair-demo-row + .pair-demo-row .disc { box-shadow: 0 0 0 3px var(--panel); }
.pair-demo-row .disc + .disc { margin-left: -10px; }
.pair-demo-text { display: grid; gap: 2px; }
.pair-demo-text strong { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.pair-demo-text span { color: var(--text-3); font-size: 12.5px; }
.pair-demo-note { color: var(--text-3); font-size: 12.5px; }
.demo-coin { background: linear-gradient(135deg, #4ade80, #166534); color: var(--accent-ink); }
.demo-quote { background: linear-gradient(135deg, #fbbf24, #ea580c); color: #3b1d06; }

.home-section { margin-top: 64px; }
.section-intro { display: grid; gap: 4px; margin-bottom: 18px; }
.section-intro h2 { font-size: 20px; font-weight: 600; letter-spacing: -.015em; }
.section-intro p { color: var(--text-2); }
.section-intro-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 16px; }
.section-intro-row > div { display: grid; gap: 4px; }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.split-card { display: grid; gap: 16px; align-content: start; padding: 22px; }
.split-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.split-head h3 { font-size: 15px; font-weight: 600; }
.check-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 20px; color: var(--text-2); }
.check-list li::before { content: ''; position: absolute; left: 1px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.check-list code { color: var(--text); font-size: 12px; }
.how-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.how-step { display: grid; gap: 8px; align-content: start; padding: 18px; }
.how-n { color: var(--accent); font-family: var(--mono); font-size: 12px; }
.how-step h3, .trust-item h3 { font-size: 14px; font-weight: 600; }
.how-step p, .trust-item p { color: var(--text-3); font-size: 13px; }
.trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.trust-item { display: grid; gap: 8px; align-content: start; }
.trust-icon { display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 4px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--panel-raised); color: var(--accent); }
.coin-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.coin-grid-empty { grid-column: 1 / -1; }
.coin-card { display: grid; gap: 14px; padding: 16px; text-decoration: none; transition: border-color .12s, background-color .12s, transform .12s; }
.coin-card:hover { border-color: var(--border-strong); background: var(--panel-raised); transform: translateY(-1px); }
.coin-card-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.coin-card-id { flex: 1; min-width: 0; }
.coin-card-id .token-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coin-card-id .token-sub { font-size: 12px; }
.coin-card-link { color: var(--text-3); }
.coin-card:hover .coin-card-link { color: var(--text); }
.coin-card-pairs { display: flex; flex-wrap: wrap; gap: 6px; }
.pair-chip { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border: 1px solid var(--border-strong); border-radius: 6px; color: var(--text-2); font-size: 12px; font-weight: 500; white-space: nowrap; }
.pair-chip.is-live { border: 1px solid rgba(74, 222, 128, .35); background: var(--accent-soft); color: var(--accent); }
.pair-chip .muted { font-size: 11px; }
.faq { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
.faq-item + .faq-item { border-top: 1px solid var(--border); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; font-weight: 500; cursor: pointer; list-style: none; transition: background-color .12s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: rgba(255, 255, 255, .02); }
.faq-item summary:focus-visible { outline-offset: -2px; border-radius: var(--radius); }
.faq-item summary::after { content: ''; flex: none; width: 7px; height: 7px; border-right: 1.5px solid var(--text-3); border-bottom: 1.5px solid var(--text-3); transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.faq-item[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq-item p { max-width: 78ch; padding: 0 20px 18px; color: var(--text-2); }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 64px; padding: 28px; background: radial-gradient(120% 160% at 100% 0%, rgba(74, 222, 128, .09), transparent 60%), var(--panel); }
.cta-band h2 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.cta-band p { margin-top: 2px; color: var(--text-2); }

/* Coins */
.coins-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.search { position: relative; flex: 1; min-width: 220px; max-width: 380px; }
.search .icon { position: absolute; left: 11px; top: 50%; width: 15px; height: 15px; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.search input { padding: 0 36px 0 34px; }
.search kbd { position: absolute; right: 9px; top: 50%; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; transform: translateY(-50%); border: 1px solid var(--border-strong); border-radius: 5px; color: var(--text-3); font: 500 11px var(--mono); pointer-events: none; }
.search input:focus ~ kbd, .search input:not(:placeholder-shown) ~ kbd { display: none; }
@media (hover: none) { .search kbd { display: none; } }

/* Loading placeholders */
.sk { display: block; border-radius: 6px; background: linear-gradient(90deg, #191b1f 0%, #24262b 50%, #191b1f 100%); background-size: 200% 100%; animation: shimmer 1.4s ease-in-out infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.sk-disc { flex: none; width: 36px; height: 36px; border-radius: 50%; }
.sk-line { width: 70%; height: 10px; }
.sk-short { width: 40%; }
.sk-chip { width: 84px; height: 24px; }
.sk-stack { display: grid; flex: 1; gap: 8px; min-width: 0; }
.coin-skeleton { display: grid; gap: 14px; padding: 16px; }
.coin-skeleton > div { display: flex; align-items: center; gap: 12px; }
.coin-skeleton > div + div { gap: 6px; }
.coin-skeleton .sk-disc { width: 40px; height: 40px; }
.launch-skeleton { min-height: 60px; }
.launch-skeleton + .launch-skeleton { border-top: 1px solid var(--border); }
.launches-tools { display: flex; align-items: center; gap: 12px; }
.checkbox { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); font-size: 13px; cursor: pointer; }
.checkbox input { width: 15px; height: 15px; accent-color: var(--accent); }
.table-panel { overflow: hidden; }
.table-head, .launch-row, .launch-skeleton { display: grid; grid-template-columns: minmax(180px, 1.6fr) 1fr 1.2fr 1fr .9fr 72px; gap: 16px; align-items: center; padding: 0 18px; }
.table-head { height: 38px; border-bottom: 1px solid var(--border); color: var(--text-3); font-size: 12px; font-weight: 500; }
.launch-row { min-height: 60px; font-size: 13px; font-variant-numeric: tabular-nums; }
.launch-row + .launch-row { border-top: 1px solid var(--border); }
.launch-row { position: relative; }
.launch-row:hover { background: rgba(255, 255, 255, .025); }
/* The coin name's link covers the row; the copy button, times and external links sit above it. */
.row-link { display: block; text-decoration: none; }
.row-link::after { content: ''; position: absolute; inset: 0; }
.row-link:focus-visible { outline: none; }
.row-link:focus-visible::after { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 4px; }
.launch-row:hover .row-link { color: var(--accent); }
.launch-row .icon-btn, .launch-row time, .launch-row code { position: relative; z-index: 1; }
.cell-token { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cell-token > div { min-width: 0; }
.cell-token .token-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-token .token-sub { gap: 4px; font-size: 12px; }
.cell-token .token-sub code { margin-left: 2px; }
.cell-plain time, .coin-card time { cursor: default; }
.cell-pair { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cell-pair .muted { font-size: 12px; }
.cell-links { display: flex; justify-content: flex-end; gap: 2px; }
.cell-label { display: none; }
.empty { display: grid; justify-items: center; gap: 12px; padding: 36px 18px; text-align: center; color: var(--text-3); }

/* A coin's page */
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 20px; color: var(--text-2); font-weight: 500; text-decoration: none; }
.back-link:hover { color: var(--text); }
.back-link .icon { width: 15px; height: 15px; }
.coin-page { display: grid; gap: 20px; }
.coin-head { display: flex; align-items: center; gap: 18px; }
.coin-id { display: grid; flex: 1; gap: 6px; min-width: 0; }
.coin-id h1 { font-size: 28px; font-weight: 600; letter-spacing: -.02em; overflow-wrap: anywhere; }
.coin-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--text-3); font-size: 13px; }
.coin-symbol { color: var(--text-2); font-family: var(--mono); font-size: 13px; font-weight: 500; }
.coin-sub .badge .icon { width: 12px; height: 12px; }
.coin-trade { flex: none; }
.coin-about { display: grid; gap: 12px; max-width: 72ch; }
.coin-about .sk-line { width: 90%; }
.coin-description { color: var(--text-2); font-size: 15px; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.link-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.link-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border: 1px solid var(--border-strong); border-radius: 999px; color: var(--text-2); font-size: 12.5px; font-weight: 500; text-decoration: none; transition: color .12s, border-color .12s; }
.link-chip:hover { border-color: #3b3e46; color: var(--text); }
.link-chip .icon { width: 13px; height: 13px; }
.coin-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.coin-main, .coin-side { display: grid; gap: 16px; }
.coin-panel { display: grid; gap: 12px; padding: 18px 20px; }
.coin-panel h2 { font-size: 14px; font-weight: 600; }
.coin-panel .pair-demo-row { padding: 12px 14px; }
.pool-facts { padding: 0 14px; }
.pool-facts dd { display: inline-flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 4px; }
.pool-facts .inline-link { display: inline-flex; align-items: center; gap: 4px; }
.pool-facts .inline-link .icon { width: 12px; height: 12px; }
.coin-note { color: var(--text-3); font-size: 13px; }
.coin-facts dd { display: inline-flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 4px; }
.inline-link { color: var(--text); text-decoration: none; }
.inline-link:hover code, .inline-link:hover { color: var(--accent); }
.share-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.share-actions .btn { width: 100%; }
.share-url { overflow: hidden; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--input); color: var(--text-3); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.sk-disc-xl { width: 72px; height: 72px; }
.sk-title { width: 240px; max-width: 70%; height: 22px; }
.coin-panel-skeleton { min-height: 160px; }

/* Not found */
.notfound { display: grid; justify-items: center; gap: 14px; max-width: 480px; margin: 0 auto; padding: 96px 0 72px; text-align: center; }
.notfound-mark { width: 56px; height: 40px; margin-bottom: 6px; color: var(--text-3); }
.notfound h1 { font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
.notfound p { color: var(--text-2); }
.notfound .hero-actions { justify-content: center; margin-top: 6px; }

/* Footer */
.footer { display: grid; gap: 10px; max-width: 1180px; margin: 0 auto; padding: 28px 24px 36px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 12px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 20px 32px; margin-bottom: 8px; }
.footer-brand { display: grid; gap: 8px; }
.footer-brand p { font-size: 13px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-nav a { color: var(--text-2); font-size: 13px; font-weight: 500; text-decoration: none; }
.footer-nav a:hover { color: var(--text); }
.footer-note { max-width: 100ch; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; display: flex; align-items: center; gap: 8px; max-width: calc(100vw - 32px); padding: 10px 14px; border: 1px solid var(--border-strong); border-radius: 10px; background: #1b1d21; color: var(--text); font-size: 13px; font-weight: 500; box-shadow: 0 12px 32px rgba(0, 0, 0, .5); opacity: 0; transform: translate(-50%, 10px); transition: opacity .16s, transform .16s; pointer-events: none; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast[data-kind="success"]::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.toast[data-kind="error"] { border-color: rgba(242, 85, 90, .45); }

/* Modals */
.modal { width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--border-strong); border-radius: 14px; background: var(--panel); color: var(--text); box-shadow: 0 24px 64px rgba(0, 0, 0, .55); }
.modal-wide { width: min(520px, calc(100vw - 32px)); }
.modal::backdrop { background: rgba(0, 0, 0, .6); backdrop-filter: blur(2px); }
.modal[open] { animation: modal-in .18s ease-out; }
.modal[open]::backdrop { animation: fade-in .18s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(6px) scale(.985); } }
@keyframes fade-in { from { opacity: 0; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.modal-head h2 { font-size: 15px; font-weight: 600; }
.modal-head p { font-size: 12.5px; color: var(--text-3); margin-top: 1px; }
.modal-body { display: grid; gap: 14px; padding: 16px 18px; }
.modal-foot { padding: 0 18px 16px; font-size: 12px; color: var(--text-3); }
.modal .error { padding: 0 18px 14px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--border); }
.wallet-list { display: grid; gap: 6px; padding: 14px 18px; }
.wallet-option { display: flex; align-items: center; gap: 12px; width: 100%; height: 48px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--panel-raised); color: var(--text); font: 500 14px var(--font); text-align: left; cursor: pointer; }
.wallet-option:hover:not(:disabled) { border-color: var(--border-strong); background: #1c1e22; }
.wallet-option img { width: 26px; height: 26px; border-radius: 6px; }
.wallet-option .spinner { margin-left: auto; }
.wallet-connected { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--panel-raised); }
.wallet-connected > div { display: grid; min-width: 0; }
.wallet-connected code { overflow-wrap: anywhere; color: var(--text-2); }
.review-token { display: flex; align-items: center; gap: 12px; }
.review-token strong { display: block; font-size: 15px; }
.review-token span { color: var(--text-3); font-size: 12.5px; }
.review-block h3 { font-size: 12px; font-weight: 500; color: var(--text-3); margin-bottom: 6px; }
.steps { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.steps li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; padding: 9px 12px; font-size: 13px; }
.steps li + li { border-top: 1px solid var(--border); }
.steps .step-n { color: var(--text-3); font-variant-numeric: tabular-nums; }
.steps li span:not(.step-n) { display: block; color: var(--text-3); font-size: 12px; }
.sim { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--text-2); }
.sim .icon { color: var(--accent); margin-top: 1px; }

/* Responsive */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 8px; }
  .hero h1 { font-size: 36px; }
  .how-grid, .trust-grid, .coin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layout, .coin-layout { grid-template-columns: 1fr; }
  /* Pair card above the form, pairing status below it. */
  .side { display: contents; }
  .preview { order: -1; }
  .status-panel { order: 1; }
  .table-head { display: none; }
  .launch-row, .launch-skeleton { grid-template-columns: 1fr 1fr; gap: 8px 16px; padding: 14px 18px; }
  .cell-token { grid-column: 1 / -1; }
  .cell-links { grid-column: 1 / -1; justify-content: flex-start; }
  .cell-label { display: block; font-size: 11.5px; color: var(--text-3); }
  .cell-pair, .cell-plain { display: grid; gap: 2px; }
}
@media (max-width: 680px) {
  html { scroll-padding-top: 112px; }
  /* The page tabs move to a second row under the brand and wallet. */
  .topbar-inner { flex-wrap: wrap; row-gap: 4px; height: auto; padding: 10px 16px 6px; }
  .tabs { order: 3; width: calc(100% + 20px); margin: 0 -10px; }
  .page { padding: 24px 16px 48px; }
  .hero h1 { font-size: 30px; }
  .lead { font-size: 15px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; }
  .pair-demo { padding: 16px; }
  .pair-demo-row { grid-template-columns: auto minmax(0, 1fr); }
  .pair-demo-row .badge { grid-column: 2; justify-self: start; }
  .home-section, .cta-band { margin-top: 48px; }
  .split-grid, .how-grid, .trust-grid, .coin-grid { grid-template-columns: 1fr; }
  .trust-grid { gap: 22px; }
  .cta-band { flex-direction: column; align-items: stretch; padding: 22px 18px; }
  .page-head-row { flex-direction: column; align-items: flex-start; }
  .search { flex-basis: 100%; max-width: none; }
  .launches-tools { flex: 1; justify-content: flex-end; }
  .coin-head { flex-wrap: wrap; gap: 14px; }
  .coin-head .disc-xl, .coin-head .sk-disc-xl { width: 56px; height: 56px; font-size: 16px; }
  .coin-id h1 { font-size: 24px; }
  .coin-trade { width: 100%; }
  .coin-panel { padding: 16px; }
  #coin-count { margin-right: auto; }
  .notfound { padding: 56px 0 40px; }
  .notfound .hero-actions { width: auto; }
  .faq-item summary { padding: 14px 16px; }
  .faq-item p { padding: 0 16px 16px; }
  .section { padding: 18px 16px; }
  .token-grid { grid-template-columns: 84px 1fr; gap: 12px; }
  .image-upload { width: 84px; height: 84px; }
  .links-grid, .manual-grid { grid-template-columns: 1fr; }
  .token-facts { grid-template-columns: 1fr 1fr; }
  .token-facts > div:nth-child(2) { border-right: 0; }
  .token-facts > div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .input-affix { width: 100%; }
  .presets { width: 100%; }
  .preset { flex: 1; }
  .footer { padding: 24px 16px 28px; }
}

/* Motion is decoration here; spinners keep turning because they report progress. */
@media (prefers-reduced-motion: reduce) {
  html[data-page] .view, .modal[open], .modal[open]::backdrop, .sk { animation: none; }
  .toast, .coin-card, .btn, .step-mark, .faq-item summary::after { transition: none; }
  .coin-card:hover, .btn:active:not(:disabled) { transform: none; }
}

/* ---- Effects --------------------------------------------------------------------------------- */
/* Light and motion layered on the layout above. src/effects.js adds the scroll reveals, the pointer
   glow on cards, the hero's cycling pair and the launch confetti. Reduced motion turns it all off
   at the end of this section. */

@property --beam { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes pop { from { transform: scale(.55); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); } 70%, 100% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); } }
@keyframes beam { to { --beam: 360deg; } }

/* A slow green glow behind the top of every page. */
body::before {
  content: ''; position: fixed; z-index: -1; inset: 0 0 auto; height: 100vh; pointer-events: none;
  background: radial-gradient(38% 46% at 74% 22%, rgba(74, 222, 128, .09), transparent 70%), radial-gradient(28% 34% at 16% 6%, rgba(74, 222, 128, .05), transparent 70%);
  animation: aurora 20s ease-in-out infinite alternate;
}
@keyframes aurora { to { transform: translate3d(-4vw, 3vh, 0); } }

/* Top bar: deeper glass once the page scrolls; the logo's two coins nudge together on hover. */
.topbar { transition: background-color .25s, box-shadow .25s; }
.topbar.is-scrolled { background: rgba(11, 12, 14, .95); box-shadow: 0 12px 32px -16px rgba(0, 0, 0, .8); }
.brand-mark circle { transform-box: fill-box; transform-origin: center; transition: transform .45s cubic-bezier(.3, 1.5, .5, 1); }
.brand:hover .brand-mark circle:first-child { transform: translateX(2px); }
.brand:hover .brand-mark circle:last-child { transform: translateX(-3px) rotate(90deg); }
.tabs a { transition: color .15s, background-color .15s; }
.wallet-button.is-connected .wallet-dot { animation: ping 2.4s ease-out infinite; }

/* Primary buttons catch a sweep of light and glow on hover; the launch button breathes once ready. */
.btn-primary { position: relative; isolation: isolate; overflow: hidden; transition: background-color .15s, box-shadow .25s, transform .08s; }
.btn-primary::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .5) 50%, transparent 65%); transform: translateX(-110%); transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.btn-primary:hover:not(:disabled)::after { transform: translateX(110%); }
.btn-primary:hover:not(:disabled) { box-shadow: 0 10px 28px -10px rgba(74, 222, 128, .65); }
#launch-button:not(:disabled) { animation: ready 2.6s ease-in-out infinite; }
@keyframes ready { 50% { box-shadow: 0 0 0 5px rgba(74, 222, 128, .14), 0 12px 30px -12px rgba(74, 222, 128, .7); } }

/* A live dot on what is really on-chain. */
.badge-live:not(:has(.icon))::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: ping 2.4s ease-out infinite; }

/* Hero: the copy rises in, the grid drifts, the key phrase shimmers, the pair card floats. */
.hero-copy > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) backwards; }
.hero-copy > :nth-child(2) { animation-delay: .06s; }
.hero-copy > :nth-child(3) { animation-delay: .12s; }
.hero-copy > :nth-child(4) { animation-delay: .18s; }
.hero-copy > :nth-child(5) { animation-delay: .24s; }
.hero::before { animation: grid-drift 24s linear infinite; }
@keyframes grid-drift { to { background-position: center 48px; } }
.hero-accent { background: linear-gradient(100deg, var(--accent) 0%, #d1fae5 30%, var(--accent) 55%, #86efac 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 7s ease-in-out infinite; }
@keyframes sheen { 50% { background-position: 100% 0; } }
.pair-demo { position: relative; isolation: isolate; animation: rise .8s .2s cubic-bezier(.2, .7, .2, 1) backwards, float 7s 1.2s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px); } }

/* A light that runs round the border of the hero card, the closing call to action and a complete
   pair in the launch preview. */
.cta-band, .preview { position: relative; isolation: isolate; }
.pair-demo::before, .cta-band::before, .preview.is-paired::before {
  content: ''; position: absolute; inset: -1px; z-index: -1; padding: 1px; border-radius: inherit; pointer-events: none;
  background: conic-gradient(from var(--beam), transparent 0 60%, rgba(74, 222, 128, .15) 72%, rgba(134, 239, 172, .95) 84%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: beam 6s linear infinite;
}
.cta-band::before { animation-duration: 9s; }

/* The hero's custom pair row cycles through tokens; hovering a row lets its two coins breathe apart. */
.pair-demo-row .disc + .disc { transition: margin-left .35s cubic-bezier(.3, 1.5, .5, 1); }
.pair-demo-row:hover .disc + .disc { margin-left: -3px; }
/* Part of the pair label, not the row's grey subtitle span. */
.pair-demo-text .cycle-symbol { display: inline-block; color: inherit; font-size: inherit; }
.pair-demo-row.is-swapping .demo-quote, .pair-demo-row.is-swapping .cycle-symbol { animation: swap .34s ease-in-out; }
@keyframes swap { 50% { opacity: 0; transform: translateY(-5px) scale(.9); } }
/* The cycling logo covers the token's initials once it loads. */
.demo-quote { position: relative; }
.demo-quote img { position: absolute; inset: 0; }
.demo-quote[data-token="WIF"] { background: linear-gradient(135deg, #fbcfe8, #db2777); color: #4a0420; }
.demo-quote[data-token="JUP"] { background: linear-gradient(135deg, #a7f3d0, #0d9488); color: #042f2e; }
.demo-quote[data-token="POPCAT"] { background: linear-gradient(135deg, #e5e7eb, #6b7280); color: #111827; }

/* Cards: a soft glow follows the pointer (its position comes from src/effects.js). */
.how-step, .split-card, .coin-card, .coin-panel { position: relative; isolation: isolate; }
.how-step::after, .split-card::after, .coin-card::after, .coin-panel::after {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(74, 222, 128, .09), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.how-step:hover::after, .split-card:hover::after, .coin-card:hover::after, .coin-panel:hover::after { opacity: 1; }
.how-step:hover, .split-card:hover { border-color: var(--border-strong); }
.coin-card:hover { box-shadow: 0 18px 40px -24px rgba(74, 222, 128, .45); }
.coin-card { animation: rise .5s cubic-bezier(.2, .7, .2, 1) backwards; }
.coin-card:nth-child(2) { animation-delay: .06s; }
.coin-card:nth-child(3) { animation-delay: .12s; }
.coin-card:nth-child(4) { animation-delay: .18s; }

/* How it works: each step lights its top edge in turn as it arrives. */
.how-step::before { content: ''; position: absolute; top: -1px; left: 20px; right: 20px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0; transform: scaleX(.3); transition: opacity .8s, transform 1s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 140ms + .3s); }
.how-step.is-in::before { opacity: .85; transform: none; }
.how-n { transition: text-shadow .6s calc(var(--i, 0) * 140ms + .3s); }
.how-step.is-in .how-n { text-shadow: 0 0 14px rgba(74, 222, 128, .7); }

/* Trust icons tilt up and glow on hover. */
.trust-icon { transition: transform .4s cubic-bezier(.3, 1.5, .5, 1), border-color .2s, box-shadow .3s; }
.trust-item:hover .trust-icon { transform: translateY(-2px) rotate(-6deg); border-color: rgba(74, 222, 128, .5); box-shadow: 0 8px 22px -8px rgba(74, 222, 128, .6); }

/* Sections ease in as they scroll into view (src/effects.js adds these classes). */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 80ms); }
.reveal.is-in { opacity: 1; transform: none; }

/* How many coins are listed, next to "Recently launched". */
.count-pill { display: inline-flex; align-items: center; height: 22px; margin-left: 8px; padding: 0 9px; border: 1px solid rgba(74, 222, 128, .35); border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: 0; vertical-align: 3px; }
.count-pill[hidden] { display: none; }

/* Questions open and close smoothly where the browser can animate to auto height. */
.faq-item { transition: background-color .2s; }
.faq-item[open] { background: rgba(255, 255, 255, .018); }
.faq-item[open] summary::after { border-color: var(--accent); }
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq-item::details-content { height: 0; overflow: clip; transition: height .3s cubic-bezier(.2, .7, .2, 1), content-visibility .3s allow-discrete; }
  .faq-item[open]::details-content { height: auto; }
}

/* Launch form: marks pop into checks, the image lands, the pair snaps together and glows. */
.step-mark { position: relative; }
.step-mark.is-done { animation: pop .5s cubic-bezier(.3, 1.6, .5, 1); }
.step-mark.is-done::after { content: ''; position: absolute; inset: -1px; border: 2px solid var(--accent); border-radius: 50%; opacity: 0; animation: ring .7s ease-out; pointer-events: none; }
@keyframes ring { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(2); } }
.image-preview img { animation: land .5s cubic-bezier(.2, .8, .2, 1); }
@keyframes land { from { opacity: 0; transform: scale(1.18); } }
.image-upload { transition: border-color .15s, box-shadow .2s; }
.image-upload:hover { box-shadow: 0 0 0 4px rgba(74, 222, 128, .06); }
.pair-icon .disc { animation: pop .45s cubic-bezier(.3, 1.5, .5, 1) backwards; }
.pair-icon-quote .disc { animation-name: slide-in; }
.pair-icon .disc-placeholder { animation: none; }
@keyframes slide-in { from { opacity: 0; transform: translateX(18px) scale(.7); } }
#pair-label.is-flash { animation: flash .7s ease-out; }
@keyframes flash { from { color: #d9fbe5; text-shadow: 0 0 20px rgba(74, 222, 128, .8); } }
.preview { transition: box-shadow .5s; }
.preview.is-paired { box-shadow: 0 30px 70px -45px rgba(74, 222, 128, .55); }
.preset { transition: color .15s, border-color .15s, background-color .15s, box-shadow .2s; }
.preset.is-active { border-color: rgba(74, 222, 128, .55); background: var(--accent-soft); color: var(--accent); box-shadow: 0 0 0 3px rgba(74, 222, 128, .07); }

/* Coins table: a green edge marks the row under the pointer. */
.launch-row::before { content: ''; position: absolute; top: 12px; bottom: 12px; left: 0; width: 2px; border-radius: 2px; background: var(--accent); transform: scaleY(0); transition: transform .2s cubic-bezier(.2, .7, .2, 1); }
.launch-row:hover::before { transform: scaleY(1); }

/* Toasts spring up, dialogs pop in. */
.toast { transform: translate(-50%, 14px) scale(.96); transition: opacity .2s, transform .4s cubic-bezier(.3, 1.4, .5, 1); }
.toast.is-visible { transform: translate(-50%, 0) scale(1); }
.modal[open] { animation: modal-pop .3s cubic-bezier(.3, 1.3, .5, 1); }
@keyframes modal-pop { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.modal::backdrop { backdrop-filter: blur(4px); }

/* Confetti for a listed launch (src/effects.js). */
.confetti { position: fixed; inset: 0; z-index: 80; overflow: hidden; pointer-events: none; }
.confetti span { position: absolute; top: 0; left: 0; border-radius: 2px; will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  body::before, .hero::before, .hero-copy > *, .hero-accent, .pair-demo, .badge-live::before, .wallet-dot, #launch-button,
  .step-mark.is-done, .step-mark.is-done::after, .coin-card, .pair-icon .disc, .image-preview img, #pair-label.is-flash, .modal[open] { animation: none; }
  .pair-demo::before, .cta-band::before, .preview.is-paired::before, .btn-primary::after { display: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .brand-mark circle, .trust-icon, .pair-demo-row .disc + .disc, .toast, .launch-row::before, .how-step::before { transition: none; }
}
