/* Shared styles for the Tidepad website (index.html, docs.html). */
:root {
  --bg: #05070b;
  --bg-2: #0a0e15;
  --card: #0d121b;
  --card-2: #121925;
  --line: #1b2433;
  --line-2: #26324a;
  --text: #f1f7fb;
  --muted: #8796a8;
  --dim: #5b6778;
  --tide: #22e3c0;
  --tide-d: #0fb89a;
  --tide-2: #38b6ff;
  --warn: #ffb547;
  --danger: #ff5d7a;
  --radius: 16px;
  --mono: "Plus Jakarta Sans", system-ui, sans-serif;
  --head: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", system-ui, sans-serif;
  --grad: linear-gradient(120deg, #8ffbe8 0%, #22e3c0 38%, #38b6ff 100%);
  --grad-deep: linear-gradient(135deg, #0c9c83, #1673c4);
  --grad-soft: linear-gradient(140deg, rgba(34,227,192,.16), rgba(56,182,255,.10));
  --grad-line: linear-gradient(90deg, transparent, rgba(34,227,192,.6), rgba(56,182,255,.6), transparent);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--body); line-height: 1.6; font-variant-numeric: tabular-nums; overflow-x: hidden;
}
/* dotted grid + teal glow */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(800px 520px at 75% -5%, rgba(34,227,192,.16), transparent 60%),
    radial-gradient(600px 400px at 0% 35%, rgba(56,182,255,.08), transparent 60%),
    radial-gradient(rgba(255,255,255,.055) 1px, transparent 1px) 0 0 / 22px 22px;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.accent { color: var(--tide); }
.label { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* nav */
nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); background: rgba(5,7,11,.75); border-bottom: 1px solid var(--line); }
nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font: 700 19px var(--head); }
.logo span { color: var(--tide); }
.logo svg { width: 30px; height: 30px; }
.links { display: flex; gap: 22px; font-size: 14px; color: var(--muted); margin-left: auto; }
.links a:hover { color: var(--text); }
.x-link { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: var(--text); flex-shrink: 0;
  background: linear-gradient(rgba(13,18,27,.92), rgba(13,18,27,.92)) padding-box, linear-gradient(120deg, rgba(34,227,192,.45), rgba(56,182,255,.25)) border-box; border: 1px solid transparent; transition: background .2s; }
.x-link:hover { background: linear-gradient(rgba(13,18,27,.92), rgba(13,18,27,.92)) padding-box, var(--grad) border-box; }
.x-link svg { width: 17px; height: 17px; }
.icon-btn { background: none; border: 0; color: var(--text); cursor: pointer; padding: 6px; display: none; }
.icon-btn svg { width: 22px; height: 22px; display: block; }
.mobile-menu { display: none; border-top: 1px solid var(--line); padding: 12px 20px 18px; }
.mobile-menu a { display: block; padding: 10px 0; color: var(--muted); border-bottom: 1px solid var(--line); }
.mobile-menu.open { display: block; }

.btn { border: 0; cursor: pointer; font: 600 15px var(--body); border-radius: 12px; padding: 13px 20px; display: inline-flex; align-items: center; gap: 10px; transition: transform .15s, box-shadow .15s, background .15s, border-color .15s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--tide); color: #03140f; box-shadow: 0 0 0 1px rgba(34,227,192,.4), 0 10px 30px -8px rgba(34,227,192,.55); }
.btn-primary:hover { background: #45f0d0; }
.btn-ghost { background: rgba(13,18,27,.8); color: var(--text); border: 1px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--tide); }
.btn-sm { padding: 9px 14px; font-size: 14px; }
.btn[disabled] { cursor: not-allowed; opacity: .78; box-shadow: none; }
.btn[disabled]:active { transform: none; }
.soon { font: 700 10px var(--mono); letter-spacing: .1em; padding: 3px 8px; border-radius: 999px; background: rgba(3,20,15,.25); border: 1px solid rgba(3,20,15,.3); }

section { padding: 96px 0; position: relative; }
h1 { font: 700 clamp(48px, 7vw, 84px)/0.98 var(--head); margin: 22px 0 22px; letter-spacing: -.035em; }
h2 { font: 700 clamp(32px, 4.4vw, 50px)/1.05 var(--head); margin: 12px 0 16px; letter-spacing: -.025em; }
h3 { font: 600 19px var(--head); margin: 0 0 6px; }
.lead { font-size: 18px; color: var(--muted); max-width: 540px; }
.lead b { color: var(--text); font-weight: 600; }
.card { background: linear-gradient(180deg, var(--card), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }

/* public beta banner */
.beta { position: relative; z-index: 60; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  padding: 9px 44px 9px 16px; font-size: 13px; text-align: center; color: #03211b; background: var(--grad); }
.beta a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.beta b { font-weight: 700; }
.beta button { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: inherit; font-size: 18px; cursor: pointer; line-height: 1; padding: 4px 8px; }
.beta[hidden] { display: none; }

/* status pill */
.status { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(13,18,27,.7); font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--tide); box-shadow: 0 0 0 0 rgba(34,227,192,.6); animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(34,227,192,.6); } 80%,100% { box-shadow: 0 0 0 9px rgba(34,227,192,0); } }

/* hero */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 72px 0 40px; }
.strike { position: relative; color: var(--dim); }
.strike::after { content: ""; position: absolute; left: -4%; right: -4%; top: 54%; height: 6px; border-radius: 6px; background: var(--danger); transform: rotate(-4deg) scaleX(0); transform-origin: left; animation: strike .6s .5s forwards; }
@keyframes strike { to { transform: rotate(-4deg) scaleX(1); } }
.ahead { color: var(--tide); position: relative; white-space: nowrap; }
.ahead svg { position: absolute; left: 0; bottom: -10px; width: 100%; height: 14px; }
.hero-cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.ticks { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.ticks li { display: flex; align-items: center; gap: 10px; }
.ticks li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--tide); box-shadow: 0 0 10px var(--tide); }

/* buy preview (receipt) */
.receipt { position: relative; padding: 0; overflow: hidden; }
.receipt-head { display: flex; justify-content: space-between; padding: 14px 20px; border-bottom: 1px dashed var(--line-2); }
.receipt-body { padding: 20px; }
.field { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-top: 10px; display: flex; align-items: center; gap: 10px; }
.field input, .field select { background: transparent; border: 0; color: var(--text); font: 600 20px var(--mono); width: 100%; outline: none; min-width: 0; }
.field select { font-size: 15px; cursor: pointer; }
.field select option { background: var(--card); }
.field .unit { font: 600 11px var(--mono); color: var(--muted); letter-spacing: .1em; }
.rows { margin-top: 18px; border-top: 1px dashed var(--line-2); padding-top: 12px; }
.rows div { display: flex; justify-content: space-between; padding: 6px 0; font-size: 15px; }
.rows .mono { font-weight: 600; }
.total { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 14px; padding-top: 16px; border-top: 1px dashed var(--line-2); }
.total b { font: 700 40px/1 var(--head); letter-spacing: -.02em; }
.other { font: 500 12px var(--mono); color: var(--danger); text-align: right; margin-top: 6px; }
.stamp { position: absolute; right: 18px; bottom: 74px; transform: rotate(-9deg); border: 2px solid var(--tide); color: var(--tide); padding: 6px 12px; border-radius: 8px; font: 700 13px var(--mono); letter-spacing: .08em; box-shadow: 0 0 22px rgba(34,227,192,.3), inset 0 0 12px rgba(34,227,192,.15); background: rgba(5,7,11,.6); }
.note { font-size: 12px; color: var(--dim); margin: 14px 0 0; max-width: 60%; }
.perf { height: 14px; background: radial-gradient(circle at 7px -1px, var(--bg) 6px, transparent 6.5px) 0 0 / 14px 14px repeat-x; margin-top: -1px; }

/* spectrum */
.spectrum { margin-top: 28px; }
.spec-track { position: relative; height: 54px; margin: 46px 0 8px; }
.spec-bar { position: absolute; left: 0; right: 0; top: 22px; height: 10px; border-radius: 99px; background: linear-gradient(90deg, rgba(255,93,122,.65) 0%, rgba(255,93,122,.2) 37.5%, #2a3446 37.5%, rgba(34,227,192,.25) 38%, var(--tide) 100%); }
.spec-tick { position: absolute; top: 12px; width: 2px; height: 30px; background: var(--line-2); }
.spec-tick.zero { background: var(--text); }
.spec-you { position: absolute; top: 0; transform: translateX(-50%); transition: left .25s; }
.spec-you .tip { position: absolute; bottom: 44px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--tide); color: #03140f; font: 700 12px var(--mono); padding: 5px 10px; border-radius: 8px; }
.spec-you .tip::after { content: ""; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-bottom: 0; border-top-color: var(--tide); }
.spec-you .knob { width: 22px; height: 22px; margin-top: 16px; border-radius: 50%; background: var(--tide); border: 4px solid var(--bg); box-shadow: 0 0 0 2px var(--tide), 0 0 20px var(--tide); }
.spec-scale { display: flex; justify-content: space-between; font: 500 11px var(--mono); color: var(--dim); }
.spec-legend { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 20px; font: 500 12px var(--mono); }
.spec-legend div { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--muted); }
.spec-legend b { display: block; font-size: 15px; }
.neg { color: var(--danger); }
input[type=range] { width: 100%; accent-color: var(--tide); }

/* timeline */
.timeline { margin-top: 48px; position: relative; padding-left: 40px; max-width: 760px; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--tide), var(--line) 85%); }
.tl { position: relative; padding-bottom: 40px; }
.tl:last-child { padding-bottom: 0; }
.tl::before { content: ""; position: absolute; left: -36px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--tide); }
.tl .label { color: var(--tide); }
.tl p { color: var(--muted); margin: 4px 0 0; max-width: 560px; }

/* benefit split */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 40px; }
.duo .card { padding: 28px; }
.duo ul { padding: 0; list-style: none; margin: 16px 0 0; display: grid; gap: 8px; color: var(--muted); font-size: 15px; }
.duo li::before { content: "→ "; color: var(--tide); font-family: var(--mono); }
.big-tag { font: 700 13px var(--mono); color: var(--tide); letter-spacing: .12em; }

/* launches */
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 28px 0 20px; }
.tab { background: var(--card); border: 1px solid var(--line); color: var(--muted); padding: 8px 14px; border-radius: 10px; cursor: pointer; font: 500 13px var(--mono); }
.tab.active { color: var(--text); border-color: var(--tide); background: rgba(34,227,192,.08); }
.search { margin-left: auto; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px; color: var(--text); font: inherit; min-width: 220px; outline: none; }
.search:focus { border-color: var(--tide); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lcard { cursor: pointer; transition: transform .15s, border-color .15s; }
.lcard:hover { transform: translateY(-3px); border-color: rgba(34,227,192,.5); }
.lhead { display: flex; gap: 12px; align-items: center; }
.avatar { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font: 700 17px var(--head); color: #03140f; flex-shrink: 0; }
.lhead small { color: var(--muted); font-family: var(--mono); font-size: 12px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0; }
.chip { font-size: 11px; font-family: var(--mono); padding: 3px 8px; border-radius: 6px; background: var(--card-2); color: var(--muted); }
.chip.g { color: var(--tide); background: rgba(34,227,192,.1); }
.chip.b { color: var(--tide-2); background: rgba(56,182,255,.1); }
.chip.w { color: var(--warn); background: rgba(255,181,71,.1); }
.progress { height: 6px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--tide-d), var(--tide)); }
.lfoot { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 8px; font-family: var(--mono); }
.new-badge { margin-left: auto; font: 700 10px var(--mono); padding: 3px 7px; border-radius: 6px; background: var(--tide); color: #03140f; }

/* create */
.create { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; margin-top: 36px; align-items: start; }
.form-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px dashed var(--line-2); }
.form-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 14px; }
.create > *, .sim > *, .token > *, .hero > *, .duo > * { min-width: 0; }
.in input[type=text], .in select { width: 100%; min-width: 0; }
.in { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.in input[type=text], .in select { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; color: var(--text); font: inherit; outline: none; }
.in input:focus, .in select:focus { border-color: var(--tide); }
.slider { grid-column: span 2; }
.slider .top { display: flex; justify-content: space-between; }
.slider .top b { color: var(--tide); font-family: var(--mono); }
.toggle { grid-column: span 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--card-2); cursor: pointer; transition: .2s; }
.switch span::after { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; border-radius: 50%; background: var(--muted); transition: .2s; }
.switch input:checked + span { background: rgba(34,227,192,.35); }
.switch input:checked + span::after { left: 23px; background: var(--tide); }
.preview .split { display: flex; height: 12px; border-radius: 99px; overflow: hidden; margin: 12px 0; }
.legend div { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 4px 0; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex-shrink: 0; }
.legend b { margin-left: auto; font-family: var(--mono); }
.warn-box { font-size: 13px; color: var(--warn); background: rgba(255,181,71,.08); border: 1px solid rgba(255,181,71,.25); padding: 10px 12px; border-radius: 10px; margin-top: 12px; }

/* simulator */
.sim { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.tier { text-align: center; padding: 10px 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); font: 500 11px var(--mono); color: var(--muted); transition: .2s; }
.tier b { display: block; font-size: 17px; color: var(--text); }
.tier.on { border-color: var(--tide); background: rgba(34,227,192,.1); }
.big-num { font: 700 46px var(--head); margin: 6px 0; color: var(--tide); letter-spacing: -.02em; }
svg.chart { width: 100%; height: auto; display: block; }

/* payout round */
.payout { margin-top: 36px; padding: 26px; }
.payout-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.payout-stage { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; padding: 36px 0 28px; }
.po-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.pot { justify-self: center; width: 210px; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; text-align: center; gap: 4px; position: relative; z-index: 1;
  background: radial-gradient(circle at 50% 35%, rgba(34,227,192,.22), rgba(13,18,27,.95) 70%); border: 1px solid rgba(34,227,192,.55); box-shadow: 0 0 60px rgba(34,227,192,.18), inset 0 0 40px rgba(34,227,192,.08); }
.pot::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px dashed rgba(34,227,192,.25); animation: spin 30s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pot b { font: 700 30px/1.1 var(--head); letter-spacing: -.02em; }
.pot small { font: 500 12px var(--mono); color: var(--tide); }
.pot.pulse { animation: potPulse .5s; }
@keyframes potPulse { 50% { transform: scale(1.05); box-shadow: 0 0 90px rgba(34,227,192,.4); } }
.po-wallets { display: grid; gap: 12px; position: relative; z-index: 1; max-width: 320px; width: 100%; justify-self: end; }
.wallet { background: rgba(5,7,11,.92); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; transition: border-color .3s; }
.wallet.top { border-color: rgba(34,227,192,.6); }
.wallet .w1, .wallet .w3 { display: flex; justify-content: space-between; align-items: center; font: 600 13px var(--mono); }
.wallet .w3 { font-weight: 400; font-size: 11px; color: var(--muted); }
.wallet .w3 b { color: var(--tide); font-weight: 600; }
.mult { font: 700 11px var(--mono); padding: 2px 7px; border-radius: 6px; background: rgba(34,227,192,.12); color: var(--tide); transition: .3s; }
.mult.m1 { background: var(--card-2); color: var(--muted); }
.wbar { height: 5px; border-radius: 99px; background: var(--card-2); margin: 9px 0 7px; overflow: hidden; }
.wbar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--tide-d), var(--tide)); transition: width .6s; }
.payout-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px dashed var(--line-2); padding-top: 16px; }
.payout-foot p { margin: 0; font-size: 14px; color: var(--muted); max-width: 640px; }

/* mascot */
.meet { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; }
.mascot { width: 100%; max-width: 320px; margin: 0 auto; display: block; animation: bob 3.2s ease-in-out infinite; filter: drop-shadow(0 20px 40px rgba(34,227,192,.25)); }
@keyframes bob { 50% { transform: translateY(-12px) rotate(-2deg); } }
#mAll { transform-origin: 110px 220px; }
#mAll.pop { animation: pop .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes pop { 0% { transform: scale(1, 1); } 35% { transform: scale(1.08, .92); } 100% { transform: scale(1, 1); } }
.mascot .eye { transform-box: fill-box; transform-origin: center; animation: blink 4.5s infinite; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
#mFx > * { animation: fxIn .4s ease-out both; }
@keyframes fxIn { from { opacity: 0; transform: translateY(6px); } }
.poses { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.pose { font: 500 12px var(--mono); padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); color: var(--muted); cursor: pointer; }
.pose.on { color: var(--tide); border-color: var(--tide); }

/* token */
.token { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
.flow { display: grid; gap: 10px; }
.flow .row { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.flow .row b { font-family: var(--mono); margin-left: auto; color: var(--tide); }
.facts div { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }

/* faq */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font: 600 17px var(--head); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--tide); font: 400 22px/1 var(--mono); }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); margin: 10px 0 0; }

/* final cta */
.final { text-align: center; padding: 72px 24px; border-radius: 24px; border: 1px solid var(--line-2); background: radial-gradient(600px 260px at 50% 0%, rgba(34,227,192,.18), transparent 70%), var(--card); }
.final h2 { margin-top: 0; }
.logo3d { display: block; width: 132px; height: auto; margin: 0 auto 22px; animation: float3d 5s ease-in-out infinite; }
@keyframes float3d { 50% { transform: translateY(-8px) rotate(-3deg); } }
.final .hero-cta { justify-content: center; }

footer { border-top: 1px solid var(--line); padding: 36px 0; color: var(--muted); font-size: 13px; margin-top: 40px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* modal + toast */
.modal-bg { position: fixed; inset: 0; background: rgba(3,5,8,.75); backdrop-filter: blur(6px); display: none; place-items: center; z-index: 100; padding: 16px; }
.modal-bg.show { display: grid; }
.modal { width: 100%; max-width: 440px; }
.modal .close { float: right; background: none; border: 0; color: var(--muted); font-size: 22px; cursor: pointer; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120px); background: var(--card-2); border: 1px solid var(--tide); padding: 12px 18px; border-radius: 12px; z-index: 200; transition: transform .3s; font-size: 14px; max-width: calc(100% - 32px); }
.toast.show { transform: translateX(-50%) translateY(0); }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.shown { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .hero, .create, .sim, .token, .meet, .duo { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
  .links, nav .wrap > .btn { display: none; }
  .icon-btn { display: block; }
  .x-link { margin-left: auto; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .grid { grid-template-columns: 1fr; }
  .spec-legend { grid-template-columns: 1fr 1fr; }
  .search { margin-left: 0; width: 100%; min-width: 0; }
  section { padding: 68px 0; }
  .note { max-width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .slider, .toggle { grid-column: auto; }
  .stamp { bottom: auto; top: 58px; }
  .final { padding: 52px 18px; }
  .payout { padding: 18px; }
  .payout-stage { grid-template-columns: 1fr; gap: 28px; }
  .pot { width: 170px; }
  .pot b { font-size: 28px; }
  .po-wallets { justify-self: stretch; max-width: none; }
}

/* ===== theme: friendlier type + logo gradients ===== */
body::before {
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(34,227,192,.20), transparent 60%),
    radial-gradient(700px 520px at -10% 30%, rgba(56,182,255,.14), transparent 60%),
    radial-gradient(800px 600px at 60% 70%, rgba(22,115,196,.12), transparent 60%),
    radial-gradient(600px 500px at 10% 100%, rgba(34,227,192,.10), transparent 60%),
    radial-gradient(rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 22px 22px;
}
.label { font: 600 13px var(--body); letter-spacing: .01em; text-transform: none; }
.label.accent, .tl .label, .big-tag { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.status { font: 500 13px var(--body); letter-spacing: 0; text-transform: none; color: #cfe9f2;
  background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, var(--grad) border-box; border: 1px solid transparent; }
.status i { background: var(--grad); }
.soon { font: 700 11px var(--body); letter-spacing: .02em; }
.big-tag { font: 700 14px var(--body); letter-spacing: .02em; }

h1 { font-weight: 800; letter-spacing: -.022em; }
h2 { line-height: 1.08; }
h2 { font-weight: 700; letter-spacing: -.018em; }
h3, summary { font-weight: 600; letter-spacing: -.01em; }
h1 .ahead, h2 .accent, .final h2 .accent { font-family: var(--head); font-style: normal; font-weight: 300; letter-spacing: -.01em;
  background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--tide); }
.accent, .logo span, .big-num, .pot small, .flow .row b, .slider .top b, .spec-legend b.accent {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ahead svg path { stroke: url(#heroWave); }

nav { border-bottom: 0; }
nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--grad-line); opacity: .5; }

.btn-primary { background: var(--grad); background-size: 160% 100%; background-position: 0 0; color: #03211b;
  box-shadow: 0 10px 30px -10px rgba(34,227,192,.6), 0 6px 24px -12px rgba(56,182,255,.6); transition: background-position .4s, transform .15s, box-shadow .2s; }
.btn-primary:hover { background: var(--grad); background-size: 160% 100%; background-position: 100% 0; box-shadow: 0 12px 36px -10px rgba(56,182,255,.7); }
.btn-ghost { background: linear-gradient(rgba(13,18,27,.92), rgba(13,18,27,.92)) padding-box, linear-gradient(120deg, rgba(34,227,192,.45), rgba(56,182,255,.25)) border-box; border: 1px solid transparent; }
.btn-ghost:hover { background: linear-gradient(rgba(13,18,27,.92), rgba(13,18,27,.92)) padding-box, var(--grad) border-box; }

/* gradient hairline borders on cards */
.card { border: 1px solid transparent;
  background: linear-gradient(180deg, var(--card), var(--bg-2)) padding-box,
              linear-gradient(150deg, rgba(34,227,192,.45), rgba(56,182,255,.10) 35%, rgba(255,255,255,.04) 65%, rgba(56,182,255,.35)) border-box; }
.lcard:hover { border-color: transparent; background: linear-gradient(180deg, var(--card), var(--bg-2)) padding-box, var(--grad) border-box; }
.receipt-head { background: var(--grad-soft); }

.ticks li::before, .tl::before { background: var(--grad); border: 0; box-shadow: 0 0 12px rgba(34,227,192,.5); }
.tl::before { width: 14px; height: 14px; left: -35px; }
.timeline::before { background: linear-gradient(#22e3c0, #38b6ff 60%, rgba(56,182,255,0)); }

.progress i, .wbar i { background: var(--grad); }
.spec-bar { background: linear-gradient(90deg, rgba(255,93,122,.65) 0%, rgba(255,93,122,.2) 37.5%, #2a3446 37.5%, rgba(34,227,192,.35) 38%, #22e3c0 70%, #38b6ff 100%); }
.spec-you .tip { background: var(--grad); color: #03211b; font-family: var(--body); }
.spec-you .tip::after { border-top-color: #2fcbe0; }
.spec-you .knob { background: var(--grad); }

.tab { font: 500 14px var(--body); }
.tab.active { border-color: transparent; color: var(--text); background: linear-gradient(rgba(14,26,34,1), rgba(14,26,34,1)) padding-box, var(--grad) border-box; }
.chip { font: 600 11px var(--body); }
.chip.g { background: linear-gradient(120deg, rgba(34,227,192,.18), rgba(56,182,255,.12)); }
.new-badge { background: var(--grad); font-family: var(--body); }
.tier.on { border-color: transparent; background: linear-gradient(rgba(16,36,40,1), rgba(16,36,40,1)) padding-box, var(--grad) border-box; }
.switch input:checked + span { background: linear-gradient(120deg, rgba(34,227,192,.45), rgba(56,182,255,.45)); }
.switch input:checked + span::after { background: #eafffb; }
.stamp { border-color: #38b6ff; color: #7fe9ff; box-shadow: 0 0 22px rgba(56,182,255,.35), inset 0 0 12px rgba(34,227,192,.15); font-family: var(--body); }
.total b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.pot { background: radial-gradient(circle at 50% 30%, rgba(34,227,192,.28), rgba(22,115,196,.18) 45%, rgba(13,18,27,.95) 75%); border-color: rgba(56,182,255,.5); }
.wallet.top { border-color: transparent; background: linear-gradient(rgba(5,7,11,.95), rgba(5,7,11,.95)) padding-box, var(--grad) border-box; }
.mult { background: linear-gradient(120deg, rgba(34,227,192,.18), rgba(56,182,255,.16)); }
.pose.on { border-color: transparent; color: #eafffb; background: linear-gradient(rgba(14,26,34,1), rgba(14,26,34,1)) padding-box, var(--grad) border-box; }
.flow .row { background: linear-gradient(120deg, rgba(34,227,192,.06), rgba(56,182,255,.04)), var(--bg); }

summary::after { font-family: var(--body); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
details { border-bottom: 1px solid transparent; border-image: linear-gradient(90deg, rgba(34,227,192,.35), rgba(56,182,255,.15), transparent) 1; }

.final { border: 1px solid transparent;
  background: radial-gradient(700px 300px at 50% 0%, rgba(34,227,192,.24), transparent 70%) padding-box,
              radial-gradient(600px 300px at 50% 110%, rgba(56,182,255,.18), transparent 70%) padding-box,
              linear-gradient(var(--card), var(--card)) padding-box,
              var(--grad) border-box; }
footer { border-top: 0; position: relative; }
footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--grad-line); opacity: .6; }
.toast { border-color: #38b6ff; }
