:root {
  --bg: #000;
  --panel: #0b0b0b;
  --card: #0a0a0a;
  --elevated: #151515;
  --ink: #f6f6f6;
  --muted: rgba(246, 246, 246, .55);
  --subtle: rgba(246, 246, 246, .38);
  --line: rgba(255, 255, 255, .1);
  --line-strong: rgba(255, 255, 255, .18);
  --live: #35e08a;
  --display: "Space Grotesk", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.layout { display: flex; align-items: flex-start; }

.sidebar {
  width: 238px;
  flex: 0 0 238px;
  border-right: 1px solid var(--line);
  height: 100vh;
  position: sticky;
  top: 0;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.side-brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 22px; }
.side-brand img { width: 30px; height: 30px; border-radius: 7px; display: block; }
.side-brand b { font-family: var(--display); font-weight: 700; font-size: 18px; }

.side-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--muted);
  font-weight: 500;
  font-size: 14.5px;
  transition: .15s;
}

.side-link:hover { color: var(--ink); background: rgba(255, 255, 255, .04); }
.side-link.active { background: rgba(255, 255, 255, .08); color: var(--ink); }
.side-link svg { width: 18px; height: 18px; flex: 0 0 auto; }

.main { flex: 1; min-width: 0; }

.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 26px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(12px);
  z-index: 20;
}

.m-logo { display: flex; align-items: center; gap: 9px; }
.m-logo img { width: 28px; height: 28px; border-radius: 7px; }
.m-logo b { font-family: var(--display); font-weight: 700; font-size: 18px; }

.search {
  flex: 1;
  max-width: 540px;
  margin: 0 auto;
  background: #0e0e0e;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--subtle);
  font-size: 14px;
}

.btn {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 10px 18px;
  transition: transform .1s, background .15s, filter .15s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn:active { transform: translateY(1px); }
.btn-white { background: #fff; color: #000; }
.btn-white:hover { filter: brightness(.92); }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn-outline:hover { background: rgba(255, 255, 255, .06); }
.btn-lg { padding: 13px 24px; font-size: 15px; }

.content { padding: 0 26px; }
.wrap { max-width: 1000px; margin: 0 auto; }

.hero { text-align: center; padding: 70px 0 40px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #0e0e0e;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 26px;
}

.pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 4px rgba(53, 224, 138, .15);
}

h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -.03em;
  max-width: 16ch;
  margin: 0 auto;
}

.hero p.sub {
  color: var(--muted);
  font-size: 18px;
  max-width: 52ch;
  margin: 22px auto 0;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

section { padding: 52px 0; }

.sec-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.sec-head h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(26px, 4.4vw, 40px);
  line-height: 1.08;
  letter-spacing: -.02em;
}
.sec-head p { color: var(--muted); margin-top: 12px; font-size: 16px; }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px;
  overflow: hidden;
}

.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.crate-stage {
  background: linear-gradient(180deg, #000, #0e0e0e);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 14px;
  position: relative;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 28px;
}

.crate-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 12%, rgba(255, 255, 255, .14), transparent 55%);
  pointer-events: none;
}

.crate { position: relative; width: 220px; height: 220px; z-index: 2; }

.crate .box {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, .5);
  background: #050505;
  overflow: hidden;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .06);
}

.crate .fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0%;
  background: linear-gradient(180deg, #ffffff, #b8b8b8);
  transition: height 1s cubic-bezier(.22, 1, .36, 1);
  box-shadow: 0 0 40px rgba(255, 255, 255, .4);
}

.crate .fill::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 0;
  right: 0;
  height: 6px;
  background: rgba(255, 255, 255, .7);
  opacity: .6;
}

.crate .grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 36px 36px;
}

.crate .mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 3;
}

.crate .mark img {
  width: 86px;
  height: 86px;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .7));
  mix-blend-mode: screen;
}

.crate .lid {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 14px;
  height: 2px;
  background: rgba(255, 255, 255, .3);
  z-index: 3;
}

.crate .rivet {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  z-index: 3;
}

.crate .rivet.tl { top: 12px; left: 12px; }
.crate .rivet.tr { top: 12px; right: 12px; }
.crate .rivet.bl { bottom: 12px; left: 12px; }
.crate .rivet.br { bottom: 12px; right: 12px; }

.crate-read { position: relative; z-index: 3; text-align: center; margin-top: 26px; }
.crate-read .big {
  font-family: var(--display);
  font-weight: 700;
  font-size: 58px;
  line-height: 1;
  color: #fff;
}
.crate-read .cap { color: rgba(246, 246, 246, .6); font-size: 13px; margin-top: 4px; }

.tierbadge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .28);
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 999px;
}

.controls { padding: 28px 26px; display: flex; flex-direction: column; gap: 20px; }
.controls h3 {
  font-family: var(--display);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.controls .lede { color: var(--muted); font-size: 14px; margin-top: 10px; line-height: 1.55; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 3px rgba(53, 224, 138, .14);
}

.field label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 9px;
}

.field label .v { color: var(--ink); font-size: 15px; }
.field .hint { color: var(--subtle); font-size: 12px; margin-top: 8px; }

.amount-input {
  width: 100%;
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  background: #151515;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  transition: border .15s, box-shadow .15s;
}

.amount-input:focus {
  border-color: rgba(255, 255, 255, .7);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .12);
}

input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fff var(--p, 30%), rgba(255, 255, 255, .14) var(--p, 30%));
  outline: none;
  margin-top: 12px;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .4);
  cursor: pointer;
}

input[type=range]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #000;
  cursor: pointer;
}

.result {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 22px;
}

.result-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.result-k { color: var(--muted); font-size: 13px; font-weight: 600; }
.result-alloc {
  font-family: var(--display);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.02;
  color: #fff;
  letter-spacing: -.01em;
}

.result-sub { display: flex; gap: 14px; margin-top: 16px; }
.result-sub > div { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.result-sub span { color: var(--muted); font-size: 12px; }
.result-sub b { font-size: 18px; font-weight: 600; }

.tiers {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.tier {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 18px;
  text-align: center;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}

.tier:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 44px -28px rgba(0, 0, 0, .9);
  border-color: var(--line-strong);
}

.tier .ic { width: 46px; height: 46px; margin: 0 auto 14px; display: grid; place-items: center; }
.tier .tname { font-family: var(--display); font-weight: 700; font-size: 20px; }
.tier .trange { color: var(--muted); font-size: 13px; margin-top: 4px; }
.tier .tsub { color: var(--subtle); font-size: 12px; margin-top: 8px; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
}

.step .n {
  font-family: var(--display);
  font-weight: 700;
  font-size: 32px;
  color: #fff;
  line-height: 1;
  opacity: .85;
}

.step h4 { font-size: 17px; margin: 12px 0 6px; font-weight: 600; }
.step p { color: var(--muted); font-size: 14px; }

.stats {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat .num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
  color: #fff;
}

.stat .lab { color: var(--muted); font-size: 13px; margin-top: 8px; }

.band {
  text-align: center;
  background:
    radial-gradient(120% 160% at 50% 0%, rgba(255, 255, 255, .08), transparent 60%),
    #0a0a0a;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 52px 30px;
}

.band h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(26px, 4.4vw, 42px);
  letter-spacing: -.02em;
}

.band p { color: var(--muted); max-width: 520px; margin: 12px auto 26px; }

footer {
  border-top: 1px solid var(--line);
  margin-top: 64px;
  padding: 44px 0 60px;
}

.foot-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
}

.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand img { width: 28px; height: 28px; border-radius: 7px; }
.foot-brand b { font-family: var(--display); font-weight: 700; font-size: 18px; }

.foot-links { display: flex; gap: 40px; flex-wrap: wrap; }
.foot-col h5 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--subtle);
  margin-bottom: 12px;
}

.foot-col a,
.foot-col button {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 8px;
  transition: color .15s;
}

.foot-col a:hover,
.foot-col button:hover { color: var(--ink); }

.foot-col button {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}

.ca {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

.ca code {
  background: #151515;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 7px 10px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12.5px;
  color: var(--ink);
  word-break: break-all;
}

.ca button {
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--line-strong);
  background: #151515;
  color: var(--ink);
  border-radius: 8px;
  padding: 7px 12px;
  cursor: pointer;
}

.ca button:hover { background: #1e1e1e; }

.disclaimer {
  margin-top: 28px;
  color: var(--subtle);
  font-size: 12.5px;
  line-height: 1.7;
  max-width: 940px;
}

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }

.fineprint {
  text-align: center;
  color: var(--subtle);
  font-size: 12.5px;
  margin-top: 16px;
}

@media (max-width: 900px) {
  .sidebar { display: none; }
  .search { display: none; }
  .panel-grid { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); padding: 30px; }
}

@media (max-width: 520px) {
  .content { padding: 0 18px; }
  .topbar { padding: 12px 14px; gap: 8px; }
  .crate { width: 188px; height: 188px; }
  .crate-stage { padding: 22px; min-height: 380px; }
  .crate-read .big { font-size: 50px; }
  .controls { padding: 24px 20px; }
  .result-alloc { font-size: 32px; }
}
