:root {
  --blue: #3264b4;
  --blue-dark: #1e3f74;
  --orange: #d26e28;
  --orange-soft: #fff1e8;
  --ink: #142033;
  --muted: #5b6678;
  --line: #dbe2ec;
  --soft: #f5f8fc;
  --paper: #ffffff;
  --shadow: 0 18px 48px rgba(31, 48, 77, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(219, 226, 236, 0.9);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  flex: 0 0 auto;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--blue-dark);
}

.section {
  padding: 74px 0;
}

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

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

.soft {
  background: var(--soft);
}

.hero {
  padding: 78px 0 48px;
  text-align: center;
}

.hero-inner {
  max-width: 1060px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--orange);
  font-size: clamp(2.25rem, 3.6vw, 3.7rem);
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
  line-height: 1.02;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 1040px;
  margin: 0 auto 24px;
  font-size: clamp(2.1rem, 4.6vw, 4.8rem);
  line-height: 1.03;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 20px;
  font-size: clamp(2.15rem, 3.2vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  line-height: 1.25;
  letter-spacing: 0;
}

h4 {
  margin: 12px 0 0;
  font-size: 0.98rem;
  line-height: 1.3;
  letter-spacing: 0;
}

.title-blue {
  color: var(--blue);
}

.title-orange {
  color: var(--orange);
}

.title-highlight {
  display: inline-block;
  padding: 0 0.12em 0.08em;
  border-radius: 0.14em;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 54%, rgba(210, 110, 40, 0.24) 54%);
  color: var(--blue-dark);
}

.authors,
.affiliation {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.authors {
  color: var(--ink);
  font-weight: 650;
}

.authors a {
  text-decoration: none;
}

.authors a:hover {
  color: var(--blue-dark);
  text-decoration: underline;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.button,
.copy-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
}

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

.button.muted {
  color: var(--muted);
  cursor: default;
}

.demo-video {
  width: min(920px, 100%);
  margin: 34px auto 0;
}

.demo-video-slot {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px dashed #b8c5d8;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(50, 100, 180, 0.1), rgba(210, 110, 40, 0.1)),
    #f8fbff;
  color: var(--muted);
  box-shadow: var(--shadow);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 780;
  text-transform: uppercase;
}

.demo-video-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #101827;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.media-band {
  padding: 0 0 64px;
}

.hero-figure,
.paper-figure {
  margin: 0;
}

.hero-figure {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.hero-figure img {
  width: 100%;
}

figcaption {
  padding: 14px 18px 16px;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.5;
  text-align: center;
}

.section-heading {
  max-width: 930px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-heading h2 {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: clamp(1.3rem, 1.8vw, 1.85rem);
  font-weight: 720;
  line-height: 1.22;
}

.section-heading p:last-child,
.narrow p {
  color: var(--muted);
  font-size: 1.08rem;
}

.paper-figure {
  overflow: hidden;
  margin: 28px auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.paper-figure img {
  width: 100%;
}

.phase-grid,
.benchmark-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 30px 0;
}

.phase-grid article,
.benchmark-list div {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.phase-grid p,
.benchmark-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.benchmark-list p + p {
  margin-top: 12px;
}

.figure-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.paper-figure.compact {
  margin: 0;
}

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

.video-block {
  margin-top: 42px;
}

.video-block:first-of-type {
  margin-top: 0;
}

.video-block > h3 {
  margin: 0 0 18px;
  color: var(--blue-dark);
  font-size: 1.62rem;
}

.video-gallery-stack {
  display: grid;
  gap: 26px;
}

.video-task-group {
  display: grid;
  gap: 14px;
}

.video-group-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.video-group-header h4 {
  margin: 0;
  color: var(--blue-dark);
  font-size: 1.14rem;
}

.video-group-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.video-category-stack {
  display: grid;
  gap: 22px;
}

.video-category-group {
  display: grid;
  gap: 12px;
}

.video-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.video-category-header h5 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.25;
}

.video-outcome-stack {
  display: grid;
  gap: 18px;
}

.video-outcome-group {
  display: grid;
  gap: 10px;
}

.video-outcome-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 2px;
}

.video-outcome-header h6 {
  margin: 0;
  color: var(--blue-dark);
  font-size: 0.9rem;
  font-weight: 760;
  line-height: 1.25;
}

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

.video-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 26px rgba(31, 48, 77, 0.07);
}

.video-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.video-slot {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px dashed #b8c5d8;
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(50, 100, 180, 0.08), rgba(210, 110, 40, 0.08)),
    #f8fbff;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 760;
  text-transform: uppercase;
}

.video-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #101827;
  object-fit: cover;
}

.result-stack {
  display: grid;
  gap: 42px;
  min-width: 0;
}

.result-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 36px rgba(31, 48, 77, 0.08);
}

.result-panel h3 {
  margin: 0;
  padding: 24px 22px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--blue-dark);
  font-size: 1.55rem;
}

.table-wrap {
  overflow-x: auto;
  max-width: 100%;
  padding: 20px 22px 24px;
}

table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  font-size: 0.93rem;
}

.small-table table {
  min-width: 560px;
}

.time-cost-table table {
  min-width: 520px;
}

caption {
  padding: 0 0 14px;
  color: var(--muted);
  font-weight: 650;
  text-align: left;
}

th,
td {
  padding: 12px 11px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  white-space: nowrap;
}

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

thead th {
  color: var(--blue-dark);
  background: #f7faff;
}

tbody tr.highlight {
  background: var(--orange-soft);
}

tbody tr.highlight td:first-child {
  color: #873e12;
  font-weight: 760;
}

tbody tr.table-group th {
  padding-top: 16px;
  color: var(--ink);
  background: #fff;
  font-style: italic;
  text-align: left;
}

.bibtex-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.copy-button {
  padding: 0 16px;
}

pre {
  overflow-x: auto;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #101827;
  color: #eef4ff;
  font-size: 0.92rem;
  line-height: 1.55;
}

.footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
  font-size: 0.92rem;
  text-align: center;
}

.footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .nav {
    height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .nav-links {
    width: 100%;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

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

  .figure-grid,
  .benchmark-list,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .video-group-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 54px 0;
  }

  .hero {
    padding-top: 54px;
  }

  .phase-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .action-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .table-wrap {
    padding: 12px;
  }
}
