/* ═══════════════════════════════════════════════════════════
   RefMate Promo Site — Premium CSS
   ═══════════════════════════════════════════════════════════ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy-950: #0a0e1a;
  --navy-900: #0f1629;
  --navy-800: #1a2240;
  --navy-700: #243056;
  --navy-600: #334577;
  --navy-500: #4a6091;
  --navy-400: #7088b4;
  --navy-300: #97aed0;
  --navy-200: #bfcfe6;
  --navy-100: #e1eaf5;

  --indigo-600: #4f46e5;
  --indigo-500: #6366f1;
  --violet-600: #7c3aed;
  --violet-500: #8b5cf6;
  --purple-600: #9333ea;
  --emerald-500: #10b981;
  --emerald-400: #34d399;
  --rose-500: #f43f5e;
  --amber-500: #f59e0b;
  --cyan-500: #06b6d4;
  --orange-500: #f97316;
  --teal-500: #14b8a6;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.1);
  --shadow-xl: 0 20px 60px rgba(0,0,0,.15);
  --shadow-glow: 0 0 80px rgba(99, 102, 241, .15);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: #1e293b;
  background: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(99, 102, 241, .1);
  color: var(--indigo-600);
  padding: 2px 6px;
  border-radius: 4px;
}

sup { font-size: 0.65em; }

/* ── Scroll Animations ────────────────────────────────────── */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Navigation ───────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0,0,0,.06);
  transition: box-shadow .3s ease, background .3s ease;
}
#navbar.scrolled {
  box-shadow: 0 1px 8px rgba(0,0,0,.08);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--navy-900);
  letter-spacing: -.02em;
}
.nav-logo-icon {
  width: 24px;
  height: 24px;
  color: var(--indigo-600);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--navy-600);
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--indigo-600); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  background: var(--indigo-600);
  color: #fff !important;
  font-weight: 600;
  font-size: .875rem;
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
  box-shadow: 0 2px 8px rgba(79, 70, 229, .3);
}
.nav-cta:hover {
  background: var(--violet-600);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(79, 70, 229, .4);
}

/* Mobile Nav */
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy-800);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.nav-mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-mobile-toggle.active span:nth-child(2) { opacity: 0; }
.nav-mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 12px 24px 20px;
  gap: 4px;
  background: rgba(255,255,255,.98);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 10px 12px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--navy-700);
  border-radius: var(--radius-sm);
  transition: background .2s ease;
}
.nav-mobile a:hover { background: rgba(99,102,241,.06); }
.nav-cta-mobile {
  margin-top: 8px;
  padding: 12px 20px !important;
  background: var(--indigo-600);
  color: #fff !important;
  border-radius: var(--radius-full) !important;
  text-align: center;
  font-weight: 600 !important;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }
}

/* ── Hero Section ─────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy-950);
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .4;
  pointer-events: none;
}
.hero-glow-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,.5), transparent 70%);
  top: -100px;
  right: -100px;
}
.hero-glow-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124,58,237,.4), transparent 70%);
  bottom: -80px;
  left: -80px;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--navy-200);
  font-size: .8rem;
  font-weight: 500;
  backdrop-filter: blur(8px);
  margin-bottom: 28px;
}
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-400);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.3); }
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.12;
  letter-spacing: -.03em;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, #818cf8, #c084fc, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--navy-300);
  max-width: 700px;
  margin: 0 auto 36px;
  line-height: 1.7;
  font-weight: 400;
}

.hide-mobile { display: inline; }
@media (max-width: 640px) { .hide-mobile { display: none; } }

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all .2s var(--ease-out);
  border-radius: var(--radius-md);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--indigo-600), var(--violet-600));
  color: #fff;
  box-shadow: 0 4px 20px rgba(99,102,241,.35), inset 0 1px 0 rgba(255,255,255,.15);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99,102,241,.45), inset 0 1px 0 rgba(255,255,255,.15);
}
.btn-ghost {
  background: rgba(255,255,255,.06);
  color: var(--navy-200);
  border: 1px solid rgba(255,255,255,.15);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.12);
  transform: translateY(-1px);
}
.btn-lg { padding: 14px 28px; font-size: .95rem; }
.btn-xl { padding: 18px 40px; font-size: 1.05rem; border-radius: var(--radius-lg); }

/* Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
}
.stat-label {
  display: block;
  font-size: .78rem;
  color: var(--navy-400);
  font-weight: 500;
  margin-top: 2px;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.12);
}

/* ── Sections ─────────────────────────────────────────────── */
.section {
  padding: 100px 0;
}
.section-alt {
  background: #f8fafc;
}
.section-dark {
  background: var(--navy-950);
  color: #fff;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.025em;
  color: var(--navy-900);
}
.section-dark .section-header h2 { color: #fff; }

.section-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  background: rgba(99,102,241,.08);
  color: var(--indigo-600);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 16px;
}
.section-tag-light {
  background: rgba(255,255,255,.1);
  color: var(--navy-200);
}

.section-desc {
  font-size: 1.05rem;
  color: #64748b;
  max-width: 660px;
  margin: 16px auto 0;
  line-height: 1.7;
}
.text-white { color: #fff !important; }
.text-white-muted { color: var(--navy-300) !important; }

/* ── Pain Points ──────────────────────────────────────────── */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.pain-card {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .3s var(--ease-out), box-shadow .3s ease;
}
.pain-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.pain-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.pain-icon-red {
  background: rgba(244,63,94,.08);
  color: var(--rose-500);
}
.pain-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 8px;
}
.pain-card p {
  font-size: .88rem;
  color: #64748b;
  line-height: 1.6;
}

/* ── Solution Cards ───────────────────────────────────────── */
.solution-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.sol-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform .3s var(--ease-out), border-color .3s ease, background .3s ease;
}
.sol-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99,102,241,.3);
  background: rgba(255,255,255,.06);
}
.sol-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(99,102,241,.15), rgba(124,58,237,.15));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--indigo-500);
  margin-bottom: 18px;
}
.sol-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.sol-card p {
  font-size: .88rem;
  color: var(--navy-300);
  line-height: 1.6;
}

/* ── Features Grid ────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .3s var(--ease-out), box-shadow .3s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  font-size: 1.8rem;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.feature-icon-indigo { background: rgba(99,102,241,.08); }
.feature-icon-violet { background: rgba(124,58,237,.08); }
.feature-icon-emerald { background: rgba(16,185,129,.08); }
.feature-icon-amber { background: rgba(245,158,11,.08); }
.feature-icon-rose { background: rgba(244,63,94,.08); }
.feature-icon-cyan { background: rgba(6,182,212,.08); }
.feature-icon-orange { background: rgba(249,115,22,.08); }
.feature-icon-teal { background: rgba(20,184,166,.08); }
.feature-icon-purple { background: rgba(147,51,234,.08); }

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 6px;
}
.feature-card p {
  font-size: .85rem;
  color: #64748b;
  line-height: 1.55;
}

/* ── Modules List ─────────────────────────────────────────── */
.modules-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.module-card {
  display: flex;
  gap: 24px;
  background: #fff;
  border: 1px solid #e8ecf2;
  border-radius: var(--radius-xl);
  padding: 36px;
  transition: transform .3s var(--ease-out), box-shadow .3s ease, border-color .3s ease;
}
.module-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(99,102,241,.2);
}

.module-number {
  font-size: 2.4rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--indigo-600), var(--violet-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  flex-shrink: 0;
  min-width: 56px;
  padding-top: 4px;
}
.module-content { flex: 1; }
.module-content h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 4px;
  letter-spacing: -.01em;
}
.module-tagline {
  font-size: .82rem;
  font-weight: 600;
  color: var(--indigo-600);
  margin-bottom: 12px !important;
}
.module-content p {
  font-size: .92rem;
  color: #475569;
  line-height: 1.7;
}

@media (max-width: 640px) {
  .module-card {
    flex-direction: column;
    gap: 12px;
    padding: 24px;
  }
  .module-number { font-size: 1.8rem; }
}

/* ── Comparison Table ─────────────────────────────────────── */
.comparison-table {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
}
.comp-row {
  display: grid;
  grid-template-columns: 180px 1fr 1fr;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.comp-row:last-child { border-bottom: none; }

.comp-header {
  background: rgba(255,255,255,.06);
}
.comp-header .comp-cell {
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--navy-300);
  padding: 14px 20px;
}

.comp-cell {
  padding: 18px 20px;
  font-size: .88rem;
  line-height: 1.55;
  color: var(--navy-200);
}
.comp-label {
  font-weight: 700;
  color: #fff;
  font-size: .85rem;
  border-right: 1px solid rgba(255,255,255,.06);
}
.comp-before {
  background: rgba(244,63,94,.04);
  border-right: 1px solid rgba(255,255,255,.06);
}
.comp-after {
  background: rgba(16,185,129,.04);
}

.comp-badge {
  display: inline-block;
  font-size: 1rem;
  margin-right: 6px;
  vertical-align: middle;
}

@media (max-width: 768px) {
  .comp-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .comp-header { display: none; }
  .comp-label {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.06);
    background: rgba(255,255,255,.04);
    padding: 12px 20px;
  }
  .comp-before { border-right: none; }
}

/* ── Audience ─────────────────────────────────────────────── */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.audience-card {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .3s var(--ease-out), box-shadow .3s ease;
}
.audience-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.audience-emoji {
  font-size: 2rem;
  margin-bottom: 12px;
}
.audience-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 8px;
}
.audience-card p {
  font-size: .88rem;
  color: #64748b;
  line-height: 1.6;
}

/* ── FAQ ──────────────────────────────────────────────────── */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  background: #fff;
  border: 1px solid #e8ecf2;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color .3s ease;
}
.faq-item[open] {
  border-color: var(--indigo-500);
}
.faq-item summary {
  padding: 18px 24px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--navy-900);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color .2s ease;
}
.faq-item summary:hover { color: var(--indigo-600); }
.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--navy-400);
  transition: transform .3s var(--ease-out);
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
  color: var(--indigo-600);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p {
  padding: 0 24px 18px;
  font-size: .9rem;
  color: #475569;
  line-height: 1.7;
}

/* ── CTA Section ──────────────────────────────────────────── */
.section-cta {
  position: relative;
  background: var(--navy-950);
  text-align: center;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(99,102,241,.25), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(80px);
  pointer-events: none;
}
.cta-content {
  position: relative;
  z-index: 2;
}
.cta-content h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.cta-content p {
  font-size: 1.05rem;
  color: var(--navy-300);
  margin-bottom: 36px;
  line-height: 1.7;
}

/* ── Footer ───────────────────────────────────────────────── */
#footer {
  background: var(--navy-900);
  color: var(--navy-300);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding: 60px 24px 40px;
  flex-wrap: wrap;
}
.footer-brand { max-width: 320px; }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 12px;
}
.footer-logo .nav-logo-icon { color: var(--indigo-500); }
.footer-brand p {
  font-size: .85rem;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col h4 {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--navy-400);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: .88rem;
  color: var(--navy-300);
  transition: color .2s ease;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 20px 24px;
}
.footer-bottom p {
  font-size: .78rem;
  color: var(--navy-500);
  text-align: center;
}

/* ── Zotero vs RefMate Section ─────────────────────────────── */
.zotero-norm-block {
  margin-bottom: 48px;
}
.norm-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e8ecf2;
}
.norm-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .02em;
  margin-bottom: 8px;
}
.norm-badge-apa {
  background: linear-gradient(135deg, rgba(99,102,241,.1), rgba(124,58,237,.1));
  color: var(--indigo-600);
  border: 1px solid rgba(99,102,241,.2);
}
.norm-badge-vanc {
  background: linear-gradient(135deg, rgba(16,185,129,.1), rgba(6,182,212,.1));
  color: #059669;
  border: 1px solid rgba(16,185,129,.2);
}
.norm-header p {
  font-size: .88rem;
  color: #64748b;
}

.zotero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 16px;
}

.zotero-card {
  background: #fff;
  border: 1px solid #e8ecf2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .3s var(--ease-out), box-shadow .3s ease;
}
.zotero-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.zotero-error {
  padding: 20px 22px 16px;
  border-bottom: 1px solid #f1f5f9;
  background: rgba(244,63,94,.02);
}
.zotero-error h4 {
  font-size: .92rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 6px;
  margin-top: 6px;
}
.zotero-error p {
  font-size: .82rem;
  color: #64748b;
  line-height: 1.6;
}

.refmate-fix {
  padding: 16px 22px 18px;
  background: rgba(16,185,129,.02);
}
.refmate-fix p {
  font-size: .82rem;
  color: #475569;
  line-height: 1.6;
  margin-top: 6px;
}

.z-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.z-tag-red {
  background: rgba(244,63,94,.1);
  color: #e11d48;
}
.z-tag-green {
  background: rgba(16,185,129,.1);
  color: #059669;
}

.zotero-cta {
  text-align: center;
  padding: 40px 0 0;
  border-top: 1px solid #e8ecf2;
  margin-top: 12px;
}
.zotero-cta p {
  font-size: 1rem;
  color: #475569;
  margin-bottom: 20px;
  font-weight: 500;
}

@media (max-width: 640px) {
  .zotero-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero-stats { gap: 20px; }
  .stat-divider { display: none; }
  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-links { gap: 32px; }
}
