/* TrenchBot: orange trading-desk sticker style.
   One loud thing (the guy + his speech bubble on the blaze field); everything else is quiet plates. */
:root {
  --blaze: #FF6A13;
  --blaze-deep: #D94E00;
  --apricot: #FFE7D4;
  --paper: #FFF7F0;
  --steel: #E7E1DB;
  --steel-dark: #B9AFA6;
  --suit: #3A2416;
  --glow: #FFD2A8;
  --blush: #FF9E66;
  --ink: #1E0B00;
  --ink-soft: #5A3A24;
  --up: #0A7D44;
  --down: #B8261C;
  --display: "Bowlby One", "Arial Black", system-ui, sans-serif;
  --body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-plate: 22px;
  --r-small: 12px;
  --pad: clamp(16px, 4vw, 48px);
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--blaze); color: var(--ink);
  font: 400 1.0625rem/1.55 var(--body); font-feature-settings: "tnum" 1;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.desk :focus-visible, .token :focus-visible, .foot :focus-visible { outline-color: var(--blaze); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 3px solid var(--ink);
  font: 700 1rem/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.0625rem; }
.btn-ink { background: var(--ink); color: var(--paper); box-shadow: 0 4px 0 var(--blaze-deep); }
.btn-line { background: transparent; color: var(--ink); }
.btn-blaze { background: var(--blaze); color: var(--ink); border-color: var(--blaze); }
@media (hover: hover) {
  .btn-ink:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--blaze-deep); }
  .btn-line:hover { background: var(--ink); color: var(--paper); }
  .btn-blaze:hover { background: var(--paper); border-color: var(--paper); }
}
.btn:active { transform: translateY(1px); }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px max(var(--pad), calc((100% - var(--max)) / 2));
  background: var(--blaze);
}
.top.scrolled { box-shadow: 0 3px 0 var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 400 1.35rem/1 var(--display); letter-spacing: -.01em; }
.brand-mark { width: 46px; height: 46px; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.chip {
  min-height: 44px; padding: 0 16px; border-radius: 999px; border: 3px solid var(--ink);
  background: var(--paper); color: var(--ink); font: 700 .9375rem/1 var(--body); cursor: pointer; white-space: nowrap;
}
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--ink); background: var(--paper); }
.icon-btn svg { width: 18px; height: 18px; fill: var(--ink); }

/* ---------- hero ---------- */
.hero {
  max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto;
  padding: clamp(24px, 5vw, 64px) var(--pad) 0;
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: clamp(24px, 4vw, 56px); align-items: end;
}
.hero h1 { grid-column: 1 / -1; max-width: 12.5em; }
.hero-copy { padding-bottom: clamp(32px, 6vw, 88px); align-self: end; }
h1 {
  font: 400 clamp(2.75rem, 6.4vw, 5.6rem)/.92 var(--display); letter-spacing: -.02em;
  text-wrap: balance;
}
.lede { margin-top: 0; max-width: 34em; font-size: clamp(1.05rem, 1.4vw, 1.2rem); }
.lede b { font-weight: 800; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.stage { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: end; gap: 0; margin-top: clamp(8px, 2vw, 24px); }
.guy-wrap { align-self: end; margin-right: -24px; position: relative; z-index: 1; }
.guy { width: 100%; height: auto; overflow: visible; }
.guy .mouth-open { display: none; }
.guy.talking .mouth-open { display: block; }
.guy.talking .mouth-closed { display: none; }
.guy .pupils { transition: transform .5s cubic-bezier(.3,.7,.2,1); }
.guy .brows { transition: transform .3s ease; }
.guy.excited .brows { transform: translateY(-5px); }
.guy .antenna { animation: ping 2.4s ease-in-out infinite; }
@keyframes ping { 0%, 100% { fill: var(--blaze); } 50% { fill: var(--glow); } }
.guy .lid { transition: height .08s linear; }
.guy.blink .lid { height: 48px; }
.guy .sweep { animation: sweep 2.6s cubic-bezier(.5,0,.5,1) infinite; }
@keyframes sweep { 0% { transform: translateX(0); } 50% { transform: translateX(150px); } 100% { transform: translateX(0); } }

.hero > *, .stage > * { min-width: 0; }
.bubble {
  position: relative; align-self: center; margin-bottom: clamp(24px, 5vw, 72px);
  background: var(--paper); border: 4px solid var(--ink); border-radius: 28px;
  padding: 22px 24px 20px; box-shadow: 8px 8px 0 var(--ink);
}
.bubble::before, .bubble::after { content: ""; position: absolute; left: -26px; bottom: 54px; border-style: solid; }
.bubble::before { border-width: 16px 26px 16px 0; border-color: transparent var(--ink) transparent transparent; }
.bubble::after { left: -18px; bottom: 58px; border-width: 12px 20px 12px 0; border-color: transparent var(--paper) transparent transparent; }

.pick { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; }
.pick-img, .pick-badge { width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--ink); object-fit: cover; background: var(--apricot); }
.pick-badge { display: grid; place-items: center; font: 400 1.1rem/1 var(--display); }
.pick-img:not([hidden]) + .pick-badge { display: none; }
.pick-kicker { font-weight: 700; font-size: .9375rem; color: var(--ink-soft); }
.pick-name { font: 400 clamp(1.8rem, 3.2vw, 2.5rem)/1 var(--display); overflow-wrap: anywhere; }
.dial { position: relative; width: 64px; height: 64px; }
.dial svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dial circle { fill: none; stroke-width: 5; }
.dial-bg { stroke: var(--apricot); }
.dial-fg { stroke: var(--blaze); stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray .9s cubic-bezier(.3,.7,.2,1); }
.dial-num { position: absolute; inset: 0; display: grid; place-items: center; font: 800 1.2rem/1 var(--body); }

.scan-line { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 8px 12px; border-radius: 12px; background: var(--apricot); font-size: .875rem; font-weight: 500; color: var(--ink-soft); }
.scan-line [data-k="scan-status"] { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scan-next { white-space: nowrap; }
.scan-next b { display: inline-block; min-width: 3ch; font-weight: 800; color: var(--ink); text-align: right; }
.scan-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 0 rgba(10, 125, 68, .5); animation: live 1.6s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(10, 125, 68, .5); } 100% { box-shadow: 0 0 0 9px rgba(10, 125, 68, 0); } }
.guy.scanning .antenna { animation-duration: .5s; }
.guy.scanning .sweep { animation-duration: 1s; }
.thesis { list-style: none; margin: 14px 0 0; padding: 0; min-height: 17.5em; display: grid; gap: 8px; align-content: start; }
.thesis li { position: relative; padding-left: 20px; font-size: 1.02rem; line-height: 1.45; }
.thesis li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--blaze); }
.thesis li:first-child { font-weight: 700; }
.thesis .caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -.15em; background: var(--ink); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

.round { margin-top: 18px; padding-top: 14px; border-top: 3px dashed var(--apricot); }
.voice-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin-bottom: 12px; padding: 0 14px 0 10px; border: 3px solid var(--ink); border-radius: 999px; background: var(--blaze); color: var(--ink); font: 700 .9375rem/1 var(--body); cursor: pointer; }
.voice-btn svg { width: 20px; height: 20px; }
.voice-btn .ic-off { display: none; }
.voice-btn.is-muted { background: var(--paper); }
.voice-btn.is-muted .ic-on { display: none; }
.voice-btn.is-muted .ic-off { display: block; }
.voice-btn[aria-pressed="false"]:not(.is-muted) { animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 0%, 70%, 100% { transform: none; } 80% { transform: rotate(-3deg); } 90% { transform: rotate(3deg); } }
.round-bar { height: 10px; border-radius: 99px; background: var(--apricot); overflow: hidden; }
.round-bar span { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 99px; transition: width 1s linear; }
.round-text { margin-top: 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 700; }
.clock { font: 400 1.6rem/1 var(--display); }
.round.pre .round-bar span { width: 0 !important; }

/* ---------- desk (live scan) ---------- */
.desk { background: var(--ink); color: var(--paper); padding: clamp(56px, 8vw, 104px) 0; border-radius: 40px 40px 0 0; position: relative; z-index: 2; }
.desk-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 32px; }
.desk h2, .method h2, .loop h2, .drops h2, .token h2, .faq h2 { font: 400 clamp(2rem, 4.4vw, 3.4rem)/.98 var(--display); letter-spacing: -.015em; text-wrap: balance; }
.desk-sub { max-width: 30em; color: #F3D6C1; }
.scan-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 36px 0 20px; }
.scan-stats div { background: #2E1608; border-radius: var(--r-small); padding: 14px 16px; }
.scan-stats dt { font-size: .875rem; color: #F3D6C1; }
.scan-stats dd { margin: 4px 0 0; font: 800 1.6rem/1.1 var(--body); color: var(--blaze); }
.board-scroll { overflow-x: auto; border-radius: var(--r-plate); background: #2E1608; }
.board { width: 100%; border-collapse: collapse; min-width: 720px; }
.board th { text-align: left; font-size: .875rem; font-weight: 500; color: #F3D6C1; padding: 14px 16px; }
.board td { padding: 14px 16px; border-top: 2px solid var(--ink); vertical-align: middle; }
.board tr.is-pick td { background: var(--blaze); color: var(--ink); }
.board tr.is-out td { color: #C7A891; }
.board .coin { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.board .coin img, .board .coin .av { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--paper); object-fit: cover; flex: none; background: var(--ink-soft); display: grid; place-items: center; font: 400 .7rem/1 var(--display); color: var(--paper); }
.board tr.is-pick .coin img, .board tr.is-pick .coin .av { border-color: var(--ink); }
.board .coin a { text-decoration: none; }
.board .coin a:hover { text-decoration: underline; }
.board .coin small { display: block; font-weight: 400; font-size: .8125rem; opacity: .8; }
.board .flow { white-space: nowrap; }
.board .flow .b { color: #39C97E; } .board .flow .s { color: #FF7A6B; }
.board tr.is-pick .flow .b { color: var(--up); } .board tr.is-pick .flow .s { color: var(--down); }
.score-cell { display: flex; align-items: center; gap: 10px; min-width: 150px; }
.score-bar { flex: 1; height: 8px; border-radius: 99px; background: var(--ink); overflow: hidden; }
.score-bar span { display: block; height: 100%; background: var(--blaze); border-radius: 99px; }
.board tr.is-pick .score-bar { background: rgba(30, 11, 0, .25); }
.board tr.is-pick .score-bar span { background: var(--ink); }
.score-cell b { font-weight: 800; min-width: 2ch; }
.verdict { display: inline-block; font-weight: 700; font-size: .9rem; }
.pick-tag { display: inline-block; margin-left: 8px; padding: 3px 10px; border-radius: 99px; background: var(--ink); color: var(--blaze); font-size: .8125rem; font-weight: 700; }
.board-empty { text-align: center; color: #F3D6C1; padding: 32px !important; }
.desk-note { margin-top: 20px; max-width: 52em; color: #F3D6C1; font-size: .9375rem; }

/* ---------- method ---------- */
.method { background: var(--apricot); padding: clamp(56px, 8vw, 104px) 0; }
.section-sub { margin-top: 14px; max-width: 36em; font-size: 1.1rem; }
.weights { display: flex; height: 64px; margin: 36px 0 24px; border: 4px solid var(--ink); border-radius: 18px; overflow: hidden; }
.weights span { flex: var(--w); display: flex; align-items: center; padding-left: 16px; font: 400 1.5rem/1 var(--display); border-right: 4px solid var(--ink); }
.weights span:last-child { border-right: 0; }
.weights span:nth-child(1) { background: var(--ink); color: var(--blaze); }
.weights span:nth-child(2) { background: var(--blaze); }
.weights span:nth-child(3) { background: var(--paper); }
.weights span:nth-child(4) { background: var(--blush); }
.factors { display: grid; grid-template-columns: 30fr 25fr 25fr 20fr; gap: 16px; }
.factors article { padding-top: 4px; }
.factors h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font: 800 1.25rem/1.2 var(--body); }
.factors h3 span { font: 400 1rem/1 var(--display); color: var(--blaze-deep); }
.factors p { margin-top: 8px; font-size: .98rem; }

/* ---------- loop ---------- */
.loop { padding: clamp(56px, 8vw, 104px) 0; }
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: s; border-top: 4px solid var(--ink); }
.steps li { counter-increment: s; padding: 20px 18px 0 0; position: relative; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; margin-top: -44px; border-radius: 50%; background: var(--ink); color: var(--blaze); font: 400 1.1rem/1 var(--display); transform: translateY(-2px); }
.steps li:last-child::before { background: var(--paper); color: var(--ink); border: 4px solid var(--ink); }
.steps h3 { margin-top: 16px; font: 800 1.2rem/1.2 var(--body); }
.steps p { margin-top: 6px; font-size: .98rem; max-width: 18em; }

/* ---------- drops ---------- */
.drops { background: var(--paper); padding: clamp(56px, 8vw, 104px) 0; }
.drops-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; }
.totals { display: flex; gap: 12px; margin: 0; }
.totals div { background: var(--apricot); border-radius: var(--r-small); padding: 12px 18px; min-width: 130px; }
.totals dt { font-size: .875rem; color: var(--ink-soft); }
.totals dd { margin: 2px 0 0; font: 800 1.5rem/1.1 var(--body); }
.drop-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 10px; }
.drop-list li { display: grid; grid-template-columns: auto 1fr auto auto; gap: 16px; align-items: center; padding: 14px 18px; background: var(--apricot); border-radius: var(--r-plate); }
.drop-list .drop-empty { display: block; padding: 28px; text-align: center; font-weight: 500; border: 3px dashed #F2C4A2; background: transparent; }
.drop-list .when { font-weight: 700; min-width: 6em; }
.drop-list .what { font-weight: 800; }
.drop-list .what small { display: block; font-weight: 400; color: var(--ink-soft); font-size: .875rem; }
.drop-list a { font-weight: 700; }

/* ---------- token ---------- */
.token { background: var(--ink); color: var(--paper); padding: clamp(56px, 8vw, 104px) 0; }
.token h2 { color: var(--blaze); font-size: clamp(2.1rem, 4.4vw, 4rem); white-space: nowrap; }
.token .section-sub { color: #F3D6C1; margin-bottom: 28px; }
.token .section-sub b { color: var(--paper); }
.token-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.ca-card { background: #2E1608; border-radius: 28px; padding: 28px; display: grid; gap: 16px; justify-items: start; }
.ca-label { font-size: .9375rem; color: #F3D6C1; }
.ca-full { font: 700 1.05rem/1.4 var(--body); overflow-wrap: anywhere; color: var(--paper); }
.ca-note { font-size: .9375rem; color: #F3D6C1; }

/* ---------- faq ---------- */
.faq { background: var(--apricot); padding: clamp(56px, 8vw, 104px) 0; }
.faq h2 { margin-bottom: 28px; }
.faq details { border-top: 3px solid var(--ink); max-width: 860px; }
.faq details:last-of-type { border-bottom: 3px solid var(--ink); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font: 800 1.15rem/1.3 var(--body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 400 1.6rem/1 var(--display); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 22px; max-width: 40em; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: var(--paper); padding: 48px 0 56px; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 28px; border-bottom: 2px solid #2E1608; }
.foot .brand { color: var(--blaze); }
.foot nav { display: flex; gap: 24px; }
.foot nav a { font-weight: 700; text-decoration: none; }
.foot nav a:hover { color: var(--blaze); }
.disclaimer { margin-top: 24px; font-size: .8125rem; line-height: 1.6; color: #C7A891; max-width: 80em; }
.disclaimer b { color: var(--paper); }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: var(--paper); padding: 12px 20px; border-radius: 999px; font-weight: 700; transition: opacity .2s ease, transform .2s ease; z-index: 60; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 8px; margin-top: 24px; }
  .stage { grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); }
  .factors { grid-template-columns: 1fr 1fr; gap: 24px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 48px; }
}
@media (max-width: 720px) {
  .top { padding-top: 10px; padding-bottom: 10px; }
  .brand span { display: none; }
  .top .btn { padding: 0 14px; font-size: .9375rem; }
  .stage { grid-template-columns: 1fr; }
  .guy-wrap { width: 62%; max-width: 260px; margin: 0 auto -6px; order: 2; }
  .bubble { order: 1; margin-bottom: 30px; padding: 18px 18px 16px; box-shadow: 6px 6px 0 var(--ink); }
  .bubble::before { left: 50%; bottom: -26px; transform: translateX(-50%); border-width: 26px 16px 0 16px; border-color: var(--ink) transparent transparent transparent; }
  .bubble::after { left: 50%; bottom: -17px; transform: translateX(-50%); border-width: 20px 12px 0 12px; border-color: var(--paper) transparent transparent transparent; }
  .pick { gap: 10px; }
  .pick-img, .pick-badge { width: 46px; height: 46px; }
  .dial { width: 54px; height: 54px; }
  .thesis { min-height: 21em; }
  .scan-line { font-size: .8125rem; padding: 7px 10px; }
  .scan-stats { grid-template-columns: 1fr 1fr; }
  .weights span { font-size: 1.1rem; padding-left: 10px; }
  .factors { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; border-top: 0; border-left: 4px solid var(--ink); margin-left: 20px; row-gap: 28px; }
  .steps li { padding: 0 0 0 36px; }
  .steps li::before { position: absolute; left: -24px; top: 0; margin: 0; transform: none; }
  .steps h3 { margin-top: 8px; }
  .drop-list li { grid-template-columns: 1fr auto; }
  .drop-list .when { grid-column: 1 / -1; }
  .token-grid { grid-template-columns: 1fr; }
  .desk { border-radius: 28px 28px 0 0; }
}
@media (max-width: 440px) {
  .top .chip { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
