* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(160deg, #e7ebf0 0%, #dbe2e9 48%, #e7eef3 100%);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(145, 158, 178, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(145, 158, 178, 0.10) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(circle at 50% 20%, rgba(0, 0, 0, 0.75), transparent 78%);
  opacity: 0.4;
}

.aurora,
.light-band {
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

.aurora {
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.9;
}

.aurora--gold {
  width: 380px;
  height: 380px;
  left: -120px;
  top: 22px;
  background: rgba(187, 141, 150, 0.38);
}

.aurora--cyan {
  width: 360px;
  height: 360px;
  right: -150px;
  top: 340px;
  background: rgba(63, 128, 146, 0.50);
}

.aurora--blue {
  width: 360px;
  height: 360px;
  right: 18%;
  top: 54%;
  background: rgba(92, 147, 170, 0.24);
}

.light-band {
  inset: 0;
  filter: blur(20px);
  opacity: 0.84;
}

.light-band--one {
  background: linear-gradient(122deg,
      transparent 0%,
      transparent 12%,
      rgba(255, 255, 255, 0.14) 20%,
      rgba(187, 141, 150, 0.14) 28%,
      rgba(162, 196, 208, 0.22) 38%,
      rgba(255, 255, 255, 0.04) 48%,
      transparent 54%,
      transparent 100%);
}

.light-band--two {
  background: linear-gradient(122deg,
      transparent 0%,
      transparent 58%,
      rgba(63, 128, 146, 0.28) 68%,
      rgba(255, 255, 255, 0.05) 75%,
      transparent 84%,
      transparent 100%);
}

main {
  width: min(1180px, 92vw);
  margin: 0 auto 40px;
  position: relative;
  z-index: 1;
}

.hero {
  width: min(1180px, 92vw);
  margin: 28px auto 24px;
  padding: 30px 30px 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(150deg, rgba(232, 239, 246, 0.70), rgba(221, 229, 238, 0.44));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  position: relative;
  overflow: hidden;
  z-index: 1;
  isolation: isolate;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 0 0 1px rgba(255, 255, 255, 0.10),
    inset 0 -1px 0 rgba(37, 55, 73, 0.06),
    var(--shadow);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 34%;
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.24) 0%,
      rgba(255, 255, 255, 0.09) 30%,
      rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  z-index: -1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background:
    linear-gradient(132deg, rgba(255, 255, 255, 0.24) 8%, rgba(255, 255, 255, 0.08) 23%, rgba(255, 255, 255, 0) 38%),
    linear-gradient(180deg, rgba(31, 39, 49, 0) 58%, rgba(31, 39, 49, 0.06) 100%);
  pointer-events: none;
  z-index: -1;
}

.hero--paper {
  text-align: center;
}

.brand-line {
  margin: 4px 0 8px;
  font-size: clamp(2.2rem, 5.2vw, 4rem);
  line-height: 1.02;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Segoe UI";
  letter-spacing: 0.02em;
}

.brand-line__logo {
  width: min(66px, 16vw);
  filter: drop-shadow(0 10px 22px rgba(92, 101, 116, 0.16));
}

.paper-title {
  margin: 0 0 10px;
  font-size: clamp(1.2rem, 2.2vw, 1.9rem);
  line-height: 1.2;
  font-weight: 700;
  background: linear-gradient(118deg, #2b2930 6%, #bb8d96 28%, #2b3138 46%, #4c8fa4 72%, #347086 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  margin: 0 0 10px;
  color: var(--muted);
}

.subtitle--center {
  max-width: 860px;
  margin: 0 auto 10px;
}

.authors,
.meta-row {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.author-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(239, 244, 249, 0.50);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 10px 26px rgba(92, 101, 116, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.author-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(92, 101, 116, 0.10);
  color: var(--text);
}

.meta-row {
  margin-top: 10px;
  color: var(--brand-strong);
  font-size: 0.95rem;
  gap: 8px 14px;
}

.meta-row sup,
.author-chip sup {
  line-height: 0;
}

.hero-links {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.hero-links__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  min-height: 42px;
  padding: 9px 13px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(247, 250, 253, 0.76), rgba(239, 244, 249, 0.52));
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.93rem;
  letter-spacing: 0.01em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    inset 0 -1px 0 rgba(37, 55, 73, 0.03),
    0 8px 20px rgba(88, 97, 112, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-links__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 1.05em;
  width: auto;
  vertical-align: -0.12em;
}

.hero-links__brand--dark {
  filter: brightness(0) saturate(100%) opacity(0.84);
}

.hero-links__link:hover {
  transform: translateY(-2px);
  border-color: rgba(92, 127, 163, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -1px 0 rgba(37, 55, 73, 0.04),
    0 10px 22px rgba(93, 98, 206, 0.16);
}

.hero-links__link[aria-disabled="true"] {
  cursor: default;
}

.side-nav {
  position: fixed;
  right: max(24px, calc((100vw - min(1180px, 92vw)) / 2 - 64px));
  bottom: 82px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.side-nav__button {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(126, 129, 139, 0.18);
  background: linear-gradient(180deg, rgba(236, 242, 248, 0.78) 0%, rgba(229, 236, 243, 0.54) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.46),
    inset 0 -1px 0 rgba(37, 55, 73, 0.05),
    0 12px 28px rgba(88, 97, 112, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  display: grid;
  place-items: center;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 800;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.side-nav__button--top {
  color: var(--accent-strong);
}

.side-nav__button--menu {
  color: var(--accent-strong);
}

.side-nav__button:hover {
  transform: translateY(-2px);
  border-color: rgba(92, 127, 163, 0.36);
  background: linear-gradient(180deg, rgba(243, 247, 251, 0.92) 0%, rgba(232, 239, 246, 0.72) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.54),
    inset 0 -1px 0 rgba(37, 55, 73, 0.05),
    0 16px 30px rgba(88, 97, 112, 0.16);
}

.side-nav__menu {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.side-nav__button--menu {
  cursor: default;
  padding: 0;
}

.side-nav__icon {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.side-nav__items {
  position: absolute;
  left: 0;
  bottom: calc(100% - 2px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  padding-bottom: 12px;
}

.side-nav__menu:hover .side-nav__items {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.side-nav__link {
  min-width: 108px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(126, 129, 139, 0.18);
  background: linear-gradient(180deg, rgba(236, 242, 248, 0.78) 0%, rgba(229, 236, 243, 0.54) 100%);
  box-shadow: 0 10px 24px rgba(88, 97, 112, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.30);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.side-nav__link:hover {
  color: var(--text);
  border-color: rgba(126, 129, 139, 0.22);
  background: linear-gradient(180deg, rgba(242, 246, 250, 0.9) 0%, rgba(232, 239, 246, 0.66) 100%);
  transform: translateX(-2px);
}

.side-nav__link-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.panel {
  background: linear-gradient(155deg, var(--panel-strong), var(--panel));
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(37, 55, 73, 0.05),
    var(--shadow);
  padding: 22px;
  margin-bottom: 20px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 26%;
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.22) 0%,
      rgba(255, 255, 255, 0.08) 36%,
      rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  z-index: -1;
}

.panel::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background:
    linear-gradient(136deg, rgba(255, 255, 255, 0.19) 10%, rgba(255, 255, 255, 0.06) 24%, rgba(255, 255, 255, 0) 36%),
    linear-gradient(180deg, rgba(31, 39, 49, 0) 62%, rgba(31, 39, 49, 0.05) 100%);
  pointer-events: none;
  z-index: -1;
}

.panel>* {
  position: relative;
  z-index: 1;
}

header {
  position: relative;
  z-index: 1;
}

.section-head h2 {
  margin: 0;
  font-size: 1.45rem;
  color: #2d3442;
  text-align: center;
}

.section-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.citation-panel {
  margin-bottom: 40px;
}

.citation-block {
  margin: 18px 0 0;
  width: 100%;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(126, 129, 139, 0.18);
  background: linear-gradient(155deg, rgba(236, 241, 246, 0.82), rgba(228, 235, 243, 0.62));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    inset 0 -1px 0 rgba(37, 55, 73, 0.05),
    0 12px 30px rgba(74, 86, 102, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow-x: auto;
  color: #33404f;
  position: relative;
  isolation: isolate;
}

.citation-block::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 28%;
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.22) 0%,
      rgba(255, 255, 255, 0.08) 36%,
      rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  z-index: -1;
}

.citation-block::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background:
    linear-gradient(136deg, rgba(255, 255, 255, 0.18) 10%, rgba(255, 255, 255, 0.06) 24%, rgba(255, 255, 255, 0) 36%),
    linear-gradient(180deg, rgba(31, 39, 49, 0) 62%, rgba(31, 39, 49, 0.05) 100%);
  pointer-events: none;
  z-index: -1;
}

.citation-block code {
  display: block;
  font-family: "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
  font-size: 0.92rem;
  line-height: 1.7;
  white-space: pre;
}

@media (max-width: 900px) {
  .brand-line {
    font-size: clamp(1.85rem, 9.2vw, 3rem);
  }

  .paper-title {
    font-size: clamp(1.05rem, 4.4vw, 1.45rem);
  }

  .hero {
    padding: 24px 18px;
    border-radius: 22px;
  }

  .panel {
    border-radius: 20px;
    padding: 18px;
  }

  .side-nav {
    right: 12px;
    bottom: 12px;
  }

  .side-nav__link {
    min-width: 98px;
  }
}