:root {
  --text: #171717;
  --muted: #555f6d;
  --line: #e6e8ec;
  --soft: #f7f8fb;
  --paper: #ffffff;
  --accent: #4420a8;
  --accent-2: #2563eb;
  --accent-soft: #efecff;
  --shadow: 0 18px 46px rgba(31, 35, 50, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: "Google Sans", "Noto Sans", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.narrow {
  width: min(920px, calc(100% - 32px));
}

.centered {
  text-align: center;
}

.hero {
  padding: 58px 0 36px;
  background:
    radial-gradient(circle at 18% 10%, rgba(68, 32, 168, 0.14), transparent 28%),
    linear-gradient(180deg, #fbfbff 0%, #ffffff 72%);
  border-bottom: 1px solid var(--line);
}

.title-mark {
  width: min(440px, 86vw);
  height: auto;
  margin-bottom: 18px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0;
}

h1 {
  max-width: 980px;
  margin: 0 auto 20px;
  font-size: clamp(2.2rem, 5vw, 4.35rem);
  font-weight: 800;
  letter-spacing: 0;
}

.authors {
  max-width: 960px;
  margin: 0 auto 10px;
  font-size: 1.08rem;
  color: #22262d;
}

.paper-authors {
  max-width: 1120px;
  font-size: clamp(0.94rem, 1.22vw, 1.18rem);
  font-weight: 800;
  line-height: 1.5;
}

.affiliations {
  margin: 0 auto 22px;
  color: var(--muted);
  font-size: 0.98rem;
}

.paper-affiliations {
  margin-top: 16px;
  font-size: clamp(1.02rem, 1.65vw, 1.32rem);
  line-height: 1.45;
}

.publication-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.button.dark {
  color: #fff;
  background: #22252d;
}

.button.dark:hover {
  background: var(--accent);
}

.teaser {
  padding: 38px 0 44px;
}

.main-figure,
.paper-figure {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}

.teaser h2 {
  margin: 24px auto 0;
  max-width: 880px;
  color: #2d3340;
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  font-weight: 500;
  text-align: center;
}

.section {
  padding: 58px 0;
}

.section.light {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-title {
  margin-bottom: 18px;
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  font-weight: 800;
}

.section-title.centered,
.section-lead {
  text-align: center;
}

.section-lead {
  max-width: 800px;
  margin: 0 auto 26px;
  color: var(--muted);
  font-size: 1.08rem;
}

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

.feature {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.feature h3 {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 1.18rem;
}

.feature p,
.columns p {
  margin: 0;
  color: var(--muted);
}

.caption {
  max-width: 840px;
  margin: 20px auto 0;
  color: var(--muted);
  text-align: justify;
}

.domain-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 28px;
}

.domain-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid #dcd8f5;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #2d205f;
  font-weight: 700;
  font-size: 0.95rem;
}

.task-list {
  max-width: 860px;
  margin: 0 auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.task-list h3 {
  margin-bottom: 12px;
}

select {
  width: 100%;
  min-height: 220px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #1f2530;
  background: #fff;
  font: inherit;
}

option {
  padding: 8px;
}

.result-table-wrap {
  margin: 10px auto 28px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.result-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.result-table th,
.result-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.result-table th {
  background: #f1f2f7;
  font-weight: 800;
}

.result-table tr:last-child td {
  border-bottom: 0;
}

.result-table td:nth-child(4),
.result-table td:nth-child(5) {
  color: var(--accent);
  font-weight: 800;
}

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

.columns .paper-figure {
  margin-top: 18px;
}

pre {
  margin: 18px 0;
  overflow-x: auto;
  border-radius: 10px;
  background: #171923;
  color: #f8f8f2;
  box-shadow: var(--shadow);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
}

pre code {
  display: block;
  padding: 18px 20px;
}

.footer {
  padding: 34px 0;
  color: var(--muted);
  background: #f4f5f8;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.footer p {
  margin: 4px 0;
}

@media (max-width: 820px) {
  .feature-grid,
  .columns {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 44px 0;
  }

  h1 {
    font-size: 2.25rem;
  }

  .hero {
    padding-top: 42px;
  }
}
