*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:        #0f172a;
  --navy-light:  #1e293b;
  --accent:      #1d4ed8;
  --accent-hover:#1e40af;
  --accent-light:#eff6ff;
  --text:        #1e293b;
  --muted:       #64748b;
  --border:      #e2e8f0;
  --surface:     #ffffff;
  --bg:          #f8fafc;
  --radius:      10px;
  --shadow:      0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
}

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 1rem;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
  background: var(--accent-light);
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82em;
  padding: 0.12em 0.4em;
  border-radius: 4px;
}

.inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Navbar ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--navy);
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--accent); text-decoration: none; }

.nav-github {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--navy);
  color: #fff !important;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  transition: background 0.15s;
}

.nav-github:hover { background: var(--navy-light); text-decoration: none; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a8a 60%, #0e4f6e 100%);
  color: #fff;
  padding: 5.5rem 2rem;
}

.hero-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.hero-logo {
  width: 200px;
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.4));
}

.hero-badge {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #93c5fd;
  margin-bottom: 0.8rem;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1.1rem;
}

.hero-sub {
  font-size: 1.05rem;
  color: #bfdbfe;
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  border-radius: 7px;
  transition: all 0.15s;
}

.btn-primary { background: #fff; color: var(--navy); }
.btn-primary:hover { background: #e0e7ff; text-decoration: none; }

.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-secondary:hover { background: rgba(255,255,255,0.2); text-decoration: none; }

/* ── Sections ── */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--surface); }

.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

.section-sub {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0.8rem 0 2rem;
}

p { color: var(--text); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── Model Grid ── */
.model-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 1rem;
}

.model-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.model-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.model-logo-wrap {
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

.model-logo {
  width: 200px;
  height: 200px;
  object-fit: contain;
}

.model-body {
  padding: 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.model-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}

.model-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}

/* ── Badges ── */
.badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
}

.badge-published { background: #dcfce7; color: #166534; }
.badge-dev       { background: #fef9c3; color: #854d0e; }
.badge-proposal  { background: #f1f5f9; color: #475569; }

.model-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}

/* ── Tags ── */
.model-tags, .paper-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.1rem; }

.tag {
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--accent-light);
  color: var(--accent);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

/* ── Card Buttons ── */
.model-links { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: auto; }

.btn-card {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.38rem 0.9rem;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  transition: background 0.15s;
}

.btn-card:hover { background: var(--accent-hover); text-decoration: none; color: #fff; }

.btn-card-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-card-outline:hover { background: var(--accent-light); text-decoration: none; }

.btn-card-disabled {
  background: var(--border);
  color: var(--muted);
  cursor: default;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.38rem 0.9rem;
  border-radius: 6px;
}

/* ── Paper Card ── */
.paper-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem 1.8rem;
  box-shadow: var(--shadow);
}

.paper-meta {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  margin-bottom: 0.45rem;
}

.paper-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.45;
  margin-bottom: 0.35rem;
}

.paper-title a { color: var(--navy); }
.paper-title a:hover { color: var(--accent); text-decoration: none; }

.paper-authors {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

/* ── Collaborate ── */
.collab-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-top: 1.4rem;
}

.collab-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.collab-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

/* ── Contact ── */
.contact-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.8rem;
  box-shadow: var(--shadow);
}

.contact-card strong {
  display: block;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.contact-card p {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

/* ── Footer ── */
.footer {
  background: var(--navy);
  color: #94a3b8;
  padding: 1.5rem 2rem;
}

.footer .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

.footer a { color: #94a3b8; }
.footer a:hover { color: #fff; text-decoration: none; }

/* ── Responsive ── */
@media (max-width: 780px) {
  .model-grid, .collab-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.2rem; }
  .nav-links a:not(.nav-github) { display: none; }
  .footer .inner { flex-direction: column; gap: 0.5rem; text-align: center; }
}
