/* ===================================================
   ROBIN BLOCK — shared design system
   =================================================== */
:root{
  --lime:#ccff00;
  --lime-2:#a6d400;
  --lime-dim:#8fb800;
  --ink:#0a0a0a;
  --surface:#121210;
  --surface-2:#1a1a16;
  --surface-3:#232320;
  --line:#2b2b26;
  --white:#f3f3ea;
  --muted:#8e8e82;
  --radius:14px;
  --red:#ff5c5c;
  --green:#7dffa0;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  background:var(--ink);
  color:var(--white);
  font-family:'Space Grotesk', sans-serif;
  overflow-x:hidden;
}
::selection{ background:var(--lime); color:var(--ink); }
.display{ font-family:'Anton', sans-serif; font-weight:400; text-transform:uppercase; letter-spacing:0.5px; }
.mono{ font-family:'Space Mono', monospace; }
a{ color:inherit; text-decoration:none; }

.noise-bg{
  position:fixed; inset:0; z-index:0; pointer-events:none;
  background-image: radial-gradient(circle at 1px 1px, rgba(204,255,0,0.06) 1px, transparent 0);
  background-size: 26px 26px;
  opacity:0.5;
}

/* ---------- nav ---------- */
header.site{
  position:sticky; top:0; z-index:50;
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 32px;
  background:rgba(10,10,10,0.85);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.brand{ display:flex; align-items:center; gap:10px; }
.brand .cube{ width:26px; height:26px; }
.brand span{ font-family:'Anton'; font-size:20px; letter-spacing:0.5px; }
.brand .accent{ color:var(--lime); }

nav.links{ display:flex; gap:28px; }
nav.links a{
  font-size:13px; font-weight:600; letter-spacing:0.06em; text-transform:uppercase;
  color:var(--muted); transition:color .15s; padding-bottom:2px;
}
nav.links a:hover{ color:var(--white); }
nav.links a.active{ color:var(--lime); }

.header-right{ display:flex; align-items:center; gap:14px; }
.btn{
  font-family:'Space Grotesk'; font-weight:700; font-size:13px; letter-spacing:0.03em;
  padding:11px 20px; border-radius:8px; cursor:pointer; border:none;
  text-transform:uppercase; transition:transform .12s ease, box-shadow .12s ease;
  display:inline-block;
}
.btn:active{ transform:translateY(1px) scale(0.98); }
.btn-primary{ background:var(--lime); color:var(--ink); }
.btn-primary:hover{ box-shadow:0 4px 22px rgba(204,255,0,0.35); }
.btn-ghost{ background:transparent; color:var(--white); border:1px solid var(--line); }
.btn-ghost:hover{ border-color:var(--lime); color:var(--lime); }
.btn-sm{ padding:8px 14px; font-size:11.5px; border-radius:6px; }
.btn-lg{ padding:16px 30px; font-size:14px; border-radius:10px; }
.btn-block{ width:100%; text-align:center; }

/* ---------- hero (index only) ---------- */
.hero{
  position:relative; z-index:1; min-height:92vh;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; padding:60px 24px 40px; overflow:hidden;
}
.hero::before{
  content:''; position:absolute; inset:-10% -10% auto -10%; height:70%;
  background:radial-gradient(ellipse at 50% 0%, rgba(204,255,0,0.16), transparent 60%);
  z-index:-1;
}
.cubefield{ position:absolute; inset:0; z-index:-1; }
.floatcube{ position:absolute; width:var(--s,46px); height:var(--s,46px); transform-style:preserve-3d; animation:drift 9s ease-in-out infinite; opacity:0.9; }
.floatcube .f{ position:absolute; inset:0; }
.floatcube .top{ background:var(--lime); transform: rotateX(90deg) translateZ(calc(var(--s,46px)/2)); }
.floatcube .front{ background:var(--lime-2); transform: translateZ(calc(var(--s,46px)/2)); }
.floatcube .side{ background:var(--lime-dim); transform: rotateY(90deg) translateZ(calc(var(--s,46px)/2)); }
@keyframes drift{ 0%,100%{ transform: translateY(0) rotateX(20deg) rotateY(35deg);} 50%{ transform: translateY(-22px) rotateX(20deg) rotateY(55deg);} }

.eyebrow{
  display:inline-flex; align-items:center; gap:8px; font-family:'Space Mono'; font-size:12px; color:var(--lime);
  background:rgba(204,255,0,0.08); border:1px solid rgba(204,255,0,0.3); padding:7px 14px; border-radius:999px;
  margin-bottom:28px; letter-spacing:0.04em;
}
.eyebrow::before{ content:'●'; font-size:8px; animation:pulse 1.6s infinite; }
@keyframes pulse{ 0%,100%{opacity:1;} 50%{opacity:0.25;} }

.hero h1{ font-size:clamp(52px, 10vw, 128px); line-height:0.92; color:var(--white); -webkit-text-stroke: 2px var(--line); }
.hero h1 .lime{ color:var(--lime); -webkit-text-stroke: 2px var(--lime-dim); }
.hero p.sub{ max-width:560px; margin:26px auto 36px; font-size:17px; color:var(--muted); line-height:1.6; }
.hero p.sub b{ color:var(--white); }
.hero-ctas{ display:flex; gap:14px; flex-wrap:wrap; justify-content:center; }

.hero-stats{ display:flex; gap:0; margin-top:64px; border:1px solid var(--line); border-radius:16px; overflow:hidden; background:var(--surface); flex-wrap:wrap; }
.hero-stats .stat{ padding:18px 34px; text-align:left; border-right:1px solid var(--line); }
.hero-stats .stat:last-child{ border-right:none; }
.hero-stats .stat .label{ font-size:11px; color:var(--muted); text-transform:uppercase; letter-spacing:0.08em; margin-bottom:6px; }
.hero-stats .stat .value{ font-family:'Space Mono'; font-size:20px; font-weight:700; color:var(--lime); }

/* ---------- page banner (subpages) ---------- */
.page-banner{
  position:relative; z-index:1; padding:80px 24px 50px;
  border-bottom:1px solid var(--line);
  background: radial-gradient(ellipse at 50% -10%, rgba(204,255,0,0.10), transparent 55%);
}
.page-banner .container{ max-width:1180px; margin:0 auto; }
.page-banner .tag{ font-family:'Space Mono'; font-size:12px; color:var(--lime); letter-spacing:0.08em; text-transform:uppercase; display:block; margin-bottom:12px;}
.page-banner h1{ font-family:'Anton'; font-size:clamp(34px,5vw,58px); line-height:1.02; margin-bottom:14px; }
.page-banner p{ color:var(--muted); max-width:560px; font-size:15px; line-height:1.7; }

/* ---------- section shell ---------- */
section{ position:relative; z-index:1; padding:100px 24px; }
section.tight{ padding:60px 24px; }
.container{ max-width:1180px; margin:0 auto; }
.section-head{ display:flex; justify-content:space-between; align-items:flex-end; margin-bottom:48px; gap:24px; flex-wrap:wrap; }
.section-head .tag{ font-family:'Space Mono'; font-size:12px; color:var(--lime); letter-spacing:0.08em; text-transform:uppercase; margin-bottom:10px; display:block;}
.section-head h2{ font-size:clamp(28px,4vw,44px); line-height:1.05; max-width:600px; }
.section-head p{ color:var(--muted); max-width:340px; font-size:14px; line-height:1.6; }

/* ---------- step / feature cards ---------- */
.steps{ display:grid; grid-template-columns:repeat(3, 1fr); gap:20px; }
.step-card{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  padding:32px 26px; position:relative; overflow:hidden; transition:border-color .2s, transform .2s;
}
.step-card:hover{ border-color:var(--lime); transform:translateY(-4px); }
.step-card .num{ font-family:'Anton'; font-size:52px; color:var(--surface-3); position:absolute; top:10px; right:18px; -webkit-text-stroke:1px var(--line); }
.step-card h3{ font-size:19px; margin:18px 0 10px; }
.step-card p{ font-size:14px; color:var(--muted); line-height:1.6; }
.step-card .mini-cube{ width:32px; height:32px; margin-bottom:14px; }
.step-card code.formula{ display:block; margin-top:14px; background:var(--surface-3); border:1px solid var(--line); border-radius:8px; padding:12px; font-family:'Space Mono'; font-size:12px; color:var(--lime); overflow-x:auto; }

/* ---------- board panel (grid + tabs) ---------- */
.board-panel{ background:var(--surface); border:1px solid var(--line); border-radius:20px; overflow:hidden; }
.board-topbar{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px; padding:24px 28px; border-bottom:1px solid var(--line); background:var(--surface-2); }
.board-title{ display:flex; align-items:center; gap:14px; }
.board-title .cube{ width:40px; height:40px; }
.board-title h3{ font-family:'Anton'; font-size:22px; letter-spacing:0.3px; }
.board-title .sub{ font-size:12px; color:var(--muted); font-family:'Space Mono'; }
.board-metrics{ display:flex; gap:28px; flex-wrap:wrap; }
.metric{ text-align:right; }
.metric .k{ font-size:10.5px; color:var(--muted); text-transform:uppercase; letter-spacing:0.08em; }
.metric .v{ font-family:'Space Mono'; font-size:18px; font-weight:700; color:var(--white); }
.metric .v.lime{ color:var(--lime); }

.board-tabs{ display:flex; gap:4px; padding:14px 28px 0; border-bottom:1px solid var(--line); flex-wrap:wrap; }
.board-tabs .tab{ font-size:12.5px; font-weight:600; text-transform:uppercase; letter-spacing:0.04em; color:var(--muted); padding:12px 16px; border-bottom:2px solid transparent; cursor:pointer; background:none; border-left:none; border-right:none; border-top:none; font-family:inherit; }
.board-tabs .tab.active{ color:var(--lime); border-bottom-color:var(--lime); }

.tab-panel{ display:none; padding:30px 28px 34px; }
.tab-panel.active{ display:block; }

.grid-wrap{ text-align:center; }
.block-grid{ display:grid; grid-template-columns:repeat(10, 1fr); gap:6px; aspect-ratio:1/1; max-width:520px; margin:0 auto; }
.tile{ position:relative; border-radius:5px; cursor:pointer; background:var(--surface-3); border:1px solid var(--line); display:flex; align-items:center; justify-content:center; transition:transform .12s ease, background .15s ease; }
.tile:hover{ transform:scale(1.12); z-index:5; }
.tile.owned{ background:linear-gradient(135deg, var(--lime), var(--lime-2)); border-color:var(--lime); }
.tile.owned .price{ color:var(--ink); }
.tile.empty{ background:transparent; border:1px dashed var(--line); }
.tile .price{ font-family:'Space Mono'; font-size:8px; color:var(--muted); font-weight:700; opacity:0; transition:opacity .12s; }
.tile:hover .price{ opacity:1; }
.grid-legend{ display:flex; gap:22px; justify-content:center; margin-top:22px; flex-wrap:wrap; }
.grid-legend .item{ display:flex; align-items:center; gap:8px; font-size:12px; color:var(--muted); }
.grid-legend .swatch{ width:12px; height:12px; border-radius:3px; }
.swatch.owned{ background:var(--lime); }
.swatch.empty{ border:1px dashed var(--muted); }

/* ---------- data table ---------- */
table.data{ width:100%; border-collapse:collapse; font-size:13.5px; }
table.data th{ text-align:left; font-size:11px; text-transform:uppercase; letter-spacing:0.06em; color:var(--muted); padding:10px 14px; border-bottom:1px solid var(--line); }
table.data td{ padding:14px; border-bottom:1px solid var(--line); }
table.data tr:hover td{ background:var(--surface-2); }
table.data .rank{ font-family:'Anton'; color:var(--lime); width:40px; }
table.data .mono-cell{ font-family:'Space Mono'; }
.pill{ display:inline-block; padding:3px 9px; border-radius:6px; font-size:11px; font-weight:700; }
.pill.buy{ background:rgba(125,255,160,0.12); color:var(--green); }
.pill.sell{ background:rgba(255,92,92,0.12); color:var(--red); }
.pill.tax{ background:rgba(204,255,0,0.12); color:var(--lime); }

/* ---------- activity feed ---------- */
.feed-row{ display:flex; align-items:center; gap:14px; padding:14px 0; border-bottom:1px solid var(--line); }
.feed-row .icon{ width:34px; height:34px; border-radius:8px; display:flex; align-items:center; justify-content:center; font-size:15px; background:var(--surface-3); flex-shrink:0; }
.feed-row .txt{ flex:1; font-size:13.5px; }
.feed-row .txt b{ color:var(--lime); }
.feed-row .time{ font-family:'Space Mono'; font-size:11.5px; color:var(--muted); white-space:nowrap; }

/* ---------- yield bars ---------- */
.yield-chart{ display:flex; align-items:flex-end; gap:10px; height:200px; padding:20px 0; }
.yield-chart .bar{ flex:1; background:linear-gradient(180deg, var(--lime), var(--lime-dim)); border-radius:5px 5px 0 0; position:relative; min-height:6px; }
.yield-chart .bar .lbl{ position:absolute; bottom:-24px; left:0; right:0; text-align:center; font-family:'Space Mono'; font-size:10px; color:var(--muted); }
.yield-summary{ display:flex; gap:40px; margin-bottom:10px; flex-wrap:wrap; }

/* ---------- chat mock ---------- */
.chat-log{ display:flex; flex-direction:column; gap:16px; max-height:360px; overflow-y:auto; padding-right:6px; }
.chat-msg{ display:flex; gap:12px; }
.chat-msg .avatar{ width:32px; height:32px; border-radius:8px; background:var(--surface-3); flex-shrink:0; display:flex; align-items:center; justify-content:center; font-family:'Anton'; font-size:12px; color:var(--lime); }
.chat-msg .body{ font-size:13.5px; }
.chat-msg .who{ font-weight:700; font-size:12.5px; margin-bottom:3px; }
.chat-msg .who span{ color:var(--muted); font-weight:400; font-family:'Space Mono'; font-size:11px; margin-left:6px; }
.chat-input{ display:flex; gap:10px; margin-top:20px; }
.chat-input input{ flex:1; background:var(--surface-3); border:1px solid var(--line); border-radius:8px; padding:12px 14px; color:var(--white); font-family:inherit; font-size:13px; }
.chat-input input:focus{ outline:none; border-color:var(--lime); }

/* ---------- lobby boards ---------- */
.lobby-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:20px; }
.board-card{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:22px; transition:border-color .2s, transform .2s; cursor:pointer; }
.board-card:hover{ border-color:var(--lime); transform:translateY(-3px); }
.card-head{ display:flex; align-items:center; gap:12px; margin-bottom:16px; }
.card-head .dot{ width:34px; height:34px; border-radius:9px; background:var(--surface-3); display:flex; align-items:center; justify-content:center; font-family:'Anton'; font-size:14px; color:var(--lime); }
.card-head .name{ font-weight:700; font-size:15px; }
.card-head .pair{ font-size:11px; color:var(--muted); font-family:'Space Mono'; }
.mini-grid{ display:grid; grid-template-columns:repeat(8,1fr); gap:2px; margin-bottom:16px; }
.mini-grid div{ aspect-ratio:1; border-radius:2px; background:var(--surface-3); }
.mini-grid div.on{ background:var(--lime); opacity:var(--o,1); }
.card-foot{ display:flex; justify-content:space-between; font-size:12px; }
.card-foot .k{ color:var(--muted); }
.card-foot .v{ font-family:'Space Mono'; font-weight:700; }
.pinned-badge{ display:inline-flex; align-items:center; gap:6px; font-size:10.5px; color:var(--ink); background:var(--lime); padding:4px 9px; border-radius:5px; font-weight:700; text-transform:uppercase; letter-spacing:0.04em; margin-bottom:12px; }

/* ---------- vault ---------- */
.vault{ display:grid; grid-template-columns:1.1fr 0.9fr; gap:0; background:var(--surface); border:1px solid var(--lime); border-radius:20px; overflow:hidden; box-shadow:0 0 60px rgba(204,255,0,0.06); }
.vault-copy{ padding:52px; display:flex; flex-direction:column; justify-content:center; }
.vault-copy h3{ font-family:'Anton'; font-size:34px; margin:14px 0 16px; }
.vault-copy p{ color:var(--muted); line-height:1.7; margin-bottom:26px; font-size:14.5px; max-width:440px; }
.vault-stats{ display:flex; gap:30px; flex-wrap:wrap; }
.vault-visual{ background: linear-gradient(0deg, rgba(0,0,0,0.35), rgba(0,0,0,0.05)), repeating-linear-gradient(45deg, var(--surface-3) 0 2px, transparent 2px 34px), repeating-linear-gradient(-45deg, var(--surface-3) 0 2px, transparent 2px 34px); position:relative; display:flex; align-items:center; justify-content:center; min-height:340px; }
.vault-cube{ width:120px; height:120px; }

/* ---------- form (create page) ---------- */
.form-layout{ display:grid; grid-template-columns:1.1fr 0.9fr; gap:28px; align-items:start; }
.form-card{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:32px; }
.field{ margin-bottom:22px; }
.field label{ display:block; font-size:12px; text-transform:uppercase; letter-spacing:0.06em; color:var(--muted); margin-bottom:9px; }
.field input[type=text], .field input[type=number], .field select, .field textarea{
  width:100%; background:var(--surface-3); border:1px solid var(--line); border-radius:8px; padding:13px 14px;
  color:var(--white); font-family:inherit; font-size:14px;
}
.field input:focus, .field select:focus, .field textarea:focus{ outline:none; border-color:var(--lime); }
.field .hint{ font-size:11.5px; color:var(--muted); margin-top:7px; }
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.range-row{ display:flex; align-items:center; gap:14px; }
.range-row input[type=range]{ flex:1; accent-color:var(--lime); }
.range-row .val{ font-family:'Space Mono'; color:var(--lime); font-size:13px; min-width:52px; text-align:right; }
.upload-box{ border:1px dashed var(--line); border-radius:10px; padding:30px; text-align:center; color:var(--muted); font-size:13px; cursor:pointer; }
.upload-box:hover{ border-color:var(--lime); color:var(--lime); }

.info-card{ background:var(--surface-2); border:1px solid var(--line); border-radius:var(--radius); padding:26px; margin-bottom:16px; }
.info-card h4{ font-size:14px; margin-bottom:10px; color:var(--lime); }
.info-card p{ font-size:13px; color:var(--muted); line-height:1.6; }
.info-card ul{ margin-top:10px; padding-left:18px; }
.info-card li{ font-size:12.5px; color:var(--muted); line-height:1.8; }

/* ---------- FAQ accordion ---------- */
.faq-item{ border-bottom:1px solid var(--line); }
.faq-q{ display:flex; justify-content:space-between; align-items:center; padding:22px 4px; cursor:pointer; font-weight:600; font-size:15px; }
.faq-q .plus{ font-family:'Anton'; color:var(--lime); font-size:20px; transition:transform .2s; }
.faq-item.open .plus{ transform:rotate(45deg); }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .25s ease; }
.faq-item.open .faq-a{ max-height:220px; }
.faq-a p{ padding:0 4px 22px; color:var(--muted); font-size:13.5px; line-height:1.7; max-width:640px; }

/* ---------- leaderboard filters ---------- */
.lb-tabs{ display:flex; gap:10px; margin-bottom:26px; flex-wrap:wrap; }
.lb-tabs .chip{ padding:9px 18px; border-radius:999px; border:1px solid var(--line); font-size:12.5px; font-weight:600; cursor:pointer; color:var(--muted); }
.lb-tabs .chip.active{ background:var(--lime); color:var(--ink); border-color:var(--lime); }

/* ---------- footer ---------- */
footer{ border-top:1px solid var(--line); padding:50px 32px 30px; position:relative; z-index:1; }
.footer-top{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:40px; max-width:1180px; margin:0 auto 40px; }
.footer-brand .brand{ margin-bottom:14px; }
.footer-brand p{ font-size:13px; color:var(--muted); max-width:260px; line-height:1.6; }
.footer-cols{ display:flex; gap:60px; flex-wrap:wrap; }
.footer-col h4{ font-size:11px; text-transform:uppercase; letter-spacing:0.08em; color:var(--lime); margin-bottom:14px; }
.footer-col a{ display:block; font-size:13.5px; color:var(--muted); margin-bottom:10px; transition:color .15s; }
.footer-col a:hover{ color:var(--white); }
.footer-bottom{ max-width:1180px; margin:0 auto; padding-top:24px; border-top:1px solid var(--line); display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:12px; color:var(--muted); font-family:'Space Mono'; }

@media (max-width: 980px){
  .steps{ grid-template-columns:1fr; }
  .lobby-grid{ grid-template-columns:1fr 1fr; }
  .vault{ grid-template-columns:1fr; }
  .form-layout{ grid-template-columns:1fr; }
  nav.links{ display:none; }
}
@media (max-width: 600px){
  .lobby-grid{ grid-template-columns:1fr; }
  .hero-stats{ flex-wrap:wrap; }
  .board-metrics{ gap:16px; }
  .field-row{ grid-template-columns:1fr; }
}
