:root {
  --bg: #0a0b0d;
  --bg-alt: #101215;
  --card: #15181c;
  --line: #23272d;
  --text: #f2f4f5;
  --muted: #8d949c;
  --accent: #3ef0a4;
  --accent-ink: #04120b;
  --radius: 16px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.1; }
h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-bottom: 32px; }
h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.accent { color: var(--accent); }
.eyebrow {
  margin: 0 0 12px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
  font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #5ff5b6; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* Nav */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(10, 11, 13, .75);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { font-weight: 800; font-size: 20px; letter-spacing: -0.03em; }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 24px; margin-left: auto; font-size: 15px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.menu-btn { display: none; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(72px, 12vw, 140px) 0 clamp(64px, 10vw, 120px); }
.glow {
  position: absolute; inset: -40% -10% auto; height: 700px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(62, 240, 164, .18), transparent 70%);
}
.hero-inner { position: relative; text-align: center; }
.hero h1 { font-size: clamp(44px, 8vw, 88px); font-weight: 800; letter-spacing: -0.04em; }
.lead { max-width: 620px; margin: 24px auto 0; font-size: clamp(16px, 2vw, 19px); color: var(--muted); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 36px; }
.chips {
  list-style: none; padding: 0; margin: 40px 0 0;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.chips li {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; color: var(--muted); background: rgba(255, 255, 255, .02);
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Sections */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 8px; }
.section-head h2 { margin-bottom: 24px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.step { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.step-num { display: block; margin-bottom: 20px; font-weight: 800; font-size: 14px; color: var(--accent); }

/* Prices */
.sample-banner {
  margin-bottom: 16px; padding: 10px 14px; border-radius: 10px;
  background: rgba(255, 196, 0, .08); border: 1px solid rgba(255, 196, 0, .3); color: #ffd666; font-size: 14px;
}
.price-tools { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-bottom: 16px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--muted); font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1; cursor: pointer;
}
.tab[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.search {
  min-width: 0; flex: 0 1 260px; padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-size: 14px;
}
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.price-table { width: 100%; border-collapse: collapse; font-size: 15px; white-space: nowrap; }
.price-table th, .price-table td { padding: 14px 18px; text-align: right; border-bottom: 1px solid var(--line); }
.price-table th:first-child, .price-table td:first-child { text-align: left; }
.price-table caption { caption-side: top; text-align: left; padding: 14px 18px 4px; font-weight: 700; }
.price-groups { display: grid; gap: 16px; margin-bottom: 16px; }
.price-groups .empty { margin: 0; padding: 32px; text-align: center; color: var(--muted); }
.price-table th { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table tbody tr:hover { background: rgba(255, 255, 255, .02); }
.price-table td.price { font-variant-numeric: tabular-nums; font-weight: 600; }
.price-table td.ask { color: var(--muted); font-weight: 500; }
.price-table .empty { text-align: center; color: var(--muted); padding: 32px; }

/* Form */
.sell-form { margin-top: 32px; display: grid; gap: 20px; }
fieldset { min-width: 0; margin: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
legend { padding: 0 8px; margin-left: -8px; font-weight: 700; }
label { min-width: 0; display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: #c9ced3; }
.opt { color: var(--muted); font-weight: 400; font-size: 12px; }
input, select, textarea {
  width: 100%; min-width: 0; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; font-size: 15px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.grid-2, .grid-3 { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.device-row {
  display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr) minmax(0,1.2fr) minmax(0,1fr) minmax(0,.7fr) auto; gap: 10px; align-items: end;
  padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px dashed var(--line);
}
.remove-row {
  height: 46px; width: 46px; border-radius: 10px; border: 1px solid var(--line);
  background: transparent; color: var(--muted); font-size: 20px; cursor: pointer;
}
.remove-row:hover { color: #ff7b7b; border-color: #ff7b7b; }
.segmented { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.segmented label { display: block; position: relative; }
.segmented input { position: absolute; inset: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.segmented span {
  display: inline-block; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--muted); cursor: pointer; font-weight: 600;
}
.segmented input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.segmented input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.method-panel p { margin: 12px 0 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; }
.form-error { color: #ff7b7b; margin: 0; }

/* Cards */
.cards-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.card { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.list { margin: 0 0 24px; padding-left: 18px; color: var(--muted); }
.list li { margin-bottom: 8px; }
.list strong { color: var(--text); }
.address { font-style: normal; font-size: 18px; line-height: 1.5; margin-bottom: 8px; }

/* Referral */
.referral {
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
  padding: clamp(28px, 5vw, 56px); border-radius: 24px; border: 1px solid var(--line);
  background: radial-gradient(120% 140% at 0% 0%, rgba(62, 240, 164, .14), transparent 60%), var(--card);
}
.referral h2 { margin-bottom: 12px; }
.referral p { margin: 0; max-width: 520px; }

/* Reviews */
.reviews { columns: 3 280px; column-gap: 16px; }
.reviews figure { margin: 0 0 16px; break-inside: avoid; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; color: var(--muted); }

/* Footer */
.footer { padding: 48px 0 calc(24px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: start; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; color: var(--muted); font-size: 15px; }
.footer-links a:hover { color: var(--text); }
.copy { margin-top: 32px; }

/* Thanks page */
.thanks { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.code {
  display: inline-block; margin: 20px 0; padding: 14px 28px; border-radius: 14px;
  border: 1px dashed var(--accent); color: var(--accent); font: 800 28px/1 "Inter", monospace; letter-spacing: .06em;
}

/* Mobile */
@media (max-width: 860px) {
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-left: auto; }
  .menu-btn {
    display: grid; gap: 6px; padding: 10px; background: none; border: 0; cursor: pointer;
  }
  .menu-btn span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .device-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .device-row label:first-child { grid-column: span 2; }
  .remove-row { width: 100%; }
}
@media (max-width: 560px) {
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .span-2 { grid-column: auto; }
  .nav-cta { padding: 9px 14px; font-size: 14px; }
  fieldset { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Payout proof */
.section-sub { margin: -20px 0 28px; max-width: 620px; }
.payouts { columns: 3 280px; column-gap: 16px; }
.payout { margin: 0 0 16px; break-inside: avoid; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.payout a { display: block; background: #fff; }
.payout img { width: 100%; height: auto; }
.payout figcaption { display: grid; gap: 6px; padding: 14px 16px 16px; }
.payout-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.payout strong { font-size: 18px; font-variant-numeric: tabular-nums; color: var(--accent); }
.payout-head span { font-size: 13px; color: var(--muted); }
.payout .quote { margin: 0; font-size: 15px; color: var(--text); }
.payout .by { margin: 0; font-size: 13px; color: var(--muted); }
.payouts + .reviews:not(:empty) { margin-top: 16px; }
#reviews .center { margin-top: 24px; }

.coming-soon { display: grid; justify-items: start; gap: 12px; padding: clamp(24px, 4vw, 40px); border: 1px dashed var(--line); border-radius: var(--radius); background: var(--card); }
.coming-soon h3 { margin: 0; font-size: 22px; }
.coming-soon p { margin: 0; }
