:root {
  --ink: #f6f3e9;
  --muted: #94958e;
  --lime: #c7ff53;
  --lime-deep: #9eda27;
  --panel: #171916;
  --line: rgba(255, 255, 255, 0.1);
  --dark: #0d0f0d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--dark);
  font-family: "Manrope", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
.ambient {
  position: absolute;
  z-index: 0;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .075;
  pointer-events: none;
}
.ambient-one { top: 80px; left: -30vw; background: var(--lime); }
.ambient-two { top: 350px; right: -35vw; background: #61d48f; }

.site-header {
  position: relative;
  z-index: 10;
  width: min(1180px, calc(100% - 48px));
  height: 82px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: max-content;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .21em;
}
.brand-mark { display: flex; gap: 2px; align-items: end; height: 18px; transform: skew(-12deg); }
.brand-mark span { display: block; width: 5px; background: var(--lime); }
.brand-mark span:nth-child(1) { height: 10px; }
.brand-mark span:nth-child(2) { height: 18px; }
.brand-mark span:nth-child(3) { height: 14px; }
nav { display: flex; align-self: stretch; gap: 42px; }
nav a {
  position: relative;
  display: flex;
  align-items: center;
  color: #9ea098;
  font-size: 13px;
  font-weight: 600;
}
nav a:hover, nav a.active { color: var(--ink); }
nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--lime);
}
.github-link { justify-self: end; width: 22px; height: 22px; color: #b8bab3; }
.github-link svg { width: 100%; fill: currentColor; }

main { position: relative; z-index: 1; }
.hero {
  width: min(900px, calc(100% - 48px));
  margin: 0 auto;
  padding: 102px 0 112px;
  text-align: center;
}
.eyebrow, .section-kicker {
  color: #a4a79d;
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: .18em;
}
.eyebrow { display: flex; align-items: center; justify-content: center; gap: 10px; text-transform: uppercase; }
.eyebrow span { width: 18px; height: 1px; background: var(--lime); }
h1 {
  max-width: 780px;
  margin: 25px auto 22px;
  font-size: clamp(54px, 7.5vw, 92px);
  line-height: .97;
  letter-spacing: -.065em;
}
h1 em { color: var(--lime); font-style: normal; font-weight: 500; }
.hero-copy {
  max-width: 610px;
  margin: 0 auto;
  color: #9b9d95;
  font-size: 16px;
  line-height: 1.75;
}
.optimizer-card {
  margin-top: 50px;
  padding: 25px 27px 22px;
  text-align: left;
  background: rgba(25, 27, 24, .94);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 9px;
  box-shadow: 0 28px 80px rgba(0,0,0,.35);
}
.form-grid { display: grid; grid-template-columns: 1.15fr 1.15fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field > span:first-child {
  color: #b7b9b1;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.input-shell, .segmented {
  height: 50px;
  display: flex;
  align-items: center;
  background: #10120f;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 5px;
}
.input-shell:focus-within { border-color: rgba(199,255,83,.65); box-shadow: 0 0 0 3px rgba(199,255,83,.06); }
.input-shell svg { width: 18px; margin-left: 16px; fill: none; stroke: #7f827a; stroke-width: 1.5; }
.input-shell input {
  min-width: 0; width: 100%; height: 100%;
  padding: 0 12px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 13px;
}
.clear-button { padding: 0 15px; color: #73756e; background: none; border: 0; cursor: pointer; font-size: 20px; }
.segmented { padding: 4px; }
.mode-button {
  flex: 1; height: 40px;
  color: #777a73;
  background: transparent;
  border: 0; border-radius: 3px;
  cursor: pointer;
  font-size: 11px; font-weight: 700;
}
.mode-button.active { color: var(--ink); background: #272a25; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.coin {
  width: 18px; height: 18px; margin-left: 15px;
  color: #17120a; background: #f2c84b; border: 2px solid #9c7623; border-radius: 50%;
  font-size: 0;
}
.form-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 21px; padding-top: 20px;
  border-top: 1px solid var(--line);
}
.check-label { display: flex; gap: 10px; align-items: center; color: #8f918a; font-size: 11px; cursor: pointer; }
.check-label input { position: absolute; opacity: 0; }
.custom-check {
  display: grid; place-items: center; width: 17px; height: 17px;
  background: var(--lime); border-radius: 3px;
}
.custom-check svg { width: 12px; fill: none; stroke: #182008; stroke-width: 2; }
.check-label input:not(:checked) + .custom-check { background: transparent; border: 1px solid #5b5e56; }
.check-label input:not(:checked) + .custom-check svg { display: none; }
.primary-button {
  display: flex; align-items: center; gap: 18px;
  padding: 13px 19px 13px 22px;
  color: #10130b; background: var(--lime);
  border: 0; border-radius: 4px; cursor: pointer;
  font-size: 11px; font-weight: 800;
  letter-spacing: .04em;
  transition: transform .2s, background .2s;
}
.primary-button:hover { transform: translateY(-2px); background: #d3ff77; }
.primary-button:disabled { cursor: wait; opacity: .65; transform: none; }
.primary-button svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.privacy-note {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin: 15px 0 0;
  color: #5e615b; font-size: 10px;
}
.privacy-note svg { width: 12px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.form-error {
  margin-top: 17px;
  padding: 11px 13px;
  color: #ffb0a7;
  background: rgba(255, 91, 73, .08);
  border: 1px solid rgba(255, 91, 73, .25);
  border-radius: 4px;
  font-size: 11px;
  line-height: 1.5;
}

.results {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto; padding: 96px 0;
  border-top: 1px solid var(--line);
}
.results-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 34px; }
h2 { margin: 12px 0 0; font-size: clamp(30px, 4vw, 46px); letter-spacing: -.045em; }
.demo-badge { padding: 6px 9px; color: #8f918a; border: 1px solid var(--line); border-radius: 20px; font: 10px "DM Mono"; letter-spacing: .1em; }
.demo-badge.live { color: var(--lime); border-color: rgba(199,255,83,.3); }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat-card { padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 7px; }
.stat-card > span { color: #777a72; font: 10px "DM Mono"; letter-spacing: .1em; }
.stat-card strong { display: block; margin: 17px 0 8px; font-size: 34px; letter-spacing: -.04em; }
.stat-card strong small { color: #777a72; font-size: 13px; letter-spacing: 0; }
.stat-card p { margin: 0; color: #777a72; font-size: 11px; }
.stat-card p b { color: var(--lime); }
.stat-card.highlight { background: linear-gradient(130deg, rgba(199,255,83,.11), rgba(23,25,22,.95)); border-color: rgba(199,255,83,.25); }
.upgrade-list { margin-top: 18px; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.list-header, .upgrade-row { display: grid; grid-template-columns: 42px 54px minmax(230px, 1fr) 95px 130px 100px; align-items: center; }
.list-header { padding: 14px 20px; color: #686b64; background: #121411; font: 9px "DM Mono"; letter-spacing: .1em; }
.list-header span:last-child { grid-column: 5 / 7; text-align: right; }
.upgrade-row { min-height: 88px; padding: 12px 20px; background: var(--panel); border-top: 1px solid var(--line); }
.rank { color: #5f625b; font: 11px "DM Mono"; }
.item-icon { display: grid; place-items: center; width: 34px; height: 34px; background: #20231e; border: 1px solid currentColor; border-radius: 5px; }
.rare { color: #6fc3ff; } .epic { color: #d871ff; } .uncommon { color: #58e58b; } .slots { color: #f2c84b; }
.item-name { display: flex; flex-direction: column; gap: 4px; }
.item-name strong { font-size: 12px; }
.item-name small, .cost small { color: #777a72; font-size: 10px; }
.gain { color: var(--lime); font: 12px "DM Mono"; }
.cost { display: flex; flex-direction: column; gap: 4px; font: 12px "DM Mono"; }
.value-bar { width: 100%; height: 3px; background: #2b2e29; }
.value-bar i { display: block; width: var(--value); height: 100%; background: var(--lime); }
.empty-results { padding: 30px; color: #8f918a; background: var(--panel); font-size: 12px; text-align: center; }
.load-more-row { padding: 14px; background: #121411; border-top: 1px solid var(--line); text-align: center; }
.load-more-button {
  min-width: 190px;
  padding: 10px 16px;
  color: var(--ink);
  background: #242720;
  border: 1px solid rgba(199,255,83,.2);
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}
.load-more-button:hover { border-color: rgba(199,255,83,.55); }
.load-more-button small { margin-left: 8px; color: #777a72; font-size: 9px; font-weight: 500; }

.how-it-works { width: min(1080px, calc(100% - 48px)); margin: 0 auto; padding: 100px 0 120px; border-top: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 55px; }
.steps article { border-top: 1px solid #343732; padding-top: 22px; }
.steps article > span { color: var(--lime); font: 11px "DM Mono"; }
.steps h3 { margin: 35px 0 11px; font-size: 17px; }
.steps p { margin: 0; color: #7e8179; font-size: 13px; line-height: 1.7; }
footer {
  width: min(1180px, calc(100% - 48px)); min-height: 100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  color: #61645d; border-top: 1px solid var(--line); font-size: 10px;
}
footer > span { justify-self: end; font: 9px "DM Mono"; letter-spacing: .08em; }
.footer-brand { color: #a6a89f; font-size: 11px; }

@media (max-width: 760px) {
  .site-header { width: calc(100% - 32px); grid-template-columns: 1fr auto; }
  nav { display: none; }
  .hero { width: calc(100% - 32px); padding: 72px 0 80px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-footer { align-items: stretch; flex-direction: column; gap: 18px; }
  .primary-button { justify-content: center; }
  .results, .how-it-works { width: calc(100% - 32px); padding: 70px 0; }
  .stat-grid, .steps { grid-template-columns: 1fr; }
  .upgrade-row { grid-template-columns: 34px 44px 1fr 70px; }
  .list-header { grid-template-columns: 1fr; }
  .list-header span:last-child { display: none; }
  .upgrade-row .cost { grid-column: 3; margin-top: 8px; }
  .upgrade-row .value-bar { display: none; }
  footer { width: calc(100% - 32px); grid-template-columns: 1fr auto; }
  footer p { display: none; }
}
