:root {
  --bg: #fff; --fg: #0a0a0a; --muted: #6b6b6b; --line: #e8e8e8; --soft: #f5f5f5;
  --font: "Manrope", "Heebo", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0a0a0a; --fg: #f5f5f5; --muted: #9a9a9a; --line: #262626; --soft: #151515; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); line-height: 1.4; }
[dir="rtl"] body { font-family: "Heebo", "Manrope", sans-serif; }
small { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: block; }
.muted { color: var(--muted); }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -.04em; }

.nav { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center;
  padding: 14px clamp(16px, 7vw, 140px); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); }
.logo { font-size: 12px; letter-spacing: .08em; font-weight: 500; }
.nav nav { display: flex; gap: 8px; }
.pill { border: 0; background: none; color: inherit; font: inherit; font-size: 13px; font-weight: 600; padding: 10px 16px; border-radius: 99px; cursor: pointer; }
.pill.dark { background: var(--fg); color: var(--bg); }

main { padding: 0 clamp(16px, 7vw, 140px); }
.eyebrow { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }

.hero { text-align: center; padding: 56px 0 24px; }
.hero h1 { font-size: clamp(44px, 9vw, 104px); line-height: .95; font-weight: 800; max-width: 11em; margin: 0 auto; }
.sub { max-width: 34em; margin: 20px auto 28px; color: var(--muted); }
.progress { max-width: 560px; margin: 0 auto 28px; text-align: start; }
.progress-top { display: flex; justify-content: space-between; align-items: baseline; }
.progress-top strong { font-size: 22px; }
.progress-top span, .progress-bot { font-size: 11px; color: var(--muted); }
.bar { height: 4px; background: var(--line); margin: 8px 0; border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--fg); transition: width .4s; }
.progress-bot { display: flex; justify-content: space-between; }
.cta { display: inline-block; background: var(--fg); color: var(--bg); border: 0; border-radius: 99px; padding: 14px 28px; font: inherit; font-weight: 700; cursor: pointer; }
.cta.full { width: 100%; margin-top: 8px; }

/* Placeholder car art: swap for real photos/renders in public/img */
.hero-car, .car-thumb { background: var(--soft); color: var(--fg); display: grid; place-items: center; overflow: hidden; }
.hero-car svg, .car-thumb svg { width: 100%; height: 100%; }

.hero-car { display: block; height: auto; aspect-ratio: 1.9 / 1; max-width: 900px; margin: 40px auto 0; border-radius: 24px; }
.car-thumb { width: clamp(150px, 15vw, 290px); height: auto; aspect-ratio: 3 / 2; border-radius: 12px; flex: none; }

.auction { padding: 72px 0 24px; }
.auction-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; border-bottom: 1px solid var(--line); padding-bottom: 24px; flex-wrap: wrap; }
.auction-head h2 { font-size: clamp(40px, 7vw, 76px); font-weight: 800; line-height: 1; }
.auction-head .muted { max-width: 22em; margin: 0; font-size: 14px; }

.row { display: grid; grid-template-columns: clamp(150px, 15vw, 290px) 1.2fr 1fr 1fr auto; align-items: center; gap: 20px; padding: 18px 0 0; }
.row h3 { font-size: 22px; letter-spacing: -.02em; }
.row .muted { margin: 2px 0 0; font-size: 13px; }
.holder { display: flex; align-items: center; gap: 12px; }
.holder b, .price strong { font-size: 15px; display: block; }
.price strong { font-size: 24px; letter-spacing: -.03em; }
.badge { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border: 2px solid var(--fg); border-radius: 12px; font-weight: 800; font-style: italic; }
.outbid { border: 1px solid var(--fg); background: none; color: inherit; border-radius: 99px; padding: 14px 20px; font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.outbid small { font-size: 9px; }
.outbid:hover { background: var(--fg); color: var(--bg); }
.outbid:hover small { color: inherit; }
.row > * { min-width: 0; }
.hist { grid-column: 1 / -1; display: grid; grid-template-columns: 130px repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 8px; }
.hist > * { padding: 12px; border-inline-end: 1px solid var(--line); }
.hist > :last-child { border: 0; }
.hl { display: flex; flex-direction: column; justify-content: center; }
.h { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.h .badge { width: 30px; height: 30px; border-radius: 9px; font-size: 13px; }
.h div { min-width: 0; flex: 1; } .h b, .h small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: none; letter-spacing: 0; }
.h span { font-weight: 700; }

.how { padding: 72px 0; }
.how h2 { font-size: clamp(36px, 6vw, 64px); font-weight: 800; margin-bottom: 32px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { border-top: 1px solid var(--fg); padding-top: 16px; }
.step h3 { font-size: 22px; margin: 6px 0; }
.foot { text-align: center; padding: 32px clamp(16px, 7vw, 140px); font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }

dialog { max-height: calc(100dvh - 24px); overflow-y: auto; border: 0; border-radius: 28px; padding: 0; width: min(440px, calc(100vw - 32px)); background: var(--bg); color: var(--fg); }
dialog::backdrop { background: rgba(0,0,0,.45); }
dialog form { padding: 32px; position: relative; display: grid; gap: 14px; }
dialog h3 { font-size: 36px; margin-top: -8px; }
dialog .muted { margin: 0; font-size: 13px; }
.close { position: absolute; top: 16px; inset-inline-end: 16px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--soft); color: inherit; font-size: 20px; cursor: pointer; }
.amount { background: var(--soft); border-radius: 14px; padding: 16px 20px; font-size: 32px; font-weight: 800; display: flex; gap: 6px; }
label { display: grid; gap: 6px; font-size: 10px; letter-spacing: .1em; color: var(--muted); }
label input:not([type=checkbox]) { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--fg); font: inherit; font-size: 14px; }
label.check { grid-template-columns: auto 1fr; align-items: start; font-size: 12px; letter-spacing: 0; text-transform: none; }
.error { color: #c0392b; font-size: 13px; margin: 0; min-height: 1em; }
.tiny { font-size: 11px; color: var(--muted); margin: 0; text-align: center; }

@media (max-width: 1000px) {
  .hist { grid-template-columns: 110px repeat(3, minmax(0, 1fr)); }
  .hist > :nth-child(n+5) { display: none; }
  .row { grid-template-columns: 110px 1fr 1fr auto; }
  .row .price { grid-column: auto; }
  .row .holder { grid-column: 2 / 3; }
}
@media (max-width: 600px) {
  .nav { padding: 10px 12px; }
  .logo { font-size: 10px; white-space: nowrap; }
  .nav nav { gap: 2px; }
  .pill { padding: 8px 10px; font-size: 12px; white-space: nowrap; }
  .auction { padding-top: 48px; }
  dialog form { padding: 24px; }
}
@media (max-width: 800px) {
  .row { grid-template-columns: 96px 1fr auto; gap: 12px; padding-top: 24px; }
  .row + .row { border-top: 0; }
  .row .car-thumb { width: 96px; height: 64px; }
  .row .info { grid-column: 2 / -1; }
  .row .holder { grid-column: 1 / 3; }
  .row .price { grid-column: 3; text-align: end; }
  .row .outbid { grid-column: 1 / -1; justify-content: center; }
  .hist { grid-template-columns: 1fr; margin-bottom: 8px; }
  .hist > * { border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .hist > :last-child { border-bottom: 0; }
  .hist > :nth-child(n+5) { display: none; }
  dialog h3 { font-size: 30px; }
  .steps { grid-template-columns: 1fr; }
}
.hero-car img, .car-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-car img { max-width: none; padding: 16px; object-fit: contain; }
.hero-car, .car-thumb { background: var(--soft); }
.credits { max-width: 60em; margin: 8px auto 0; font-size: 11px; }
.refund { padding-top: 24px; }
.refund .tiny { text-align: start; margin-top: 20px; }
@media (max-width: 600px) { .pill[href="#refund"] { display: none; } }
.shot { position: relative; width: 100%; }
.car-thumb .shot img { width: 100%; height: 100%; object-fit: contain; display: block; }
.car-thumb svg.arrow, .arrow { position: absolute; width: 8px; height: 12px; transform: translate(-50%, -100%); fill: #e11d2e; stroke: #fff; stroke-width: 1; paint-order: stroke; filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }
.step-art { background: var(--soft); border-radius: 16px; aspect-ratio: 1.55; display: grid; place-items: center; overflow: hidden; margin-bottom: 16px; padding: 12px; }
.step-art svg { width: 100%; height: 100%; }
.step-art .shot { width: 100%; }
.step-art .shot img { width: 100%; display: block; }
.step-art .overlay { position: absolute; inset: 0; }
.ils { font-size: .55em; font-weight: 600; color: var(--muted); letter-spacing: 0; white-space: nowrap; }
.progress-top strong .ils { font-size: .6em; }
.logo { overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
.zone { fill: rgba(225, 29, 46, .28); stroke: #e11d2e; stroke-width: 1.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.zone.dashed { stroke-width: 2.5; stroke-dasharray: 8 6; }
.car-thumb svg.overlay, .step-art svg.overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.outbid:disabled { opacity: .55; cursor: not-allowed; }
.outbid:disabled:hover { background: none; color: inherit; }
.dates { display: flex; justify-content: center; gap: 16px; margin: 0 auto 28px; flex-wrap: wrap; }
.date { background: var(--soft); border-radius: 16px; padding: 14px 28px; min-width: 200px; }
.date small { margin-bottom: 4px; }
.date strong { font-size: clamp(24px, 3.4vw, 36px); letter-spacing: -.03em; font-weight: 800; }
.promise { margin: 0 auto 28px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.promise strong { font-size: clamp(56px, 11vw, 140px); line-height: .95; font-weight: 800; letter-spacing: -.05em; }
.promise span { font-size: clamp(16px, 2vw, 26px); color: var(--muted); font-weight: 600; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta.ghost { background: none; color: var(--fg); border: 1.5px solid var(--fg); display: inline-flex; gap: 8px; align-items: center; }
.pill.ig { display: inline-flex; gap: 6px; align-items: center; }
@media (max-width: 600px) { .pill.ig span { display: none; } }
.totop { display: inline-block; margin-bottom: 20px; background: var(--fg); color: var(--bg); padding: 12px 24px; border-radius: 99px; font-size: 14px; font-weight: 700; }
#refund-items { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 800px) { #refund-items { grid-template-columns: 1fr; } }
.ring { fill: rgba(225, 29, 46, .12); stroke: #e11d2e; stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.quick { display: flex; gap: 8px; }
.quick button { flex: 1; padding: 10px; border-radius: 99px; border: 1.5px solid var(--line); background: none; color: inherit; font: 600 13px inherit; cursor: pointer; }
.quick button:hover { border-color: var(--fg); }
.amount input { flex: 1; border: 0; background: none; font: inherit; font-size: inherit; font-weight: inherit; color: inherit; width: 100%; outline: none; padding: 0; }

/* Polish: depth, motion and hover states */
body { background: radial-gradient(1100px 520px at 50% -80px, color-mix(in srgb, var(--fg) 7%, transparent), transparent 70%) no-repeat, var(--bg); }
.hero h1 { text-wrap: balance; }
.hero-car { background: radial-gradient(60% 55% at 50% 40%, color-mix(in srgb, var(--fg) 3%, var(--soft)), var(--soft)); }
.hero-car img { filter: drop-shadow(0 26px 22px rgba(0, 0, 0, .22)); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.cta { transition: transform .2s, box-shadow .2s; }
.cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
.row { transition: background .25s; border-radius: 18px; padding-inline: 14px; margin-inline: -14px; padding-bottom: 14px; }
.row:hover { background: var(--soft); }
.row .car-thumb { transition: transform .35s; }
.row:hover .car-thumb { transform: scale(1.04); }
.row .info small { letter-spacing: .1em; }
.date { transition: transform .25s; }
.date:hover { transform: translateY(-3px); }
.step-art { transition: transform .3s; }
.step:hover .step-art { transform: translateY(-4px); }
.bar i { background: linear-gradient(90deg, var(--fg), color-mix(in srgb, var(--fg) 60%, transparent)); }
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
  .row.reveal.in:hover, .date.reveal.in:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .hero-car img { animation: none; } }

.countdown { margin: 0 auto 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; min-height: 96px; }
.cd { display: flex; gap: clamp(8px, 2vw, 16px); direction: ltr; }
.cd div { background: var(--fg); color: var(--bg); border-radius: 16px; padding: 12px clamp(10px, 2.4vw, 22px); min-width: clamp(58px, 11vw, 100px); }
.cd strong { display: block; font-size: clamp(28px, 5vw, 52px); font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.cd span { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 24px); opacity: 0; pointer-events: none; z-index: 50; max-width: min(520px, calc(100vw - 32px)); background: var(--fg); color: var(--bg); padding: 14px 20px; border-radius: 16px; font-size: 14px; font-weight: 600; text-align: center; transition: opacity .3s, transform .3s; box-shadow: 0 12px 32px rgba(0, 0, 0, .25); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Top ticker */
.updates { background: var(--fg); color: var(--bg); overflow: hidden; direction: ltr; font-size: 12px; letter-spacing: .02em; }
.updates .track { display: flex; width: max-content; animation: ticker 38s linear infinite; padding: 9px 0; }
.updates:hover .track { animation-play-state: paused; }
.updates span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 0 22px; }
.updates span::after { content: "•"; opacity: .4; margin-inline-start: 22px; }
.updates b { font-weight: 700; }
.updates em { font-style: normal; font-weight: 800; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; background: #e11d2e; color: #fff; padding: 2px 7px; border-radius: 99px; }
.updates a { text-decoration: underline; font-weight: 600; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .updates .track { animation: none; } .updates { overflow-x: auto; } }

.goal { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; margin: 8px 0 4px; }
.goal i { display: block; height: 100%; background: var(--fg); border-radius: 4px; transition: width .4s; }
.goal-line { text-transform: none; letter-spacing: 0; }

/* 3 winners per area */
.row .slots { display: grid; gap: 6px; }
.slot { display: grid; grid-template-columns: 22px 34px 1fr auto; align-items: center; gap: 8px; font-size: 13px; }
.slot .rank { font-weight: 800; color: var(--muted); font-size: 12px; text-align: center; }
.slot .badge { width: 32px; height: 32px; border-radius: 10px; font-size: 13px; }
.slot .who { min-width: 0; } .slot .who b, .slot .who small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: none; letter-spacing: 0; }
.slot .amt { font-weight: 700; white-space: nowrap; }
.slot.empty { grid-template-columns: 22px 1fr; color: var(--muted); border: 1px dashed var(--line); border-radius: 10px; padding: 7px 4px; }
.slot.empty b { font-weight: 500; }
.row { grid-template-columns: clamp(150px, 15vw, 290px) 1.2fr 1.5fr 1fr auto; }
@media (max-width: 1000px) { .row { grid-template-columns: 110px 1fr auto; } .row .slots { grid-column: 1 / -1; } .row .price { grid-column: 1 / 3; } }
@media (max-width: 800px) { .row .slots { grid-column: 1 / -1; } .row .price { grid-column: 1 / -1; text-align: start; } }

/* 3D model in the hero */
.model-wrap { margin: 40px auto 0; max-width: 980px; }
.model { position: relative; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: radial-gradient(70% 60% at 50% 40%, color-mix(in srgb, var(--fg) 4%, var(--soft)), var(--soft)); box-shadow: 0 24px 60px rgba(0, 0, 0, .14); }
.model .fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 24px; }
.model iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.model-note { margin: 18px 0 4px; font-size: 15px; text-align: center; }
.model-note strong { font-weight: 700; }
.model-note span { color: var(--muted); font-weight: 700; white-space: nowrap; }
.model-hint { margin: 0; font-size: 12px; color: var(--muted); text-align: center; }
@media (max-width: 600px) { .model { aspect-ratio: 4 / 3; border-radius: 18px; } }
