:root {
  --text: #1f1f1f;
  --muted: rgba(0, 0, 0, 0.68);
  --line: rgba(0, 0, 0, 0.16);
  --soft: #f6f6f6;
  --blue: #2f5f9f;
  --teal: #16726b;
  --gold: #c58a1d;
  --rose: #9f3f52;
  --purple: #6750a4;
  --button: #30343b;
  --accent: var(--teal);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #f9fbff 0, #fff 210px),
    #fff;
  color: var(--text);
  font-family: "Noto Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

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

code {
  padding: 0.08rem 0.25rem;
  border-radius: 4px;
  background: #eeeeee;
  color: #222;
  font-size: 0.92em;
}

.site-header {
  display: none;
}

.hero,
.section {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: block;
  min-height: 0;
  padding: 2.2rem 0 0.45rem;
  text-align: center;
}

.hero::after,
.section::before {
  display: block;
  width: 100%;
  height: 1px;
  margin: 0.75rem auto 0;
  background: linear-gradient(90deg, transparent, rgba(47, 95, 159, 0.28), rgba(197, 138, 29, 0.22), transparent);
  content: "";
}

.hero-copy {
  max-width: 960px;
  margin: 0 auto;
}

.hero-media {
  display: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
.authors,
.button,
.metric-value,
.metric-label {
  font-family: "Google Sans", "Noto Sans", Arial, sans-serif;
}

h1 {
  max-width: 920px;
  margin: 0 auto 0.85rem;
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.eyebrow {
  display: none;
}

.subtitle {
  max-width: 820px;
  margin: 0 auto 0.65rem;
  color: var(--muted);
  font-size: 1.12rem;
}

.authors {
  max-width: 900px;
  margin: 0 auto 0.35rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.45;
}

.affiliations {
  max-width: 860px;
  margin: 0 auto 0.65rem;
  color: rgba(0, 0, 0, 0.56);
  font-family: "Google Sans", "Noto Sans", Arial, sans-serif;
  font-size: 0.98rem;
  line-height: 1.45;
}

.actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.25rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0 1.05rem;
  border-radius: 999px;
  background: var(--button);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
}

.button:hover {
  background: #111;
}

.button.paper {
  background: var(--blue);
}

.button.arxiv {
  background: var(--rose);
}

.button.github {
  background: #24292f;
}

.button.videos {
  background: var(--teal);
}

.button.disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.button-icon {
  width: 1.05rem;
  height: 1.05rem;
  margin-right: 0.45rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.button.github .button-icon {
  fill: currentColor;
  stroke: none;
}

.section {
  padding: 2.1rem 0 0;
}

.section.narrow {
  width: min(900px, calc(100% - 32px));
  padding-top: 1.45rem;
}

.section.narrow p,
.section-heading p,
.feature-grid p,
.metric p,
.matrix-heading p,
.wide-figure figcaption {
  color: var(--muted);
}

.section.narrow p {
  text-align: left;
}

.lead {
  font-size: 1rem;
}

.section-heading {
  max-width: 900px;
  margin: 0 auto 1.2rem;
  text-align: center;
}

.section-heading p {
  text-align: center;
}

.wide-figure {
  margin: 0.6rem auto 0;
  text-align: center;
}

.wide-figure img {
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 10px;
  background: linear-gradient(180deg, #fff, #fbfcff);
}

.wide-figure figcaption {
  max-width: 900px;
  margin: 0.45rem auto 0;
  font-size: 0.92rem;
  line-height: 1.45;
  text-align: left;
}

.wide-figure.compact img {
  height: auto;
  object-fit: contain;
}

#method .wide-figure img {
  max-width: 1120px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
  margin-top: 1.45rem;
}

.feature-grid article {
  padding: 0;
}

.feature-grid p {
  text-align: left;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin: 1.2rem auto 1.1rem;
}

.metric {
  padding: 1rem 1rem 0.9rem;
  border: 1px solid rgba(47, 95, 159, 0.18);
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #f9fbff);
  text-align: center;
}

.metric:nth-child(2) {
  border-color: rgba(22, 114, 107, 0.22);
  background: linear-gradient(180deg, #ffffff, #f7fcfb);
}

.metric:nth-child(3) {
  border-color: rgba(197, 138, 29, 0.24);
  background: linear-gradient(180deg, #ffffff, #fffaf0);
}

.metric-value {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--blue);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
}

.metric:nth-child(2) .metric-value {
  color: var(--teal);
}

.metric:nth-child(3) .metric-value {
  color: var(--gold);
}

.metric-label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 700;
}

.metric p {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  background: #fff;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

#simulation table {
  min-width: 1160px;
}

#real-world table {
  min-width: 1240px;
}

th,
td {
  padding: 0.72rem 0.85rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.11);
  text-align: center;
  white-space: nowrap;
}

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

thead th {
  background: linear-gradient(180deg, #f2f6fb, #edf2f8);
  font-size: 0.88rem;
  font-weight: 700;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.summary-row td {
  background: #faf7ef;
  font-weight: 700;
}

.highlight td {
  background: #edf7f5;
  color: #0d5f59;
  font-weight: 700;
}

.matrix-heading {
  max-width: 820px;
  margin: 2.2rem auto 1rem;
  text-align: center;
}

.matrix-heading p {
  margin-bottom: 0;
}

.video-matrix {
  display: grid;
  grid-template-columns: 160px repeat(4, minmax(250px, 1fr));
  gap: 0.7rem;
  align-items: stretch;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.matrix-corner,
.method-head,
.task-head {
  display: flex;
  align-items: center;
  min-height: 2.45rem;
  border-radius: 8px;
  font-family: "Google Sans", "Noto Sans", Arial, sans-serif;
  font-weight: 700;
}

.matrix-corner,
.task-head {
  color: #222;
}

.method-head {
  justify-content: center;
  background: #eeeeee;
}

.method-head.strong {
  background: linear-gradient(180deg, #e8f5f3, #d8eee9);
  color: #0d5f59;
}

.task-head {
  padding: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
}

.video-slot {
  min-width: 250px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  background: #fff;
}

.video-shell {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  background: #f0f0f0;
}

.video-shell video,
.video-shell iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-shell video {
  object-fit: cover;
}

.placeholder {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 50%;
  color: var(--muted);
  font-weight: 700;
}

.slot-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem 0.6rem;
  padding: 0.55rem 0.7rem 0.7rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.slot-meta strong {
  color: var(--text);
}

.video-link {
  grid-column: 1 / -1;
  color: var(--blue);
  font-weight: 700;
}

.video-link:hover {
  text-decoration: underline;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.memory-figures {
  display: grid;
  gap: 1.25rem;
}

.memory-section .wide-figure {
  max-width: 1040px;
}

.memory-section .wide-figure img {
  width: 100%;
  max-height: none;
}

.memory-section .wide-figure figcaption {
  max-width: 920px;
}

.footer {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 2.4rem 0 2rem;
  color: var(--muted);
  text-align: center;
}

.footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .hero {
    padding-top: 1.8rem;
  }

  .feature-grid,
  .two-column {
    grid-template-columns: 1fr;
  }

  .video-matrix {
    grid-template-columns: 118px repeat(4, 240px);
  }

  .wide-figure.compact img {
    height: auto;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.55rem;
  }

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

  .section {
    padding-top: 2.25rem;
  }
}
