/* Home page, on top of style.css (colours, type, buttons, panels). Dark only, flat colours, no gradients. */

html { scroll-padding-top: 76px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body.home a { color: var(--ink); }
body.home h2 { margin: 0; color: var(--ink); font: 400 clamp(1.4rem, 1rem + 1.8vw, 2.4rem)/1.2 var(--head); letter-spacing: 0.03em; text-transform: uppercase; }
body.home h3 { margin: 0 0 10px; font-size: 1rem; font-weight: 600; }
.wrap { max-width: 1360px; margin: 0 auto; padding: 0 clamp(16px, 4.5vw, 48px); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mono, .who, .copy-row code, .contracts dd, .copy-block pre { font-family: var(--mono); }

/* header and wallet */
.top { position: sticky; top: 0; z-index: 10; background: rgba(10, 10, 11, 0.92); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
@media (max-width: 639px) {
  .top { position: static; } /* on phones the bar can wrap to two rows: let it scroll away */
  html { scroll-padding-top: 0; }
}
.top .wrap { max-width: none; padding-left: clamp(16px, 4.5vw, 200px); padding-right: clamp(16px, 4.5vw, 200px); } /* full width: the brand lines up with the hero text */
.top-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 64px; padding-top: 10px; padding-bottom: 10px; }
#wallet-panel:not([hidden]) { display: flex; justify-content: flex-end; }
body.home .brand { display: inline-flex; align-items: center; gap: 12px; color: var(--silver); font: 400 0.86rem/1 var(--head); letter-spacing: 0.34em; text-transform: uppercase; text-decoration: none; }
.brand img { width: 30px; height: auto; }
@media (max-width: 419px) {
  .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* the emblem alone on small phones */
  .top-row, .top-actions { gap: 8px; }
  #wallet-btn { padding: 10px 12px; letter-spacing: 0.1em; }
  .top .lang button { padding: 6px 9px; }
}
.top-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; min-width: 0; }
.who { color: var(--muted); font-size: 0.85rem; white-space: nowrap; }
.who.wrong { color: var(--bad); }
#wallet-btn.primary { background: transparent; border-color: var(--line-strong); color: var(--ink); }
#wallet-btn.primary:hover { border-color: var(--silver); }
button.warn { background: var(--warn-bg); border-color: var(--bad); color: var(--ink); }
.wallet-box { width: 100%; max-width: 560px; margin: 0 0 14px; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 2px; }
.wallet-box p { margin: 0 0 12px; }
.wallet-box .status { margin: 0 0 10px; }
.panel-title { font-weight: 600; }
.wallet-choice { display: inline-flex; align-items: center; gap: 10px; }
.wallet-choice img { width: 20px; height: 20px; }
.link-button { min-height: 0; padding: 0; border: 0; background: none; color: var(--muted); font-size: 0.74rem; text-decoration: underline; text-underline-offset: 4px; }

/* links that look like buttons */
body.home .button-link { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 13px 24px; border: 1px solid rgba(243, 243, 241, 0.42); border-radius: 2px; background: transparent; color: var(--ink); font-size: 0.78rem; font-weight: 600; line-height: 1.2; letter-spacing: 0.14em; text-align: center; text-decoration: none; text-transform: uppercase; transition: background-color 0.2s, border-color 0.2s; }
body.home .button-link:hover { border-color: var(--ink); }
body.home .button-link.solid { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
body.home .button-link.solid:hover { background: #fff; border-color: #fff; }
:lang(zh) body.home .button-link { letter-spacing: 0.06em; }

/* hero: the showroom picture, the logo and the sentence on its dark left side */
.hero { position: relative; display: flex; flex-direction: column; background: #0c0c0c; }
.hero-img { display: block; width: 100%; height: auto; }
.hero-text { order: -1; width: 100%; max-width: 640px; padding: 40px clamp(16px, 4.5vw, 200px) 36px; }
.hero-logo { margin: 0 0 26px; line-height: 0; }
.hero-logo img { width: clamp(170px, 44vw, 250px); height: auto; }
/* the headline: one sentence per line, sized so the longest line fits the column */
.hero-headline { margin: 0 0 18px; color: var(--ink); font: 400 clamp(1.3rem, 6.4vw, 2.6rem)/1.22 var(--head); letter-spacing: 0.02em; text-transform: uppercase; }
.hero-headline span { display: block; white-space: nowrap; }
:lang(zh) .hero-headline { font-size: clamp(1.7rem, 8.4vw, 3.2rem); letter-spacing: 0.04em; }
.hero-lead { max-width: 42ch; margin: 0 0 30px; color: var(--silver); font-size: clamp(1rem, 0.95rem + 0.3vw, 1.12rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 699px) {
  .hero-img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 96% 50%; } /* all four cars, a little larger */
}
@media (min-width: 700px) and (max-width: 1179px) {
  .hero-img { aspect-ratio: 2 / 1; object-fit: cover; object-position: 50% 80%; } /* less ceiling, so the cars sit higher */
  .hero-text { max-width: 760px; padding-bottom: 28px; }
}
@media (min-width: 1180px) {
  .hero { flex-direction: row; align-items: center; height: min(calc(100svh - 65px), 57.15vw); min-height: 620px; overflow: hidden; }
  .hero-img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: 50% 58%; }
  /* the text stays left of the red car's nose, which starts at about a quarter of the picture's width */
  .hero-text { position: relative; z-index: 1; order: 0; width: 20.5vw; max-width: none; margin-left: clamp(16px, 4.5vw, 200px); padding: 0; }
  .hero-logo { margin-bottom: 1.9vw; }
  .hero-logo img { width: min(12.5vw, 300px); }
  .hero-headline { margin-bottom: 1.3vw; font-size: 1.78vw; }
  :lang(zh) .hero-headline { font-size: 2.7vw; }
  .hero-lead { font-size: clamp(1rem, 0.45rem + 0.6vw, 1.3rem); }
}

/* sections */
.section { padding: clamp(72px, 9vw, 136px) 0; border-top: 1px solid var(--line); }
.hero + .section { border-top: 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 40px; margin-bottom: clamp(32px, 4.5vw, 56px); }
.section .lead { max-width: 46ch; margin: 14px 0 0; color: var(--muted); }
.section-head .lead { margin: 0; }
.split-layout { display: grid; gap: 28px 48px; }
@media (min-width: 960px) { .split-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: start; } }
.box { padding: clamp(20px, 2.6vw, 32px); }
body.home .box h3 { margin: 0 0 12px; font: 400 0.88rem/1.4 var(--head); letter-spacing: 0.08em; text-transform: uppercase; }
.state { margin: 0 0 4px; font-size: 1.05rem; font-weight: 500; }

/* the garage: one card per car class; the car fills the card and its roof stands a little above the top edge */
.garage-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(26px, 3vw, 34px) clamp(10px, 1.4vw, 18px); margin: clamp(8px, 1.5vw, 20px) 0 0; padding: 0; list-style: none; }
@media (min-width: 600px) { .garage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .garage-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.car-card { display: flex; flex-direction: column; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 2px; transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.3s; }
.car-card:hover { border-color: var(--line-strong); transform: translateY(-6px); }
.car-card[data-class="muscle"] { --class: var(--class-muscle); --sink: -19.8%; }
.car-card[data-class="gt"] { --class: var(--class-gt); --sink: -24.6%; }
.car-card[data-class="super"] { --class: var(--class-super); --sink: -26.3%; }
.car-card[data-class="hyper"] { --class: var(--class-hyper); --sink: -20.9%; }
/* Every car stands with its wheels on the accent line: the art box has one height, and each picture is
   moved down by the empty space under its car (--sink), so the taller cars stand above the top edge. */
.car-art { position: relative; padding-top: 38%; }
.car-art img { position: absolute; bottom: var(--sink, -22%); left: 0; display: block; width: 100%; height: auto; }
.car-meta { display: flex; flex: 1; align-items: baseline; justify-content: space-between; gap: 8px 12px; padding: 16px clamp(14px, 1.6vw, 22px) 18px; border-top: 2px solid var(--class, var(--line)); } /* the accent line the car stands on */
body.home .car-meta h3 { margin: 0; font: 400 clamp(0.9rem, 0.75rem + 0.45vw, 1.1rem)/1.3 var(--head); letter-spacing: 0.08em; text-transform: uppercase; }
.rarity { display: inline-flex; align-items: center; gap: 9px; margin: 0; color: var(--muted); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; white-space: nowrap; }
.tier { display: inline-flex; gap: 3px; }
.tier i { width: 5px; height: 5px; background: var(--line-strong); }
.car-card[data-tier="1"] .tier i:nth-child(-n+1),
.car-card[data-tier="2"] .tier i:nth-child(-n+2),
.car-card[data-tier="3"] .tier i:nth-child(-n+3),
.car-card[data-tier="4"] .tier i { background: var(--silver); }
@media (min-width: 1100px) and (max-width: 1399px) { .car-meta { flex-direction: column; gap: 8px; } } /* four narrow cards: rarity under the name */

/* the home page race */
.race-grid { display: grid; gap: 28px 48px; }
.race-side { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
@media (min-width: 1000px) {
  .race-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2.5fr); align-items: center; }
  .race-side { flex-direction: column; align-items: flex-start; gap: 32px; }
}
.race-stage { margin: 0; padding: clamp(10px, 1.6vw, 20px); }
.race-stage figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin-top: 12px; color: var(--muted); font-size: 0.85rem; letter-spacing: 0.03em; }

/* how it works */
.steps { display: grid; gap: clamp(10px, 1.6vw, 20px); margin: 0; padding: 0; list-style: none; counter-reset: step; }
.step { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: clamp(16px, 2vw, 24px); min-width: 0; padding: clamp(22px, 2.8vw, 36px); background: var(--panel); border: 1px solid var(--line); border-radius: 2px; counter-increment: step; }
.step::before { content: counter(step, decimal-leading-zero); position: absolute; top: clamp(22px, 2.8vw, 36px); left: clamp(22px, 2.8vw, 36px); z-index: 1; color: var(--muted); font: 400 0.8rem/1 var(--head); letter-spacing: 0.12em; }
.step-text { display: grid; gap: 8px; }
.step b { font: 400 clamp(1rem, 0.85rem + 0.5vw, 1.3rem)/1.3 var(--head); letter-spacing: 0.05em; text-transform: uppercase; }
.step span { color: var(--muted); }
/* step 1: the open box, a photo that fills the top of its card */
.step-box { gap: 0; padding: 0; overflow: hidden; }
.step-box img { display: block; flex: 1 1 auto; width: 100%; height: auto; min-height: 0; aspect-ratio: 5 / 4; object-fit: cover; }
.step-box .step-text { padding: clamp(22px, 2.8vw, 36px); border-top: 1px solid var(--line); }
/* step 2: the four parts in a row; step 3: a car */
.step-parts, .step-car { padding-top: calc(clamp(22px, 2.8vw, 36px) + 34px); }
.parts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 1.6vw, 22px); }
.parts figure { display: grid; gap: 10px; justify-items: center; margin: 0; }
.parts img { display: block; width: 100%; max-width: 112px; height: auto; aspect-ratio: 1; object-fit: contain; }
.parts figcaption { color: var(--muted); font-size: 0.64rem; font-weight: 600; letter-spacing: 0.16em; text-align: center; text-transform: uppercase; }
.step-car img { display: block; align-self: center; width: min(100%, 380px); height: auto; margin: -9% 0 -6%; }
@media (min-width: 860px) {
  .steps { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 1fr 1fr; }
  .step-box { grid-row: span 2; }
}
.season { margin: clamp(24px, 3vw, 36px) 0 0; color: var(--silver); }

/* licence */
.perks { display: grid; gap: 12px; max-width: 46ch; margin: 26px 0 0; padding: 0; list-style: none; color: var(--silver); font-size: 0.95rem; }
.perks li { position: relative; padding-left: 20px; }
.perks li::before { content: ""; position: absolute; top: 0.62em; left: 0; width: 8px; height: 1px; background: var(--silver); }
.licence-side { display: grid; gap: clamp(10px, 1.6vw, 20px); min-width: 0; }
/* the steps: pick a car, post, paste the link */
.flow { display: grid; gap: 28px; margin: 22px 0 0; padding: 0; list-style: none; counter-reset: flow; }
.flow > li { min-width: 0; counter-increment: flow; }
body.home .flow h3 { display: flex; align-items: baseline; gap: 12px; }
.flow h3::before { content: counter(flow, decimal-leading-zero); color: var(--muted); font-size: 0.8rem; letter-spacing: 0.12em; }
.flow .note { margin-top: 0; }
.car-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 640px) { .car-pick { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.car-option { display: grid; gap: 4px; min-height: 0; padding: 6px 8px 10px; border-color: var(--line); background: var(--bg); color: var(--muted); font-size: 0.7rem; letter-spacing: 0.12em; overflow: hidden; }
.car-option img { display: block; width: 100%; height: auto; margin: -8% 0 -12%; pointer-events: none; }
.car-option[data-class="muscle"] { --class: var(--class-muscle); }
.car-option[data-class="gt"] { --class: var(--class-gt); }
.car-option[data-class="super"] { --class: var(--class-super); }
.car-option[data-class="hyper"] { --class: var(--class-hyper); }
.car-option[aria-checked="true"] { border-color: var(--class); box-shadow: inset 0 -2px 0 var(--class); color: var(--ink); }
.post-text { margin: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 2px; background: var(--bg); color: var(--silver); font: 0.9rem/1.6 var(--body); white-space: pre-wrap; overflow-wrap: anywhere; }
.flow .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.flow .actions + .note { margin-top: 12px; }
.flow .amount input { font-size: 0.95rem; }
/* the wallet's own licence: its number, car and founder mark over the blank card */
.licence-card { position: relative; max-width: 460px; margin-top: 18px; color: var(--ink); container-type: inline-size; }
.licence-card img { display: block; width: 100%; height: auto; }
.licence-card > :not(img) { position: absolute; }
.lc-number { left: 9%; bottom: 13%; font: 400 15cqw/1 var(--head); letter-spacing: 0.02em; }
.lc-car { top: 14%; right: 9%; padding-bottom: 6px; border-bottom: 2px solid var(--class, var(--silver)); font: 400 4.2cqw/1.2 var(--head); letter-spacing: 0.14em; text-transform: uppercase; }
.lc-founder { top: 27%; right: 9%; color: var(--silver); font-size: 2.9cqw; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; }
.lc-wallet { right: 9%; bottom: 14%; color: var(--muted); font-size: 3cqw; }
.licence-card[data-class="muscle"] { --class: var(--class-muscle); }
.licence-card[data-class="gt"] { --class: var(--class-gt); }
.licence-card[data-class="super"] { --class: var(--class-super); }
.licence-card[data-class="hyper"] { --class: var(--class-hyper); }
/* the grid: everyone with a licence */
.class-bars { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.class-bars li { display: grid; grid-template-columns: minmax(72px, 0.5fr) minmax(0, 2fr) minmax(32px, auto); align-items: center; gap: 12px; color: var(--silver); font-size: 0.9rem; }
.class-bars li[data-class="muscle"] { --class: var(--class-muscle); }
.class-bars li[data-class="gt"] { --class: var(--class-gt); }
.class-bars li[data-class="super"] { --class: var(--class-super); }
.class-bars li[data-class="hyper"] { --class: var(--class-hyper); }
.class-bars .bar { height: 4px; background: var(--meter-track); }
.class-bars .bar i { display: block; height: 100%; background: var(--class); }
.class-bars b { color: var(--ink); font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.grid-cols { display: grid; gap: 24px 32px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .grid-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.grid-cols h4 { margin: 0 0 10px; color: var(--muted); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.grid-list { display: grid; margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.grid-list li { display: grid; grid-template-columns: 3.4em minmax(0, 1fr) auto; align-items: baseline; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 0.88rem; }
.grid-list b { font-weight: 500; font-variant-numeric: tabular-nums; }
.grid-list code { color: var(--silver); font-size: 0.82rem; }
.grid-list .tag { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }
.grid-list .none { display: block; color: var(--muted); }
.licence-first { margin: -18px 0 28px; color: var(--silver); }
.actions { margin-top: 18px; }
.invite { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.invite .note { margin-top: 0; }
.copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.copy-row code { flex: 1 1 220px; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 2px; background: var(--bg); color: var(--silver); font-size: 0.82rem; overflow-wrap: anywhere; }

/* presale */
.presale-grid, .presale-side { display: grid; gap: clamp(10px, 1.6vw, 20px); min-width: 0; }
.presale-visual { display: none; }
@media (min-width: 860px) {
  .presale-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  /* right column: the wallet panel, then a quiet picture that takes the height left over */
  .presale-side { display: flex; flex-direction: column; }
  .presale-visual { position: relative; display: block; flex: 1 1 150px; min-height: 150px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: 2px; }
  .presale-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; } /* the lid, not the bright floor */
}
.phase-row { margin: 0 0 14px; }
.pill { display: inline-block; padding: 5px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.pill[data-phase="1"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pill[data-phase="3"] { border-color: var(--bad); color: var(--bad); }
/* the countdown: large digits, each in its own cell so the row does not shift as they change */
.countdown { display: flex; gap: clamp(14px, 3vw, 36px); margin: 6px 0 16px; }
.cd-unit { display: grid; gap: 9px; }
.cd-unit b { color: var(--ink); font: 400 clamp(1.8rem, 1.2rem + 2.8vw, 3.4rem)/1 var(--head); white-space: nowrap; }
.cd-unit b span { display: inline-block; width: 0.9em; text-align: center; }
.cd-unit i { padding-left: 0.2em; color: var(--muted); font-size: 0.68rem; font-style: normal; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.when { margin: 0 0 30px; color: var(--muted); font-size: 0.92rem; }
.countdown[hidden] + .when { color: var(--silver); font-size: 1rem; } /* no countdown in this phase: the sentence is the message */
.raised { display: grid; gap: 8px; margin: 0 0 16px; color: var(--muted); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.raised b { color: var(--ink); font-size: clamp(1.7rem, 1.2rem + 1.7vw, 2.5rem); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; text-transform: none; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.meter { position: relative; height: 4px; margin: 6px 0 28px; background: var(--meter-track); }
.meter-fill { position: absolute; top: 0; bottom: 0; left: 0; width: 0; background: var(--meter); }
.meter-tick { position: absolute; top: -6px; width: 2px; height: 16px; margin-left: -1px; background: var(--ink); box-shadow: 0 0 0 1px var(--panel); }
.tick-key { display: inline-block; width: 2px; height: 12px; margin-right: 10px; background: var(--ink); vertical-align: -1px; }
.kv { display: grid; grid-template-columns: minmax(46%, 1fr) minmax(0, auto); margin: 0; border-bottom: 1px solid var(--line); } /* on a phone a long label and a long value each wrap once */
.kv dt, .kv dd { padding: 11px 0; border-top: 1px solid var(--line); }
.kv dt { padding-right: 16px; color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.buy { margin-top: 24px; }
.buy label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.amount { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--bg); }
.amount:focus-within { border-color: var(--silver); outline: 1px solid var(--silver); outline-offset: 0; }
.amount input { flex: 1; min-width: 0; padding: 13px 16px; border: 0; background: transparent; color: var(--ink); font: 400 1.2rem var(--body); font-variant-numeric: tabular-nums; }
.amount input:focus { outline: none; }
.amount input:disabled { color: var(--muted); }
.amount input::placeholder { color: #5b5d63; }
.amount span { padding: 0 16px; color: var(--muted); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; }
.buy button[type="submit"], .after button { width: 100%; margin-top: 14px; }
.after { margin-top: 20px; }

/* status lines under actions */
body.home .status { margin: 12px 0 0; color: var(--muted); font-size: 0.92rem; overflow-wrap: anywhere; }
body.home .status:empty { display: none; }
body.home .status.ok { color: var(--ok); }
body.home .status.bad { color: var(--bad); }
body.home .status a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
body.home .status code { font-size: 0.85rem; }

/* token facts, laid out like a specification sheet */
.facts { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0; border-bottom: 1px solid var(--line); }
.facts dt { padding: 18px 0 6px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.facts dd { margin: 0; padding: 0 0 18px; }
@media (min-width: 700px) {
  .facts { grid-template-columns: 220px minmax(0, 1fr); }
  .facts dt, .facts dd { padding: 20px 0; border-top: 1px solid var(--line); }
  .facts dt { padding: 23px 24px 20px 0; }
}
.split { display: flex; gap: 3px; max-width: 520px; height: 4px; margin: 10px 0 18px; }
.seg { flex-basis: 0; min-width: 0; }
.seg-1 { background: var(--split-1); }
.seg-2 { background: var(--split-2); }
.seg-3 { background: var(--split-3); }
.split-list { display: grid; gap: 8px; max-width: 520px; margin: 0; padding: 0; list-style: none; }
.split-list li { display: flex; align-items: center; gap: 10px; color: var(--silver); }
.split-list b { margin-left: auto; color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.key { flex: none; width: 10px; height: 10px; }
.key-empty { border: 1px solid var(--muted); }

/* FAQ */
.faq { display: grid; border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary { position: relative; display: block; padding: 22px 48px 22px 0; font-size: 1.05rem; font-weight: 500; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; top: 50%; right: 6px; width: 14px; height: 1px; background: var(--silver); transition: transform 0.3s; }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p { max-width: 70ch; margin: 0; padding: 0 48px 24px 0; color: var(--muted); }

/* agents */
.copy-block { display: grid; gap: 16px; padding: clamp(20px, 2.6vw, 32px); }
.copy-block pre { margin: 0; color: var(--silver); font-size: 0.85rem; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.copy-block button { justify-self: start; }

/* footer */
body.home .foot { margin: 0; padding: clamp(56px, 7vw, 96px) 0 clamp(48px, 6vw, 72px); background: #070708; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; text-align: left; }
.foot-grid { display: grid; gap: 36px 48px; }
@media (min-width: 960px) { .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); } }
.foot-logo { width: 150px; height: auto; }
body.home .foot h2 { margin: 0 0 6px; color: var(--muted); font: 600 0.72rem/1.4 var(--body); letter-spacing: 0.18em; }
.contracts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 16px; margin: 12px 0 24px; }
.contracts dt { margin-top: 10px; color: var(--silver); }
.contracts dd { margin: 0; font-size: 0.82rem; overflow-wrap: anywhere; }
.x-link { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--line-strong); border-radius: 2px; color: var(--muted); transition: color 0.2s, border-color 0.2s; }
.x-link:hover { border-color: var(--silver); color: var(--ink); }
.x-link svg { width: 14px; height: 14px; fill: currentColor; }
body.home .contracts a, body.home .net-line a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
body.home .contracts a:hover, body.home .net-line a:hover { color: var(--ink); }
@media (min-width: 700px) {
  .contracts { grid-template-columns: 180px minmax(0, 1fr); gap: 10px 16px; }
  .contracts dt { margin-top: 0; }
}
.net-line { margin: 0 0 10px; }
.risk { margin: 0; color: var(--silver); font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
  .car-card:hover { transform: none; }
}
