:root {
  --ink: #202124;
  --body: #3e4248;
  --muted: #727781;
  --accent: #4968d8;
  --accent-deep: #3650b2;
  --accent-soft: #edf1ff;
  --line: #e5e8ee;
  --white: #ffffff;
  --section: #f6f7f9;
  --hero: #f4f6fb;
  --shadow: 0 12px 32px rgba(31, 40, 76, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--body);
  background: var(--white);
  font-family: "Noto Sans", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-deep); }
img { display: block; max-width: 100%; }

.page-width {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.text-width {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0 74px;
  text-align: center;
  background:
    radial-gradient(circle at 50% -30%, rgba(255, 255, 255, 0.98) 0, rgba(255, 255, 255, 0) 55%),
    linear-gradient(135deg, #f8f9fd 0%, var(--hero) 52%, #eef2fa 100%);
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.36;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(73, 104, 216, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(73, 104, 216, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.hero-inner { position: relative; z-index: 2; }

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.42;
  pointer-events: none;
}

.hero-glow-left {
  width: 330px;
  height: 330px;
  left: -160px;
  top: 70px;
  background: radial-gradient(circle, rgba(111, 192, 216, 0.45), rgba(111, 192, 216, 0));
}

.hero-glow-right {
  width: 360px;
  height: 360px;
  right: -150px;
  top: -20px;
  background: radial-gradient(circle, rgba(151, 123, 220, 0.40), rgba(151, 123, 220, 0));
}

h1 {
  max-width: 1060px;
  margin: 0 auto 27px;
  color: var(--ink);
  font-family: "Noto Sans", Arial, sans-serif;
  font-size: clamp(41px, 5.4vw, 68px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

h1 span {
  color: transparent;
  background: linear-gradient(115deg, #3456c3 5%, #657dde 55%, #7957ad 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

.authors {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 600;
}

.affiliation {
  margin: 4px 0 29px;
  color: var(--muted);
  font-size: 14px;
}

.authors sup,
.affiliation sup {
  font-size: 0.62em;
  line-height: 0;
  vertical-align: super;
}

.affiliation > span { display: block; }

.affiliation a {
  color: var(--accent-deep);
  text-decoration: none;
}

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

.project-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 13px;
}

.project-link {
  min-width: 126px;
  min-height: 48px;
  display: grid;
  grid-template-columns: 30px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  padding: 8px 17px 8px 10px;
  border: 1px solid #22252a;
  border-radius: 999px;
  color: var(--white);
  background: #292c32;
  text-align: left;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.project-link:hover {
  color: var(--white);
  background: #15171a;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(29, 34, 48, 0.18);
}

.project-link.unavailable {
  border-color: #d9dde7;
  color: #737987;
  background: rgba(255, 255, 255, 0.78);
  cursor: default;
}

.link-icon {
  grid-row: 1 / 3;
  align-self: center;
  color: inherit;
  font-family: Georgia, serif;
  font-size: 21px;
  font-weight: 700;
  text-align: center;
}

.code-icon { font-family: monospace; font-size: 14px; }
.project-link > span:not(.link-icon) { align-self: end; font-size: 13px; font-weight: 700; line-height: 1.1; }
.project-link small { align-self: start; color: inherit; font-size: 9px; line-height: 1.2; opacity: 0.66; text-transform: uppercase; }

.section { padding: 78px 0 84px; }
.abstract-section { background: var(--white); }
.pipeline-section { background: var(--section); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.demo-section { background: var(--white); }

.section h2 {
  margin: 0 0 34px;
  color: var(--ink);
  font-family: "Castoro", Georgia, serif;
  font-size: clamp(34px, 4vw, 45px);
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
}

.section-heading {
  margin-bottom: 38px;
  text-align: center;
}

.section-heading h2 { margin-bottom: 0; }

.section-heading > p {
  margin: 0 0 3px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.abstract-copy {
  color: #464b53;
  font-size: 17px;
  text-align: justify;
}

.abstract-copy p { margin: 0 0 17px; }
.abstract-copy p:last-child { margin-bottom: 0; }

.research-figure { margin: 0; }

.image-surface {
  padding: 15px;
  border: 1px solid #e2e5ec;
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.image-surface img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.figure-zoom {
  display: block;
  border-radius: 6px;
  cursor: zoom-in;
}

.research-figure figcaption {
  max-width: 900px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

.featured-demo { margin-bottom: 62px; }

.comparison-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 62px;
  align-items: start;
}

footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  color: #878b93;
  background: #f7f8fa;
  font-size: 12px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: center;
}

.footer-inner p { margin: 0; }
.footer-inner strong { color: #555a63; }
.footer-inner a { font-weight: 600; text-decoration: none; }
.footer-inner span { margin: 0 5px; }

@media (max-width: 780px) {
  .hero { padding: 64px 0 58px; }
  .comparison-grid { gap: 48px; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 7px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .page-width, .text-width { width: min(100% - 24px, 1180px); }
  .hero { padding: 48px 0 46px; }
  h1 { font-size: 38px; letter-spacing: -0.035em; }
  .authors { font-size: 18px; }
  .project-link { min-width: 118px; }
  .section { padding: 56px 0 62px; }
  .section h2 { margin-bottom: 26px; font-size: 34px; }
  .section-heading { margin-bottom: 29px; }
  .abstract-copy { text-align: left; }
  .image-surface { padding: 7px; border-radius: 8px; }
  .research-figure figcaption { margin-top: 11px; font-size: 12px; }
  .featured-demo { margin-bottom: 45px; }
}
