:root {
  --ink: #101625;
  --muted: #657084;
  --paper: #f4f8fb;
  --surface: #ffffff;
  --line: #d7e0ea;
  --blue: #2557ff;
  --cyan: #10b8d7;
  --orange: #ff7a1a;
  --green: #28b879;
  --violet: #6f4cff;
  --shadow: 0 22px 60px rgba(24, 50, 86, 0.12);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  background:
    radial-gradient(circle at 15% 8%, rgba(16, 184, 215, 0.16), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(255, 122, 26, 0.14), transparent 24%),
    linear-gradient(180deg, #eef6fb 0%, var(--paper) 40%, #f8fbfd 100%);
}

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

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px clamp(18px, 4vw, 40px);
  background: rgba(244, 248, 251, 0.82);
  border-bottom: 1px solid rgba(16, 22, 37, 0.08);
  backdrop-filter: blur(14px);
}

.mark {
  color: var(--blue);
  font-weight: 850;
  text-decoration: none;
}

nav {
  display: flex;
  gap: clamp(14px, 3vw, 30px);
  color: var(--muted);
  font-size: 0.94rem;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 40px) 80px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  min-height: 76vh;
  padding: clamp(40px, 7vw, 86px) 0 clamp(34px, 5vw, 70px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(1.9rem, 3.6vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.authors {
  max-width: 780px;
  margin: 22px 0 0;
  font-weight: 750;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
}

.affiliation {
  margin: 6px 0 0;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-width: 112px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.button--primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.signal-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid rgba(16, 22, 37, 0.1);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.62)),
    repeating-linear-gradient(90deg, transparent 0 21px, rgba(37, 87, 255, 0.06) 21px 22px);
  box-shadow: var(--shadow);
}

.signal-panel::after {
  content: "";
  position: absolute;
  inset: auto -20% -30% 20%;
  height: 180px;
  background: linear-gradient(90deg, rgba(37, 87, 255, 0.2), rgba(255, 122, 26, 0.24));
  filter: blur(38px);
}

.signal-panel__top,
.route-list,
.waveform {
  position: relative;
  z-index: 1;
}

.signal-panel__top {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.9rem;
}

.waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 210px;
  margin: 18px 0 26px;
}

.waveform span {
  width: 14px;
  height: var(--h);
  min-height: 30px;
  border-radius: 20px;
  background: linear-gradient(180deg, var(--orange), var(--blue));
}

.route-list {
  display: grid;
  gap: 10px;
}

.route-list div {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(16, 22, 37, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.route-list span {
  color: var(--muted);
}

.abstract-strip {
  margin-bottom: clamp(46px, 7vw, 88px);
  padding: clamp(20px, 3vw, 32px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.abstract-strip p {
  max-width: 980px;
  margin: 0;
  font-size: clamp(1.12rem, 2vw, 1.55rem);
  line-height: 1.42;
  font-weight: 650;
}

.section {
  padding: clamp(46px, 7vw, 92px) 0;
}

.section__head {
  max-width: 820px;
  margin-bottom: clamp(24px, 4vw, 42px);
}

.section__head h2 {
  margin: 0;
  font-size: clamp(1.85rem, 3.2vw, 3.2rem);
  line-height: 1.08;
}

.section__head p:not(.eyebrow) {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.route {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(24, 50, 86, 0.08);
}

.route__tag {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.route h3 {
  margin: 34px 0 8px;
  font-size: 1.7rem;
}

.route p {
  margin: 0;
  color: var(--muted);
}

.route--de { border-top: 5px solid var(--cyan); }
.route--ch { border-top: 5px solid var(--green); }
.route--ph { border-top: 5px solid var(--violet); }

.figure-card {
  margin: 0;
}

.figure-card img {
  width: 100%;
  max-height: 780px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.figure-card figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.98rem;
}

.figure-card strong {
  color: var(--ink);
}

.model-board,
.diagnosis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--line);
}

.model-board article,
.diagnosis div {
  padding: clamp(20px, 3vw, 30px);
  background: rgba(255,255,255,0.78);
}

.model-board span,
.diagnosis span {
  color: var(--blue);
  font-weight: 850;
}

.model-board p,
.diagnosis p {
  margin: 12px 0 0;
  color: var(--muted);
}

.results {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.score-wall {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 14px;
  margin-bottom: clamp(28px, 5vw, 54px);
}

.score-card {
  min-height: 190px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,0.78);
  box-shadow: 0 14px 34px rgba(24, 50, 86, 0.08);
}

.score-card--winner {
  background: var(--ink);
  color: #fff;
}

.score-card__label {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.score-card--winner .score-card__label {
  color: rgba(255,255,255,0.68);
}

.score-card strong {
  display: block;
  margin-top: 30px;
  color: var(--orange);
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 0.9;
}

.score-card p {
  margin: 14px 0 0;
  color: var(--muted);
}

.score-card--winner p {
  color: rgba(255,255,255,0.78);
}

.results-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: start;
}

.takeaways {
  padding: 26px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(37, 87, 255, 0.08), rgba(16, 184, 215, 0.08));
}

.takeaways h3 {
  margin: 0 0 14px;
  font-size: 1.35rem;
}

.takeaways ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.takeaways li + li {
  margin-top: 12px;
}

.citation pre {
  overflow-x: auto;
  margin: 0;
  padding: 24px;
  border-radius: 22px;
  background: #101625;
  color: #f4f8fb;
  font-size: 0.92rem;
  line-height: 1.5;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px clamp(18px, 4vw, 40px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer p {
  margin: 0;
}

.footer div {
  display: flex;
  gap: 16px;
}

@media (max-width: 900px) {
  .hero,
  .pipeline-grid,
  .model-board,
  .diagnosis,
  .score-wall,
  .results-layout {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(1.85rem, 8vw, 3rem);
  }

  .signal-panel {
    border-radius: 20px;
  }

  .footer {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  .actions,
  .footer div {
    width: 100%;
  }

  .button {
    flex: 1;
  }

  .route-list div {
    grid-template-columns: 1fr;
  }
}
