:root {
  color-scheme: light;
  --ink: #171a20;
  --muted: #5c5e62;
  --line: rgba(23, 26, 32, .12);
  --soft: #f4f4f4;
  --accent: #5b19ff;
  --accent-dark: #4510ce;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
  word-break: normal;
}

/* Keep long URLs, identifiers, hashes and unbroken words inside the viewport/cards. */
:where(p, a, li, dt, dd, span, strong, small, label, button, h1, h2, h3, h4, h5, h6, th, td) {
  overflow-wrap: anywhere;
  word-break: normal;
}

/* Flex/grid items otherwise keep min-width:auto and may overflow on mobile. */
:where(.flex, .grid) > * {
  min-width: 0;
}
::selection { background: rgba(91, 25, 255, .16); }

.site-header {
  background: rgba(255,255,255,.86);
  border-bottom: 1px solid rgba(23,26,32,.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.hero-grid {
  background:
    radial-gradient(circle at 78% 18%, rgba(91,25,255,.24), transparent 27%),
    radial-gradient(circle at 18% 75%, rgba(72,103,255,.14), transparent 31%),
    linear-gradient(135deg, #07080b 0%, #11131a 46%, #050507 100%);
}
.hero-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), transparent 88%);
}
.text-balance { text-wrap: balance; }
.eyebrow { letter-spacing: .16em; text-transform: uppercase; }
.section-divider { border-top: 1px solid var(--line); }
.panel { border: 1px solid var(--line); background: rgba(255,255,255,.92); }
.dark-panel { border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.055); }
.metric { font-variant-numeric: tabular-nums; }
.dot-live { box-shadow: 0 0 0 6px rgba(34,197,94,.12); }
.code-window {
  background: #0a0c10 !important;
  color: #f1f5f9 !important;
  border: 1px solid rgba(15,23,42,.35);
  box-shadow: 0 18px 45px rgba(15,23,42,.12);
}
.code-window pre {
  margin: 0;
  color: #f1f5f9 !important;
  background: transparent !important;
  scrollbar-width: thin;
  white-space: pre-wrap !important;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}
.code-window code {
  color: #f1f5f9 !important;
  background: transparent !important;
  font-weight: 500;
  line-height: 1.75;
  white-space: inherit;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.code-window > div {
  color: #94a3b8 !important;
  background: rgba(255,255,255,.025);
}

.roadmap-line::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 44px;
  bottom: -30px;
  width: 1px;
  background: rgba(255,255,255,.18);
}
.roadmap-line:last-child::before { display: none; }
.lot-card { border: 1px solid rgba(23,26,32,.10); box-shadow: none !important; border-radius: 18px !important; }
.lot-card:hover { transform: translateY(-3px); box-shadow: 0 18px 42px rgba(0,0,0,.08) !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* Lot detail gallery: equal thumbnails + reliable horizontal scroll on desktop/mobile. */
.lot-thumbnail-gallery {
  display: flex;
  gap: .75rem;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, .55) transparent;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}
.lot-thumbnail-gallery::-webkit-scrollbar { height: 6px; }
.lot-thumbnail-gallery::-webkit-scrollbar-track { background: transparent; }
.lot-thumbnail-gallery::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, .48);
  border-radius: 999px;
}
.lot-thumbnail-button {
  flex: 0 0 112px;
  width: 112px;
  height: 96px;
  scroll-snap-align: start;
}
.lot-thumbnail-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 639px) {
  .lot-thumbnail-button {
    flex-basis: 96px;
    width: 96px;
    height: 80px;
  }
}
