:root {
  --bg: #000;
  --bg-alt: #050505;
  --bg-card: #0b0b0b;
  --bg-card-alt: #111;
  --bg-mock: #0a0a0a;
  --text: #f5f5f5;
  --text-heading: #fff;
  --text-body: #b3b3b3;
  --text-muted: #8c8c8c;
  --text-faint: #7a7a7a;
  --text-dim: #666;
  --border: #2a2a2a;
  --border-soft: #1f1f1f;
  --border-strong: #3a3a3a;
  --accent: #ccff00;
  --accent-soft: rgba(204, 255, 0, 0.14);
  --accent-border: rgba(204, 255, 0, 0.45);
  --accent-bg-soft: rgba(204, 255, 0, 0.06);
  --font-display: "Archivo Black", Impact, sans-serif;
  --font-ui: Inter, "Hanken Grotesk", system-ui, sans-serif;
}

[hidden] { display: none !important; }

html, body { background: #000; color: var(--text); color-scheme: dark; overflow-x: clip; }
body { font-family: var(--font-ui); padding-bottom: 96px; }
a { color: inherit; }
a:hover { color: var(--accent); }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: 24px;
  top: -100px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--accent);
  color: #000;
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

.live-dot {
  flex: 0 0 auto;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: live-breathe 2.4s ease-in-out infinite;
}

/* ---- header ---- */

.site-header {
  position: relative;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 22px 32px 8px;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -0.06em;
  color: #fff;
  line-height: 1;
}
.site-logo:hover { color: #fff; }

.wait-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 0 auto;
  color: #9a9a9a;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

/* ---- home ---- */

.market-home {
  padding: 12px 32px 48px;
}

.home-hero {
  text-align: center;
  padding: 8px 0 24px;
  overflow: hidden;
}

.hero-mark {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(64px, 10vw, 140px);
  line-height: 0.82;
  letter-spacing: -0.07em;
  max-width: 100%;
}

.hero-line {
  margin: 18px 0 0;
  color: #fff;
  font-size: clamp(15px, 1.7vw, 22px);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-sub {
  margin: 10px 0 0;
  color: #8a8a8a;
  font-size: 15px;
}

.home-stage {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1.25fr);
  gap: 36px;
  max-width: 1040px;
  margin: 0 auto;
  align-items: start;
}

/* live auction */

.auction-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.auction-head h2 {
  margin: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auction-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #d8d8d8;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auction-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.auction-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
}

.auction-empty {
  padding: 18px 4px;
  color: #8a8a8a;
  font-size: 13px;
  line-height: 1.45;
}

.auction-meta {
  display: block;
  margin-top: 2px;
  color: #8a8a8a;
  font-size: 11px;
}

.auction-row.winning {
  border-color: var(--accent);
  background: var(--accent-bg-soft);
}

.auction-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #1a1a1a;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.auction-copy { min-width: 0; }

.auction-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
}

.auction-bid {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.auction-row.winning .auction-bid { color: var(--accent); }
.auction-row.winning .auction-bid small {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: right;
}

.auction-next {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 48px;
  margin-top: 8px;
  padding: 0 12px;
  border: 1px dashed #333;
  border-radius: 12px;
  color: #9a9a9a;
  font-size: 14px;
}

.auction-next:hover { color: #fff; border-color: #666; }
.auction-plus {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #444;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
}
.auction-next strong { color: #fff; font-variant-numeric: tabular-nums; }

/* thinking card */

.think-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--accent-border);
  border-radius: 18px;
  background: #0a0a0a;
}

.think-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 10px;
  color: #d8d8d8;
  font-size: 13px;
}

.think-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.think-timer {
  font-variant-numeric: tabular-nums;
  color: #cfcfcf;
}

.think-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
}
.think-visual video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.think-mute {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}
.think-mute:hover { color: #fff; background: rgba(0, 0, 0, 0.75); }

/* actions */

.home-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 20px 32px 22px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.72) 42%, #000 100%);
  pointer-events: none;
}

.home-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  max-width: 1040px;
  margin: 0 auto;
  pointer-events: auto;
}

.cta-lime,
.cta-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.cta-lime {
  background: var(--accent);
  color: #111;
}
.cta-lime:hover { color: #111; background: #d8ff3a; }
.cta-ghost { border: 1px solid #fff; color: #fff; }
.cta-ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }

.market-home:not([hidden]) ~ .site-footer { display: none; }

html.waitlist-view,
body.waitlist-view {
  height: 100%;
  overflow: hidden;
}
body.waitlist-view { padding-bottom: 0; }
body.waitlist-view .home-dock,
body.waitlist-view .site-footer,
body.ads-view .home-dock,
body.ads-view .site-footer { display: none; }
body.ads-view { padding-bottom: 0; }

.ads-page:not([hidden]) {
  display: block;
  padding: 8px 24px 48px;
}

.ads-shell {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.ads-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-top: 28px;
  text-align: left;
}

.ads-book .auction-list { max-height: min(52vh, 420px); overflow: auto; }

.ads-bid { display: grid; gap: 6px; align-content: start; padding-top: 6px; }

.ads-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: #8a8a8a;
  font-size: 13px;
}
.ads-row strong {
  color: #fff;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.ads-row #rankPhrase { color: var(--accent); }

.ads-range {
  width: 100%;
  margin: 0 0 14px;
  accent-color: var(--accent);
}

.ads-summary {
  display: grid;
  gap: 10px;
  margin: 8px 0 6px;
  padding-top: 14px;
  border-top: 1px solid #1a1a1a;
}

.ads-bid .waitlist-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 16px;
  text-decoration: none;
}
.ads-bid .waitlist-submit:hover { color: #111; }

.auction-row.you {
  border-color: var(--accent);
  background: var(--accent-bg-soft);
}
.auction-row.you .auction-name,
.auction-row.you .auction-bid { color: var(--accent); }
body.waitlist-view .home-dock,
body.waitlist-view .site-footer { display: none; }

.waitlist-page:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100svh - 72px);
  padding: 12px 20px 32px;
}

.waitlist-shell {
  position: relative;
  width: min(440px, 100%);
  text-align: center;
}

.waitlist-kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.waitlist-title {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(34px, 7vw, 58px);
  line-height: 0.9;
  letter-spacing: -0.06em;
  overflow-wrap: break-word;
}

.waitlist-lede {
  margin: 14px 0 28px;
  color: #8a8a8a;
  font-size: 16px;
}

.waitlist-form { display: grid; gap: 4px; }

.waitlist-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.waitlist-input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #2a2a2a;
  border-radius: 0;
  padding: 14px 0;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 16px;
  outline: none;
}
.waitlist-input::placeholder { color: #666; }
.waitlist-input:focus { border-bottom-color: var(--accent); }
.waitlist-input:disabled { opacity: 0.45; }

.waitlist-submit {
  margin-top: 22px;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #111;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.waitlist-submit:hover { background: #d8ff3a; color: #111; }
.waitlist-submit:disabled { opacity: 0.7; cursor: default; }

.waitlist-success {
  margin-top: 20px;
  color: var(--accent);
  font-size: 15px;
}

.waitlist-prelaunch {
  display: inline-block;
  margin-top: 18px;
  color: #bbb;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-underline-offset: 4px;
}
.waitlist-prelaunch:hover { color: #fff; }
.waitlist-prelaunch[hidden] { display: none !important; }

.about-page { padding-top: 48px; }
.about-copy { max-width: 560px; font-size: 18px; line-height: 1.55; }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 32px 28px;
  color: #7a7a7a;
  font-size: 12px;
}

.footer-mark {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  letter-spacing: -0.05em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-links a { color: #8a8a8a; }
.footer-links a:hover { color: #fff; }

@keyframes live-breathe {
  50% { opacity: 0.45; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 1100px) {
  .wait-status { display: none; }
}

@media (max-width: 900px) {
  body { padding-bottom: 108px; }
  .site-header { padding: 16px 20px 8px; }
  .wait-status { display: none; }

  .market-home { padding: 8px 20px 36px; }
  .home-hero { padding: 18px 0 24px; }
  .home-stage {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 560px;
  }
  .think-card { order: 1; }
  .auction { order: 2; }
  .ads-stage { grid-template-columns: 1fr; gap: 24px; }
  .ads-book .auction-list { max-height: 280px; }
  .home-dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    padding: 12px 12px 16px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.88) 28%, #000 100%);
  }
  .home-actions {
    grid-template-columns: 1fr 1fr;
    max-width: 100%;
    gap: 8px;
  }
  .cta-lime { grid-column: 1 / -1; min-height: 40px; font-size: 13px; }
  .cta-ghost { min-height: 38px; font-size: clamp(9px, 2.6vw, 11px); padding: 0 6px; letter-spacing: 0; }
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 20px 28px;
  }
}

@media (max-width: 560px) {
  body { padding-bottom: 168px; }
  .hero-mark { font-size: min(20vw, 92px); }
  .hero-line { font-size: 11px; letter-spacing: 0.1em; }
  .home-hero { overflow: hidden; }
  .home-actions { grid-template-columns: 1fr; }
  .cta-lime,
  .cta-ghost {
    grid-column: auto;
    min-height: 40px;
    font-size: 13px;
    letter-spacing: 0.04em;
    padding: 0 12px;
  }
  .waitlist-title { font-size: 34px; }
  .waitlist-page:not([hidden]) { min-height: calc(100svh - 60px); padding: 8px 20px 16px; }
}
