@import url("source_serif_4.css");
@import url("source_sans_3.css");
@import url("academicons.min.css");
@import url("../fontawesome/css/fontawesome.css");
@import url("../fontawesome/css/brands.css");
@import url("../fontawesome/css/light.css");

:root {
  --brand-green: #65a487;
  --brand-green-deep: #3f6f58;
  --brand-purple: #68349a;
  --brand-purple-soft: rgba(104, 52, 154, 0.10);
  --bg: #f3f6f4;
  --bg-elevated: #ffffff;
  --text: #1c2a23;
  --text-soft: #5a6b62;
  --line: #d7e2db;
  --easy: #0f766e;
  --hard: #b45309;
  --shadow: 0 18px 40px rgba(28, 42, 35, 0.06);
  --radius: 18px;
  --max: 1080px;
  --display: "Source Serif 4", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.65;
  background:
    radial-gradient(900px 420px at 8% -8%, rgba(101, 164, 135, 0.18), transparent 60%),
    radial-gradient(800px 380px at 92% 0%, rgba(104, 52, 154, 0.10), transparent 55%),
    linear-gradient(180deg, #f7faf8 0%, var(--bg) 38%, #eef3f0 100%);
  min-height: 100%;
}

img, video { max-width: 100%; display: block; }

a {
  color: var(--brand-purple);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}
a:hover { color: var(--brand-green-deep); }

.page {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 72px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(48px, 8vw, 88px) 0 28px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background:
    radial-gradient(closest-side, rgba(101, 164, 135, 0.16), transparent 70%),
    radial-gradient(closest-side, rgba(104, 52, 154, 0.10), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  animation: drift 12s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(-2%, 0, 0) scale(1); }
  to { transform: translate3d(2%, 4%, 0) scale(1.04); }
}

.brand {
  position: relative;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(52px, 9vw, 92px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.brand .g { color: var(--brand-green); }
.brand .p { color: var(--brand-purple); }
.brand .ver {
  display: inline-block;
  margin-left: 0.12em;
  font-size: 0.42em;
  letter-spacing: -0.02em;
  vertical-align: 0.28em;
  color: var(--text);
}

.hero-tagline {
  position: relative;
  margin: 18px auto 0;
  max-width: 720px;
  font-family: var(--display);
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
}

.hero-support {
  position: relative;
  margin: 12px auto 0;
  max-width: 680px;
  font-size: 16px;
  color: var(--text-soft);
}

.badge-row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 18px;
}

.badge {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-green-deep);
  background: rgba(101, 164, 135, 0.14);
  border: 1px solid rgba(101, 164, 135, 0.28);
  padding: 6px 10px;
  border-radius: 8px;
}

.authors {
  position: relative;
  margin: 28px auto 0;
  max-width: 920px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 10px;
  font-family: var(--display);
  font-size: clamp(13px, 1.35vw, 15px);
  color: var(--text);
}

.authors a { color: inherit; border-bottom: 1px solid transparent; }
.authors a:hover { border-bottom-color: var(--brand-purple); color: var(--brand-purple); }
.authors sup { color: var(--text-soft); font-size: 0.75em; }
.authors .break { flex-basis: 100%; height: 0; }

.affiliations {
  position: relative;
  margin: 16px auto 0;
  max-width: 880px;
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.7;
}

.institute-logos {
  position: relative;
  width: min(640px, 100%);
  margin: 22px auto 0;
  opacity: 0.95;
}

.cta-row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 650;
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: var(--brand-green);
  color: var(--brand-green-deep);
  background: #fff;
}

.btn.primary {
  background: var(--brand-green);
  border-color: var(--brand-green);
  color: #fff;
}

.btn.primary:hover {
  background: var(--brand-green-deep);
  border-color: var(--brand-green-deep);
  color: #fff;
}

.btn.secondary {
  background: var(--brand-purple);
  border-color: var(--brand-purple);
  color: #fff;
}

.btn.secondary:hover {
  background: #552982;
  border-color: #552982;
  color: #fff;
}

.hero-visual {
  position: relative;
  margin-top: 34px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  border-top: 1px solid rgba(215, 226, 219, 0.8);
  border-bottom: 1px solid rgba(215, 226, 219, 0.8);
  background: #101816;
}

.hero-visual video,
.hero-visual img {
  width: 100%;
  height: min(62vh, 720px);
  object-fit: cover;
  opacity: 0;
  animation: fadeRise 1.1s ease 0.15s forwards;
}

@keyframes fadeRise {
  from { opacity: 0; transform: translateY(12px) scale(1.01); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Content ---------- */
.section {
  margin-top: 56px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.section.in {
  opacity: 1;
  transform: none;
}

.section-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-green);
}

.section h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 36px);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section .lead,
.section p {
  margin: 14px 0 0;
  font-size: 16px;
  color: var(--text-soft);
}

.section p strong,
.section .lead strong { color: var(--text); }

.section-media {
  margin-top: 22px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}

.section-media img,
.section-media video {
  width: 100%;
  height: auto;
}

.section-media.narrow {
  width: min(560px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.feature-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.feature-link {
  display: block;
  padding: 18px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.feature-link:hover {
  transform: translateY(-2px);
  border-color: var(--brand-green);
  background: #fff;
  color: inherit;
}

.feature-link h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 20px;
  color: var(--text);
}

.feature-link p {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--text-soft);
}

.prev-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.prev-list li {
  padding: 14px 16px;
  border-left: 3px solid var(--brand-green);
  background: rgba(255, 255, 255, 0.65);
  border-radius: 0 12px 12px 0;
}

.prev-list b { color: var(--text); }
.prev-list a { font-weight: 600; }

.abstract-box {
  margin-top: 18px;
  padding: 22px 22px 4px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.abstract-box p {
  margin-top: 0;
  margin-bottom: 18px;
  color: var(--text);
  font-size: 15.5px;
  hyphens: auto;
}

/* ---------- BibTeX: keep markup, lightly style container ---------- */
.citation-block {
  margin-top: 18px;
}

.citation-block > h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 36px);
  letter-spacing: -0.02em;
}

.citation-block > p {
  margin: 14px 0 0;
  font-size: 15px;
  color: var(--text-soft);
}

.citation-block > p b,
.citation-block > p strong { color: var(--text); }

.citation-block .bibtex {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px !important;
  color: #2f2f2f;
  background: #f2f2f2;
  border-radius: 10px;
  margin-top: 0.6em;
  margin-bottom: 1.6em;
  padding: 12px 14px;
  line-height: 1.55 !important;
  overflow-x: auto;
}

.site-footer {
  margin-top: 56px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 820px) {
  .feature-links { grid-template-columns: 1fr; }
  .hero-visual video,
  .hero-visual img { height: min(48vh, 420px); }
  .affiliations { white-space: normal; }
}

@media (max-width: 560px) {
  .page { width: min(100% - 24px, var(--max)); }
  .cta-row .btn { width: 100%; }
  .badge-row { gap: 6px; }
}
