:root {
  --text: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f8fafc;
  --panel: #ffffff;
  --link: #2563eb;
  --button: #1e293b;
  --button-hover: #334155;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: #ffffff;
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 18px;
  line-height: 1.7;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.work-button {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  font-size: 0.94rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.work-button:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.hero {
  padding: 74px 16px 40px;
  text-align: center;
}

.section {
  padding: 48px 24px;
}

.is-light {
  background: var(--soft);
}

.container {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.hero-container {
  width: min(1400px, 100%);
}

.narrow {
  width: min(900px, 100%);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(2.05rem, 3.55vw, 3.2rem);
  font-weight: 800;
}

.title-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: 1360px;
  margin: 0 auto 22px;
  text-align: center;
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  text-align: center;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  font-weight: 800;
}

p {
  margin: 0 0 18px;
}

.authors {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 4px 14px;
  max-width: 960px;
  margin: 0 auto 16px;
  color: var(--link);
  font-size: 1.02rem;
  line-height: 1.45;
}

.authors span {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  padding-right: 0.34em;
  line-height: 1.45;
}

.authors sup {
  position: absolute;
  top: -0.42em;
  right: -0.05em;
  font-size: 0.68em;
  line-height: 1;
}

.affiliations {
  max-width: 880px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.affiliations p {
  margin-bottom: 6px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 118px;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--button);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.15);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
}

.button:hover {
  background: var(--button-hover);
  text-decoration: none;
  transform: translateY(-1px);
}

.button-icon,
.button-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.button-icon {
  min-width: 34px;
  min-height: 24px;
  padding: 0 7px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0;
}

.button-logo {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  object-fit: contain;
}

.teaser-section {
  padding: 8px 24px 52px;
}

.lead {
  max-width: 900px;
  margin: 22px auto 0;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.7;
  text-align: center;
  font-weight: 600;
}

.figure {
  margin: 0;
  text-align: center;
}

.figure img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

.hero-figure img {
  border: none;
  border-radius: 10px;
}

figcaption {
  max-width: 880px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat {
  min-height: 130px;
  padding: 24px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
  text-align: center;
}

.stat strong {
  display: block;
  color: var(--link);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.1;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.35;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 34px;
}

.method-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.method-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.subsection-block {
  max-width: 900px;
  margin: 42px auto 26px;
}

.subsection-block h3 {
  margin-bottom: 16px;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  text-align: center;
}

.subsection-block p {
  color: var(--text);
  line-height: 1.72;
}

pre {
  overflow-x: auto;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
  color: #263445;
  font-size: 0.88rem;
  line-height: 1.5;
  text-align: left;
}

@media (max-width: 820px) {
  body {
    font-size: 16px;
  }

  .work-button {
    position: static;
    display: flex;
    width: fit-content;
    margin: 14px auto 0;
  }

  .hero {
    padding: 42px 16px 30px;
  }

  .section {
    padding: 38px 16px;
  }

  .teaser-section {
    padding: 4px 16px 38px;
  }

  .stats-grid,
  .method-grid,
  .results-grid {
    grid-template-columns: 1fr;
  }

  .button {
    min-width: 108px;
  }

  .lead {
    font-size: 1rem;
  }
}
