:root {
  --bg: #0b1020;
  --bg-soft: #111b31;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --surface-dark: #0e1527;
  --border: rgba(16, 24, 38, 0.12);
  --text: #142033;
  --text-soft: #4f5f78;
  --text-muted: #75839a;
  --accent: #0b84f3;
  --accent-deep: #0a5cb2;
  --accent-warm: #ff8f3d;
  --accent-mint: #4dd3b8;
  --shadow-lg: 0 24px 60px rgba(8, 15, 32, 0.18);
  --shadow-md: 0 16px 40px rgba(8, 15, 32, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --maxw: 1120px;
  --transition: 180ms ease;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(77, 211, 184, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(11, 132, 243, 0.18), transparent 24%),
    linear-gradient(180deg, #f5f8fc 0%, #edf3fa 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
}

.hero-shell {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(11, 16, 32, 0.98), rgba(17, 27, 49, 0.92)),
    linear-gradient(120deg, rgba(11, 132, 243, 0.08), rgba(255, 143, 61, 0.08));
  color: #f7fbff;
}

.hero-shell::before,
.hero-shell::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  pointer-events: none;
}

.hero-shell::before {
  width: 340px;
  height: 340px;
  top: -120px;
  right: -40px;
  background: rgba(77, 211, 184, 0.12);
}

.hero-shell::after {
  width: 260px;
  height: 260px;
  bottom: -100px;
  left: -20px;
  background: rgba(255, 143, 61, 0.1);
}

.hero-body,
.section {
  animation: fadeInUp 0.5s ease-out;
}

.hero-body {
  padding: 5.5rem 1.5rem 4rem;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d8e9ff;
  background: rgba(255, 255, 255, 0.06);
}

.publication-title,
.section-title,
.feature-copy h3,
.result-card h3,
.insight-card h3,
.analysis-card h3 {
  font-family: "Space Grotesk", sans-serif;
}

.publication-title {
  margin: 1rem 0 1.25rem !important;
  font-size: clamp(2.2rem, 4.3vw, 3.7rem) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.04em;
  color: #ffffff !important;
}

.publication-authors {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  line-height: 1.7;
}

.publication-authors a {
  color: #9dd1ff;
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition);
}

.publication-authors a:hover {
  color: #ffffff;
}

.author-block {
  display: inline-block;
  margin-right: 0.35rem;
}

.publication-affiliations {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  color: #c4d5ea;
  font-size: 1.06rem;
}

.publication-note {
  margin: 0.6rem 0 0;
  color: #b6c5d8;
  font-size: 0.95rem;
}

.publication-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 2rem 0 2.5rem;
}

.button {
  border-radius: 999px !important;
  font-weight: 700 !important;
  padding: 0.95rem 1.35rem !important;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition) !important;
}

.button.is-dark {
  background: linear-gradient(135deg, #ffffff, #dfeeff) !important;
  color: #0d1730 !important;
  border: none !important;
  box-shadow: var(--shadow-md);
}

.button.is-dark:hover {
  transform: translateY(-2px);
}

.button.is-outlined-light {
  background: transparent !important;
  color: #eef6ff !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: none !important;
}

.button.is-outlined-light:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}

.hero-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.stat-card {
  padding: 1.35rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.stat-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
}

.stat-label {
  margin-top: 0.55rem;
  color: #c3d6ea;
  font-size: 0.98rem;
  line-height: 1.45;
}

.section {
  padding: 4rem 1.5rem;
}

.section-soft {
  background: rgba(255, 255, 255, 0.52);
  border-top: 1px solid rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid rgba(16, 24, 38, 0.04);
}

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 2rem !important;
  font-size: 2rem !important;
  color: var(--text) !important;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.55rem;
  width: 72px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
}

.no-underline::after {
  display: none;
}

.teaser-section {
  background: #ffffff;
  padding-top: 2.5rem;
  padding-bottom: 3.25rem;
}

.figure-shell {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(16, 24, 38, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.96));
  box-shadow: var(--shadow-lg);
}

.standout-shell {
  padding: 1rem;
}

.dark-shell {
  padding: 1rem;
  background: linear-gradient(180deg, #0f172a, #111827);
  border-color: rgba(255, 255, 255, 0.06);
}

.figure-shell img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-lg) - 8px);
}

.figure-focus-right {
  object-position: right center;
}

.figure-caption {
  max-width: 920px;
  margin: 1rem auto 0;
  text-align: center;
  color: var(--text-soft);
  font-size: 1.02rem;
  line-height: 1.7;
}

.section-copy {
  max-width: 920px;
  font-size: 1.14rem;
  line-height: 1.8;
  color: var(--text-soft);
}

.grid-two,
.results-grid {
  display: grid;
  gap: 1.2rem;
}

.grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.insight-card,
.analysis-card,
.result-card {
  padding: 1.4rem 1.45rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
}

.insight-card h3,
.analysis-card h3,
.result-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.2rem;
  color: var(--text);
}

.insight-card p,
.analysis-card p,
.result-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.feature-layout {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
}

.reverse-layout {
  grid-template-columns: 0.92fr 1.08fr;
}

.feature-copy {
  padding: 0.4rem 0;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.feature-copy h3 {
  margin: 0 0 0.9rem;
  font-size: 1.9rem;
  line-height: 1.1;
}

.feature-copy p {
  margin: 0 0 0.9rem;
  color: var(--text-soft);
  font-size: 1.08rem;
  line-height: 1.75;
}

.feature-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-soft);
}

.feature-list li {
  margin-bottom: 0.6rem;
  line-height: 1.7;
}

.results-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1.5rem;
}

.pdf-shell {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: #ffffff;
}

.pdf-shell iframe {
  display: block;
  width: 100%;
  height: 760px;
  border: 0;
}

.bibtex-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

pre {
  margin: 0;
  padding: 1.4rem !important;
  overflow-x: auto;
  border-radius: var(--radius-md) !important;
  border: 1px solid var(--border) !important;
  background: #0d1424 !important;
  box-shadow: var(--shadow-md);
}

code {
  background: transparent !important;
  color: #dce8fb !important;
  font-size: 0.95rem !important;
  line-height: 1.65;
}

.copy-bibtex-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.copy-bibtex-btn:hover {
  transform: translateY(-2px);
}

.copy-bibtex-btn.copied {
  background: linear-gradient(135deg, #18b87e, #119b6a);
}

.footer {
  background: #e8eef6;
  border-top: 1px solid rgba(16, 24, 38, 0.08);
  padding: 2.5rem 1.5rem;
}

.footer .content {
  color: var(--text-soft);
  font-size: 0.98rem;
}

.footer a {
  color: var(--accent-deep);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.scroll-to-top {
  position: fixed;
  right: 1.3rem;
  bottom: 1.3rem;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #ffffff;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 20;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: translateY(-2px);
}

.button:focus,
.copy-bibtex-btn:focus,
a:focus,
.scroll-to-top:focus {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media screen and (max-width: 1024px) {
  .hero-summary,
  .results-grid,
  .feature-layout,
  .reverse-layout,
  .grid-two {
    grid-template-columns: 1fr;
  }

  .hero-body,
  .section {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  .pdf-shell iframe {
    height: 640px;
  }
}

@media screen and (max-width: 768px) {
  .hero-body {
    padding-top: 4rem;
    padding-bottom: 3rem;
  }

  .publication-title {
    font-size: 2.3rem !important;
  }

  .publication-authors,
  .publication-affiliations,
  .publication-note,
  .section-copy,
  .feature-copy p,
  .feature-list,
  .insight-card p,
  .analysis-card p,
  .result-card p {
    font-size: 1rem;
  }

  .publication-links {
    gap: 0.65rem;
  }

  .link-block,
  .link-block a,
  .button {
    width: 100%;
  }

  .button {
    justify-content: center;
  }

  .section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .section-title {
    font-size: 1.7rem !important;
  }

  .feature-copy h3 {
    font-size: 1.55rem;
  }

  .figure-shell,
  .standout-shell,
  .dark-shell {
    padding: 0.7rem;
  }

  .bibtex-header {
    flex-direction: column;
    align-items: stretch;
  }

  .pdf-shell iframe {
    height: 520px;
  }
}

@media print {
  .scroll-to-top {
    display: none;
  }

  .hero-body,
  .section {
    animation: none;
  }
}
