:root {
  --ink: #f7f8f8;
  --muted: #9ca5aa;
  --soft: #c8ced2;
  --paper: #07090c;
  --panel: rgba(18, 21, 27, 0.82);
  --panelSolid: #11151b;
  --line: rgba(255, 255, 255, 0.1);
  --lineStrong: rgba(255, 255, 255, 0.18);
  --green: #63d59b;
  --blue: #73a7ff;
  --gold: #e4bd72;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -10%, rgba(96, 128, 255, 0.18), transparent 34rem),
    radial-gradient(circle at 12% 18%, rgba(99, 213, 155, 0.12), transparent 28rem),
    linear-gradient(180deg, #0b0f16 0%, var(--paper) 46rem);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, black, transparent 70%);
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.siteHeader,
main {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 0;
}

.brand,
.navLinks,
.boardActions,
.modelTopline,
.arrowLink,
.quietFooter {
  display: flex;
  align-items: center;
}

.brand {
  width: min(230px, 52vw);
  text-decoration: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.brand:hover {
  opacity: 0.86;
  transform: translateY(-1px);
}

.brandLogo {
  display: block;
  width: 100%;
  height: auto;
}

.navLinks {
  gap: 18px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 620;
}

.navLinks a,
.arrowLink {
  text-decoration: none;
}

.navLinks a {
  transition: color 160ms ease;
}

.navLinks a:hover {
  color: var(--ink);
}

.hero {
  min-height: 340px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 0 72px;
}

.eyebrow,
.modelKicker {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow,
h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 900px;
  margin-top: 14px;
  font-size: clamp(3.4rem, 7.2vw, 6.8rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero p:last-child {
  max-width: 610px;
  margin: 20px auto 0;
  color: var(--soft);
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  line-height: 1.6;
}

.boardShell {
  position: relative;
  margin-top: -18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.boardShell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0 38%, rgba(255, 255, 255, 0.09) 48%, transparent 58% 100%);
  transform: translateX(-100%);
  animation: shellSheen 8s ease-in-out infinite;
}

.boardHeader {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

h2 {
  margin-top: 5px;
  font-size: clamp(1.45rem, 2.3vw, 2.25rem);
  line-height: 1.04;
}

.boardActions {
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.statusPill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 13px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.82rem;
  font-weight: 720;
}

.statusPill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  margin-right: 8px;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(99, 213, 155, 0.35);
  animation: statusPing 2s ease-out infinite;
}

button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.84rem;
  font-weight: 760;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

button:hover {
  border-color: var(--lineStrong);
  background: rgba(255, 255, 255, 0.13);
  transform: translateY(-1px);
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

button span {
  display: inline-block;
  margin-right: 6px;
}

body.is-loading button span {
  animation: spinRefresh 900ms linear infinite;
}

.modelCards {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.modelCard {
  min-width: 0;
  padding: clamp(20px, 3vw, 32px);
}

.modelCard + .modelCard {
  border-left: 1px solid var(--line);
}

.modelTopline {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

h3 {
  margin-top: 8px;
  font-size: clamp(1.45rem, 2.2vw, 2.15rem);
  line-height: 1.05;
}

.arrowLink {
  flex: 0 0 auto;
  gap: 8px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.84rem;
  font-weight: 760;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.arrowLink span {
  transition: transform 160ms ease;
}

.arrowLink:hover {
  border-color: var(--lineStrong);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.arrowLink:hover span {
  transform: translateX(2px);
}

.modelStats {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.miniStat {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.miniStat strong {
  display: block;
  line-height: 1;
  font-size: 1rem;
}

.miniStat span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 660;
}

.pickList {
  display: grid;
  gap: 8px;
}

.pickRow {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.035);
  opacity: 0;
  transform: translateY(8px);
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.pickRow.is-visible {
  animation: rowIn 520ms ease both;
  animation-delay: var(--delay, 0ms);
}

.pickRow:hover {
  border-color: var(--lineStrong);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #07100c;
  background: var(--green);
  font-size: 0.82rem;
  font-weight: 850;
}

.sbCard .rank {
  color: #06101f;
  background: var(--blue);
}

.pickMain {
  min-width: 0;
}

.pickMain strong,
.pickMain span {
  display: block;
  overflow-wrap: anywhere;
}

.pickMain strong {
  line-height: 1.18;
  font-size: 0.98rem;
}

.pickMain span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.pickMetric {
  min-width: 66px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 820;
  text-align: right;
}

.emptyState {
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.emptyState strong {
  display: block;
  color: var(--soft);
  margin-bottom: 5px;
}

.quietFooter {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 22px 0 36px;
  color: var(--muted);
  font-size: 0.82rem;
}

@keyframes shellSheen {
  0%, 58% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes statusPing {
  0% {
    box-shadow: 0 0 0 0 rgba(99, 213, 155, 0.35);
  }
  100% {
    box-shadow: 0 0 0 11px rgba(99, 213, 155, 0);
  }
}

@keyframes spinRefresh {
  to {
    transform: rotate(360deg);
  }
}

@keyframes rowIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 880px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .modelCards {
    grid-template-columns: 1fr;
  }

  .modelCard + .modelCard {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 620px) {
  .siteHeader,
  main {
    width: min(100% - 28px, 1180px);
  }

  .navLinks,
  .boardHeader,
  .modelTopline {
    align-items: flex-start;
    flex-direction: column;
  }

  .navLinks {
    gap: 10px;
  }

  .hero {
    min-height: 320px;
    padding: 44px 0 58px;
    text-align: left;
    place-items: start;
  }

  .hero p:last-child {
    margin-left: 0;
    margin-right: 0;
  }

  .boardActions,
  .modelStats {
    width: 100%;
  }

  .boardActions {
    justify-content: flex-start;
  }

  .modelStats {
    grid-template-columns: 1fr;
  }

  .pickRow {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .pickMetric {
    grid-column: 2;
    text-align: left;
  }
}

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

  .pickRow {
    opacity: 1;
    transform: none;
  }
}
