:root {
  --hero-paper: #f8f3eb;
  --hero-paper-soft: #fdf9f3;
  --hero-ink: #2c313a;
  --hero-ink-soft: #5c6370;
  --hero-accent: #6b637d;
  --hero-accent-deep: #373746;
  --hero-line: rgba(107, 99, 125, 0.18);
  --hero-shadow: rgba(56, 50, 71, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.hero {
  width: 100vw;
  margin: -20px calc(-50vw + 50%) 52px;
  overflow: hidden;
  background: #fff;
}

.hero-top {
  position: relative;
  min-height: clamp(540px, 74svh, 760px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--hero-ink);
  isolation: isolate;
  background-image:
    radial-gradient(circle at 50% 34%,
      rgba(255, 255, 255, 0.58) 0%,
      rgba(255, 255, 255, 0.32) 22%,
      rgba(255, 255, 255, 0.12) 42%,
      rgba(255, 255, 255, 0) 68%),
    linear-gradient(180deg,
      rgba(253, 249, 243, 0.14) 0%,
      rgba(253, 249, 243, 0.22) 22%,
      rgba(248, 243, 235, 0.52) 72%,
      rgba(255, 255, 255, 0.94) 100%),
    linear-gradient(90deg,
      rgba(255, 255, 255, 0.48) 0%,
      rgba(255, 255, 255, 0.12) 18%,
      rgba(255, 255, 255, 0.12) 82%,
      rgba(255, 255, 255, 0.48) 100%),
    url("./chordedit_hero.png");
  background-size: cover;
  background-position: center center;
}

.hero-top::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 200px;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.24) 38%,
    rgba(255, 255, 255, 0.72) 74%,
    #fff 100%);
  pointer-events: none;
  z-index: -1;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  justify-content: center;
  padding: 68px 0 92px;
}

.hero-copy {
  position: relative;
  isolation: isolate;
  width: min(920px, 100%);
  padding: 32px 36px 34px;
  text-align: center;
  animation: heroIn 820ms cubic-bezier(.2, .75, .2, 1) both;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: -48px -72px -60px;
  background:
    radial-gradient(ellipse at 50% 28%,
      rgba(255, 255, 255, 0.74) 0%,
      rgba(255, 255, 255, 0.48) 32%,
      rgba(255, 255, 255, 0.18) 58%,
      rgba(255, 255, 255, 0) 80%),
    radial-gradient(ellipse at 50% 72%,
      rgba(248, 243, 235, 0.28) 0%,
      rgba(248, 243, 235, 0.16) 34%,
      rgba(248, 243, 235, 0) 72%);
  filter: blur(20px);
  opacity: 0.92;
  pointer-events: none;
  z-index: -1;
}

.eyebrow {
  display: inline-block;
  margin: 0;
  max-width: min(100%, 540px);
  padding: 10px 16px;
  border: 1px solid rgba(122, 38, 38, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  color: #7a2626;
  font-family: "Google Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-wrap: balance;
}

h1.title {
  margin: 16px 0 0;
  color: var(--hero-ink);
  font-family: "Inter", "PingFang SC", "Helvetica Neue", "Arial", sans-serif;
  font-size: clamp(30px, 4.2vw, 44px);
  line-height: 1.04;
  text-align: center;
  font-weight: 760;
  letter-spacing: -0.03em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.78);
  text-wrap: balance;
  width: 100%;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.title-line {
  display: block;
  white-space: nowrap;
}

.title-mark {
  color: #4c84be;
  font-family: "Castoro", "Times New Roman", serif;
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.05em;
  font-size: 1.08em;
}

.title-punct {
  color: #111;
}

.authors {
  margin-top: 24px;
  color: rgba(44, 49, 58, 0.9);
  font-size: 16px;
  line-height: 1.58;
  text-align: center;
}

.author-row {
  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 10px;
  white-space: nowrap;
}

.affiliations {
  display: block;
}

.author {
  display: inline-block;
  white-space: nowrap;
  color: #43436a;
  font-weight: 650;
  margin: 0 0 4px;
}

.author sup,
.affiliation sup {
  font-size: 0.68em;
  line-height: 0;
  vertical-align: super;
  position: relative;
  top: -0.08em;
}

.affiliations {
  display: block;
  margin-top: 9px;
  color: var(--hero-ink-soft);
  font-size: 15px;
  line-height: 1.55;
}

.affiliations a {
  color: #43436a;
  font-weight: 650;
  text-decoration: none;
}

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

.affiliation {
  display: inline-block;
  white-space: normal;
  margin: 0 4px;
}

.buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  color: var(--hero-ink);
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 14px 36px rgba(79, 70, 105, 0.12);
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(107, 99, 125, 0.28);
  box-shadow: 0 18px 42px rgba(79, 70, 105, 0.18);
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  line-height: 0;
  flex: 0 0 auto;
}

.btn-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.hero-media {
  text-align: center;
  margin-top: -8px;
  padding-top: 0;
}

.section-narrow {
  max-width: 780px;
  margin: 0 auto;
}

section {
  margin-bottom: 50px;
}

h2.subtitle {
  font-family: "Google Sans", sans-serif;
  font-size: 24px;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 20px;
  color: #2c3e50;
}

h3.subsection-title {
  font-family: "Google Sans", sans-serif;
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 12px;
  font-weight: 600;
}

.abstract-text {
  text-align: justify;
  background-color: #f5f5f5;
  padding: 20px;
  border-radius: 10px;
}

.content-block {
  margin-bottom: 20px;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.content-card {
  background-color: #f7f7f7;
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 18px;
}

.content-card p {
  margin: 0;
}

.teaser-image,
.results-image {
  width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 10px;
}

.caption {
  font-size: 14px;
  color: #666;
  text-align: center;
  margin-top: 5px;
  margin-bottom: 20px;
}

.image-frame {
  text-align: center;
}

.diagnostic-image {
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(56, 50, 71, 0.08);
}

.results-layout {
  display: grid;
  gap: 22px;
}

.result-card {
  margin: 0;
  border-radius: 10px;
  background: #f8f8f8;
  border: 1px solid #ececec;
  box-shadow: 0 10px 28px rgba(56, 50, 71, 0.08);
  overflow: hidden;
}

.result-card-wide {
  padding: 10px;
}

.result-visual {
  display: block;
  width: 100%;
}

.result-visual-wide {
  height: auto;
}

.diagnostic-text {
  text-align: justify;
  background-color: #f7f7f7;
  border: 1px solid #ececec;
  border-radius: 10px;
  padding: 18px 20px;
}

pre {
  background-color: #f5f5f5;
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto;
  font-size: 14px;
}

.bibtex-box {
  position: relative;
}

.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 6px 10px;
  font-size: 12px;
  border: none;
  border-radius: 12px;
  background-color: #363636;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s;
}

.copy-btn:hover {
  background-color: #555;
}

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

@media (max-width: 820px) {
  .hero {
    margin-bottom: 42px;
  }

  .hero-top {
    min-height: auto;
    background-image:
      linear-gradient(180deg,
        rgba(253, 249, 243, 0.18) 0%,
        rgba(253, 249, 243, 0.34) 24%,
        rgba(248, 243, 235, 0.78) 74%,
        rgba(248, 243, 235, 0.96) 100%),
      linear-gradient(90deg,
        rgba(255, 255, 255, 0.42) 0%,
        rgba(255, 255, 255, 0.16) 50%,
        rgba(255, 255, 255, 0.42) 100%),
      url("./chordedit_hero.png");
  }

  .hero-inner {
    width: calc(100% - 24px);
    padding: 34px 0 76px;
  }

  .hero-copy {
    padding: 24px 18px 26px;
  }

  .hero-copy::before {
    inset: -34px -26px -40px;
    filter: blur(16px);
    opacity: 0.84;
  }

  .eyebrow {
    max-width: 100%;
    padding: 9px 14px;
    font-size: 11px;
    line-height: 1.35;
    letter-spacing: 0.01em;
  }

  h1.title {
    font-size: 32px;
  }

  .title-line {
    white-space: normal;
  }

  .authors {
    font-size: 16px;
  }

  .author-row {
    flex-wrap: wrap;
    gap: 8px;
    white-space: normal;
  }

  .affiliations {
    font-size: 14px;
  }

  .buttons {
    gap: 10px;
  }

  .btn {
    min-width: 150px;
  }

  .hero-media {
    margin-top: 0;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 560px) {
  .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
