/* ------------------------------------------------------------ home */
.hero { position: relative; overflow-x: clip; text-align: center; padding-block: clamp(48px, 9vw, 110px) clamp(36px, 6vw, 70px); }
.hero h1 { font-size: clamp(44px, 8.2vw, 104px); letter-spacing: -0.055em; line-height: 0.98; max-width: 11ch; margin: 18px auto 0; text-shadow: 0 2px 30px color-mix(in srgb, var(--bg) 80%, transparent); }
.hero h1 em { font-style: normal; background: linear-gradient(95deg, var(--accent), #8a7bff 45%, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: sheen 9s ease-in-out infinite alternate; }
@keyframes sheen { to { background-position: 100% 0; } }
.hero .lede { max-width: 600px; margin: 22px auto 0; font-size: clamp(16px, 1.7vw, 19px); }
.hero .rotor { color: var(--accent); font-weight: 600; }
.hero-ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.live-pill { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--rule); font-size: 12.5px; color: var(--ink-2); box-shadow: var(--shadow-card); }
.live-pill .dot { color: var(--up); }
.floaters { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.floater { position: absolute; width: var(--s, 64px); height: var(--s, 64px); border-radius: 30%; overflow: hidden; opacity: 0.92; filter: blur(var(--blur, 0)); box-shadow: 0 20px 40px -18px rgba(20, 40, 80, 0.35); animation: floaty var(--d, 9s) ease-in-out infinite alternate; }
.floater img, .floater .mono-art { width: 100%; height: 100%; object-fit: cover; }
@keyframes floaty { from { transform: translate3d(0, 0, 0) rotate(-4deg); } to { transform: translate3d(var(--dx, 10px), -26px, 0) rotate(4deg); } }
@media (max-width: 760px) { .floater:nth-child(n + 4) { display: none; } }

.section { margin-top: clamp(56px, 8vw, 110px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.section-head h2 { margin-top: 8px; }
.two-worlds { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.world { position: relative; overflow: hidden; }
.world h3 { font-size: 22px; margin-top: 12px; }
.world .stock-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-n { font: 600 13px var(--font-mono); color: var(--accent); }
.curve-demo svg { width: 100%; height: 190px; overflow: visible; }
@media (max-width: 860px) { .two-worlds, .steps { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ board */
.board-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-block: 22px 18px; }
.filters .search { flex: 1 1 220px; max-width: 340px; }
.filters .select { max-width: 100%; min-width: 0; text-overflow: ellipsis; }

/* ------------------------------------------------------------ coin terminal */
.terminal { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: 20px; align-items: start; }
.terminal .side { position: sticky; top: calc(var(--head-h) + 12px); display: flex; flex-direction: column; gap: 16px; }
.coin-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.coin-head h1 { font-size: clamp(26px, 3.4vw, 38px); }
.price-big { font: 500 clamp(28px, 4vw, 40px) var(--font-mono); letter-spacing: -0.04em; line-height: 1.05; }
.chart-box { height: 380px; margin-top: 12px; }
.ticket-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-2); }
.ticket-tabs button { padding: 9px; border-radius: 999px; font-weight: 700; color: var(--ink-2); }
.ticket-tabs button[aria-selected='true'].buy { background: var(--up); color: #fff; }
.ticket-tabs button[aria-selected='true'].sell { background: var(--down); color: #fff; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; }
.quick button { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--rule); font: 12px var(--font-mono); color: var(--ink-2); background: var(--surface); }
.quick button:hover { border-color: var(--accent); color: var(--accent); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 9px 14px; margin: 0; font-size: 13.5px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; text-align: right; font-family: var(--font-mono); overflow-wrap: anywhere; }
.snipe-banner { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--down-wash); color: var(--down); font-size: 13px; font-weight: 600; }
.ca { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 4px 6px 4px 12px; border-radius: 999px; border: 1px solid var(--rule); background: var(--surface); font: 12px var(--font-mono); }
.ca span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trades-list td:first-child { font-family: var(--font-mono); }
@media (max-width: 1040px) {
  /* One column: both columns' panels interleave, so the order is
     header → ticket → chart → everything else. */
  .terminal { display: flex; flex-direction: column; gap: 18px; }
  .terminal > .main-col, .terminal > .side { display: contents; }
  .terminal > .main-col > *, .terminal > .side > * { order: 3; min-width: 0; max-width: 100%; }
  .terminal > .main-col > :first-child { order: 0; }
  .terminal > .side > :first-child { order: 1; }
  .terminal > .main-col > :nth-child(2) { order: 2; }
  .terminal > .main-col > :nth-child(3) { order: 4; }
}

/* ------------------------------------------------------------ launch */
.launch { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 22px; align-items: start; }
.launch .side { position: sticky; top: calc(var(--head-h) + 12px); display: flex; flex-direction: column; gap: 16px; }
.preview-well { height: 220px; border-radius: var(--r-panel); display: grid; place-items: center; background: radial-gradient(60% 70% at 50% 45%, color-mix(in srgb, var(--hue, var(--accent)) 30%, transparent), transparent 72%), var(--surface); border: 1px solid var(--rule); }
.drop { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--r); border: 1.5px dashed var(--rule-2); cursor: pointer; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-wash); }
.drop img, .drop .ph { width: 64px; height: 64px; border-radius: 18px; object-fit: cover; background: var(--surface-2); display: grid; place-items: center; color: var(--ink-3); }
.asset-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; max-height: 260px; overflow-y: auto; padding: 2px; scrollbar-gutter: stable; }
.asset-picker button { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 12px; border: 1px solid var(--rule); background: var(--surface); font-size: 13px; text-align: left; min-width: 0; }
.asset-picker button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-picker button[aria-pressed='true'] { border-color: var(--accent); background: var(--accent-wash); }
.steps-tx { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.steps-tx li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-3); }
.steps-tx li.active { color: var(--ink); font-weight: 600; }
.steps-tx li.done { color: var(--up); }
@media (max-width: 980px) { .launch { grid-template-columns: minmax(0, 1fr); } .launch .side { position: static; } }

/* ------------------------------------------------------------ docs */
.doc { max-width: 760px; }
.doc h2 { margin: 44px 0 12px; }
.doc h3 { margin: 26px 0 8px; }
.doc p, .doc li { font-size: 16px; line-height: 1.75; color: var(--ink-2); }
.doc p + p { margin-top: 12px; }
.doc code { font: 0.9em var(--font-mono); padding: 1px 6px; border-radius: 6px; background: var(--surface-2); }
.doc table { margin-block: 16px; }
details.faq { border-bottom: 1px solid var(--rule); padding: 16px 0; }
details.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::after { content: '+'; font: 400 22px var(--font-mono); line-height: 1; transition: transform 0.2s; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { margin-top: 10px; }
.checklist { list-style: none; padding: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; }
.checklist li::before { content: '✓'; color: var(--up); font-weight: 700; }
.checklist.no li::before { content: '✗'; color: var(--down); }
.doc table { display: block; overflow-x: auto; }
.doc td { white-space: normal; overflow-wrap: anywhere; vertical-align: top; }
.doc td.m { word-break: break-all; }
.seg.sm button { padding: 4px 11px; font-size: 12.5px; }
.legs { margin-bottom: 4px; }
.legs .micro { margin-bottom: 6px; }
.leg-list { display: flex; flex-wrap: wrap; gap: 8px; }
.leg { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 12px; background: var(--surface-2); font-size: 13px; }
.leg .stock-tile { width: 26px; height: 26px; border-radius: 8px; font-size: 8.5px; }
.stock-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; max-height: 300px; overflow-y: auto; padding: 2px; scrollbar-gutter: stable; }
.stock-picker button { display: flex; align-items: center; gap: 8px; padding: 7px; border-radius: 12px; border: 1px solid var(--rule); background: var(--surface); text-align: left; min-width: 0; font-size: 13px; }
.stock-picker button .meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.stock-picker button .meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stock-picker button[aria-pressed='true'] { border-color: var(--accent); background: var(--accent-wash); }
.stock-picker .stock-tile { width: 30px; height: 30px; font-size: 9px; }
.weights { display: grid; gap: 8px; }
.weight-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 12px; background: var(--surface-2); }
.weight-row .grow { flex: 1; min-width: 0; }
.affix.sm { width: 104px; }
.affix.sm .input { min-height: 38px; }
.basket-list { display: grid; gap: 8px; max-height: 360px; overflow-y: auto; padding: 2px; }
.basket-opt { display: grid; gap: 10px; padding: 12px; border-radius: 14px; border: 1px solid var(--rule); background: var(--surface); text-align: left; }
.basket-opt[aria-checked='true'] { border-color: var(--accent); background: var(--accent-wash); }
.basket-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.basket-card { position: relative; display: grid; gap: 14px; padding: 18px; border-radius: 22px; border: 1px solid var(--rule); background: var(--surface); transition: border-color 0.2s, transform 0.2s; }
.basket-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.basket-card h3 { font-size: 20px; font-family: var(--mono, monospace); }
.basket-card .r { text-align: right; }
.basket-card .comp-dot { width: 34px; height: 34px; flex: none; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linkish { color: var(--accent); font: inherit; padding: 0; background: none; border: 0; cursor: pointer; }
.linkish:hover { text-decoration: underline; }
.basket-card a.cover::after { content: ''; position: absolute; inset: 0; }
.coin-card .pair { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; } .coin-card .pair .comp-dot { width: 12px; height: 12px; }
.code { font: 12px/1.5 var(--font-mono); background: var(--surface-2); border: 1px solid var(--rule); border-radius: 12px; padding: 12px; overflow-x: auto; white-space: pre; }
.affix.sm .input { padding: 0 30px 0 12px; text-align: right; }
.affix.sm > span { right: 12px; }

/* ---------- ZEC (Zcash) — spotlight, hub, pair badges ---------- */
:root { --zec: #f4b728; --zec-deep: #c98f00; --zec-ink: #231a00; --zec-wash: rgba(244, 183, 40, 0.14); }
.zec-badge { display: inline-grid; place-items: center; width: 1.35em; height: 1.35em; border-radius: 50%; background: var(--zec); color: var(--zec-ink); font-weight: 800; font-size: 0.95em; line-height: 1; flex: none; }
.zec-badge.lg { width: 46px; height: 46px; font-size: 28px; box-shadow: 0 10px 26px -12px var(--zec); }
.nav a.nav-zec, .mobile-nav a.nav-zec { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); background: var(--zec-wash); border-radius: 999px; padding-inline: 12px; }
.pill-btn.zec-cta { background: linear-gradient(120deg, var(--zec), var(--zec-deep)); color: var(--zec-ink); border-color: transparent; font-weight: 700; gap: 8px; box-shadow: 0 12px 28px -14px var(--zec); }
.pill-btn.zec-cta .zec-badge { background: var(--zec-ink); color: var(--zec); }
.pill-btn.zec-cta:hover { filter: brightness(1.06); }
.zec-spot { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: clamp(16px, 2.4vw, 28px); padding: clamp(18px, 2.6vw, 30px); border-radius: var(--r-panel); background: radial-gradient(120% 140% at 0% 0%, var(--zec-wash), transparent 55%), var(--surface); border: 1px solid color-mix(in srgb, var(--zec) 38%, var(--rule)); box-shadow: var(--shadow-lift); }
.zec-spot .zec-main { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.zec-head { display: flex; gap: 14px; align-items: flex-start; }
.zec-name { font-family: var(--font-display); font-size: 20px; }
.zec-ticker { font-family: var(--font-mono); font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 8px; background: var(--surface-3); }
.zec-price { font-size: clamp(30px, 4.2vw, 44px); font-weight: 700; letter-spacing: -0.02em; }
.zec-change { font-size: 16px; }
.zec-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.zec-tabs button { font: 600 13px var(--font-ui); color: var(--ink-2); background: transparent; border: 0; border-radius: 10px; padding: 7px 12px; cursor: pointer; }
.zec-tabs button[aria-pressed='true'] { background: var(--surface-3); color: var(--ink); }
.zec-tabs button:hover { color: var(--ink); }
.zec-chart { height: clamp(220px, 30vw, 320px); width: 100%; min-width: 0; }
.zec-spot.page .zec-chart { height: clamp(260px, 34vw, 380px); }
.zec-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.zec-title { font-size: clamp(24px, 2.6vw, 32px); }
.zec-ctas { display: flex; flex-direction: column; gap: 8px; }
.zec-ctas .pill-btn { justify-content: center; }
.zec-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; padding: 12px 0; border-block: 1px solid var(--rule); }
.zec-stats .stat-v { font-size: 17px; }
.zec-top { display: flex; flex-direction: column; gap: 6px; }
.zec-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); color: inherit; text-decoration: none; }
.zec-row:hover { background: var(--surface-3); }
.zec-row .micro { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zec-note { margin-top: auto; }
.zec-home { padding-top: 0; }
.seg .zec-opt { display: inline-flex; align-items: center; gap: 6px; }
.seg .zec-opt .zec-dot { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--zec); color: var(--zec-ink); font-size: 12px; font-weight: 800; }
.zec-launch { padding: 14px; border-radius: var(--r); background: var(--zec-wash); }
.zec-pair { border-color: color-mix(in srgb, var(--zec) 45%, var(--rule)); background: linear-gradient(160deg, var(--zec-wash), transparent 60%), var(--surface); }
.v4-tag { margin-left: 5px; font: 700 9px var(--font-mono); padding: 1px 5px; border-radius: 6px; background: var(--zec); color: var(--zec-ink); vertical-align: middle; }
.stock-tile.zec { background: var(--zec); color: var(--zec-ink); font-weight: 800; }
.tag.zec { background: var(--zec-wash); color: var(--ink); border-color: color-mix(in srgb, var(--zec) 50%, transparent); }
@media (max-width: 860px) {
  .zec-spot { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Home: stock universe grid ---------- */
.stock-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin-top: 4px; }
.stock-cell { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid transparent; color: inherit; text-decoration: none; transition: border-color 0.15s, background 0.15s, transform 0.15s; }
.stock-cell:hover { border-color: var(--rule-2); background: var(--surface-3); transform: translateY(-1px); }
.stock-cell .stock-tile { width: 30px; height: 30px; border-radius: 9px; font-size: 8.5px; }
.stock-cell .sc-id { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.stock-cell .sc-id b { font-size: 13px; }
.stock-cell .sc-id .micro { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stock-cell .sc-px { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; font-size: 12.5px; }
@media (max-width: 520px) { .stock-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stock-cell { grid-template-columns: auto minmax(0, 1fr); } .stock-cell .sc-px { grid-column: 2; align-items: flex-start; flex-direction: row; gap: 6px; } }

/* ---------- Explore ---------- */
.explore-stats { margin: 6px 0 22px; }
.pill-select { width: auto; min-height: 40px; border-radius: 999px; }
.view-seg button { display: inline-grid; place-items: center; padding-inline: 12px; }
.explore-list.table-mode { display: block; }
.explore-table { width: 100%; }
.explore-table th { white-space: nowrap; }
.explore-table td { vertical-align: middle; white-space: nowrap; }
.explore-row { transition: background 0.15s; }
.explore-row:hover { background: var(--surface-2); }
.coin-cell { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; min-width: 0; }
.coin-cell b { font-weight: 700; }
.coin-cell:hover b { text-decoration: underline; }
.pair-cell { display: inline-flex; align-items: center; gap: 6px; }
.pair-cell .comp-dot { width: 14px; height: 14px; }
@media (max-width: 860px) {
  .explore-table th:nth-child(1), .explore-table td:nth-child(1),
  .explore-table th:nth-child(7), .explore-table td:nth-child(7),
  .explore-table th:nth-child(8), .explore-table td:nth-child(8),
  .explore-table th:nth-child(9), .explore-table td:nth-child(9),
  .explore-table th:nth-child(10), .explore-table td:nth-child(10) { display: none; }
}
@media (max-width: 520px) {
  .explore-table th:nth-child(3), .explore-table td:nth-child(3),
  .explore-table th:nth-child(6), .explore-table td:nth-child(6) { display: none; }
}
