:root {
  --bg: #eef5ff;
  --bg-strong: #dbe9ff;
  --surface: rgba(255, 255, 255, 0.8);
  --surface-strong: #f8fbff;
  --text: #14233a;
  --muted: #4f6481;
  --line: rgba(33, 78, 135, 0.16);
  --accent: #3b82f6;
  --accent-deep: #1d4ed8;
  --accent-soft: rgba(59, 130, 246, 0.16);
  --shadow: 0 24px 80px rgba(33, 78, 135, 0.14);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --content-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(88, 157, 255, 0.24), transparent 34%),
    radial-gradient(circle at 86% 12%, rgba(125, 211, 252, 0.22), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #eef5ff 52%, #e4f0ff 100%);
  line-height: 1.6;
}

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

.page-shell {
  width: min(calc(100% - 32px), var(--content-width));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.hero,
.section,
.footer-card {
  position: relative;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: stretch;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(230, 242, 255, 0.82)),
    var(--surface-strong);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.24), transparent 68%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

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

.hero-brand-logo {
  width: min(100%, 640px);
  margin: 0 auto 14px;
  height: auto;
}

.hero h1,
.section h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.hero h1 {
  max-width: none;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero-title-top,
.hero-title-bottom {
  display: block;
}

.hero-title-top {
  font-size: clamp(1.7rem, 3.4vw, 3.1rem);
  color: var(--text);
  white-space: nowrap;
}

.hero-title-bottom {
  font-size: clamp(0.96rem, 1.8vw, 1.6rem);
  color: var(--accent-deep);
  max-width: none;
  white-space: nowrap;
}

.authors {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 24px auto 12px;
  justify-content: center;
  max-width: 940px;
  font-size: 1.12rem;
  line-height: 1.8;
  color: var(--text);
}

.authors span {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.authors sup,
.affiliation sup,
.author-note sup {
  font-size: 0.72em;
  line-height: 0;
}

.affiliation-block {
  display: grid;
  gap: 4px;
  margin-top: 2px;
}

.affiliation,
.author-note,
.link-note {
  margin: 0;
  color: var(--muted);
  text-align: center;
}

.affiliation {
  font-size: 0.98rem;
}

.author-note {
  margin-top: 2px;
  font-size: 0.92rem;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 14px;
  justify-content: center;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 132px;
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid rgba(20, 35, 58, 0.14);
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.cta-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}

.cta-icon-img {
  object-fit: contain;
}

.cta:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.97);
  border-color: rgba(20, 35, 58, 0.24);
}

.cta.primary {
  background: linear-gradient(135deg, var(--accent), #60a5fa);
  color: white;
  border-color: transparent;
}

.hero-panel {
  display: flex;
  align-items: stretch;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}

.hero-stats .stat-card {
  min-height: 0;
}

.stat-card,
.info-card,
.sample-card,
.feature-figure,
.footer-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(14px);
}

.stat-card {
  min-height: 180px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stat-card strong {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.2;
}

.stat-card span {
  color: var(--muted);
}

main {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.section,
.footer-card {
  padding: 30px;
}

.section-heading {
  display: grid;
  gap: 6px;
  margin-bottom: 22px;
}

.section h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.6rem);
  max-width: none;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.lead {
  font-size: 1.15rem;
}

.intro-copy {
  display: grid;
  gap: 12px;
}

.intro-figure {
  align-self: start;
}

.highlight-grid,
.sample-grid,
.figure-row {
  display: grid;
  gap: 18px;
}

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

.info-card {
  padding: 22px;
}

.info-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.info-card p,
.feature-figure figcaption,
.sample-card figcaption,
.footer-card p {
  margin: 0;
  color: var(--muted);
}

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

.feature-figure,
.sample-card {
  overflow: hidden;
}

.feature-figure img,
.sample-card img {
  width: 100%;
  height: auto;
}

.feature-figure figcaption,
.sample-card figcaption {
  padding: 16px 18px 18px;
}

.feature-figure.wide img {
  max-height: 640px;
  object-fit: contain;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(225, 238, 255, 0.72));
}

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

.sample-card img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.footer-card {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(219, 236, 255, 0.82)),
    var(--surface);
}

code {
  font-family: "SFMono-Regular", "Menlo", "Consolas", monospace;
  font-size: 0.95em;
}

@media (max-width: 980px) {
  .hero,
  .two-column,
  .highlight-grid,
  .sample-grid,
  .figure-row,
  .footer-card {
    grid-template-columns: 1fr;
  }

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

  .hero h1 {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--content-width));
    padding-top: 10px;
  }

  .hero,
  .section,
  .footer-card {
    padding: 22px;
    border-radius: 24px;
  }

  .hero-title-top,
  .hero-title-bottom {
    white-space: normal;
  }

  .hero-title-top {
    font-size: clamp(1.6rem, 7vw, 2.3rem);
  }

  .hero-title-bottom {
    font-size: clamp(0.92rem, 4.2vw, 1.2rem);
  }

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

  .cta {
    width: 100%;
  }
}
