:root {
  --bg: #f5f3ee;
  --paper: #fffdf8;
  --ink: #121410;
  --muted: #656b61;
  --line: #d9dbd3;
  --green: #0d6b46;
  --green-dark: #084b32;
  --lime: #d9ff67;
  --gold: #d3a82d;
  --radius: 18px;
  --shadow: 0 16px 40px rgba(12, 20, 13, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--bg); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.shell { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.demo-bar { background: #151711; color: #f7f7ef; text-align: center; padding: 8px 16px; font-size: 12px; letter-spacing: .02em; }
.site-header { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; min-height: 72px; padding: 12px max(20px, calc((100vw - 1120px)/2)); background: rgba(245,243,238,.92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 19px; letter-spacing: -.03em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--green); color: white; font-size: 13px; letter-spacing: -.04em; }
.main-nav { display: flex; gap: 26px; justify-content: center; color: #3f443c; font-weight: 650; font-size: 14px; }
.main-nav a:hover, .main-nav .active { color: var(--green); }
.site-header > .btn { justify-self: end; }
.live-strip { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; padding: 10px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; background: #eeece6; }
.live-strip span:first-child { color: var(--green); font-weight: 800; }
.live-strip i { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #2ccc77; box-shadow: 0 0 0 4px rgba(44,204,119,.12); }
.hero { display: grid; grid-template-columns: 1.45fr .7fr; gap: 44px; align-items: end; padding-block: 74px 58px; }
.eyebrow { margin: 0 0 10px; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 900; color: var(--green); }
h1, h2, h3 { letter-spacing: -.045em; line-height: .98; margin: 0; }
h1 { font-size: clamp(48px, 7vw, 86px); max-width: 850px; }
h1 span { color: var(--green); }
h2 { font-size: clamp(34px, 4.2vw, 58px); }
h3 { font-size: 28px; }
.hero-lede { max-width: 760px; margin: 22px 0 8px; font-size: clamp(20px, 2.2vw, 28px); font-weight: 750; line-height: 1.25; }
.hero-sub { max-width: 720px; color: var(--muted); line-height: 1.55; font-size: 16px; }
.hero-actions { display: flex; align-items: center; gap: 20px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border: 1px solid var(--green-dark); border-radius: 12px; background: var(--green); color: white; font-weight: 850; cursor: pointer; box-shadow: none; transition: .18s ease; }
.btn:hover { transform: translateY(-1px); background: var(--green-dark); }
.btn-small { min-height: 40px; padding-inline: 14px; font-size: 13px; }
.btn-ghost { background: transparent; color: var(--green-dark); border-color: var(--line); }
.btn-ghost:hover { background: var(--paper); }
.btn-wide { width: 100%; }
.text-link { font-weight: 850; color: var(--green-dark); }
.hero-card { padding: 24px; border-radius: var(--radius); background: #151711; color: #f9f9f1; box-shadow: var(--shadow); transform: rotate(1.2deg); }
.card-kicker { display: inline-block; margin-bottom: 26px; padding: 6px 9px; border-radius: 999px; background: var(--lime); color: #17200f; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.hero-card strong { display: block; font-size: 28px; line-height: 1.05; letter-spacing: -.04em; }
.hero-card p { color: #bdc2b8; line-height: 1.5; }
.section-block { padding-block: 54px; border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.tabs { display: inline-flex; padding: 4px; border: 1px solid var(--line); background: #eceae4; border-radius: 12px; }
.tab { border: 0; background: transparent; padding: 8px 14px; border-radius: 9px; color: var(--muted); font-weight: 800; cursor: pointer; }
.tab.is-active { background: var(--paper); color: var(--ink); box-shadow: 0 2px 7px rgba(0,0,0,.06); }
.leaderboard { display: grid; gap: 10px; margin-bottom: 14px; }
.rank-row { display: grid; grid-template-columns: 64px 1fr auto auto; gap: 18px; align-items: center; min-height: 92px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.rank-row.top-1 { border-color: #b89b3f; background: linear-gradient(90deg, #fff9df 0, var(--paper) 25%); }
.rank-number { font-size: 28px; font-weight: 950; letter-spacing: -.05em; color: #9a9f95; text-align: center; }
.top-1 .rank-number { color: var(--gold); }
.brand-cell { display: flex; align-items: center; gap: 14px; min-width: 0; }
.logo { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 11px; display: grid; place-items: center; font-weight: 950; background: #e5e8df; color: var(--green-dark); overflow: hidden; }
.logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-meta { min-width: 0; }
.brand-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.brand-name { font-weight: 900; font-size: 17px; }
.badge { padding: 4px 7px; border-radius: 999px; background: #e9efe7; color: var(--green-dark); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.pitch { margin: 4px 0 3px; color: #545a51; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 620px; }
.meta { color: #8b9087; font-size: 12px; }
.amount { font-weight: 950; font-size: 18px; white-space: nowrap; }
.outbid-btn { min-width: 122px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.panel-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; margin-bottom: 18px; }
.panel h3 { font-size: 25px; }
.live-pill { padding: 4px 7px; background: #dff7e9; color: #08723d; border-radius: 999px; font-size: 10px; font-weight: 900; }
.fire { font-size: 22px; }
.mini-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.mini-list li { display: grid; grid-template-columns: 24px 1fr auto; gap: 8px; align-items: center; font-size: 13px; padding-bottom: 10px; border-bottom: 1px solid #ecece6; }
.mini-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.mini-list .mini-rank { color: #9da299; font-weight: 900; }
.mini-list strong { font-size: 13px; }
.mini-list em { font-style: normal; color: var(--muted); white-space: nowrap; }
.enter-section { display: grid; grid-template-columns: .8fr 1fr; gap: 54px; }
.enter-copy > p:not(.eyebrow) { color: var(--muted); line-height: 1.55; font-size: 17px; }
.check-list { list-style: none; padding: 0; display: grid; gap: 10px; margin-top: 28px; }
.check-list li::before { content: "✓"; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 9px; border-radius: 50%; background: #dff3e7; color: var(--green); font-weight: 900; }
.bid-form { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.bid-form label { display: grid; gap: 7px; margin-bottom: 15px; font-weight: 800; font-size: 13px; }
.bid-form label span { color: var(--muted); font-weight: 500; }
input { width: 100%; min-height: 46px; border: 1px solid #cfd3c9; border-radius: 10px; padding: 0 12px; background: #fff; outline: none; }
input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(13,107,70,.1); }
.rank-preview { margin: 7px 0 14px; padding: 11px 12px; border-radius: 10px; background: #efeee8; color: var(--muted); font-size: 13px; }
.rank-preview strong { color: var(--ink); }
.form-note { color: var(--muted); font-size: 11px; line-height: 1.4; text-align: center; }
.rules-teaser { display: grid; grid-template-columns: .65fr 1fr; gap: 44px; align-items: start; }
.rules-teaser ol { margin: 0; padding-left: 22px; display: grid; gap: 14px; line-height: 1.5; }
.rules-teaser .text-link { grid-column: 2; }
.site-footer { margin-top: 60px; background: #151711; color: #f2f3ec; padding: 48px 0 18px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 42px; }
.footer-grid > div { display: grid; align-content: start; gap: 10px; }
.footer-grid p { color: #aeb4aa; max-width: 380px; line-height: 1.5; margin: 4px 0; }
.footer-grid a:not(.brand) { color: #c8cdc3; font-size: 13px; }
.footer-grid strong { margin-bottom: 4px; }
.muted { font-size: 12px; }
.copyright { color: #7f867b; border-top: 1px solid #31352f; margin-top: 38px; padding-top: 18px; font-size: 12px; }
.legal-page { max-width: 860px; padding-top: 74px; padding-bottom: 80px; }
.legal-page h1 { max-width: 760px; }
.legal-lede { font-size: 22px; line-height: 1.45; color: #41463e; margin: 24px 0 54px; }
.legal-page section { padding: 28px 0; border-top: 1px solid var(--line); }
.legal-page h2 { font-size: 34px; margin-bottom: 16px; }
.legal-page p, .legal-page li { line-height: 1.65; color: #4d534b; }

@media (max-width: 860px) {
  .site-header { grid-template-columns: 1fr auto; }
  .main-nav { display: none; }
  .hero, .enter-section, .rules-teaser { grid-template-columns: 1fr; }
  .hero { gap: 28px; padding-top: 52px; }
  .hero-card { transform: none; }
  .stats-grid { grid-template-columns: 1fr; }
  .rank-row { grid-template-columns: 48px 1fr auto; }
  .outbid-btn { grid-column: 2 / 4; width: 100%; }
  .rules-teaser .text-link { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .site-header { padding-inline: 14px; }
  .site-header > .btn { display: none; }
  .live-strip { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  .live-strip span { white-space: nowrap; }
  h1 { font-size: 48px; }
  .section-head { align-items: start; flex-direction: column; }
  .rank-row { grid-template-columns: 38px 1fr; gap: 10px; }
  .amount { grid-column: 2; }
  .outbid-btn { grid-column: 2; }
  .logo { width: 42px; height: 42px; flex-basis: 42px; }
  .pitch { max-width: 60vw; }
  .footer-grid { grid-template-columns: 1fr; }
}
