@import url("https://fonts.googleapis.com/css2?family=Unbounded:wght@500;700;900&family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:wght@400;600&family=Hanken+Grotesk:wght@400;500;600&display=swap");

:root {
  --bg: #000;
  --ink: #05070a;
  --cream: #f4eedc;
  --ice: #7cf7ff;
  --ice-deep: #00d8f0;
  --violet: #b89cff;
  --rose: #ff8fd8;
  --text: #e9eef2;
  --dim: #8a95a0;
  --line: rgba(255, 255, 255, 0.09);
  --glass: rgba(14, 20, 28, 0.55);
  --win: #5dffb0;
  --r: 22px;
  --display: "Unbounded", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --body: "Hanken Grotesk", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--text); overscroll-behavior: none; }
html { scroll-behavior: smooth; }
body { font: 16px/1.55 var(--body); min-height: 100dvh; display: flex; flex-direction: column; padding-bottom: 64px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--ice); color: var(--ink); }

#field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.grain { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
main, header.nav, footer.bar { position: relative; z-index: 2; }
main { flex: 1; width: min(1200px, 100% - 40px); margin: 0 auto; }

/* nav */
header.nav { width: min(1200px, 100% - 40px); margin: 18px auto 0; display: flex; align-items: center; gap: 18px; padding: 10px 12px 10px 16px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(6, 9, 13, .6); backdrop-filter: blur(18px) saturate(140%); position: sticky; top: 14px; z-index: 20; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 15px var(--display); letter-spacing: -.01em; }
.brand svg { width: 28px; height: 28px; }
.brand b { font-weight: 900; }
.nav .links { display: flex; gap: 4px; margin-left: auto; }
.nav .links a { padding: 8px 14px; border-radius: 999px; color: var(--dim); font-weight: 500; font-size: 14px; transition: .2s; }
.nav .links a:hover, .nav .links a.on { color: var(--text); background: rgba(255, 255, 255, .06); }
.btn { display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer; border-radius: 999px; padding: 12px 20px; font: 600 14px var(--body); transition: transform .2s, box-shadow .2s, background .2s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn.prism { color: var(--ink); background: linear-gradient(100deg, var(--ice) 0%, #d7fbff 35%, var(--violet) 70%, var(--rose) 100%); box-shadow: 0 0 0 1px rgba(255,255,255,.3) inset, 0 10px 40px -10px rgba(124, 247, 255, .55); }
.btn.prism:hover { box-shadow: 0 0 0 1px rgba(255,255,255,.5) inset, 0 14px 50px -8px rgba(184, 156, 255, .7); transform: translateY(-1px); }
.btn.ghost { background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--text); }
.btn.ghost:hover { background: rgba(255, 255, 255, .1); }
.btn img, .btn svg { width: 18px; height: 18px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.menu-btn { display: none; }

/* type */
.eyebrow { font: 600 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ice); display: inline-flex; gap: 10px; align-items: center; }
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 12px var(--ice); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.035em; line-height: .98; font-weight: 900; }
h1 { font-size: clamp(42px, 7.4vw, 104px); }
h2 { font-size: clamp(30px, 4.4vw, 58px); }
h3 { font-size: 20px; letter-spacing: -.02em; font-weight: 700; }
em.s { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em;
  background: linear-gradient(100deg, var(--ice), #fff 40%, var(--violet) 70%, var(--rose)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: #b9c3cc; max-width: 560px; }
.mono { font-family: var(--mono); }
.dim { color: var(--dim); }
.addr { font: 12.5px/1.4 var(--mono); word-break: break-all; color: #c7d2da; }

/* hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; align-items: center; min-height: min(82vh, 820px); padding: 40px 0 20px; }
.hero h1 { margin: 22px 0 22px; }
.hero .ctas { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.stage { position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: center; }
.stage canvas { width: 100% !important; height: 100% !important; }
.stage .tag { position: absolute; font: 600 12px var(--mono); padding: 8px 12px; border-radius: 12px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(12px); display: flex; gap: 8px; align-items: center; }
.stage .tag img { width: 18px; height: 18px; }
.stage .t1 { left: 2%; top: 18%; } .stage .t2 { right: 0; top: 58%; } .stage .t3 { left: 12%; bottom: 6%; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.03); font-size: 13px; color: #c4ccd3; }
.chip img, .chip svg { width: 18px; height: 18px; border-radius: 50%; }

/* panels */
.glass { background: linear-gradient(180deg, rgba(22, 30, 40, .62), rgba(8, 11, 16, .62)); border: 1px solid var(--line); border-radius: var(--r); backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 1px 0 rgba(255,255,255,.07) inset, 0 30px 80px -40px rgba(0,0,0,.9); }
.tilt { transform-style: preserve-3d; transition: transform .25s ease-out; will-change: transform; }
section { padding: 70px 0; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; perspective: 1200px; }
.step { padding: 28px; min-height: 260px; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; }
.step .n { font: 900 64px var(--display); line-height: 1; background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,0)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step p { color: #aeb8c1; }
.step .em { font-size: 34px; line-height: 1; }
.step .em img { width: 40px; height: 40px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bar { height: 64px; border-radius: 18px; overflow: hidden; display: flex; border: 1px solid var(--line); }
.bar > div { display: flex; align-items: center; padding: 0 18px; font: 700 15px var(--display); }
.bar .a { flex: 85; background: linear-gradient(100deg, var(--ice), var(--violet)); color: var(--ink); }
.bar .b { flex: 15; background: #10161d; color: var(--dim); justify-content: center; }

/* coins */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.coin { padding: 18px; display: flex; flex-direction: column; gap: 14px; transition: transform .25s, border-color .25s; }
.coin:hover { border-color: rgba(124, 247, 255, .35); transform: translateY(-3px); }
.coin .top { display: flex; gap: 12px; align-items: center; }
.coin .top img { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; background: #0b1016; }
.coin .nm { font: 700 16px var(--display); letter-spacing: -.02em; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kv div { padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.035); }
.kv small { display: block; color: var(--dim); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; font-family: var(--mono); }
.kv b { font: 600 15px var(--mono); display: flex; gap: 6px; align-items: center; }
.kv b svg { width: 14px; height: 14px; }

.empty { padding: 56px 28px; text-align: center; display: grid; place-items: center; gap: 16px; }
.empty .gem { width: 74px; height: 74px; }
.empty p { color: #aeb8c1; max-width: 460px; }

/* forms */
.form { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; align-items: start; }
.card { padding: 26px; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font: 600 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.input { width: 100%; padding: 14px 16px; border-radius: 14px; background: rgba(0,0,0,.45); border: 1px solid var(--line); outline: none; transition: border-color .2s, box-shadow .2s; }
.input:focus { border-color: rgba(124,247,255,.5); box-shadow: 0 0 0 4px rgba(124,247,255,.08); }
textarea.input { min-height: 90px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.drop { border: 1.5px dashed rgba(255,255,255,.16); border-radius: 18px; padding: 22px; display: flex; gap: 16px; align-items: center; cursor: pointer; transition: .2s; background: rgba(0,0,0,.3); }
.drop:hover { border-color: var(--ice); }
.drop .pv { width: 84px; height: 84px; border-radius: 18px; background: #0b1016 center/cover; display: grid; place-items: center; flex: none; border: 1px solid var(--line); }

/* styled dropdown */
.dd { position: relative; }
.dd > button { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 14px; background: rgba(0,0,0,.45); border: 1px solid var(--line); cursor: pointer; text-align: left; }
.dd > button svg { width: 16px; height: 16px; transition: transform .2s; opacity: .7; }
.dd.open > button { border-color: rgba(124,247,255,.5); }
.dd.open > button svg { transform: rotate(180deg); }
.dd ul { list-style: none; position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; padding: 6px; border-radius: 16px; background: rgba(10,14,20,.96); border: 1px solid var(--line); backdrop-filter: blur(16px); box-shadow: 0 20px 60px -10px #000; display: none; max-height: 280px; overflow: auto; overscroll-behavior: contain; }
.dd.open ul { display: block; animation: pop .16s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } }
.dd li { padding: 11px 12px; border-radius: 10px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.dd li:hover, .dd li.sel { background: rgba(124,247,255,.09); }
.dd li span.r { color: var(--dim); font: 12px var(--mono); }
.dd li .ic { display: flex; align-items: center; gap: 8px; }
.dd li .ic svg { width: 16px; height: 16px; }

.preview { padding: 22px; position: sticky; top: 100px; }
.note { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; background: rgba(124,247,255,.06); border: 1px solid rgba(124,247,255,.18); color: #cdeff3; font-size: 14px; }
.status { margin-top: 14px; font: 13px var(--mono); color: var(--dim); min-height: 20px; }
.status.ok { color: var(--win); }

/* coin page */
.coinhead { display: flex; gap: 22px; align-items: center; padding: 40px 0 26px; flex-wrap: wrap; }
.coinhead img.big { width: 104px; height: 104px; border-radius: 26px; object-fit: cover; border: 1px solid var(--line); }
.links-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.links-row a { display: inline-flex; gap: 8px; align-items: center; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; background: rgba(255,255,255,.03); }
.links-row a:hover { border-color: rgba(124,247,255,.4); }
.links-row img, .links-row svg { width: 16px; height: 16px; border-radius: 4px; }
.cols { display: grid; grid-template-columns: 1.25fr .75fr; gap: 16px; align-items: start; }
.poolcard { padding: 28px; position: relative; overflow: hidden; }
.poolnum { font: 900 clamp(44px, 6vw, 80px) var(--display); letter-spacing: -.04em; display: flex; align-items: center; gap: 14px; line-height: 1; margin: 10px 0 6px; }
.poolnum svg { width: .62em; height: .62em; }
.stats4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 22px; }
.timer { font: 600 clamp(34px, 4.2vw, 52px) var(--mono); letter-spacing: -.02em; margin: 8px 0; }
.timer span { color: var(--dim); font-size: .45em; margin: 0 4px 0 2px; }
.list { display: grid; gap: 6px; }
.list .it { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.03); }
.list .it .rk { font: 700 13px var(--mono); color: var(--ice); }
.list .it img { width: 22px; height: 22px; border-radius: 6px; }
table.lb { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
table.lb td, table.lb th { padding: 12px 14px; text-align: left; }
table.lb th { font: 600 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
table.lb tr.r td { background: rgba(255,255,255,.035); }
table.lb tr.r td:first-child { border-radius: 14px 0 0 14px; } table.lb tr.r td:last-child { border-radius: 0 14px 14px 0; }
.coinmini { display: inline-flex; gap: 8px; align-items: center; } .coinmini img { width: 22px; height: 22px; border-radius: 6px; }

/* how */
.prose { max-width: 760px; }
.prose p, .prose li { color: #b9c3cc; margin: 12px 0; }
.prose ul { padding-left: 20px; }
.formula { font: 14px/1.7 var(--mono); padding: 20px 22px; border-radius: 16px; background: rgba(0,0,0,.5); border: 1px solid var(--line); color: #d8f9fb; overflow-x: auto; }
details { border-top: 1px solid var(--line); padding: 18px 0; }
details summary { cursor: pointer; font: 700 17px var(--display); letter-spacing: -.02em; list-style: none; display: flex; justify-content: space-between; }
details summary::after { content: "+"; color: var(--ice); }
details[open] summary::after { content: "–"; }
details p { color: #aeb8c1; margin-top: 10px; }

/* footer */
footer.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; align-items: center; gap: 16px; padding: 12px 22px; background: rgba(3,5,8,.82); border-top: 1px solid var(--line); backdrop-filter: blur(16px); font-size: 13px; }
footer.bar .ca { display: flex; gap: 10px; align-items: center; min-width: 0; flex: 1; justify-content: center; }
footer.bar .ca b { font: 600 11px var(--mono); color: var(--dim); letter-spacing: .1em; }
footer.bar .ca code { font: 12.5px var(--mono); word-break: break-all; color: #cfe; cursor: pointer; }
footer.bar a.x { display: inline-flex; gap: 8px; align-items: center; color: var(--text); }
footer.bar a.x svg { width: 15px; height: 15px; }
.toast { position: fixed; left: 50%; bottom: 76px; transform: translateX(-50%) translateY(20px); opacity: 0; background: #0e151c; border: 1px solid var(--line); padding: 10px 16px; border-radius: 12px; font-size: 14px; z-index: 40; transition: .25s; pointer-events: none; }
.toast.on { opacity: 1; transform: translateX(-50%); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero, .form, .cols, .split { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 26px; }
  .stage { max-width: 380px; order: -1; margin: -10px auto -30px; }
  .steps { grid-template-columns: 1fr; }
  .stats4 { grid-template-columns: 1fr 1fr; }
  .preview { position: static; }
}
@media (max-width: 640px) {
  header.nav { width: calc(100% - 20px); top: 10px; }
  .nav .links { display: none; position: absolute; top: calc(100% + 8px); right: 0; left: 0; flex-direction: column; padding: 8px; border-radius: 20px; background: rgba(6,9,13,.96); border: 1px solid var(--line); }
  .nav .links.open { display: flex; }
  .menu-btn { display: inline-flex; margin-left: auto; padding: 10px 12px; }
  .nav .cta { display: none; }
  main { width: calc(100% - 28px); }
  .row2 { grid-template-columns: 1fr; }
  footer.bar { padding: 10px 14px; gap: 10px; }
  footer.bar .ca b { display: none; }
  footer.bar .ca code { font-size: 10px; }
  .stage .tag { font-size: 10.5px; padding: 6px 9px; }
  table.lb .hide-s { display: none; }
  section { padding: 48px 0; }
}
.stage .tag svg, .chip svg, .kv b svg, .links-row svg { width: 18px; height: 18px; flex: none; }
.kv b svg { width: 14px; height: 14px; }
@media (max-width: 640px) {
  .stage { max-width: 270px; margin: -16px auto -36px; }
  .stage .t2 { right: -18px; } .stage .t1 { left: -12px; }
  .hero h1 { margin: 14px 0 14px; font-size: 44px; }
  .hero .lead { font-size: 16px; }
  .hero .ctas { margin-top: 20px; }
}
