:root {
  --navy: #0A2463;
  --gold: #C9A227;
  --white: #ffffff;
  --off-white: #fafbfc;
  --light-grey: #f4f6f8;
  --text-grey: #6b7280;
  --text-body: #374151;
  --max-width: 1200px;
  --radius: 12px;
  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: var(--text-body); background: var(--off-white); line-height: 1.6; }
.container { width: min(100% - 3rem, var(--max-width)); margin-inline: auto; }
.site-header { background: var(--white); border-bottom: 1px solid #e5e7eb; padding: 1rem 0; position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--navy); font-weight: 700; font-size: 1.25rem; }
.brand i { color: var(--gold); font-size: 1.5rem; }
.nav { display: flex; gap: 1.5rem; }
.nav a { color: var(--text-body); text-decoration: none; font-weight: 500; padding: .5rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.active { color: var(--navy); border-color: var(--gold); }
.header-actions { display: flex; gap: .75rem; }
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .625rem 1.25rem; border-radius: var(--radius); border: none; font-size: .9rem; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn-secondary { background: var(--navy); color: var(--white); }
.btn-secondary:hover { background: #071a4a; }
.btn-ghost { background: transparent; color: var(--text-body); border: 1px solid #d1d5db; }
.btn-ghost:hover { background: var(--light-grey); }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.skip-link { position: absolute; top: -100%; left: 50%; transform: translateX(-50%); background: var(--navy); color: var(--white); padding: .75rem 1.25rem; border-radius: 0 0 var(--radius) var(--radius); z-index: 200; }
.skip-link:focus { top: 0; }
main { padding: 2.5rem 0 4rem; }
.hero { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.hero h1 { font-size: clamp(2rem,5vw,3rem); color: var(--navy); margin: 0 0 1rem; }
.subtitle { font-size: 1.15rem; color: var(--text-grey); margin: 0 0 1.5rem; }
.status-line { color: var(--text-grey); font-size: .95rem; }
.filters { background: var(--white); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); margin-bottom: 2rem; }
.filters-toolbar { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.25rem; flex-wrap: wrap; }
.search-box { position: relative; flex: 1; min-width: 240px; }
.search-box i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--text-grey); }
.search-box input { width: 100%; padding: .75rem 1rem .75rem 2.75rem; border: 1px solid #d1d5db; border-radius: var(--radius); font-size: .95rem; }
.search-box input:focus { outline: 2px solid var(--navy); outline-offset: 2px; }
.filter-groups { display: grid; gap: 1rem; }
.filter-group { display: flex; flex-direction: column; gap: .75rem; }
.filter-group-label { display: flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-grey); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .8rem; border-radius: 9999px; border: 1px solid #d1d5db; background: var(--white); color: var(--text-body); font-size: .85rem; cursor: pointer; }
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.active-filters-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid #e5e7eb; flex-wrap: wrap; }
.result-count { font-size: .9rem; color: var(--text-grey); font-weight: 500; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px,1fr)); gap: 1.5rem; }
.model-card { background: var(--white); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); border: 1px solid #e5e7eb; transition: box-shadow .2s, transform .2s; }
.model-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.card-title { margin: 0; font-size: 1.15rem; color: var(--navy); }
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { text-decoration: underline; }
.card-badges { display: flex; gap: .4rem; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: .25rem; padding: .25rem .5rem; border-radius: 6px; font-size: .75rem; font-weight: 600; }
.badge-cloud { background: #dbeafe; color: #1e40af; }
.badge-hermes { background: #fef3c7; color: #92400e; }
.badge-tools { background: #d1fae5; color: #065f46; }
.badge-vision { background: #cffafe; color: #155e75; }
.badge-thinking { background: #f3e8ff; color: #6b21a8; }
.badge-embedding { background: #ede9fe; color: #5b21b6; }
.card-description { color: var(--text-grey); font-size: .95rem; margin: 0 0 1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; gap: 1rem; font-size: .85rem; color: var(--text-grey); flex-wrap: wrap; }
.site-footer { background: var(--white); border-top: 1px solid #e5e7eb; padding: 2rem 0; text-align: center; color: var(--text-grey); font-size: .9rem; }
.site-footer a { color: var(--navy); text-decoration: none; }
.table-container { overflow-x: auto; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.models-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.models-table th, .models-table td { padding: .875rem 1rem; text-align: left; border-bottom: 1px solid #e5e7eb; }
.models-table th { background: var(--light-grey); color: var(--navy); font-weight: 600; white-space: nowrap; cursor: pointer; }
.models-table tbody tr:hover { background: var(--off-white); }
@media (max-width: 768px) {
  .header-inner { flex-direction: column; align-items: stretch; }
  .nav { justify-content: center; }
  .header-actions { justify-content: center; }
  .filters-toolbar { flex-direction: column; align-items: stretch; }
  .search-box { min-width: 100%; }
  .cards-grid { grid-template-columns: 1fr; }
}
