@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@300;400;500;600;700&family=Source+Code+Pro:wght@400;500&display=swap');

:root {
  --blue:       #2563EB;
  --blue-dark:  #1D4ED8;
  --blue-light: #EFF6FF;
  --blue-mid:   #BFDBFE;
  --green:      #16A34A;
  --red:        #DC2626;
  --amber:      #D97706;
  --purple:     #7C3AED;
  --gray-50:    #F9FAFB;
  --gray-100:   #F3F4F6;
  --gray-200:   #E5E7EB;
  --gray-300:   #D1D5DB;
  --gray-500:   #6B7280;
  --gray-700:   #374151;
  --gray-900:   #111827;
  --white:      #FFFFFF;
  --border:     #E5E7EB;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg:  0 8px 30px rgba(0,0,0,0.10);
  --ff:         'Source Sans 3', system-ui, sans-serif;
  --ff-mono:    'Source Code Pro', 'Courier New', monospace;
  --radius:     8px;
  --radius-sm:  4px;
  --radius-lg:  12px;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--ff); background: var(--white); color: var(--gray-900); line-height: 1.6; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--blue-mid); border-radius: 3px; }

/* ── TOP BANNER ── */
.top-banner {
  background: var(--blue);
  color: white;
  text-align: center;
  font-size: 0.83rem;
  font-weight: 500;
  padding: 8px 16px;
  letter-spacing: 0.01em;
}
.top-banner a { color: white; text-decoration: underline; }

/* ── NAV ── */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: white;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-icon { width: 34px; height: 34px; }
.brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex; align-items: center; gap: 4px;
}
.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
}
.nav-link:hover { background: var(--gray-100); color: var(--blue); }
.nav-link.active { color: var(--blue); background: var(--blue-light); }
.nav-search {
  flex: 1;
  position: relative;
  max-width: 360px;
  margin-left: auto;
}
.search-icon {
  position: absolute; left: 10px; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--gray-500);
}
.search-input {
  width: 100%;
  padding: 7px 40px 7px 34px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-size: 0.875rem;
  font-family: var(--ff);
  background: var(--gray-50);
  color: var(--gray-900);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,0.12); background: white; }
.search-input::placeholder { color: var(--gray-500); }
.search-shortcut {
  position: absolute; right: 10px; top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem; color: var(--gray-500);
  background: var(--gray-200); padding: 1px 5px;
  border-radius: 3px; font-family: var(--ff-mono);
}
.nav-actions { display: flex; gap: 8px; flex-shrink: 0; }
.btn-ghost-sm {
  padding: 6px 14px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-size: 0.875rem; font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
  transition: all 0.15s;
}
.btn-ghost-sm:hover { border-color: var(--blue); color: var(--blue); }
.btn-primary-sm {
  padding: 6px 14px;
  background: var(--blue);
  border-radius: 6px;
  font-size: 0.875rem; font-weight: 600;
  color: white; text-decoration: none;
  transition: background 0.15s;
}
.btn-primary-sm:hover { background: var(--blue-dark); }

/* ── HERO ── */
.hero {
  background: linear-gradient(160deg, #EFF6FF 0%, #FFFFFF 55%, #F0FDF4 100%);
  border-bottom: 1px solid var(--border);
  padding: 72px 24px 64px;
}
.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 0.78rem; font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--blue-mid);
  margin-bottom: 20px;
  letter-spacing: 0.03em;
}
.hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--gray-900);
  margin-bottom: 20px;
}
.hero-accent { color: var(--blue); }
.hero-sub {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 520px;
  margin-bottom: 32px;
  font-weight: 400;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.btn-primary-lg {
  padding: 11px 24px;
  background: var(--blue);
  color: white;
  border-radius: 8px;
  font-size: 0.95rem; font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, box-shadow 0.15s;
  box-shadow: 0 1px 3px rgba(37,99,235,0.3);
}
.btn-primary-lg:hover { background: var(--blue-dark); box-shadow: 0 4px 12px rgba(37,99,235,0.35); }
.btn-ghost-lg {
  padding: 11px 24px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-size: 0.95rem; font-weight: 500;
  color: var(--gray-700); text-decoration: none;
  transition: all 0.15s;
}
.btn-ghost-lg:hover { border-color: var(--blue); color: var(--blue); }
.hero-stats {
  display: flex; align-items: center; gap: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.hero-stat { padding: 14px 20px; }
.hero-stat-div { width: 1px; background: var(--border); align-self: stretch; }
.stat-n { display: block; font-size: 1.2rem; font-weight: 700; color: var(--blue); }
.stat-l { display: block; font-size: 0.75rem; color: var(--gray-500); font-weight: 400; }
/* DNA hero visual */
.hero-visual {
  position: relative;
  display: flex; justify-content: center; align-items: center;
  min-height: 420px;
}
.dna-svg { width: 260px; opacity: 0.85; filter: drop-shadow(0 4px 24px rgba(37,99,235,0.15)); }
.float-card {
  position: absolute;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  display: flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow-md);
  font-size: 0.78rem;
  white-space: nowrap;
  animation: floatY 4s ease-in-out infinite;
}
.fc1 { top: 30px; left: 0; animation-delay: 0s; }
.fc2 { top: 45%; right: -10px; animation-delay: 1.3s; }
.fc3 { bottom: 40px; left: 10px; animation-delay: 2.6s; }
.float-card code { font-family: var(--ff-mono); color: var(--blue); font-size: 0.78rem; }
.fc-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.fc-dot.green { background: var(--green); }
.fc-dot.blue  { background: var(--blue); }
.fc-dot.red   { background: var(--red); }
.fc-tag { background: var(--blue-light); color: var(--blue); font-size: 0.68rem; padding: 2px 6px; border-radius: 4px; font-weight: 600; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* ── CONTAINERS ── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ── SECTION HEADERS ── */
.section-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
}
.section-title-row { display: flex; align-items: center; gap: 10px; }
.section-icon { width: 22px; height: 22px; color: var(--blue); }
.section-title { font-size: 1.2rem; font-weight: 700; color: var(--gray-900); }
.see-all { font-size: 0.875rem; color: var(--blue); text-decoration: none; font-weight: 500; }
.see-all:hover { text-decoration: underline; }
.section-h2 { font-size: 1.6rem; font-weight: 700; color: var(--gray-900); letter-spacing: -0.02em; margin-bottom: 8px; }
.section-h2 .accent { color: var(--blue); }
.section-sub { color: var(--gray-500); font-size: 1rem; margin-bottom: 32px; }
.section-label-sm { font-size: 0.75rem; font-weight: 600; color: var(--blue); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px; }

/* ── TREND TABS ── */
.trend-tabs { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.trend-tab {
  padding: 8px 16px;
  font-size: 0.875rem; font-weight: 500;
  color: var(--gray-500);
  background: none; border: none; cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.15s;
}
.trend-tab:hover { color: var(--gray-900); }
.trend-tab.active { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }

/* ── TRENDING SECTION ── */
.trending-section { padding: 56px 0; }

/* ── MODEL GRID ── */
.model-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.model-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  display: flex; flex-direction: column; gap: 10px;
}
.model-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.mc-header { display: flex; align-items: center; gap: 10px; }
.mc-avatar {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.mc-meta { flex: 1; min-width: 0; }
.mc-org { font-size: 0.78rem; color: var(--gray-500); }
.mc-sep { font-size: 0.78rem; color: var(--gray-400); margin: 0 1px; }
.mc-name { font-size: 0.88rem; font-weight: 600; color: var(--gray-900); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-badge { font-size: 0.65rem; font-weight: 700; padding: 2px 7px; border-radius: 4px; letter-spacing: 0.04em; flex-shrink: 0; }
.mc-badge.new { background: #DCFCE7; color: #15803D; }
.mc-badge.hot { background: #FEF3C7; color: #B45309; }
.mc-badge.beta { background: var(--blue-light); color: var(--blue); }
.mc-desc { font-size: 0.82rem; color: var(--gray-500); line-height: 1.55; flex: 1; }
.mc-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.mc-footer { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.mc-stat { font-size: 0.78rem; color: var(--gray-500); }
.mc-updated { font-size: 0.75rem; color: var(--gray-400); margin-left: auto; }

/* ── TAGS ── */
.tag {
  font-size: 0.72rem; font-weight: 500;
  padding: 2px 8px; border-radius: 4px;
}
.tag.blue   { background: var(--blue-light);  color: var(--blue); }
.tag.green  { background: #DCFCE7; color: #15803D; }
.tag.gray   { background: var(--gray-100); color: var(--gray-700); }
.tag.purple { background: #F5F3FF; color: var(--purple); }
.tag.red    { background: #FEF2F2; color: var(--red); }
.tag.orange { background: #FFF7ED; color: #C2410C; }

/* ── INSTALL SECTION ── */
.install-section { padding: 56px 0; background: var(--gray-50); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.install-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; align-items: center; }
.install-text h2 { font-size: 1.8rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 12px; }
.install-text p { color: var(--gray-500); font-size: 0.95rem; margin-bottom: 28px; line-height: 1.7; }
.install-btns { display: flex; gap: 12px; }
.btn-primary-md { padding: 9px 20px; background: var(--blue); color: white; border-radius: 7px; font-size: 0.9rem; font-weight: 600; text-decoration: none; transition: background 0.15s; }
.btn-primary-md:hover { background: var(--blue-dark); }
.btn-ghost-md { padding: 9px 20px; border: 1px solid var(--gray-300); border-radius: 7px; font-size: 0.9rem; font-weight: 500; color: var(--gray-700); text-decoration: none; transition: all 0.15s; }
.btn-ghost-md:hover { border-color: var(--blue); color: var(--blue); }

/* Code block */
.install-code { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.code-tabs { display: flex; border-bottom: 1px solid var(--border); background: var(--gray-50); }
.code-tab { padding: 9px 16px; font-size: 0.82rem; font-weight: 500; color: var(--gray-500); background: none; border: none; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all 0.15s; }
.code-tab.active { color: var(--blue); border-bottom-color: var(--blue); background: white; }
.code-block { position: relative; }
.code-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px 0; }
.code-lang { font-size: 0.72rem; color: var(--gray-500); font-family: var(--ff-mono); }
.copy-btn { font-size: 0.75rem; color: var(--blue); background: var(--blue-light); border: none; padding: 3px 10px; border-radius: 4px; cursor: pointer; font-weight: 500; }
.copy-btn:hover { background: var(--blue-mid); }
pre { padding: 14px 20px 20px; overflow-x: auto; }
code { font-family: var(--ff-mono); font-size: 0.82rem; line-height: 1.75; color: var(--gray-700); }
code .kw  { color: #7C3AED; font-weight: 500; }
code .fn  { color: var(--blue); }
code .st  { color: #16A34A; }
code .cm  { color: var(--gray-500); font-style: italic; }
code .nm  { color: #D97706; }

/* ── TASKS GRID ── */
.tasks-section { padding: 56px 0; }
.tasks-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.task-card {
  display: flex; align-items: center; gap: 12px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  text-decoration: none; color: inherit;
  transition: all 0.15s;
}
.task-card:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.task-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.task-name { font-size: 0.85rem; font-weight: 600; color: var(--gray-900); }
.task-count { font-size: 0.75rem; color: var(--gray-500); }

/* ── BENCHMARKS ── */
.bench-section { padding: 56px 0; background: var(--blue); color: white; }
.bench-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: center; }
.bench-section .section-label-sm { color: var(--blue-mid); }
.bench-section .section-h2 { color: white; }
.bench-section .section-h2 .accent { color: var(--blue-mid); }
.bench-section .section-sub { color: rgba(255,255,255,0.7); }
.bench-table { border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,0.15); }
.bench-row {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  padding: 12px 16px;
  font-size: 0.85rem;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.bench-row:last-child { border-bottom: none; }
.bench-row.header { background: rgba(255,255,255,0.12); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.05em; color: var(--blue-mid); }
.bench-row:not(.header) { background: rgba(255,255,255,0.06); }
.bench-row:not(.header):hover { background: rgba(255,255,255,0.1); }
.bench-model { font-weight: 600; color: white; }
.bench-score { text-align: center; font-weight: 600; }
.bench-score.best { color: #86EFAC; }
.bench-score.good { color: #FDE68A; }
.bench-score.avg  { color: rgba(255,255,255,0.65); }
.bench-bar-wrap { background: rgba(255,255,255,0.12); border-radius: 4px; height: 6px; width: 80px; margin-left: auto; overflow: hidden; }
.bench-bar { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #60A5FA, #34D399); }

/* ── ORG SECTION ── */
.orgs-section { padding: 56px 0; }
.orgs-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-top: 32px; }
.org-card {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none; color: inherit;
  transition: all 0.15s; text-align: center;
}
.org-card:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.org-avatar { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; }
.org-name { font-size: 0.9rem; font-weight: 700; color: var(--gray-900); }
.org-type { font-size: 0.75rem; color: var(--gray-500); }
.org-stats { font-size: 0.75rem; color: var(--blue); font-weight: 500; }

/* ── FOOTER ── */
footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 56px 24px 32px;
}
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand-name { font-size: 1rem; font-weight: 700; color: white; margin-bottom: 8px; }
.footer-brand-desc { font-size: 0.83rem; line-height: 1.7; max-width: 240px; }
.footer-col h4 { font-size: 0.78rem; font-weight: 700; color: white; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { font-size: 0.85rem; color: var(--gray-300); text-decoration: none; transition: color 0.15s; }
.footer-col ul a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: var(--gray-500); }
.footer-bottom a { color: var(--gray-400); text-decoration: none; }
.footer-bottom a:hover { color: white; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .model-grid { grid-template-columns: repeat(2,1fr); }
  .install-grid { grid-template-columns: 1fr; }
  .bench-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .tasks-grid { grid-template-columns: repeat(2,1fr); }
  .orgs-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px) {
  .nav-links, .search-shortcut { display: none; }
  .model-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; }
  .tasks-grid, .orgs-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
