:root {
  /* ── Bitfortune-matched palette ──────────────────── */
  --bg: #0a0a0a;
  --bg-2: #0f0f0f;
  --panel: #141414;
  --panel-2: #1a1a1a;
  --panel-3: #202020;
  --border: #202020;
  --border-lit: #2a2a2a;
  --text: #ffffff;
  --text-dim: #9a9a9a;
  --text-mute: #6a6a6a;

  --gold: #ffb400;
  --gold-2: #ffd24d;
  --gold-dim: rgba(255, 180, 0, 0.12);
  --gold-glow: rgba(255, 180, 0, 0.35);

  --danger: #ff4d4d;
  --good: #34d399;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; font-weight: 800; color: var(--text); }
p { margin: 0; color: var(--text-dim); }

:root {
  --side-w: 260px;
}

main { margin-left: var(--side-w); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 32px; }

/* ── sidebar ──────────────────────────────────────── */
.side {
  position: fixed; top: 0; left: 0;
  width: var(--side-w); height: 100vh;
  background: var(--bg);
  border-right: 1px solid var(--border);
  padding: 24px 18px;
  display: flex; flex-direction: column;
  z-index: 60;
  overflow-y: auto;
}
.side::-webkit-scrollbar { width: 4px; }
.side::-webkit-scrollbar-thumb { background: var(--border-lit); border-radius: 2px; }

.brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 800; font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text);
  padding: 6px 10px;
  margin-bottom: 22px;
}
.logo {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px;
  background: var(--gold);
  border-radius: 10px;
  color: #0a0a0a;
  font-weight: 900;
  font-size: 17px;
}

.side-pill {
  display: flex;
  background: var(--panel);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 20px;
  gap: 2px;
}
.side-pill span {
  flex: 1;
  text-align: center;
  padding: 9px 10px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 9px;
  cursor: default;
  letter-spacing: -0.01em;
}
.side-pill-active { background: var(--panel-3); color: var(--text); }
.side-pill-muted { color: var(--text-mute); }

.side-nav {
  display: flex; flex-direction: column;
  gap: 2px;
  flex: 1;
}
.sn-link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  transition: background .15s, color .15s;
}
.sn-link:hover { background: var(--panel); color: var(--text); }
.sn-link.active {
  background: var(--gold-dim);
  color: var(--gold);
  font-weight: 700;
}
.sn-ico {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px;
  font-size: 13px;
  color: inherit;
  opacity: .75;
}
.sn-link.active .sn-ico { opacity: 1; }
.sn-ext { font-size: 13px; }
.sn-ext .sn-ico { color: var(--danger); opacity: 1; }

.side-sep {
  height: 1px;
  background: var(--border);
  margin: 12px 4px;
}

.side-cta {
  margin-top: 16px;
  padding: 14px 10px 6px;
  border-top: 1px solid var(--border);
}
.side-note {
  font-size: 10px;
  color: var(--text-mute);
  text-align: center;
  margin-top: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* mobile toggle + scrim */
.side-toggle {
  display: none;
  position: fixed; top: 16px; left: 16px;
  width: 44px; height: 44px;
  background: var(--panel);
  border: 1px solid var(--border-lit);
  border-radius: 12px;
  z-index: 70;
  cursor: pointer;
  padding: 12px 11px;
  flex-direction: column;
  justify-content: space-between;
}
.side-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.side-toggle.on span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.side-toggle.on span:nth-child(2) { opacity: 0; }
.side-toggle.on span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.scrim {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  z-index: 55;
}
.scrim.on { opacity: 1; pointer-events: auto; }

/* ── buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  height: 46px; padding: 0 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform .12s, background .15s, border-color .15s;
  border: 1px solid transparent;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.btn-sm { height: 38px; padding: 0 18px; font-size: 13px; border-radius: 10px; }
.btn-lg { height: 54px; padding: 0 30px; font-size: 15px; border-radius: 14px; }
.btn-full { width: 100%; }
.btn-primary {
  background: var(--gold);
  color: #0a0a0a;
}
.btn-primary:hover { background: var(--gold-2); transform: translateY(-1px); }
.btn-ghost {
  background: var(--panel);
  color: var(--text);
  border-color: var(--border-lit);
}
.btn-ghost:hover { background: var(--panel-2); border-color: #333; }

/* ── hero ─────────────────────────────────────────── */
.hero { padding: 110px 0 90px; position: relative; }
.hero .wrap { text-align: center; position: relative; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 18px;
  background: var(--panel);
  border: 1px solid var(--border-lit);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 32px;
  letter-spacing: 0.02em;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 8px var(--danger);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}
.hero h1 {
  font-size: clamp(44px, 7.5vw, 92px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
}
.gold {
  color: var(--gold);
}
.grad { color: var(--gold); } /* legacy alias for old markup */
.sub {
  font-size: clamp(16px, 1.35vw, 19px);
  max-width: 660px;
  margin: 0 auto 16px;
  color: var(--text-dim);
  line-height: 1.55;
}
.honest {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 44px;
  letter-spacing: 0.02em;
  font-weight: 500;
}
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-row.center { justify-content: center; }
.stats {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.stats > div {
  background: var(--panel);
  border-radius: var(--radius-lg);
  padding: 28px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.stats b {
  font-size: 32px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stats span { font-size: 11px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }

/* ── section head ─────────────────────────────────── */
.section-head { text-align: center; margin-bottom: 64px; }
.eyebrow {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 600;
}
.section-head h2 {
  font-size: clamp(32px, 4.8vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

/* ── problem ──────────────────────────────────────── */
.problem { padding: 100px 0; }
.problem s { color: var(--text-mute); text-decoration-color: var(--danger); }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.prob {
  padding: 34px;
  background: var(--panel);
  border-radius: var(--radius-lg);
  transition: background .2s;
}
.prob:hover { background: var(--panel-2); }
.prob-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--gold);
  margin-bottom: 18px;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.prob h3 { font-size: 20px; margin-bottom: 12px; letter-spacing: -0.02em; }
.prob p { font-size: 15px; line-height: 1.6; }

/* ── features ─────────────────────────────────────── */
.features { padding: 100px 0; }
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feat {
  padding: 34px;
  background: var(--panel);
  border-radius: var(--radius-lg);
  transition: background .2s;
}
.feat:hover { background: var(--panel-2); }
.feat-wide { grid-column: span 2; }
.feat-icon {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--gold-dim);
  color: var(--gold);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 20px;
}
.feat h3 { font-size: 20px; margin-bottom: 10px; letter-spacing: -0.02em; }
.feat p { font-size: 15px; line-height: 1.6; }

.mock {
  margin-top: 22px;
  background: var(--bg-2);
  border-radius: 12px;
  padding: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
}
.mock-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
}
.mock-row:last-child { border-bottom: none; }
.mock-row span:first-child { color: var(--text); font-weight: 500; }
.mock-row .bad { color: var(--danger); }
.mock-row .good { color: var(--good); }
.mock-row b { margin-left: 6px; font-weight: 700; }

.chat {
  margin-top: 22px;
  display: flex; flex-direction: column; gap: 10px;
}
.chat-line {
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px;
  max-width: 92%;
}
.chat-line.you {
  background: var(--gold-dim);
  color: var(--gold);
  align-self: flex-end;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 500;
}
.chat-line.ai {
  background: var(--bg-2);
  color: var(--text-dim);
  align-self: flex-start;
}
.chat-line.ai b { color: var(--text); font-weight: 700; }

/* ── compare ──────────────────────────────────────── */
.compare { padding: 100px 0; }
.table-wrap {
  background: var(--panel);
  border-radius: var(--radius-lg);
  overflow: hidden;
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 760px;
}
th, td {
  padding: 20px 22px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
thead th {
  color: var(--text-mute);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--bg-2);
}
thead th.us {
  color: var(--gold);
  font-weight: 800;
  font-size: 14px;
  text-transform: none;
  letter-spacing: -0.01em;
  background: var(--gold-dim);
}
tbody td { color: var(--text-dim); }
tbody td:first-child { color: var(--text); font-weight: 500; }
tbody td.us {
  color: var(--gold);
  font-weight: 800;
  background: rgba(255, 180, 0, 0.04);
}
td.good-cell { color: var(--good); }
tbody tr:last-child td { border-bottom: none; }
.foot-note { margin-top: 22px; text-align: center; font-size: 13px; color: var(--text-mute); }

/* ── pricing ──────────────────────────────────────── */
.pricing { padding: 100px 0; }
.plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.plan {
  background: var(--panel);
  border-radius: var(--radius-xl);
  padding: 40px;
  position: relative;
}
.plan-pro {
  background: var(--panel);
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}
.plan-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gold);
  color: #0a0a0a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
}
.plan h3 { font-size: 16px; color: var(--text-dim); font-weight: 600; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.08em; }
.price { display: flex; align-items: baseline; gap: 10px; }
.price b { font-size: 52px; font-weight: 800; letter-spacing: -0.035em; color: var(--text); line-height: 1; }
.price span { color: var(--text-mute); font-size: 14px; font-weight: 500; }
.price-sub { color: var(--text-mute); font-size: 13px; margin-top: 8px; }
.plan ul {
  list-style: none;
  padding: 30px 0;
  margin: 0;
  display: flex; flex-direction: column; gap: 13px;
}
.plan li {
  padding-left: 28px;
  position: relative;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.5;
}
.plan li::before {
  content: '';
  position: absolute; left: 0; top: 6px;
  width: 16px; height: 16px;
  background: var(--gold);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M13.5 4 6 11.5 2.5 8' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M13.5 4 6 11.5 2.5 8' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
}
.plan li b { color: var(--text); font-weight: 700; }
.pricing-note {
  text-align: center;
  margin-top: 32px;
  font-size: 13px;
  color: var(--text-mute);
  max-width: 640px;
  margin-left: auto; margin-right: auto;
  line-height: 1.7;
}

/* ── faq ──────────────────────────────────────────── */
.faq { padding: 100px 0; }
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
details {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 22px 26px;
  transition: background .2s;
}
details:hover { background: var(--panel-2); }
details[open] { background: var(--panel-2); }
summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text);
  letter-spacing: -0.01em;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+';
  color: var(--gold);
  font-size: 24px;
  font-weight: 400;
  transition: transform .2s;
  line-height: 1;
}
details[open] summary::after { transform: rotate(45deg); }
details p { margin-top: 14px; font-size: 15px; line-height: 1.65; }

/* ── cta ──────────────────────────────────────────── */
.cta { padding: 130px 0; text-align: center; }
.cta h2 {
  font-size: clamp(36px, 5.5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}
.cta p { font-size: 18px; margin-bottom: 36px; }

/* ── footer ───────────────────────────────────────── */
.foot {
  border-top: 1px solid var(--border);
  padding: 64px 0 44px;
  background: var(--bg);
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 52px;
}
.foot-tag { margin-top: 16px; font-size: 14px; }
.foot-grid h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-mute);
  margin-bottom: 18px;
  font-weight: 700;
}
.foot-grid a {
  display: block;
  font-size: 14px;
  color: var(--text-dim);
  padding: 6px 0;
  transition: color .15s;
}
.foot-grid a:hover { color: var(--gold); }
.foot-disclaimer {
  border-top: 1px solid var(--border);
  padding-top: 30px;
  font-size: 12px;
  color: var(--text-mute);
  line-height: 1.75;
}
.foot-disclaimer p { color: var(--text-mute); margin-bottom: 10px; }
.foot-disclaimer b { color: var(--text-dim); }

/* ── responsive ───────────────────────────────────── */
@media (max-width: 1024px) {
  main { margin-left: 0; }
  .side {
    transform: translateX(-100%);
    transition: transform .25s ease;
    box-shadow: 24px 0 60px rgba(0,0,0,.5);
  }
  .side.open { transform: translateX(0); }
  .side-toggle { display: flex; }
  .hero { padding-top: 90px; }
}
@media (max-width: 880px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .problem-grid, .feat-grid { grid-template-columns: 1fr; }
  .feat-wide { grid-column: span 1; }
  .plans { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 84px 0 64px; }
  .problem, .features, .compare, .pricing, .faq { padding: 76px 0; }
  .wrap { padding: 0 20px; }
}
@media (max-width: 520px) {
  .foot-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .prob, .feat, .plan { padding: 26px; }
}
