/* ===================== GenSpectrum project page ===================== */
:root {
  --gs-blue:    #0072B2;   /* paper brand color */
  --gs-accent:  #6366f1;   /* viewer indigo */
  --gs-ink:     #1f2433;
  --gs-muted:   #5b6478;
  --gs-line:    #e7e9f0;
  --gs-grey-bg: #f6f7fb;
}

html { scroll-behavior: smooth; scroll-padding-top: 12px; }
body {
  font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gs-ink);
  background: #fff;
}
.gs-h2 {
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: 2rem; font-weight: 700; color: var(--gs-ink);
  margin-bottom: 1.4rem; letter-spacing: -0.01em;
}
.gs-lead {
  max-width: 800px; margin: 0 auto 1.8rem; color: var(--gs-muted);
  font-size: 1.06rem; line-height: 1.7;
}
.gs-lead code, .gs-prose code, figcaption code {
  background: #eef0f8; color: #3b3f73; padding: 0.05em 0.4em;
  border-radius: 5px; font-size: 0.86em;
}
.gs-note { font-size: 0.92rem; color: #98a0b3; }
.section { padding: 3rem 1.5rem; }
.gs-section-tight { padding-top: 1.2rem; padding-bottom: 1.2rem; }
.gs-section-grey { background: var(--gs-grey-bg); }

/* ---------- Hero ---------- */
.gs-hero {
  background: linear-gradient(160deg, #16162a 0%, #232350 55%, #2b2f6b 100%);
  color: #fff; padding: 3.2rem 1.5rem 2.6rem;
}
.gs-title {
  font-family: 'Google Sans', sans-serif; font-weight: 700;
  font-size: 4.2rem; line-height: 1; letter-spacing: -0.02em;
  background: linear-gradient(90deg, #a5b4fc, #67e8f9 55%, #c4b5fd);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; margin-bottom: 0.5rem;
}
.gs-subtitle {
  font-family: 'Google Sans', sans-serif; font-weight: 500;
  font-size: 1.5rem; color: #e6e8ff; margin-bottom: 1.6rem;
}
.gs-authors { font-size: 1.12rem; line-height: 1.9; margin-bottom: 0.4rem; }
.gs-authors .author-block { margin: 0 0.18rem; white-space: nowrap; color: #f2f3ff; }
.gs-authors sup { color: #9fb6ff; }
.gs-affil { color: #c7ccf0; font-size: 1rem; margin-top: 0.3rem; }
.gs-affil .affil-sep { margin: 0 0.5rem; color: #6b73a8; }
.gs-equal { color: #9aa2cc; font-size: 0.85rem; margin-top: 0.25rem; }

.gs-buttons { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; margin-top: 1.8rem; }
.gs-btn { font-weight: 600; border: 0; transition: transform 0.12s, box-shadow 0.12s; }
.gs-btn:hover { transform: translateY(-2px); }
.gs-btn .icon { margin-right: 0.1rem; }
.gs-btn-dark { background: rgba(255,255,255,0.12); color: #fff; backdrop-filter: blur(4px); }
.gs-btn-dark:hover { background: rgba(255,255,255,0.22); color: #fff; }
.gs-btn-accent { background: var(--gs-accent); color: #fff; box-shadow: 0 6px 18px rgba(99,102,241,0.45); }
.gs-btn-accent:hover { background: #4f52e0; color: #fff; }
.gs-btn-disabled { background: rgba(255,255,255,0.06); color: #8b91bd; cursor: default; pointer-events: none; }

/* ---------- Figures ---------- */
.gs-figure { margin: 0 auto; max-width: 100%; text-align: center; }
.gs-figure img {
  max-width: 100%; border-radius: 12px;
  box-shadow: 0 8px 30px rgba(20,22,45,0.10); border: 1px solid var(--gs-line);
}
.gs-figure-narrow { max-width: 560px; }
.gs-figure figcaption {
  margin-top: 0.9rem; color: var(--gs-muted); font-size: 0.92rem;
  line-height: 1.6; max-width: 880px; margin-left: auto; margin-right: auto;
}
.gs-prose p { color: #3a4055; font-size: 1.06rem; line-height: 1.8; margin-bottom: 1rem; }
.gs-prose { max-width: 800px; margin: 0 auto; }

/* ---------- Highlight cards ---------- */
.gs-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gs-card {
  background: #fff; border: 1px solid var(--gs-line); border-radius: 14px;
  padding: 1.4rem 1.2rem; text-align: center; transition: transform 0.15s, box-shadow 0.15s;
}
.gs-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(20,22,45,0.08); }
.gs-card-ic { font-size: 1.9rem; margin-bottom: 0.5rem; }
.gs-card h3 { font-family: 'Google Sans', sans-serif; font-size: 1.05rem; font-weight: 600; margin-bottom: 0.4rem; }
.gs-card p { color: var(--gs-muted); font-size: 0.9rem; line-height: 1.55; }

/* ---------- Stats ---------- */
.gs-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 2.4rem; margin-top: 2rem; }
.gs-stat { text-align: center; }
.gs-stat .num {
  font-family: 'Google Sans', sans-serif; font-size: 2.3rem; font-weight: 700;
  color: var(--gs-blue); line-height: 1;
}
.gs-stat .lab { color: var(--gs-muted); font-size: 0.9rem; margin-top: 0.3rem; text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Benchmark table ---------- */
.gs-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.gs-table th, .gs-table td { padding: 0.5rem 0.7rem; border-bottom: 1px solid var(--gs-line); text-align: left; }
.gs-table th { color: var(--gs-muted); font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; }
.gs-table td:nth-child(3), .gs-table th:nth-child(3) { text-align: right; }
.gs-table tr.is-top td { background: #eef2ff; }
.gs-table-note { color: var(--gs-muted); font-size: 0.86rem; line-height: 1.55; margin-top: 0.8rem; }

/* ---------- Roadmap ---------- */
.gs-roadmap { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.9rem; }
.gs-rm {
  border: 1px solid var(--gs-line); border-left: 4px solid var(--gs-accent);
  border-radius: 10px; padding: 1rem 1.1rem; background: #fff;
}
.gs-rm b { display: block; font-family: 'Google Sans', sans-serif; margin-bottom: 0.35rem; color: var(--gs-ink); }
.gs-rm span { color: var(--gs-muted); font-size: 0.9rem; line-height: 1.5; }

/* ---------- BibTeX ---------- */
.gs-bibtex {
  background: #16162a; color: #d7dcff; border-radius: 12px; padding: 1.4rem 1.6rem;
  font-family: 'Menlo', 'Monaco', monospace; font-size: 0.86rem; line-height: 1.6;
  overflow-x: auto;
}

/* ---------- Footer ---------- */
.gs-footer { background: #14152a; color: #aab0d8; padding: 2.4rem 1.5rem; font-size: 0.9rem; }
.gs-footer a { color: #b9c0ff; }
.gs-footer-sub { margin-top: 0.6rem; color: #767ca6; font-size: 0.82rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .gs-cards { grid-template-columns: repeat(2, 1fr); }
  .gs-title { font-size: 3rem; }
  .gs-subtitle { font-size: 1.2rem; }
  .columns.is-vcentered { display: block; }
}
@media (max-width: 540px) {
  .gs-cards { grid-template-columns: 1fr; }
  .gs-stats { gap: 1.4rem; }
}
