/* Wake: the site's own pages. Loaded after ui.css, which holds the tokens and the shared
 * header, menus, modals and toasts. The trade terminal loads ui.css only.
 */

/* ---------------------------------------------------------------- base -- */

body.site {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 var(--sans);
  font-feature-settings: "cv05" 1, "ss01" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* Wrapped whole in :where(), so they weigh nothing and any component class (.btn, which
   lives in ui.css and loads first) still wins over them. */
.site *, .site *::before, .site *::after { box-sizing: border-box; }
:where(.site) :where(a) { color: inherit; text-decoration: none; }
:where(.site) :where(img, video, svg) { display: block; max-width: 100%; }
:where(.site) :where(h1, h2, h3, h4) { margin: 0; line-height: 1.1; letter-spacing: -0.03em; font-weight: 700; }
:where(.site) :where(p) { margin: 0; }
:where(.site) :where(code, .mono) { font-family: var(--mono); font-size: 0.86em; }
.site ::selection { background: rgba(0, 253, 255, 0.28); color: #fff; }
.site :focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
:where(.site) :where(input, select, textarea, button) { font: inherit; color: inherit; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 880px; }
.section { padding: 112px 0; position: relative; }
.section.tight { padding: 72px 0; }
.page { padding: calc(var(--nav-h) + 40px) 0 96px; min-height: 100vh; }

.eyebrow {
  display: inline-flex; align-items: center;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand-soft);
}
.h1 { font-size: clamp(44px, 7.2vw, 92px); letter-spacing: -0.045em; line-height: 0.98; }
.h2 { font-size: clamp(32px, 4.4vw, 54px); letter-spacing: -0.04em; }
.h3 { font-size: 22px; letter-spacing: -0.02em; }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--text-2); line-height: 1.6; max-width: 640px; }
.muted { color: var(--muted); }
.dim { color: var(--text-2); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.num { font-variant-numeric: tabular-nums; }
.up { color: var(--up); }
.down { color: var(--down); }
.warn { color: var(--warn); }
.gradient-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.section-head .lead { margin-top: 16px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* --------------------------------------------------------------- cards -- */

.card {
  position: relative; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.008)), var(--surface);
  padding: 24px;
}
/* The spotlight follows the pointer (nav.js sets --mx/--my on hover). */
.card.glow { overflow: hidden; transition: border-color 250ms, transform 300ms var(--ease); }
.card.glow::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 300ms;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(0, 253, 255, 0.09), transparent 45%);
}
.card.glow:hover { border-color: var(--line-2); }
.card.glow:hover::before { opacity: 1; }
a.card.glow:hover { transform: translateY(-3px); }
.card-title { font-size: 13px; font-weight: 600; color: var(--text-2); letter-spacing: 0.01em; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.card-head h3 { font-size: 16px; letter-spacing: -0.01em; }
.panel { border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }

/* --------------------------------------------------------------- stats -- */

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.tile {
  border-radius: 14px; border: 1px solid var(--line); background: var(--surface); padding: 16px 18px;
  min-width: 0;
}
.tile-label { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.tile-value { font-size: 22px; font-weight: 650; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-value .unit { font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.tile-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.tile.hero .tile-value { font-size: 34px; }
[data-tip] { cursor: help; }
.tip-label { border-bottom: 1px dashed var(--line-3); }

.stat-strip {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line); border-radius: var(--radius); background: rgba(5, 9, 11, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.stat-strip > div { padding: 20px 24px; border-left: 1px solid var(--line); }
.stat-strip > div:first-child { border-left: 0; }
.stat-strip .v { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; letter-spacing: -0.03em; }
.stat-strip .l { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ------------------------------------------------------------- address -- */

.addr { display: flex; align-items: center; gap: 6px; min-width: 0; }
.addr code {
  font-size: 12.5px; color: var(--text-2); overflow-wrap: anywhere; word-break: break-all;
}
.addr-list { display: grid; gap: 10px; }
.addr-row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 12px; align-items: center; }
.addr-row > span { font-size: 13px; color: var(--muted); }

/* --------------------------------------------------------------- forms -- */

.field { display: grid; gap: 6px; }
.field > label, .label { font-size: 12.5px; color: var(--text-2); font-weight: 500; }
.input, .select, .textarea {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2);
  background: #05090b; color: var(--text); outline: none; transition: border-color 150ms, box-shadow 150ms;
}
.textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: rgba(0, 253, 255, 0.55); box-shadow: 0 0 0 4px rgba(0, 253, 255, 0.08); }
.input::placeholder, .textarea::placeholder { color: #4d5a5f; }
.input-group { position: relative; display: flex; align-items: center; }
.input-group .input { padding-right: 64px; }
.input-group .suffix { position: absolute; right: 14px; font-size: 13px; color: var(--muted); pointer-events: none; }
.help { font-size: 12.5px; color: var(--muted); }
.select {
  appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%2388dae2' stroke-width='1.6'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
input[type="range"].range { width: 100%; accent-color: var(--brand); }
.search {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: #05090b; min-width: 240px;
}
.search input { border: 0; background: transparent; outline: none; width: 100%; color: var(--text); }
.search svg { width: 15px; height: 15px; color: var(--muted); flex: 0 0 auto; }
.search:focus-within { border-color: rgba(0, 253, 255, 0.5); }

/* ---------------------------------------------------------------- tabs -- */

.tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: #05090b; }
.tabs button {
  height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent;
  color: var(--muted); font-size: 13px; font-weight: 500; cursor: pointer; transition: color 150ms, background 150ms;
}
.tabs button:hover { color: var(--text); }
.tabs button.active { background: var(--surface-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }

/* -------------------------------------------------------------- tables -- */

.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  position: sticky; top: 0; z-index: 1; text-align: left; font-size: 12px; font-weight: 500; color: var(--muted);
  padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface); white-space: nowrap;
}
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background 120ms; }
.table tbody tr:hover { background: rgba(0, 253, 255, 0.025); }
.table tbody tr[data-href] { cursor: pointer; }
.table .r { text-align: right; font-variant-numeric: tabular-nums; }
.table th.r { text-align: right; }
.table th[data-sort] { cursor: pointer; user-select: none; }
.table th[data-sort]:hover { color: var(--text); }
.table th .sort { display: inline-block; width: 10px; color: var(--brand); }
.token-cell { display: flex; align-items: center; gap: 12px; min-width: 200px; }
.token-cell > div > strong { display: block; font-weight: 600; font-size: 14px; }
.token-cell > div > span { display: block; font-size: 12px; color: var(--muted); }
.empty { padding: 56px 24px; text-align: center; color: var(--muted); }
.empty h3 { color: var(--text); font-size: 18px; margin-bottom: 8px; }

/* ------------------------------------------------------------- reveals -- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 800ms var(--ease), transform 800ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }

/* ============================================================== FOOTER == */

.footer { border-top: 1px solid var(--line); padding: 64px 0 40px; background: linear-gradient(180deg, transparent, rgba(7, 173, 183, 0.04)); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer h4 { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer li a { color: var(--text-2); font-size: 14px; transition: color 150ms; }
.footer li a:hover { color: var(--brand); }
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 320px; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.footer-bottom p { max-width: 760px; line-height: 1.6; }

/* ========================================================== RESPONSIVE == */

@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-strip > div:nth-child(3) { border-left: 0; }
  .stat-strip > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .section { padding: 88px 0; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .addr-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .search { min-width: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================== CHARTS == */

.chart { position: relative; width: 100%; }
.chart svg { display: block; overflow: visible; }
.chart text { fill: var(--muted); font: 11px var(--sans); font-variant-numeric: tabular-nums; }
.chart .chart-end { fill: var(--text); font-weight: 600; font-size: 12px; }
.chart .chart-empty { fill: var(--muted); font-size: 13px; }
.chart-grid { stroke: rgba(136, 218, 226, 0.08); stroke-width: 1; shape-rendering: crispEdges; }
.chart-line { fill: none; stroke: var(--chart); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-area { fill: var(--chart-wash); stroke: none; }
.chart-dot { fill: var(--chart); stroke: var(--surface); stroke-width: 2; }
.chart-cross { stroke: var(--line-3); stroke-width: 1; shape-rendering: crispEdges; }
.chart-bar { fill: var(--chart); transition: fill 120ms; }
.chart-bar.hover { fill: #2fc3cc; }
.chart-hit { cursor: crosshair; outline: none; }
.chart-hit:focus-visible { stroke: var(--brand); stroke-width: 1; }
.chart-tip {
  position: absolute; z-index: 5; pointer-events: none; min-width: 140px; padding: 10px 12px; border-radius: 10px;
  background: #05090b; border: 1px solid var(--line-2); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6); font-size: 12px;
}
.chart-tip strong { display: block; font-size: 14px; color: var(--text); font-variant-numeric: tabular-nums; }
.chart-tip > span { display: block; color: var(--muted); margin-bottom: 4px; }
.chart-tip div { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); }
.chart-tip div b { color: var(--text-2); font-weight: 500; font-variant-numeric: tabular-nums; }
.spark { display: block; }
.chart-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.chart-card-head .v { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; margin-top: 4px; }
.chart-card-head .v .unit { font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 6px; letter-spacing: 0; }
.view-toggle { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; border: 1px solid var(--line); background: #05090b; }
.view-toggle button { border: 0; background: transparent; color: var(--muted); height: 28px; padding: 0 10px; border-radius: 7px; cursor: pointer; font-size: 12px; display: inline-flex; align-items: center; gap: 6px; }
.view-toggle button svg { width: 14px; height: 14px; }
.view-toggle button.active { background: var(--surface-3); color: var(--text); }

/* ============================================================= LANDING == */

/* The video's W sits in the middle of its frame, so the frame is lifted until the W clears the
   header and the words start just below it: logo first, then the sentence, never on top. */
.hero {
  --vw: max(100vw, 1100px); --lift: 0.18;
  /* where the words start, so the shade can leave the video untouched above them */
  --text-top: calc(var(--vw) * 0.5625 * (0.615 - var(--lift)) + 8px);
  position: relative; display: flex; flex-direction: column; overflow: hidden; isolation: isolate; }
.hero-video {
  position: absolute; z-index: -2; left: 50%; top: 0; width: var(--vw); aspect-ratio: 16 / 9; height: auto;
  max-width: none; /* wider than a phone on purpose: the sides are cropped, the W stays full size */
  transform: translate(-50%, calc(var(--lift) * -100%)); object-fit: cover;
}
/* The logo and its light trails stay at full brightness; the shade only begins where the
   words do, and deepens under the smaller text so it stays readable. */
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.35) 0%, transparent 18%, transparent 82%, rgba(0, 0, 0, 0.35) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0, transparent 90px, transparent calc(var(--text-top) - 10px),
      rgba(0, 0, 0, 0.45) calc(var(--text-top) + 110px), rgba(0, 0, 0, 0.85) calc(var(--text-top) + 250px), #000 calc(var(--text-top) + 420px));
}
.hero-content { text-align: center; display: flex; flex-direction: column; align-items: center; padding-top: var(--text-top); }
.hero-badge { margin-bottom: 26px; height: 30px; padding: 0 14px; backdrop-filter: blur(8px); }
.hero .lead { margin: 26px auto 0; text-align: center; }
.hero-cta { justify-content: center; margin-top: 36px; }
.hero-stats { margin-top: 64px; margin-bottom: 40px; }

.ticker {
  position: relative; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: rgba(7, 173, 183, 0.03); padding: 14px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: flex; gap: 44px; width: max-content; animation: marquee var(--duration, 60s) linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.ticker-item { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); white-space: nowrap; }
.ticker-item strong { color: var(--text); }
.ticker-item b { color: var(--brand-soft); font-weight: 600; }

.steps .step { display: flex; flex-direction: column; gap: 14px; min-height: 300px; }
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.step-n { font: 600 13px var(--mono); color: var(--brand); letter-spacing: 0.08em; }
.step-icon, .g-icon, .flow-icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--brand);
  background: radial-gradient(circle at 30% 20%, rgba(0, 253, 255, 0.16), rgba(0, 253, 255, 0.03));
  border: 1px solid rgba(0, 253, 255, 0.18);
}
.step-icon svg, .g-icon svg, .flow-icon svg { width: 20px; height: 20px; }
.step p { flex: 1; }
.step-foot { display: flex; gap: 8px; flex-wrap: wrap; }

.flow-section { background: radial-gradient(ellipse 60% 70% at 50% 60%, rgba(7, 173, 183, 0.08), transparent 70%); }
.flow { display: grid; grid-template-columns: 1fr 90px 1fr 90px 1fr 90px 1fr; align-items: center; margin-top: 56px; }
.flow-node {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
  padding: 26px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); height: 100%;
}
.flow-node.accent { border-color: rgba(0, 253, 255, 0.35); box-shadow: 0 0 60px rgba(0, 253, 255, 0.08); }
.flow-node strong { font-size: 15px; margin-top: 6px; }
.flow-node small { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.flow-link { position: relative; height: 2px; background: linear-gradient(90deg, rgba(0, 253, 255, 0.1), rgba(0, 253, 255, 0.45), rgba(0, 253, 255, 0.1)); }
.flow-link::after {
  content: ""; position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 12px var(--brand), 0 0 24px var(--brand); animation: travel 2.6s var(--ease) infinite;
}
.flow-link:nth-of-type(4)::after { animation-delay: 0.85s; }
.flow-link:nth-of-type(6)::after { animation-delay: 1.7s; }
@keyframes travel { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }
@keyframes travel-down { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 8px); opacity: 0; } }
.flow-link span { position: absolute; left: 50%; top: -26px; transform: translateX(-50%); font-size: 11px; color: var(--muted); white-space: nowrap; letter-spacing: 0.04em; }

.wake-card { display: flex; flex-direction: column; gap: 16px; }
.wake-card-head { display: flex; align-items: center; gap: 12px; }
.wake-card-name { flex: 1; min-width: 0; }
.wake-card-name strong { display: block; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wake-card-name span { font-size: 13px; color: var(--muted); }
.wake-card-metric > span { font-size: 12px; color: var(--muted); }
.wake-card-metric .big { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; }
.wake-card-metric .unit { font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 6px; }
.wake-card-spark svg { width: 100%; height: 44px; }
.wake-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.wake-card-grid span { display: block; font-size: 11.5px; color: var(--muted); }
.wake-card-grid strong { font-size: 14px; font-weight: 600; }
.wake-card-foot { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.wake-card-foot .arrow { transition: transform 200ms var(--ease), color 200ms; }
.wake-card:hover .wake-card-foot .arrow { color: var(--brand); transform: translateX(3px); }

.verify { background: linear-gradient(180deg, transparent, rgba(7, 173, 183, 0.035) 50%, transparent); }
.guarantee { display: flex; gap: 18px; align-items: flex-start; }
.guarantee h3 { font-size: 17px; letter-spacing: -0.015em; margin-bottom: 8px; }
.guarantee .g-icon { flex: 0 0 auto; }
.contracts { margin-top: 16px; }

.audience { padding: 36px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 30px; color: var(--text-2); }
.checks li::before {
  content: "\2713"; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center; font-size: 10px; font-weight: 800; color: var(--brand);
  background: rgba(0, 253, 255, 0.1); border: 1px solid rgba(0, 253, 255, 0.3);
}

.mkt { display: inline-flex; align-items: center; gap: 10px; }
.mkt:hover strong { color: var(--brand); }
.mkt-logo { width: 22px; height: 22px; border-radius: 50%; background: var(--surface-3); }
.mkt-fallback { display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--brand-soft); }
.link { color: var(--text); border-bottom: 1px solid var(--line-2); transition: border-color 150ms, color 150ms; }
.link:hover { color: var(--brand); border-color: var(--brand); }

.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color 200ms, background 200ms; }
.faq details[open] { border-color: var(--line-2); background: var(--surface-2); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 22px; font-weight: 600; font-size: 16px; letter-spacing: -0.01em;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: 0 0 auto; font-size: 20px; font-weight: 400; color: var(--brand-soft); line-height: 1; transition: transform 250ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--text-2); }

.cta-band {
  position: relative; overflow: hidden; text-align: center; padding: 80px 24px; border-radius: 28px;
  border: 1px solid rgba(0, 253, 255, 0.22);
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(0, 253, 255, 0.16), transparent 60%), radial-gradient(ellipse 80% 60% at 50% 120%, rgba(7, 173, 183, 0.18), transparent 60%), #030607;
}
.cta-band .lead { margin: 16px auto 0; }
.cta-logo { width: 120px; height: 120px; margin: 0 auto 22px; filter: drop-shadow(0 0 40px rgba(0, 253, 255, 0.45)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }

@media (max-width: 960px) {
  .flow { grid-template-columns: 1fr; gap: 0; max-width: 360px; margin-left: auto; margin-right: auto; }
  .flow-link { width: 2px; height: 56px; margin: 0 auto; background: linear-gradient(180deg, rgba(0, 253, 255, 0.1), rgba(0, 253, 255, 0.45), rgba(0, 253, 255, 0.1)); }
  .flow-link::after { left: -3px; animation-name: travel-down; }
  .flow-link span { left: 16px; top: 50%; transform: translateY(-50%); }
}
@media (max-width: 640px) {
  /* A narrow screen crops the frame's sides, not its top, so the W needs less lift to clear
     the header. */
  .hero { --lift: 0.04; }
  .audience { padding: 24px; }
  .guarantee { flex-direction: column; }
}

/* =============================================================== PAGES == */

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.page-head .lead { max-width: 620px; }
.filter-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 28px 0 16px; }
.filter-right { margin-left: auto; }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.crumbs a:hover { color: var(--brand); }

.wake-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; padding: 32px; overflow: hidden;
  background: radial-gradient(ellipse 50% 90% at 100% 0%, rgba(0, 253, 255, 0.09), transparent 60%), var(--surface); }
.wake-hero-main { display: flex; gap: 22px; align-items: flex-start; min-width: 0; }
.wake-hero-figure { text-align: right; padding-left: 32px; border-left: 1px solid var(--line); }
.hero-figure { font-size: clamp(36px, 4.6vw, 56px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; margin: 4px 0; }
.hero-figure .unit, .tile-value .unit { font-size: 0.36em; color: var(--muted); font-weight: 500; margin-left: 6px; letter-spacing: 0; }
.tile-value .unit { font-size: 12px; }

.wake-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; margin-top: 16px; align-items: start; }
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rules li { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--text-2); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.rules li:last-child { border-bottom: 0; padding-bottom: 0; }
.rules strong { color: var(--text); font-weight: 600; text-align: right; }
.addr-stack { display: grid; gap: 14px; }
.addr-stack .addr { margin-top: 4px; align-items: flex-start; }
.positions { display: grid; gap: 10px; }
.position { padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: #05090b; }
.position-grid { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 4px 10px; margin-top: 10px; font-size: 12.5px; }
.position-grid span { color: var(--muted); }
.position-grid b { font-weight: 500; font-variant-numeric: tabular-nums; }
.kv-list { display: grid; gap: 8px; }
.kv-list > div { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.kv-list span { color: var(--muted); }
.mini-list { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 12.5px; }
.mini-list > div { display: flex; justify-content: space-between; gap: 8px; color: var(--text-2); }
.tx-link { color: var(--brand-soft); white-space: nowrap; }
.tx-link:hover { color: var(--brand); }

@media (max-width: 1080px) {
  .wake-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .wake-hero { grid-template-columns: minmax(0, 1fr); padding: 22px; }
  .wake-hero-figure { text-align: left; padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .wake-hero-main { flex-direction: column; }
  .filter-right { margin-left: 0; }
}

/* ----------------------------------------------------------- portfolio -- */

.connect-card { text-align: center; padding: 56px 24px; margin-top: 32px; display: flex; flex-direction: column; align-items: center; }
.divider { width: 100%; max-width: 560px; margin: 32px auto 18px; color: var(--muted); font-size: 12px; text-align: center; }
.mine-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 22px; }
.mine-head code { font-size: 12px; overflow-wrap: anywhere; }
.banner { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 14px 18px; border-radius: 14px; border: 1px solid rgba(0, 253, 255, 0.25); background: rgba(0, 253, 255, 0.05); font-size: 14px; color: var(--text-2); }
.banner strong { color: var(--text); }
.banner.warn { display: block; border-color: rgba(227, 179, 65, 0.35); background: rgba(227, 179, 65, 0.06); }
.banner.warn strong { color: var(--warn); }
.action-card .card-head { margin-bottom: 8px; }
.action-card p code { font-size: 11.5px; overflow-wrap: anywhere; }
details.more { margin-top: 16px; font-size: 13px; color: var(--muted); }
.tax-waiting { margin-top: 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #05090b; }
.tax-waiting .meter { height: 5px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin: 8px 0; }
.tax-waiting .meter span { display: block; height: 100%; border-radius: 999px; background: var(--chart); transition: width 300ms; }
details.more summary { cursor: pointer; }
details.more summary:hover { color: var(--text); }

/* --------------------------------------------------------------- stats -- */

.stats-hero { display: grid; grid-template-columns: minmax(280px, 0.9fr) minmax(0, 2fr); gap: 16px; margin-top: 36px; }
.stats-figure { display: flex; flex-direction: column; justify-content: center; padding: 28px;
  background: radial-gradient(ellipse 80% 90% at 0% 0%, rgba(0, 253, 255, 0.1), transparent 60%), var(--surface); }
.stats-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats-charts { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.hbars { display: grid; gap: 10px; }
.hbar { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; gap: 12px; padding: 4px 6px; border-radius: 10px; transition: background 150ms; }
.hbar:hover { background: rgba(255, 255, 255, 0.03); }
.hbar-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; min-width: 0; }
.hbar-label > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-track { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hbar-fill { display: block; height: 18px; width: var(--w); border-radius: 0 4px 4px 0; background: var(--chart); transition: filter 150ms; }
.hbar:hover .hbar-fill { filter: brightness(1.2); }
.hbar-value { font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fee-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.fee-grid > div { padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: #05090b; }
.fee-grid strong { display: block; font-size: 20px; letter-spacing: -0.02em; margin: 6px 0; }
@media (max-width: 1080px) {
  .stats-hero, .stats-charts { grid-template-columns: minmax(0, 1fr); }
  .fee-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .stats-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fee-grid { grid-template-columns: minmax(0, 1fr); }
  .hbar { grid-template-columns: 90px minmax(0, 1fr); }
}

/* -------------------------------------------------------------- launch -- */

.launch { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; margin-top: 36px; align-items: start; }
.launch-side { position: sticky; top: calc(var(--nav-h) + 20px); }
.stepper { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stepper li {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 500; transition: border-color 200ms, color 200ms;
}
.stepper li span {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 11px; font-weight: 700;
  background: var(--surface-3); color: var(--muted); flex: 0 0 auto;
}
.stepper li { cursor: pointer; }
.stepper li:hover { color: var(--text); }
.stepper li.active { color: var(--text); border-color: rgba(0, 253, 255, 0.4); }
.stepper li.active span { background: var(--brand); color: #001314; box-shadow: 0 0 14px rgba(0, 253, 255, 0.5); }
.stepper li.done { color: var(--text-2); }
.stepper li.done span { background: rgba(46, 189, 133, 0.15); color: var(--up); }
.step-panel { padding: 28px; animation: rise 300ms var(--ease); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
.span-2 { grid-column: 1 / -1; }
.step-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.upload {
  display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: 14px; border: 1px dashed var(--line-3);
  background: #05090b; cursor: pointer; transition: border-color 150ms, background 150ms;
}
.upload:hover { border-color: var(--brand); background: rgba(0, 253, 255, 0.03); }
.upload strong { display: block; font-size: 14px; }
.upload small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.upload-preview { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: var(--surface-3); color: var(--brand); flex: 0 0 auto; }
.upload-preview svg { width: 20px; height: 20px; }
.upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.rule-block { margin-top: 26px; padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: #05090b; }
.rule-value { font-size: 26px; letter-spacing: -0.03em; }
.rule-block .range { margin: 12px 0 10px; }
.tax-bar { display: flex; height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; gap: 2px; margin-bottom: 10px; }
.tax-platform { background: var(--brand-soft); transition: width 200ms; }
.tax-trader { background: var(--chart); transition: width 200ms; }
.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; font-size: 13.5px; color: var(--text-2); cursor: pointer; }
.check input { margin-top: 2px; }
.tx-steps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.tx-step { display: flex; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: #05090b; transition: border-color 200ms, background 200ms; }
.tx-step strong { display: block; font-size: 14.5px; }
.tx-step p { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.tx-step p code { font-size: 11.5px; overflow-wrap: anywhere; color: var(--text-2); }
.tx-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; flex: 0 0 auto; background: var(--surface-3); color: var(--muted); font-size: 12px; font-weight: 700; }
.tx-mark svg { width: 15px; height: 15px; }
.tx-step.active { border-color: rgba(0, 253, 255, 0.45); background: rgba(0, 253, 255, 0.04); }
.tx-step.active .tx-mark { color: transparent; position: relative; }
.tx-step.active .tx-mark::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; border: 2px solid var(--line-3); border-top-color: var(--brand); animation: spin 700ms linear infinite; }
.tx-step.done .tx-mark { background: rgba(46, 189, 133, 0.15); color: var(--up); }
.tx-step.skipped { opacity: 0.55; }
.tx-step.failed { border-color: rgba(246, 70, 93, 0.45); }
.tx-step.failed .tx-mark { background: rgba(246, 70, 93, 0.15); color: var(--down); }
.done-panel { text-align: center; padding: 56px 28px; }
.done-burst { position: relative; width: 140px; height: 140px; margin: 0 auto 20px; display: grid; place-items: center; }
.done-burst::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(0, 253, 255, 0.35), transparent 65%); animation: burst 2.4s ease-out infinite; }
.done-burst img { position: relative; filter: drop-shadow(0 0 24px rgba(0, 253, 255, 0.6)); }
@keyframes burst { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
@media (max-width: 1080px) {
  .launch { grid-template-columns: minmax(0, 1fr); }
  .launch-side { position: static; }
}
@media (max-width: 640px) {
  .stepper { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .step-panel { padding: 20px; }
}

/* ---------------------------------------------------------------- docs -- */

.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
.docs-nav { position: sticky; top: calc(var(--nav-h) + 32px); }
.docs-nav nav { display: grid; gap: 2px; border-left: 1px solid var(--line); }
.docs-nav a { padding: 7px 14px; margin-left: -1px; border-left: 2px solid transparent; font-size: 14px; color: var(--muted); transition: color 150ms, border-color 150ms; }
.docs-nav a:hover { color: var(--text); }
.docs-nav a.active { color: var(--brand); border-left-color: var(--brand); }
.docs-body { max-width: 760px; }
.docs-body section { padding-top: 12px; margin-bottom: 64px; scroll-margin-top: calc(var(--nav-h) + 24px); }
.docs-body h2 { font-size: 28px; letter-spacing: -0.03em; margin-bottom: 16px; }
.docs-body h3 { font-size: 17px; letter-spacing: -0.01em; margin: 28px 0 8px; }
.docs-body p { color: var(--text-2); margin-top: 12px; }
.docs-body .lead { margin-top: 16px; }
.docs-body .table-wrap { margin-top: 16px; }
.docs-body .table td { white-space: normal; }
.callout { margin-top: 24px; padding: 18px 20px; border-radius: 14px; border: 1px solid rgba(0, 253, 255, 0.25); background: rgba(0, 253, 255, 0.04); color: var(--text-2); }
.callout strong { color: var(--text); }
.docs-steps { margin: 16px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.docs-steps li { counter-increment: s; position: relative; padding: 16px 18px 16px 58px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); }
.docs-steps li::before { content: counter(s); position: absolute; left: 18px; top: 16px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 12px var(--mono); color: #001314; background: var(--brand); }
.docs-steps strong { color: var(--text); }
.docs-list { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 8px; color: var(--text-2); }
.docs-list strong { color: var(--text); }
@media (max-width: 960px) {
  .docs { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .docs-nav { position: static; }
  .docs-nav nav { display: flex; flex-wrap: wrap; border-left: 0; gap: 6px; }
  .docs-nav a { border: 1px solid var(--line); border-radius: 999px; margin: 0; padding: 6px 12px; }
  .docs-nav a.active { border-color: var(--brand); }
}
/* The wallet a holder lookup was made for, in full, so it is clear whose numbers these are. */
.checked-wallet { margin-bottom: 10px; }
.checked-wallet code { font-size: 11.5px; word-break: break-all; }
