:root {
  color-scheme: light;
  --ink: #14151a;
  --muted: #5d6575;
  --soft: #f4f6f9;
  --line: #dde3eb;
  --panel: #ffffff;
  --accent: #0077b6;
  --accent-2: #d94f45;
  --accent-3: #2f8f65;
  --shadow: 0 18px 60px rgba(25, 30, 45, 0.10);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.62;
  font-size: 16px;
}

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

a:hover {
  text-decoration: underline;
}

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

code, pre {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

.hero {
  padding: 64px 0 34px;
  background:
    linear-gradient(180deg, rgba(244, 248, 252, 0.94), rgba(255, 255, 255, 0.98)),
    radial-gradient(circle at 15% 0%, rgba(0, 119, 182, 0.14), transparent 36%),
    radial-gradient(circle at 84% 8%, rgba(217, 79, 69, 0.13), transparent 38%);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.title {
  margin: 0;
  font-size: clamp(1.68rem, 3.84vw, 3.48rem);
  line-height: 1.04;
  letter-spacing: 0;
  font-weight: 800;
}

.subtitle {
  margin: 18px auto 0;
  max-width: 1120px;
  color: #293241;
  font-size: clamp(1.08rem, 2.2vw, 1.55rem);
  line-height: 1.42;
  font-weight: 500;
}

.authors {
  margin: 22px auto 0;
  max-width: 920px;
  font-size: 1.04rem;
  color: var(--muted);
}

.authors a {
  color: #1e3a5f;
  font-weight: 600;
}

.affiliation {
  margin-top: 8px;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 120px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid #20242d;
  background: #171a21;
  color: white;
  font-weight: 700;
  font-size: 0.94rem;
  text-decoration: none;
}

.button .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  flex: 0 0 auto;
}

.button:hover {
  background: #000;
  text-decoration: none;
}

.button.secondary {
  background: white;
  color: #171a21;
  border-color: var(--line);
}

.button.secondary:hover {
  background: var(--soft);
}

.button.disabled {
  color: #7c8492;
  background: #f2f4f7;
  border-color: #e0e5ec;
  pointer-events: none;
}

.teaser-card {
  margin: 42px auto 0;
  max-width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
  border: 1px solid rgba(20, 21, 26, 0.08);
}

.teaser-card img {
  width: 100%;
}

.caption {
  margin: 0;
  padding: 14px 18px 16px;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav .wrap {
  display: flex;
  justify-content: center;
  gap: 22px;
  padding: 12px 0;
  overflow-x: auto;
  white-space: nowrap;
  font-size: 0.92rem;
  font-weight: 700;
}

.nav a {
  color: #303746;
}

section {
  padding: 62px 0;
}

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

.section-title {
  margin: 0 0 18px;
  font-size: clamp(1.8rem, 3.5vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 800;
}

.section-title.compact {
  font-size: clamp(1.44rem, 2.8vw, 2.16rem);
}

.lead {
  margin: 0 auto;
  max-width: 900px;
  color: #303746;
  font-size: 1.08rem;
}

.body-lead {
  text-align: left;
}

.center {
  text-align: center;
}

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

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

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 22px;
  box-shadow: 0 10px 30px rgba(25, 30, 45, 0.04);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.06rem;
  line-height: 1.28;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.metric {
  font-size: 2.2rem;
  line-height: 1;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
}

.figure {
  margin-top: 28px;
  width: min(100%, var(--figure-width, 100%));
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 12px 38px rgba(25, 30, 45, 0.07);
}

.figure img {
  width: min(100%, var(--image-width, 80%));
  margin-left: auto;
  margin-right: auto;
  padding-top: var(--image-padding-y, 0);
  padding-bottom: var(--image-padding-y, 0);
  background: white;
}

.image-asym-param {
  --image-width: 85%;
}

.image-param-family {
  --image-width: 88%;
}

.image-init-compare {
  --image-width: 84%;
}

.image-t2i-compare {
  --image-width: 95%;
  --image-padding-y: 18px;
}

.figure.pad {
  padding: 16px;
}

.figure.pad .caption {
  padding-bottom: 0;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: center;
}

.text-block p {
  color: #303746;
  margin: 0 0 16px;
}

.results-table {
  width: auto;
  border-collapse: collapse;
  overflow: hidden;
  background: white;
  font-size: 0.82rem;
  line-height: 1.22;
}

.tables-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
  margin-top: 28px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.table-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(25, 30, 45, 0.04);
}

.table-block h3 {
  margin: 0 0 20px;
  font-size: 1.08rem;
  line-height: 1.22;
  text-align: center;
}

.table-scroll {
  overflow-x: auto;
  display: flex;
  justify-content: center;
}

.table-block .caption {
  padding: 12px 10px 0;
  font-size: 0.95rem;
  line-height: 1.45;
}

.table-block.large-table .results-table {
  font-size: 0.94rem;
}

.table-block.large-table .results-table th,
.table-block.large-table .results-table .group-row td {
  font-size: 0.84rem;
}

.table-block.large-table .results-table th,
.table-block.large-table .results-table td {
  padding: 5px 11px;
}

.results-table th,
.results-table td {
  padding: 4px 9px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  white-space: nowrap;
}

.results-table th:first-child,
.results-table td:first-child {
  text-align: left;
}

.results-table th {
  background: #eef3f8;
  color: #2d3544;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

.results-table .group-row td {
  background: #f6f8fb;
  color: #566070;
  font-weight: 800;
  font-size: 0.74rem;
  font-style: italic;
}

.results-table .best {
  font-weight: 800;
  color: var(--accent-2);
}

.results-table .second {
  font-weight: 800;
  color: var(--accent);
}

.code-panel {
  margin-top: 24px;
  background: #11151d;
  color: #eef4ff;
  border-radius: var(--radius);
  padding: 18px;
  overflow-x: auto;
  border: 1px solid #252c3a;
  font-size: 0.88rem;
}

.code-panel pre {
  margin: 0;
}

.demo-frame {
  margin-top: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 18px;
  box-shadow: var(--shadow);
}

.demo-frame iframe {
  display: block;
  width: 100%;
  height: 760px;
  border: 0;
  border-radius: calc(var(--radius) - 2px);
  background: #f8fafc;
}

.demo-note {
  margin: 16px auto 0;
  max-width: 820px;
  color: var(--muted);
  text-align: center;
  font-size: 0.95rem;
}

details {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 16px 18px;
}

summary {
  cursor: pointer;
  font-weight: 800;
}

footer {
  padding: 36px 0 46px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: #fafbfc;
  font-size: 0.94rem;
}

@media (max-width: 840px) {
  .hero {
    padding-top: 44px;
  }

  .grid,
  .grid.two,
  .tables-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .demo-frame iframe {
    height: 640px;
  }

  .nav .wrap {
    justify-content: flex-start;
  }

  section {
    padding: 46px 0;
  }
}
