:root {
  --bg: #f7f8fb;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: #ffffff;
  --text: #152033;
  --muted: #5c6678;
  --line: rgba(20, 32, 51, 0.1);
  --line-strong: rgba(20, 32, 51, 0.14);
  --navy: #1b3d73;
  --navy-deep: #102645;
  --orange: #ef7c4b;
  --shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 14px 28px rgba(15, 23, 42, 0.05);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% 10%, rgba(24, 70, 145, 0.1), transparent 22%),
    radial-gradient(circle at 84% 8%, rgba(239, 124, 75, 0.08), transparent 18%),
    linear-gradient(180deg, #fbfcfe 0%, #f5f7fb 100%);
  color: var(--text);
  font-family: "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

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

.page-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 80% 56%, rgba(24, 70, 145, 0.05), transparent 24%),
    radial-gradient(circle at 20% 82%, rgba(239, 124, 75, 0.04), transparent 18%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(247, 248, 251, 0.8);
  border-bottom: 1px solid rgba(20, 32, 51, 0.08);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: "Google Sans", "Noto Sans", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(16, 38, 69, 0.14);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 600;
  transition: color 160ms ease, transform 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--navy);
  transform: translateY(-1px);
}

.section {
  padding: 1rem 0 2.75rem;
}

.hero {
  padding: 4.25rem 0 2.5rem;
}

.hero-inner {
  text-align: center;
}

.site-logo {
  width: min(118px, 24vw);
  height: auto;
  margin: 0 auto 1.1rem;
  border-radius: 30px;
  box-shadow: 0 20px 44px rgba(16, 38, 69, 0.14);
}

.eyebrow,
.section-label,
.demo-tag,
.figure-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 0.9rem;
  padding: 0.42rem 0.92rem;
  border-radius: 999px;
  border: 1px solid rgba(24, 70, 145, 0.14);
  background: rgba(255, 255, 255, 0.78);
  color: var(--navy);
  font-family: "Google Sans", "Noto Sans", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.publication-title {
  margin: 0;
  font-family: "Google Sans", "Noto Sans", sans-serif;
  font-size: clamp(3rem, 7.4vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.publication-subtitle {
  width: min(980px, 100%);
  margin: 1rem auto 0;
  font-family: "Google Sans", "Noto Sans", sans-serif;
  font-size: clamp(1.12rem, 2.4vw, 1.5rem);
  line-height: 1.42;
  color: var(--muted);
  font-weight: 500;
}

.publication-authors {
  width: min(980px, 100%);
  margin: 1.5rem auto 0;
  display: grid;
  gap: 0.35rem;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 500;
}

.author-line {
  line-height: 1.55;
}

.hero-summary {
  width: min(860px, 100%);
  margin: 1.35rem auto 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.publication-links {
  margin-top: 1.75rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button-link,
.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: "Google Sans", "Noto Sans", sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 160ms ease,
    opacity 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.button-link:hover,
.button-link:focus-visible,
.copy-button:hover,
.copy-button:focus-visible {
  transform: translateY(-1px);
}

.button-link {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(16, 38, 69, 0.18);
}

.button-link.button-link-secondary,
.copy-button {
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  border-color: rgba(20, 32, 51, 0.12);
  box-shadow: var(--shadow-soft);
}

.section-stack {
  display: grid;
  gap: 1.4rem;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(300px, 0.85fr);
  gap: 1.6rem;
  align-items: end;
}

.section-heading-compact {
  grid-template-columns: 1fr;
  gap: 0.35rem;
}

.section-title {
  margin: 0;
  font-family: "Google Sans", "Noto Sans", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.section-copy {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.panel-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.demo-card {
  padding: 1.55rem;
  display: grid;
  gap: 1rem;
}

.demo-card p,
.feature-demo-head p,
.figure-card figcaption {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.panel-card-failure {
  border-color: rgba(239, 124, 75, 0.2);
  box-shadow: 0 18px 44px rgba(239, 124, 75, 0.08);
}

.demo-head h3,
.figure-head h3,
.feature-demo-head h3 {
  margin: 0;
  font-family: "Google Sans", "Noto Sans", sans-serif;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.demo-head h3 {
  font-size: 1.26rem;
}

.feature-demo {
  gap: 1.2rem;
  padding: 1.7rem;
}

.feature-demo-head h3 {
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  margin-bottom: 0.55rem;
}

.video-shell {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000000;
  border: 1px solid rgba(20, 32, 51, 0.1);
  aspect-ratio: 16 / 9;
}

.video-shell-feature {
  aspect-ratio: 16 / 9;
}

.video-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.secondary-demo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.secondary-demo {
  align-content: start;
}

.figure-card {
  padding: 1.35rem;
}

.figure-card img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-lg) - 2px);
  border: 1px solid rgba(20, 32, 51, 0.08);
  background: #ffffff;
}

.figure-card-main {
  padding-bottom: 1rem;
}

.figure-card-main figcaption,
.figure-card-trace figcaption {
  margin-top: 0.9rem;
}

.figure-card-trace {
  width: min(780px, 100%);
  margin: 0 auto;
}

.trace-stack {
  gap: 1.1rem;
}

.bibtex-section {
  padding-bottom: 3.5rem;
}

.bibtex-container {
  width: min(calc(100% - 2rem), 760px);
}

.bibtex-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.bibtex-card {
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.88);
}

.bibtex-card pre {
  margin: 0;
  padding: 1rem 1.05rem;
  overflow-x: auto;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #0d1729, #101b31 100%);
  border: 1px solid rgba(95, 130, 214, 0.16);
  color: #e5edff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.86rem;
  line-height: 1.68;
  white-space: pre-wrap;
  word-break: break-word;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(24, 70, 145, 0.22);
  outline-offset: 3px;
}

@media (max-width: 1040px) {
  .section-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

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

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

@media (max-width: 900px) {
  .header-inner {
    flex-direction: column;
    justify-content: center;
    padding: 0.8rem 0;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

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

  .site-logo {
    width: min(96px, 28vw);
    border-radius: 24px;
  }

  .demo-card,
  .feature-demo,
  .figure-card {
    padding: 1.2rem;
  }

  .secondary-demo-grid {
    grid-template-columns: 1fr;
  }

  .demo-head h3,
  .figure-head h3 {
    font-size: 1.2rem;
  }

  .feature-demo-head h3 {
    font-size: 1.6rem;
  }

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

  .copy-button,
  .button-link {
    width: 100%;
  }

  .publication-links {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .container,
  .bibtex-container {
    width: min(calc(100% - 1rem), var(--container));
  }

  .site-nav {
    gap: 0.85rem;
  }

  .site-nav a {
    font-size: 0.92rem;
  }

  .publication-authors,
  .hero-summary,
  .demo-card p,
  .feature-demo-head p,
  .figure-card figcaption {
    font-size: 0.96rem;
  }

  .bibtex-card pre {
    font-size: 0.8rem;
  }
}
