/* aibender — static model pages */

:root {
  --bg: #070a12;
  --bg-soft: #0b101c;
  --panel: rgba(17, 24, 39, 0.72);
  --panel-solid: #0e1422;
  --border: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(148, 163, 184, 0.3);
  --text: #e9eef9;
  --muted: #97a5bc;
  --dim: #64748b;
  --accent: #7c5cff;
  --accent-2: #22d3ee;
  --accent-soft: rgba(124, 92, 255, 0.14);
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;
  --pink: #f472b6;
  --blue: #60a5fa;
  --purple: #a78bfa;
  --radius: 16px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f7fc;
    --bg-soft: #ffffff;
    --panel: rgba(255, 255, 255, 0.86);
    --panel-solid: #ffffff;
    --border: rgba(15, 23, 42, 0.11);
    --border-strong: rgba(15, 23, 42, 0.2);
    --text: #0f172a;
    --muted: #526077;
    --dim: #7c8aa0;
    --accent: #6d4aff;
    --accent-2: #0891b2;
    --accent-soft: rgba(109, 74, 255, 0.09);
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(1000px 520px at 10% -8%, rgba(124, 92, 255, 0.18), transparent 62%),
    radial-gradient(850px 450px at 94% -4%, rgba(34, 211, 238, 0.11), transparent 58%),
    var(--bg);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img { display: block; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 10px 14px;
  background: var(--accent);
  color: #fff;
  border-radius: 0 0 10px 0;
  z-index: 100;
}
.skip:focus { left: 0; }

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
}

.head-inner {
  max-width: 1080px;
  margin: 0 auto;
  min-height: 64px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  object-fit: cover;
}

.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand strong { font-size: 0.98rem; font-weight: 800; letter-spacing: -0.03em; }
.brand small { color: var(--dim); font-size: 0.66rem; font-weight: 500; }

.head-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.head-nav a {
  padding: 7px 12px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}

.head-nav a:hover { color: var(--text); background: var(--accent-soft); }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 26px 22px 70px;
}

.crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 22px;
  color: var(--dim);
  font-size: 0.76rem;
}

.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.crumbs span[aria-current] { color: var(--text); }

.model { display: flex; flex-direction: column; gap: 18px; }

.hero {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--panel), transparent);
  box-shadow: var(--shadow);
}

.avatar {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, hsl(var(--h, 250) 78% 60%), hsl(calc(var(--h, 250) + 36) 82% 52%));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

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

.kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 9px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel-solid);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.badge.cat-llm { color: var(--blue); border-color: color-mix(in srgb, var(--blue) 42%, transparent); }
.badge.cat-image { color: var(--pink); border-color: color-mix(in srgb, var(--pink) 42%, transparent); }
.badge.cat-video { color: var(--purple); border-color: color-mix(in srgb, var(--purple) 42%, transparent); }
.badge.cat-avatar { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 42%, transparent); }
.badge.cat-platform { color: var(--green); border-color: color-mix(in srgb, var(--green) 42%, transparent); }
.badge.cat-audio { color: var(--cyan, #22d3ee); border-color: color-mix(in srgb, #22d3ee 42%, transparent); }
.badge.cat-3d { color: var(--orange, #fb923c); border-color: color-mix(in srgb, #fb923c 42%, transparent); }

h1 {
  margin: 0 0 3px;
  font-size: clamp(2rem, 5vw, 3.15rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.byline {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.byline strong { color: var(--text); }

.lede {
  margin: 13px 0 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.actions { display: flex; flex-wrap: wrap; gap: 9px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--panel);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease), transform 0.18s var(--ease);
}

.btn:hover { border-color: var(--border-strong); background: var(--accent-soft); transform: translateY(-1px); }

.btn.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), #4f46e5);
  color: #fff;
  box-shadow: 0 10px 30px rgba(124, 92, 255, 0.3);
}

.btn.primary:hover { background: linear-gradient(135deg, #8b6dff, #5b52f0); }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 9px;
}

.stat {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
}

.stat span { display: block; color: var(--dim); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.stat b { display: block; margin-top: 3px; font-size: 0.96rem; font-weight: 700; }

.panel {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}

.panel h2 {
  margin: 0 0 12px;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.panel p { margin: 0 0 12px; color: var(--muted); line-height: 1.7; }
.panel p:last-child { margin-bottom: 0; }

.panel .note {
  margin-top: 14px;
  padding: 12px 14px;
  border-left: 3px solid var(--amber);
  border-radius: 0 9px 9px 0;
  background: rgba(251, 191, 36, 0.08);
  color: var(--muted);
  font-size: 0.86rem;
}

.panel .note b { color: var(--text); }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.clean { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.clean li { position: relative; padding-left: 18px; color: var(--muted); font-size: 0.9rem; line-height: 1.55; }
.clean li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}
.clean.limits li::before { background: var(--red); }

.specs { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.specs th, .specs td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.specs th { width: 34%; color: var(--dim); font-weight: 600; }
.specs td { color: var(--text); }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }

.related { display: flex; flex-wrap: wrap; gap: 8px; }
.related a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--panel-solid);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.related a:hover { color: var(--text); border-color: var(--border-strong); }
.related a small { color: var(--dim); font-weight: 500; }

.site-foot {
  border-top: 1px solid var(--border);
  color: var(--dim);
  font-size: 0.76rem;
}
.foot-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--text); text-decoration: underline; }

/* ---------- model index ---------- */

.index-hero { padding: 10px 0 22px; }
.index-hero h1 { margin-bottom: 10px; }
.index-hero p { max-width: 760px; margin: 0; color: var(--muted); font-size: 1rem; }

.category-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.category-row span {
  padding: 6px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
}
.category-row b { color: var(--text); margin-left: 3px; }

.search-wrap { position: relative; margin: 24px 0 26px; }
.search-wrap svg {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--dim);
}
#modelSearch {
  width: 100%;
  height: 52px;
  padding: 0 16px 0 43px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  outline: none;
}
#modelSearch:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.directory { display: flex; flex-direction: column; gap: 24px; }

.vendor-block {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  scroll-margin-top: 84px;
}

.vendor-head { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; margin-bottom: 13px; }
.vendor-head h2 { margin: 0; font-size: 1.05rem; letter-spacing: -0.02em; }
.vendor-head span { color: var(--dim); font-size: 0.74rem; }
.vendor-head .kind { padding: 2px 8px; border: 1px solid var(--border); border-radius: 999px; font-size: 0.66rem; font-weight: 600; }

.model-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.model-list li a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease);
}
.model-list li a:hover { background: var(--accent-soft); border-color: var(--border); }
.model-list li a span { color: var(--dim); font-size: 0.68rem; font-weight: 500; white-space: nowrap; }
.model-list li.hidden, .vendor-block.hidden { display: none; }

.empty-note { display: none; padding: 24px; text-align: center; color: var(--muted); }
.empty-note.show { display: block; }

@media (max-width: 720px) {
  .head-inner { padding: 0 16px; gap: 10px; }
  .brand small { display: none; }
  .head-nav a { padding: 7px 8px; font-size: 0.74rem; }
  .head-nav a:first-child { display: none; }
  .wrap { padding: 20px 16px 56px; }
  .hero { padding: 18px; gap: 13px; }
  .avatar { width: 50px; height: 50px; border-radius: 14px; font-size: 0.96rem; }
  .two { grid-template-columns: 1fr; }
  .panel { padding: 18px; }
  .specs th { width: 42%; }
  .foot-inner { padding: 18px 16px; }
}

@media (max-width: 440px) {
  .head-nav a { padding: 6px; font-size: 0.7rem; }
  .brand strong { font-size: 0.9rem; }
  .brand img { width: 30px; height: 30px; }
  .hero { flex-direction: column; }
}
