/* Fuse Benchmarks */

.fb-page {
  padding-bottom: 4rem;
}

.fb-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(201, 169, 98, 0.85);
  margin-bottom: 0.65rem;
}

.fb-hero {
  padding: 2.5rem 1rem 2rem;
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}

.fb-hero__title {
  font-family: var(--font-display, "Orbitron", sans-serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 0.85rem;
}

.fb-hero__lead {
  opacity: 0.78;
  max-width: 42rem;
  margin: 0 auto 1.25rem;
  line-height: 1.65;
}

.fb-hero__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.fb-stat-pill {
  border: 1px solid rgba(201, 169, 98, 0.28);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  background: rgba(12, 18, 28, 0.55);
}

.fb-section-title {
  font-family: var(--font-display, "Orbitron", sans-serif);
  font-size: 1.35rem;
  color: #c9a962;
  margin-bottom: 0.25rem;
}

.fb-section-sub {
  opacity: 0.65;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.fb-model-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.fb-filters {
  max-width: 56rem;
  margin: 0 auto 1.5rem;
}

.fb-filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 14, 22, 0.72);
}

.fb-filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 140px;
}

.fb-filter-field--grow {
  flex: 1 1 220px;
}

.fb-filter-label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.58;
}

.fb-filter-field input,
.fb-filter-field select {
  width: 100%;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  padding: 0.55rem 0.75rem;
  font-size: 0.92rem;
}

.fb-filter-submit,
.fb-filter-reset {
  align-self: end;
}

.fb-tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.fb-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 169, 98, 0.28);
  background: rgba(12, 18, 28, 0.55);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: #d8cbff;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.fb-tag:hover,
.fb-tag.is-active {
  border-color: rgba(201, 169, 98, 0.55);
  background: rgba(201, 169, 98, 0.12);
  color: #f2d889;
}

.fb-tag--inline {
  pointer-events: none;
  font-size: 0.68rem;
}

.fb-license {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.fb-license--open {
  border-color: rgba(143, 212, 184, 0.42);
  color: #8fe4b2;
}

.fb-license--closed {
  border-color: rgba(176, 186, 204, 0.35);
  color: #b8c4d9;
}

.fb-model-card {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, rgba(16, 22, 34, 0.92), rgba(8, 10, 16, 0.88));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.fb-model-card__rank {
  font-family: var(--font-display, "Orbitron", sans-serif);
  font-size: 1.1rem;
  opacity: 0.55;
  min-width: 2rem;
}

.fb-model-card__avatar,
.fb-detail-hero__avatar {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(201, 169, 98, 0.35);
  background: radial-gradient(circle at 30% 20%, #24314d, #121a2a);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.fb-detail-hero__avatar {
  width: 88px;
  height: 88px;
}

.fb-model-card__avatar img,
.fb-detail-hero__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fb-model-card__initials,
.fb-detail-hero__initials {
  font-family: var(--font-display, "Orbitron", sans-serif);
  font-size: 1.1rem;
  color: #f2d889;
}

.fb-detail-hero__initials {
  font-size: 1.45rem;
}

.fb-model-card__tags,
.fb-detail-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.45rem 0 0.35rem;
}

.fb-detail-hero__identity {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.65rem;
}

.fb-detail-hero__main {
  min-width: 0;
}

.fb-model-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.fb-provider {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.fb-provider--anthropic { border-color: rgba(212, 165, 116, 0.45); color: #f0c98a; }
.fb-provider--openai { border-color: rgba(127, 226, 162, 0.4); color: #8fe4b2; }
.fb-provider--google { border-color: rgba(126, 182, 255, 0.42); color: #98c0ef; }
.fb-provider--cursor { border-color: rgba(196, 181, 255, 0.42); color: #d8cbff; }

.fb-score-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.05;
}

.fb-score-badge__value {
  font-family: var(--font-display, "Orbitron", sans-serif);
  font-size: 1.35rem;
  color: #f2d889;
}

.fb-score-badge__label {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
}

.fb-model-card__name {
  font-family: var(--font-display, "Orbitron", sans-serif);
  font-size: 1.15rem;
  margin: 0 0 0.2rem;
}

.fb-model-card__id code,
.fb-detail-hero__id code {
  font-size: 0.78rem;
  opacity: 0.72;
}

.fb-model-card__summary {
  font-size: 0.88rem;
  opacity: 0.72;
  margin: 0.35rem 0 0.55rem;
  line-height: 1.5;
}

.fb-model-card__meta {
  display: flex;
  gap: 0.85rem;
  font-size: 0.78rem;
  opacity: 0.58;
}

.fb-about {
  margin-top: 2rem;
}

.fb-about__grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .fb-about__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.fb-detail-hero {
  padding-top: 2rem;
  padding-bottom: 1.5rem;
}

.fb-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.82rem;
  opacity: 0.65;
  margin-bottom: 1rem;
}

.fb-crumb a {
  color: #98c0ef;
  text-decoration: none;
}

.fb-detail-hero__grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .fb-detail-hero__grid {
    grid-template-columns: 1fr minmax(220px, 280px);
    align-items: start;
  }
}

.fb-detail-hero__title {
  font-family: var(--font-display, "Orbitron", sans-serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0.5rem 0 0.35rem;
}

.fb-detail-hero__summary {
  opacity: 0.75;
  max-width: 40rem;
  line-height: 1.6;
}

.fb-detail-score {
  border-radius: 1rem;
  border: 1px solid rgba(201, 169, 98, 0.32);
  padding: 1rem 1.1rem;
  background: rgba(12, 18, 28, 0.72);
  text-align: center;
}

.fb-detail-score__label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.62;
  margin-bottom: 0.35rem;
}

.fb-detail-score__value {
  font-family: var(--font-display, "Orbitron", sans-serif);
  font-size: 2.4rem;
  line-height: 1;
  color: #f2d889;
  margin: 0;
}

.fb-detail-score__tier {
  margin-top: 0.45rem;
  font-size: 0.82rem;
  opacity: 0.68;
}

.fb-tests {
  display: grid;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
}

.fb-test-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  overflow: hidden;
  background: rgba(10, 14, 22, 0.82);
}

.fb-test-card__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.fb-test-card__index {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 0.2rem;
}

.fb-test-card__title {
  font-family: var(--font-display, "Orbitron", sans-serif);
  font-size: 1.1rem;
  margin: 0;
}

.fb-test-card__date {
  font-size: 0.78rem;
  opacity: 0.55;
  margin-top: 0.25rem;
}

.fb-test-card__score {
  text-align: right;
  min-width: 5.5rem;
}

.fb-test-card__score-value {
  display: block;
  font-family: var(--font-display, "Orbitron", sans-serif);
  font-size: 1.5rem;
  color: #f2d889;
}

.fb-test-card__score-label {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
}

.fb-test-card__notes {
  padding: 0.85rem 1.1rem 0;
  font-size: 0.88rem;
  opacity: 0.75;
  line-height: 1.55;
}

.fb-test-card__output {
  padding: 1rem 1.1rem 1.1rem;
}

.fb-test-card__output-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 0.55rem;
}

.fb-result-frame {
  width: 100%;
  min-height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  background: #05070d;
}

.fb-result-empty {
  opacity: 0.6;
  font-size: 0.88rem;
  margin: 0;
}

.is-elite .fb-score-badge__value,
.is-elite .fb-test-card__score-value,
.is-elite .fb-detail-score__value { color: #ffe08a; }
.is-strong .fb-score-badge__value,
.is-strong .fb-test-card__score-value,
.is-strong .fb-detail-score__value { color: #f2d889; }
.is-capable .fb-score-badge__value,
.is-capable .fb-test-card__score-value,
.is-capable .fb-detail-score__value { color: #98c0ef; }
.is-developing .fb-score-badge__value,
.is-developing .fb-test-card__score-value,
.is-developing .fb-detail-score__value { color: #b8c4d9; }
.is-early .fb-score-badge__value,
.is-early .fb-test-card__score-value,
.is-early .fb-detail-score__value { color: #9aa3b2; }

@media (max-width: 720px) {
  .fb-model-card {
    grid-template-columns: auto 1fr;
  }

  .fb-model-card__rank {
    display: none;
  }

  .fb-model-card__avatar {
    grid-row: span 2;
  }

  .fb-model-card__cta {
    grid-column: 1 / -1;
  }

  .fb-model-card__cta .btn-gold {
    width: 100%;
    text-align: center;
  }

  .fb-filter-form {
    flex-direction: column;
    align-items: stretch;
  }
}

.fb-model-card.is-hidden {
  display: none;
}

[data-theme="light"] .fb-model-card,
[data-theme="light"] .fb-test-card,
[data-theme="light"] .fb-detail-score {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .fb-stat-pill {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(15, 23, 42, 0.12);
}
