:root {
  --bg: #0b1020;
  --bg-soft: #f5f8ff;
  --text: #0f172a;
  --text-light: #4b5563;
  --white: #ffffff;
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --line: #e5e7eb;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: #fff;
}

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

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

.narrow {
  width: min(860px, calc(100% - 2rem));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.brand {
  font-weight: 800;
  font-size: 1.1rem;
  color: #111827;
}

.site-nav {
  display: flex;
  gap: 1rem;
}

.site-nav a {
  color: #374151;
  font-weight: 500;
  font-size: 0.95rem;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
}

.hero {
  background: radial-gradient(circle at 20% 0, #1e3a8a 0, var(--bg) 45%, #070b16 100%);
  color: var(--white);
  padding: 4.8rem 0 3rem;
}

.eyebrow {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.18);
  color: #bfdbfe;
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1 {
  margin: 0.9rem 0 0.6rem;
  font-size: clamp(2.1rem, 3.9vw, 3.4rem);
  line-height: 1.1;
}

h2 {
  margin: 0;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 500;
  color: #dbeafe;
}

.hero-text {
  margin-top: 1.1rem;
  max-width: 900px;
  color: #d1d5db;
}

.hero-actions {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.author-panel {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.28);
}

.author-panel h3 {
  margin: 0 0 0.6rem;
  font-size: 1.3rem;
  color: #e2e8f0;
}

.author-list {
  margin: 0;
  color: #dbeafe;
  line-height: 1.8;
}

.author-list a {
  color: #bfdbfe;
  font-weight: 600;
}

.author-list a:hover {
  color: #ffffff;
}

.affiliation-list {
  margin: 0.6rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  color: #cbd5e1;
}

.affiliation-list span {
  white-space: nowrap;
}

.author-note {
  margin: 0.35rem 0 0;
  color: #cbd5e1;
  font-size: 0.9rem;
}

.author-note code {
  color: #f1f5f9;
}

.btn {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #e5e7eb;
  border-radius: 10px;
  padding: 0.58rem 0.95rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.btn:hover {
  text-decoration: none;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-primary {
  background: var(--primary);
  border-color: transparent;
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-muted {
  opacity: 0.75;
}

.stats {
  margin: 1.7rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.stats li {
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.32);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
}

.stats strong {
  display: block;
  font-size: 1.35rem;
}

.stats span {
  color: #cbd5e1;
  font-size: 0.9rem;
}

.section {
  padding: 4rem 0;
}

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

h3 {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}

.section-intro {
  margin-top: 0;
  color: var(--text-light);
}

.figure-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

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

.figure-card img {
  display: block;
  width: 100%;
  height: auto;
}

.figure-card figcaption {
  padding: 0.8rem 1rem 1rem;
  color: var(--text-light);
  font-size: 0.93rem;
}

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

.card,
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.1rem;
}

.card h4,
.panel h4 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
}

.card p,
.panel p {
  margin: 0;
  color: var(--text-light);
}

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

ul {
  margin: 0.65rem 0 0;
  padding-left: 1.05rem;
}

pre {
  margin: 0.7rem 0 0;
  padding: 0.85rem;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #f8fafc;
  overflow-x: auto;
}

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

.small-note {
  margin-top: 0.6rem;
  font-size: 0.9rem;
}

.task-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.1rem;
}

.task-block + .task-block {
  margin-top: 1rem;
}

.task-block h4 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
}

.task-instruction {
  margin: 0 0 0.8rem;
  color: var(--text-light);
}

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

.task-video-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.task-video-grid video {
  width: 100%;
  display: block;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #000;
}

.benchmark-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.benchmark-video-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem;
}

.benchmark-label {
  margin-bottom: 0.5rem;
  border: 1px solid #d1d5db;
  background: #f8fafc;
  border-radius: 8px;
  padding: 0.35rem 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.25;
}

.benchmark-video-card video {
  width: 100%;
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #000;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-wrap {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-light);
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .stats {
    grid-template-columns: 1fr;
  }

  .cards,
  .two-col {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    border-bottom: 1px solid var(--line);
    background: #fff;
    display: none;
    flex-direction: column;
    padding: 0.6rem 1rem 0.9rem;
  }

  .site-nav.show {
    display: flex;
  }

  .author-panel {
    padding: 0.85rem 0.9rem;
  }

  .affiliation-list {
    flex-direction: column;
    gap: 0.25rem;
  }

  .footer-wrap {
    padding: 0.9rem 0;
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
  }
}
