@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap");

:root {
  --ink: #142034;
  --ink-soft: #4c5b6d;
  --blue: #1784d5;
  --blue-deep: #0e67ac;
  --aqua: #21b7ad;
  --paper: #ffffff;
  --sky: #eef7ff;
  --sky-2: #f7fbff;
  --line: #d8e6f1;
  --coral: #f08e73;
  --green: #79b978;
  --max: 1320px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

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

a:hover {
  color: var(--blue);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 8px 13px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-nav {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  min-height: 72px;
  padding: 0 max(28px, calc((100vw - var(--max)) / 2));
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(216, 230, 241, 0.9);
  backdrop-filter: blur(18px);
}

.site-nav nav {
  display: flex;
  gap: 28px;
}

.site-nav nav a,
.home-link {
  color: #344254;
  font-size: 14px;
  font-weight: 600;
}

.site-nav nav a:hover,
.home-link:hover {
  color: var(--blue-deep);
}

.home-link {
  justify-self: end;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  width: max-content;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.wordmark strong {
  margin: 0 1px;
  color: var(--blue);
  font-size: 0.82em;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 76px max(28px, calc((100vw - var(--max)) / 2)) 34px;
  background:
    radial-gradient(circle at 92% 5%, rgba(33, 183, 173, 0.16), transparent 25%),
    linear-gradient(135deg, #f8fbff 0%, #ecf7ff 56%, #f7fcfc 100%);
  border-bottom: 1px solid var(--line);
}

.hero::before {
  position: absolute;
  top: 35px;
  right: 3%;
  width: 390px;
  height: 390px;
  content: "";
  border: 1px solid rgba(23, 132, 213, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 50px rgba(23, 132, 213, 0.025),
    0 0 0 110px rgba(33, 183, 173, 0.018);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  gap: clamp(38px, 6vw, 84px);
  align-items: center;
}

.eyebrow,
.kicker {
  margin: 0 0 16px;
  color: var(--blue-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Manrope", sans-serif;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

h1 .brand {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 0.78em;
  font-weight: 800;
}

h1 .brand span {
  color: var(--aqua);
}

.dek {
  max-width: 660px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 1.65vw, 22px);
  line-height: 1.5;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid #c9dbe9;
  border-radius: 999px;
  box-shadow: 0 5px 16px rgba(34, 86, 125, 0.05);
  font-size: 15px;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 8px 24px rgba(34, 86, 125, 0.1);
  transform: translateY(-2px);
}

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

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

.hero-visual {
  position: relative;
  padding: 14px 14px 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #d5e6f1;
  border-radius: 18px;
  box-shadow: 0 22px 64px rgba(38, 91, 132, 0.13);
  transform: rotate(0.4deg);
}

.hero-visual img {
  display: block;
  width: 100%;
  border-radius: 10px;
}

.hero-visual p {
  margin: 10px 8px 0;
  color: #687786;
  font-size: 12px;
  text-align: center;
}

.contribution-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 70px;
  overflow: hidden;
  background: rgba(169, 198, 220, 0.72);
  border: 1px solid rgba(169, 198, 220, 0.72);
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(38, 91, 132, 0.08);
}

.contribution-grid article {
  display: flex;
  gap: 14px;
  min-height: 148px;
  padding: 26px 22px;
  background: rgba(255, 255, 255, 0.92);
}

.card-index {
  color: var(--aqua);
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.contribution-grid h2 {
  margin: 0 0 9px;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.contribution-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
}

.paper-meta {
  max-width: 1120px;
  margin: 0 auto;
  padding: 58px 28px 65px;
  text-align: center;
}

.authors {
  margin: 0 auto 18px;
  color: #27364a;
  font-size: 18px;
  line-height: 1.8;
}

.authors a {
  color: var(--blue-deep);
  font-weight: 700;
}

sup {
  color: var(--blue-deep);
  font-size: 0.68em;
}

.affiliations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px 22px;
  color: var(--ink-soft);
  font-size: 14px;
}

.author-notes {
  margin: 12px 0 0;
  color: #7a8795;
  font-size: 13px;
}

.section {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: clamp(30px, 5vw, 86px);
  padding: 98px max(28px, calc((100vw - var(--max)) / 2));
  border-top: 1px solid var(--line);
}

.section-tint {
  background: var(--sky-2);
}

.section-label {
  position: sticky;
  top: 108px;
  align-self: start;
  min-height: 80px;
  padding-left: 22px;
  border-left: 2px solid var(--blue);
}

.section-label span {
  color: var(--aqua);
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.section-label p {
  margin: 6px 0 0;
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.section-content {
  min-width: 0;
}

.section-content > h2 {
  max-width: 920px;
  margin: 0 0 30px;
  font-size: clamp(34px, 4.1vw, 58px);
  font-weight: 700;
  letter-spacing: -0.048em;
  line-height: 1.08;
}

.lead {
  max-width: 920px;
  margin: 0 0 34px;
  color: var(--ink-soft);
  font-size: 20px;
}

.two-column-copy {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 1000px;
}

.two-column-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 18px;
}

.takeaway {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  max-width: 1000px;
  margin-top: 46px;
  padding: 24px 26px;
  background: linear-gradient(100deg, #ebf7ff, #f2fbfa);
  border: 1px solid #cae6f4;
  border-radius: 12px;
}

.takeaway span {
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.takeaway p {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.5;
}

.figure-link {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 38px auto 0;
}

.figure {
  display: block;
  width: auto;
  max-width: min(100%, 980px);
  max-height: 620px;
  object-fit: contain;
}

.figure-wide {
  width: 100%;
  max-width: 1080px;
}

.caption {
  max-width: 960px;
  margin: 16px auto 0;
  color: #6d7a88;
  font-size: 13px;
  text-align: center;
}

.environment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 46px;
}

.environment {
  min-height: 220px;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.environment > span,
.finding-list > article > span,
.diagnostic-flow article > span {
  color: var(--blue-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.environment h3,
.finding-list h3,
.diagnostic-flow h3 {
  margin: 12px 0 10px;
  font-size: 22px;
  letter-spacing: -0.025em;
}

.environment p,
.finding-list p,
.diagnostic-flow p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.environment-blue {
  background: #f3f8ff;
}

.environment-green {
  background: #f4faf3;
}

.environment-coral {
  background: #fff7f4;
}

.diagnostic-flow {
  display: grid;
  grid-template-columns: 1fr 34px 1fr 34px 1fr;
  align-items: stretch;
  margin-top: 50px;
}

.diagnostic-flow article {
  padding: 27px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.flow-arrow {
  display: grid;
  place-items: center;
  color: var(--aqua);
  font-size: 22px;
}

.result-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 38px 0 58px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 13px;
}

.result-stats article {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 150px;
  padding: 24px;
  background: #f8fbfe;
  text-align: center;
}

.result-stats strong {
  color: var(--blue-deep);
  font-family: "Manrope", sans-serif;
  font-size: 38px;
  line-height: 1.1;
}

.result-stats span {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 13px;
}

.finding-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 62px 0 50px;
}

.finding-list article {
  padding-top: 20px;
  border-top: 3px solid var(--aqua);
}

.section-citation {
  color: #e9f2f8;
  background: #15263a;
  border-top: 0;
}

.section-citation .section-label {
  border-left-color: var(--aqua);
}

.section-citation .section-label p,
.section-citation h2 {
  color: #fff;
}

.section-citation .kicker {
  color: #70d7cf;
}

.code-wrap {
  position: relative;
  max-width: 970px;
}

pre {
  margin: 0;
  padding: 30px;
  overflow-x: auto;
  color: #d9e8f2;
  background: #0d1b2a;
  border: 1px solid #2f4559;
  border-radius: 13px;
  font: 14px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.copy-button {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  padding: 7px 12px;
  color: #d9e8f2;
  background: #20364a;
  border: 1px solid #40576c;
  border-radius: 7px;
  cursor: pointer;
  font: 600 12px "DM Sans", sans-serif;
}

.copy-button:hover {
  background: #29465f;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  padding: 32px max(28px, calc((100vw - var(--max)) / 2));
  color: #677587;
  background: #0f1e2f;
  border-top: 1px solid #2b3e50;
  font-size: 13px;
}

footer .wordmark {
  color: #fff;
}

footer p {
  margin: 0;
  text-align: center;
}

footer > div:last-child {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
}

footer a {
  color: #b9d8ec;
}

@media (max-width: 1040px) {
  .site-nav {
    grid-template-columns: 1fr auto;
  }

  .site-nav nav {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 840px;
  }

  .hero-visual {
    max-width: 860px;
  }

  .contribution-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 34px;
  }

  .environment-grid,
  .finding-list {
    grid-template-columns: 1fr;
  }

  .environment {
    min-height: 0;
  }
}

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

  .site-nav {
    min-height: 62px;
    padding: 0 18px;
  }

  .home-link {
    font-size: 12px;
  }

  .hero {
    padding: 52px 18px 22px;
  }

  h1 {
    font-size: 42px;
  }

  .contribution-grid {
    grid-template-columns: 1fr;
    margin-top: 46px;
  }

  .contribution-grid article {
    min-height: auto;
  }

  .paper-meta {
    padding: 42px 18px 48px;
  }

  .authors {
    font-size: 16px;
  }

  .section {
    display: block;
    padding: 68px 18px;
  }

  .section-label {
    position: static;
    margin-bottom: 32px;
  }

  .section-content > h2 {
    font-size: 36px;
  }

  .lead {
    font-size: 18px;
  }

  .two-column-copy {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .takeaway {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .diagnostic-flow {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .flow-arrow {
    height: 28px;
    transform: rotate(90deg);
  }

  .result-stats {
    grid-template-columns: 1fr;
  }

  .result-stats article {
    min-height: 118px;
  }

  pre {
    padding: 24px 18px;
    font-size: 12px;
  }

  .copy-button {
    position: static;
    margin-bottom: 10px;
  }

  footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  footer > div:last-child {
    justify-content: center;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* Gradient editorial direction */
html {
  scroll-padding-top: 24px;
}

body {
  background: linear-gradient(180deg, #f5faff 0%, #ffffff 38%, #fbfdff 100%);
}

.hero {
  min-height: 720px;
  padding-top: clamp(68px, 8vw, 116px);
  padding-bottom: clamp(68px, 8vw, 108px);
  color: #fff;
  background:
    radial-gradient(
      circle at 105% 118%,
      #f1f3a8 0%,
      #85dec5 27%,
      rgba(73, 167, 224, 0.96) 55%,
      rgba(73, 167, 224, 0) 78%
    ),
    linear-gradient(120deg, #044c99 0%, #095daf 38%, #2379c2 70%, #3994d2 100%);
  border-bottom: 0;
}

.hero::before {
  display: none;
}

.hero-inner {
  max-width: var(--max);
  min-height: 520px;
  margin: 0 auto;
  grid-template-columns: minmax(0, 0.94fr) minmax(460px, 1.06fr);
  gap: clamp(44px, 6vw, 92px);
}

.hero .eyebrow {
  color: #d9f7f2;
}

.hero h1 {
  color: #fff;
  text-shadow: 0 3px 24px rgba(17, 53, 89, 0.12);
}

.hero h1 .brand {
  color: #ffd36e;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  letter-spacing: -0.045em;
}

.hero h1 .brand span {
  color: #fff1b9;
}

.hero .dek {
  color: rgba(255, 255, 255, 0.88);
}

.hero .button {
  color: #18324f;
  background: rgba(255, 246, 220, 0.95);
  border-color: rgba(255, 226, 159, 0.9);
  box-shadow: 0 8px 26px rgba(25, 65, 104, 0.14);
}

.hero .button:hover {
  color: #173552;
  background: #fffaf0;
  border-color: #fff0bf;
}

.hero .button-primary {
  color: #173552;
  background: #ffd574;
  border-color: #ffd574;
}

.hero-visual {
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 4px;
  box-shadow: 0 30px 72px rgba(22, 54, 88, 0.24);
  transform: none;
}

.hero-visual a,
.hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-visual img {
  min-height: 0;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.paper-meta {
  max-width: none;
  padding-right: max(28px, calc((100vw - 1120px) / 2));
  padding-left: max(28px, calc((100vw - 1120px) / 2));
  background:
    linear-gradient(100deg, rgba(235, 246, 255, 0.92), rgba(244, 252, 250, 0.9) 58%, rgba(255, 248, 237, 0.86));
}

.section-overview {
  background:
    radial-gradient(circle at 94% 8%, rgba(87, 186, 211, 0.14), transparent 25%),
    linear-gradient(145deg, #f1f8ff 0%, #fbfdff 62%, #f4fbfa 100%);
}

#benchmark {
  background: linear-gradient(145deg, #fff 0%, #f7fbff 72%, #f4faf7 100%);
}

.section-tint {
  background:
    radial-gradient(circle at 10% 90%, rgba(255, 202, 157, 0.16), transparent 27%),
    linear-gradient(130deg, #eef9fb 0%, #f5fbff 52%, #fff9f1 100%);
}

#findings {
  background:
    radial-gradient(circle at 100% 12%, rgba(246, 174, 135, 0.15), transparent 28%),
    linear-gradient(145deg, #fff 0%, #f5faff 58%, #fff8f3 100%);
}

.motivation-figure {
  margin-top: 54px;
  padding: clamp(14px, 2vw, 26px);
  background:
    radial-gradient(circle at 85% 0%, rgba(65, 188, 205, 0.24), transparent 32%),
    linear-gradient(135deg, #e8f5ff, #f6fbff 58%, #eefaf7);
  border: 1px solid #cce4f2;
  border-radius: 24px;
  box-shadow: 0 26px 66px rgba(56, 111, 150, 0.12);
}

.motivation-figure .figure {
  width: 100%;
  max-width: 1080px;
  border-radius: 13px;
}

.section-citation {
  display: block;
  padding-top: 84px;
  padding-bottom: 100px;
  color: #767676;
  background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
  border-top: 1px solid #e6e6e6;
}

.section-citation .section-content {
  max-width: 1220px;
  margin: 0 auto;
}

.section-citation .section-content > h2 {
  max-width: none;
  margin-bottom: 24px;
  padding-bottom: 22px;
  color: #858585;
  border-bottom: 1px solid #dedede;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.section-citation .code-wrap {
  max-width: 1120px;
  margin: 0 auto;
}

.section-citation pre {
  padding: 34px 42px;
  color: #777;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 17px;
  line-height: 1.7;
}

.section-citation .copy-button {
  color: #66717d;
  background: #f2f5f7;
  border-color: #d9e0e5;
}

.section-citation .copy-button:hover {
  background: #e9eef2;
}

@media (max-width: 1040px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 850px;
  }

  .hero-visual img {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .hero {
    min-height: auto;
    padding: 58px 18px 56px;
  }

  .hero-inner {
    min-height: 0;
  }

  .hero-visual {
    border-radius: 18px;
  }

  .section-citation pre {
    padding: 20px 0;
    font-size: 12px;
  }
}
