/* Bidli landing. Brand tokens from the v2 mark:
   white surfaces, ink #060c26, gradient #0fbffb -> #0077fa -> #7d34fe.
   Brand gradient is for large display + graphics only; small white text
   sits on --grad-action / --accent-fill (AA). Small accent text: #0b4cc9. */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f7f8fb;
  --bg-raised: #f4f5f8;
  --ink: #060c26;
  --ink-soft: #494f68;
  --ink-faint: #666c84;
  --line: rgba(7, 14, 41, 0.10);
  --line-2: rgba(7, 14, 41, 0.16);

  --cyan: #0fbffb;
  --blue: #0077fa;
  --violet: #7d34fe;
  --accent-text: #0b4cc9;
  --accent-fill: #0b4cc9;
  --grad: linear-gradient(135deg, #0fbffb 0%, #0077fa 48%, #7d34fe 100%);
  --grad-action: linear-gradient(135deg, #0b5fd7 0%, #0b4cc9 45%, #6d28d9 100%);
  --blue-wash: rgba(0, 119, 250, 0.10);
  --violet-wash: rgba(125, 52, 254, 0.10);
  --green: #059669;
  --red: #dc2626;

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --r-xl: 24px;
  --r-lg: 20px;
  --r-md: 16px;
  --r-sm: 11px;
  --shadow-card: 0 1px 2px rgba(7, 14, 41, 0.04), 0 10px 30px rgba(7, 14, 41, 0.07);
  --shadow-hover: 0 2px 4px rgba(7, 14, 41, 0.05), 0 18px 44px rgba(7, 14, 41, 0.12);
  --shadow-float: 0 2px 6px rgba(7, 14, 41, 0.05), 0 30px 70px rgba(7, 14, 41, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
::selection { background: rgba(0, 119, 250, 0.18); }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 28px; }
.wrap.narrow { max-width: 780px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; margin: 0 0 22px; letter-spacing: -0.025em; }
h1 { font-size: clamp(40px, 5.6vw, 66px); font-weight: 700; }
h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0 0 16px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-line2 { font-size: 0.72em; line-height: 1.12; display: inline-block; margin-top: 8px; }

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 16px;
}
.eyebrow.light { color: #9fc1ff; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  border: 0;
  border-radius: 13px;
  padding: 15px 26px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
  overflow: hidden;
}
.btn-primary {
  color: #ffffff;
  background: var(--grad-action);
  box-shadow: 0 10px 24px rgba(11, 76, 201, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(11, 76, 201, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.22); }
.btn-ghost {
  color: var(--ink);
  background: #ffffff;
  box-shadow: inset 0 0 0 1.5px var(--line-2);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px rgba(7, 14, 41, 0.45); transform: translateY(-2px); }
.btn-lg { padding: 18px 32px; font-size: 17px; }
.btn-block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 15px 28px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo img { height: 36px; width: auto; }
.nav-links { display: flex; gap: 30px; margin-left: auto; }
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta { padding: 12px 22px; font-size: 15px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 92px 0 76px; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(48% 42% at 84% 8%, rgba(15, 191, 251, 0.07), transparent 65%),
    radial-gradient(40% 38% at 96% 70%, rgba(125, 52, 254, 0.05), transparent 65%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 64px;
  align-items: center;
}
.hero-sub { font-size: 19px; color: var(--ink-soft); max-width: 56ch; }
.hero-ctas { display: flex; gap: 14px; margin: 32px 0 0; flex-wrap: wrap; }

.hero-proof {
  margin: 22px 0 0;
  font-size: 14.5px;
  color: var(--ink-soft);
  max-width: 52ch;
  border-left: 3px solid;
  border-image: var(--grad) 1;
  padding-left: 14px;
}
.hero-proof strong { color: var(--ink); }
.hero-proof span { display: block; font-size: 12px; color: var(--ink-faint); margin-top: 2px; }

/* Even-if stack */
.evenif { margin-top: 26px; }
.evenif-kicker {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 8px;
}
.evenif ul { list-style: none; margin: 0; padding: 0; }
.evenif li {
  position: relative;
  padding: 4px 0 4px 26px;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
}
.evenif li::before {
  content: "";
  position: absolute;
  left: 2px; top: 13px;
  width: 8px; height: 5px;
  border-left: 2px solid var(--accent-text);
  border-bottom: 2px solid var(--accent-text);
  transform: rotate(-45deg);
}

/* ---------- App window mock ---------- */
.hero-visual { position: relative; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -14% -10%;
  background:
    radial-gradient(44% 44% at 20% 18%, rgba(15, 191, 251, 0.16), transparent 70%),
    radial-gradient(48% 48% at 85% 82%, rgba(125, 52, 254, 0.15), transparent 70%);
  z-index: 0;
  filter: blur(2px);
}
/* Whiteboard: the hand-drawn story */
.board {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  padding: 26px 26px 18px;
  display: grid;
  grid-template-rows: 1fr auto;
  transition: opacity 0.45s ease;
}
.board.board-fade { opacity: 0; }
.board-svg { width: 100%; height: auto; display: block; }
.board-svg .scene { opacity: 0; visibility: hidden; }
.board-svg .scene.on { opacity: 1; visibility: visible; }
.board-svg .scene :is(path, circle, rect) {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.board-svg .scene .lite { stroke-width: 2; opacity: 0.45; }
.board-svg .scene.on :is(path, circle, rect) {
  animation: boardDraw 0.8s ease forwards;
  animation-delay: calc(var(--d, 0) * 1ms);
}
@keyframes boardDraw { to { stroke-dashoffset: 0; } }
.board-mark { opacity: 0; transition: opacity 0.5s ease; }
.board-svg .scene.on .board-mark { opacity: 1; transition-delay: 1.1s; }
.board-cap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 10px 0 0;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}
.board-cap span {
  font-family: 'Caveat', cursive;
  font-size: 27px;
  line-height: 1.25;
  font-weight: 600;
  color: var(--ink);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.board-cap span.in { opacity: 1; transform: translateY(0); }

/* ---------- Trade roll call marquee ---------- */
.trades {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 34px 0 30px;
}
.trades-line {
  margin: 0 0 20px;
  font-size: 17px;
  color: var(--ink-soft);
}
.trades-line strong { color: var(--ink); }
.tchips { display: flex; flex-wrap: wrap; gap: 9px; }
.tchips span {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 9px 18px;
}
.tchips .tchip-more {
  color: #ffffff;
  background: var(--accent-fill);
  border-color: transparent;
}

/* ---------- Narrative sections ---------- */
.problem { padding: 110px 0 92px; }
.problem h2 { margin-bottom: 28px; }
.problem p { font-size: 18px; color: var(--ink-soft); }
.punch {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
  border-left: 4px solid;
  border-image: var(--grad) 1;
  padding-left: 22px;
  margin-top: 30px;
}

/* Commodity */
.commodity { padding: 0 0 100px; }
.sect-intro { font-size: 18px; color: var(--ink-soft); max-width: 62ch; }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 44px;
}
.step {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.step-num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 14px;
}
.step--bad .step-num { color: var(--red); }
.step h3 { margin-bottom: 10px; font-size: 19px; }
.step p { font-size: 15px; color: var(--ink-soft); margin: 0; }
.wrap-punch {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  border-left: 4px solid var(--red);
  padding-left: 22px;
  margin-top: 36px;
}
.bigleagues { padding-top: 0; }

/* ---------- Cheat code ---------- */
.cheat { padding: 0 0 100px; }
.cheat-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.cheat-copy { position: relative; z-index: 1; }
.cheat-copy p { font-size: 18px; color: var(--ink-soft); }
.cheat-copy p.cheat-punch {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 28px 0 14px;
}
.cheat-copy p.cheat-note { font-size: 15px; color: var(--ink-faint); }
.check-card {
  position: relative;
  z-index: 1;
  background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box;
  border: 1.5px solid transparent;
  border-radius: var(--r-lg);
  padding: 38px;
  box-shadow: var(--shadow-float);
}
.check-card h3 { margin-bottom: 16px; font-size: 21px; }
.check-card .price-list { margin: 0; }
.price-list { list-style: none; margin: 22px 0 28px; padding: 0; }
.price-list li {
  position: relative;
  padding: 8px 0 8px 32px;
  color: var(--ink-soft);
  font-size: 16px;
}
.price-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 14px;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--blue-wash);
}
.price-list li::after {
  content: "";
  position: absolute;
  left: 5px; top: 19px;
  width: 7px; height: 4.5px;
  border-left: 2px solid var(--accent-text);
  border-bottom: 2px solid var(--accent-text);
  transform: rotate(-45deg);
}

/* ---------- Lanes + options cards ---------- */
.lanes { padding: 0 0 100px; }
.lanes .g-grid { margin-top: 40px; }
.options { padding: 100px 0; background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.options .g-grid { margin-top: 44px; }
.g-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.g-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 38px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.g-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.g-card h3 { margin-bottom: 12px; font-size: 22px; }
.g-card p { margin: 0; color: var(--ink-soft); font-size: 16.5px; }
.g-card.g-card--hl {
  background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box;
  border: 1.5px solid transparent;
  box-shadow: var(--shadow-float);
}

/* ---------- Dark intelligence band ---------- */
.founder { padding: 0 0 100px; }
.options + .founder { padding-top: 100px; }
.founder-card {
  background: var(--ink);
  border-radius: var(--r-xl);
  padding: 72px 64px;
  position: relative;
  overflow: hidden;
}
.founder-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(125, 52, 254, 0.28), transparent 60%),
    radial-gradient(50% 80% at 0% 100%, rgba(0, 119, 250, 0.22), transparent 60%);
  pointer-events: none;
}
.founder-body { position: relative; z-index: 1; max-width: 780px; }
.founder-body.wide { max-width: none; }
.intel-h { color: #ffffff; margin-bottom: 40px; }
.intel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.intel-item {
  border-top: 2.5px solid;
  border-image: var(--grad) 1;
  padding-top: 20px;
}
.intel-item h3 { color: #ffffff; margin-bottom: 8px; font-size: 19px; }
.intel-item p { color: #c4cbe8; font-size: 15.5px; margin: 0; }

/* ---------- FAQ ---------- */
.faq { padding: 0 0 100px; }
.faq-item { margin-top: 10px; border-top: 1px solid var(--line); padding: 26px 0 4px; }
.faq-item h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 20px;
}
.faq-item h3::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--grad);
  flex: none;
}
.faq-item p { color: var(--ink-soft); margin: 0 0 16px; font-size: 16.5px; }

/* ---------- Book ---------- */
.book {
  background: var(--ink);
  padding: 104px 0;
  position: relative;
  overflow: hidden;
}
.book::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(55% 70% at 85% 10%, rgba(125, 52, 254, 0.25), transparent 60%),
    radial-gradient(45% 65% at 8% 90%, rgba(0, 119, 250, 0.20), transparent 60%);
  pointer-events: none;
}
.book-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.book-copy h2 { color: #ffffff; }
.book-copy p { color: #c4cbe8; font-size: 18px; }
.book-list { list-style: none; margin: 26px 0 0; padding: 0; }
.book-list li {
  position: relative;
  padding: 8px 0 8px 30px;
  color: #ffffff;
  font-size: 16.5px;
  font-weight: 500;
}
.book-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 17px;
  width: 8px; height: 5px;
  border-left: 2.5px solid var(--cyan);
  border-bottom: 2.5px solid var(--cyan);
  transform: rotate(-45deg);
}

.lead-form {
  background: #ffffff;
  border-radius: var(--r-xl);
  padding: 38px;
  box-shadow: var(--shadow-float);
}
.ff { margin-bottom: 16px; flex: 1; }
.ff-row { display: flex; gap: 14px; }
.ff label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}
.ff input {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--bg-raised);
  border: 1.5px solid transparent;
  border-radius: var(--r-sm);
  padding: 13px 15px;
  outline: none;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.ff input::placeholder { color: #9aa0b5; }
.ff input:focus {
  border-color: var(--blue);
  background: #ffffff;
  box-shadow: 0 0 0 4px var(--blue-wash);
}
.lead-form .btn { margin-top: 6px; }
.form-fine {
  text-align: center;
  font-size: 13px;
  color: var(--ink-faint);
  margin: 12px 0 0;
}
.form-done {
  margin-top: 16px;
  background: rgba(5, 150, 105, 0.10);
  border: 1px solid rgba(5, 150, 105, 0.35);
  color: #065f46;
  border-radius: var(--r-sm);
  padding: 14px 16px;
  font-size: 15px;
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 34px 0; }
.footer-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-mark { height: 28px; width: auto; }
.footer-row p { margin: 0; font-size: 14px; color: var(--ink-faint); }
.footer-links { margin-left: auto; display: flex; gap: 20px; }
.footer-links a {
  color: var(--ink-faint);
  font-size: 14px;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}
.footer-links a:hover { color: var(--ink); }

/* ---------- Legal pages ---------- */
.legal { padding: 64px 0 96px; }
.legal h1 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 6px; }
.legal-date { color: var(--ink-faint); font-size: 14px; margin-bottom: 30px; }
.legal h2 { font-size: 20px; margin: 30px 0 8px; }
.legal p { color: var(--ink-soft); font-size: 16px; }
.legal a { color: var(--accent-text); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .board-svg .scene :is(path, circle, rect) { animation: none; stroke-dashoffset: 0; }
  .board-mark, .board-cap span { transition: none; }
  .btn, .step, .g-card { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero { padding: 60px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 52px; }
  .cheat-grid { grid-template-columns: 1fr; gap: 44px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .g-grid, .book-grid { grid-template-columns: 1fr; }
  .intel-grid { grid-template-columns: 1fr; }
  .founder-card { padding: 48px 32px; }
  .book-grid { gap: 48px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .steps { grid-template-columns: 1fr; }
  .ff-row { flex-direction: column; gap: 0; }
  .lead-form { padding: 26px 20px; }
  .board { padding: 18px 16px 12px; }
  .board-cap { min-height: 86px; }
  .board-cap span { font-size: 23px; }
  .hero-ctas .btn { width: 100%; }
  .footer-links { margin-left: 0; }
}
