:root {
  --ink: #0E0F14; --ink2: #15171F; --card: #191B24; --line: #262935; --line2: #33374A;
  --text: #F3F1EC; --mute: #9A9DAD; --ball: #FFC93C; --ball2: #FFD86B;
  --win: #3DDC97; --loss: #FF4D6D;
  --r: 18px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--text); font: 15px/1.55 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: 'Space Grotesk', Inter, sans-serif; letter-spacing: -0.02em; margin: 0; }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.muted { color: var(--mute); }
.small { font-size: 13px; }
.up { color: var(--win); } .down { color: var(--loss); }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 24px; padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(14, 15, 20, .82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font: 700 19px 'Space Grotesk', sans-serif; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.links { display: flex; gap: 22px; margin-left: 12px; }
.links a { color: var(--mute); font-weight: 500; font-size: 14px; }
.links a:hover { color: var(--text); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line2); border-radius: 99px; font-size: 12px; font-weight: 600; color: var(--mute); }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--ball); box-shadow: 0 0 0 4px rgba(255, 201, 60, .18); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(255, 201, 60, 0); } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 12px; border: 0; cursor: pointer;
  background: var(--ball); color: #17130A; font: 700 14px Inter, sans-serif; transition: transform .15s, background .15s; }
.btn:hover { background: var(--ball2); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line2); }
.btn.ghost:hover { border-color: var(--mute); }
.btn.big { padding: 14px 22px; font-size: 15px; border-radius: 14px; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line2); border-radius: 11px; font-weight: 700; }

main { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }

/* hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding: 72px 0 40px; }
.eyebrow { display: inline-block; margin: 0 0 18px; padding: 6px 12px; border-radius: 99px; background: rgba(255, 201, 60, .12); color: var(--ball2); font-weight: 600; font-size: 13px; }
h1 { font-size: clamp(36px, 7vw, 84px); line-height: .98; }
.hero > * { min-width: 0; }
.btn { white-space: nowrap; }
h1 em { font-style: normal; color: var(--ball); }
.lede { font-size: 18px; color: #C9C8CF; max-width: 520px; margin: 22px 0 26px; }
.ca { display: inline-flex; align-items: center; gap: 12px; max-width: 100%; padding: 10px 10px 10px 14px; border: 1px solid var(--line2); border-radius: 14px; background: var(--ink2); }
.ca-label { font-weight: 700; font-size: 12px; color: var(--ball); }
.ca code { font: 500 13px 'JetBrains Mono', monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ca-copy { padding: 6px 12px; border-radius: 9px; border: 1px solid var(--line2); background: var(--card); color: var(--text); font-weight: 600; cursor: pointer; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

/* ball card */
.ball-card { background: linear-gradient(180deg, var(--card), var(--ink2)); border: 1px solid var(--line); border-radius: 24px; padding: 22px; box-shadow: 0 30px 80px -30px rgba(255, 201, 60, .25); }
.ball-card header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 13px; }
.ball-card header > * { white-space: nowrap; }
.tag { padding: 5px 10px; border-radius: 8px; background: rgba(255, 201, 60, .14); color: var(--ball2); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.ball-main { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; }
.ball-orb { width: 64px; height: 64px; }
.ball-orb img { width: 100%; height: 100%; border-radius: 18px; }
.ball-orb.rolling img { animation: lift 2.4s ease-in-out infinite; }
@keyframes lift { 50% { transform: translateY(-4px); } }
.ball-coin { font: 700 28px 'Space Grotesk', sans-serif; }
.ball-meta { color: var(--mute); font-size: 13px; font-weight: 600; }
.ball-meta .side { text-transform: uppercase; }
.ball-pnl { text-align: right; }
.roe { font: 700 30px 'JetBrains Mono', monospace; }
.range { margin: 22px 0 6px; }
.range-bar { position: relative; height: 10px; border-radius: 99px; background: linear-gradient(90deg, rgba(255, 77, 109, .55), rgba(255, 77, 109, .1) 40%, rgba(61, 220, 151, .1) 40%, rgba(61, 220, 151, .55)); }
.range-bar .zero { position: absolute; left: 40%; top: -4px; bottom: -4px; width: 2px; background: var(--mute); border-radius: 2px; }
.range-bar .dot { position: absolute; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: var(--ball); border: 3px solid var(--ink); left: 40%; transition: left .8s ease; }
.range-labels { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--mute); }
.range-labels span:nth-child(2) { margin-left: 14%; }
.ball-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0; }
.ball-grid div { background: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 10px 9px; min-width: 0; }
.ball-grid dt { font-size: 11px; color: var(--mute); text-transform: uppercase; letter-spacing: .05em; }
.ball-grid dd { margin: 2px 0 0; font-size: 13px; letter-spacing: -0.02em; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.bucket { border-top: 1px dashed var(--line2); padding-top: 16px; }
.bucket-top { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.bar { height: 8px; border-radius: 99px; background: var(--ink); overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: var(--ball); border-radius: 99px; transition: width .8s ease; }
.bucket p { margin: 8px 0 0; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 24px 0 8px; }
.stats div { background: var(--ink2); padding: 18px 20px; }
.stats b { display: block; font-size: 22px; }
.stats > div > span { color: var(--mute); font-size: 13px; }

/* blocks */
.block { padding: 48px 0 8px; }
.block-head { margin-bottom: 20px; }
.block-head h2 { font-size: 30px; }
.block-head p { margin: 6px 0 0; }

/* track */
.track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(10, 1fr); gap: 10px; }
.slot { position: relative; background: var(--ink2); border: 1px solid var(--line); border-radius: 16px; padding: 46px 10px 14px; text-align: center; transition: border-color .3s, transform .3s; }
.slot .n { position: absolute; top: 10px; left: 12px; font-size: 11px; color: var(--mute); font-weight: 700; }
.slot .res { position: absolute; top: 12px; right: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--line2); }
.slot .res.win { background: var(--win); } .slot .res.loss { background: var(--loss); }
.slot .c { font: 700 16px 'Space Grotesk', sans-serif; overflow: hidden; text-overflow: ellipsis; }
.slot .s { font-size: 11px; font-weight: 700; color: var(--mute); text-transform: uppercase; }
.slot .s.long { color: var(--win); } .slot .s.short { color: var(--loss); }
.slot .px { font: 500 11px 'JetBrains Mono', monospace; color: var(--mute); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; }
.slot.on { border-color: var(--ball); transform: translateY(-4px); box-shadow: 0 14px 30px -14px rgba(255, 201, 60, .6); }
.slot.on::before { content: ''; position: absolute; top: -14px; left: 50%; width: 28px; height: 28px; margin-left: -14px; border-radius: 50%;
  background: url(/logo.svg?v=3) center/cover; border-radius: 8px; animation: lift 1.4s ease-in-out infinite; }
.slot.next { border-style: dashed; border-color: var(--ball); }
@keyframes bob { 50% { transform: translateY(-5px) rotate(20deg); } }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step { background: var(--ink2); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.step .num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--ball); color: #17130A; font-weight: 800; margin-bottom: 16px; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { margin: 0; color: #C3C2CA; }
.step b { color: var(--text); }

.two { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; }
.two > .block, .stack > .block { min-width: 0; }
.stack .spills { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* tables / lists */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--ink2); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; color: var(--mute); font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table .r { text-align: right; }
.table tr.open td { background: rgba(255, 201, 60, .06); }
.chip { display: inline-block; padding: 2px 7px; border-radius: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; background: var(--card); color: var(--mute); margin-left: 6px; }
.chip.long { color: var(--win); } .chip.short { color: var(--loss); }
.list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--ink2); overflow: hidden; }
.list li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.list li:last-child { border-bottom: 0; }
.list .new { color: var(--ball2); font-size: 11px; font-weight: 700; text-transform: uppercase; margin-left: 8px; }
.list .empty, .spills .empty { color: var(--mute); justify-content: center; padding: 22px; text-align: center; }
.spills { display: grid; gap: 10px; }
.spill { border: 1px solid var(--line); border-radius: var(--r); background: var(--ink2); padding: 16px; }
.spill-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.spill-top b { font-size: 18px; }
.spill-meta { color: var(--mute); font-size: 13px; margin: 4px 0 10px; }
.spill-ws { display: flex; flex-wrap: wrap; gap: 6px; }
.spill-ws span { font: 500 12px 'JetBrains Mono', monospace; padding: 3px 8px; border-radius: 7px; background: var(--card); color: #C3C2CA; }

/* me */
.me-form { display: flex; gap: 10px; max-width: 640px; }
.me-form input { flex: 1; min-width: 0; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line2); background: var(--ink2); color: var(--text); font: 500 14px 'JetBrains Mono', monospace; }
.me-form input:focus { outline: 2px solid var(--ball); outline-offset: 1px; }
.me-out { margin-top: 16px; max-width: 640px; border: 1px solid var(--line); border-radius: var(--r); background: var(--ink2); padding: 18px; }
.me-out h3 { font-size: 18px; margin-bottom: 6px; }
.me-out p { margin: 4px 0; }

.foot { max-width: 1180px; margin: 64px auto 0; padding: 28px clamp(16px, 4vw, 32px) 40px; border-top: 1px solid var(--line); display: flex; gap: 24px; justify-content: space-between; align-items: center; }
.foot p { max-width: 640px; margin: 0; }

@media (max-width: 980px) {
  .links { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 44px; }
  .two { grid-template-columns: 1fr; gap: 0; }
  .track { grid-template-columns: repeat(5, 1fr); row-gap: 22px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:last-child { grid-column: span 2; }
}
@media (max-width: 560px) {
  .pill { display: none; }
  h1 { font-size: clamp(36px, 12vw, 56px); }
  .nav .btn { padding: 8px 12px; font-size: 13px; }
  .nav { gap: 12px; }
  .steps { grid-template-columns: 1fr; }
  .ball-grid { grid-template-columns: repeat(2, 1fr); }
  .track { grid-template-columns: repeat(2, 1fr); }
  .roe { font-size: 22px; }
  .ball-coin { font-size: 22px; }
  .foot { flex-direction: column; align-items: flex-start; }
  .me-form { flex-direction: column; }
}
