:root {
  --bg: #07111f;
  --bg-soft: #0d1d31;
  --paper: #ffffff;
  --ink: #101828;
  --muted: #667085;
  --line: #e6edf5;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --green: #22c55e;
  --orange: #f59e0b;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f8fbff;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(7, 17, 31, 0.78);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.02em; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.35);
}
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 0.92rem; color: rgba(255,255,255,0.82); }
.nav-links a:hover { color: #fff; }
.nav-toggle { display: none; }

.hero {
  color: #fff;
  background:
    radial-gradient(circle at 12% 15%, rgba(34, 197, 94, 0.24), transparent 28%),
    radial-gradient(circle at 85% 25%, rgba(6, 182, 212, 0.27), transparent 24%),
    linear-gradient(135deg, #06101e 0%, #0a1930 55%, #081321 100%);
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 54px;
  align-items: center;
  padding: 92px 0 84px;
}
.eyebrow, .section-kicker {
  margin: 0 0 14px;
  color: var(--cyan);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  font-size: clamp(2.5rem, 6vw, 5.35rem);
  line-height: 0.96;
  letter-spacing: -0.065em;
  margin-bottom: 24px;
}
h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; letter-spacing: -0.045em; margin-bottom: 18px; }
h3 { font-size: 1.28rem; line-height: 1.18; letter-spacing: -0.025em; margin-bottom: 10px; }
.hero-subtitle { color: rgba(255,255,255,0.78); font-size: 1.19rem; max-width: 720px; }
.authors { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 22px; font-weight: 600; color: rgba(255,255,255,0.92); }
.authors a { border-bottom: 1px solid rgba(255,255,255,0.25); }
.affiliation { color: rgba(255,255,255,0.62); margin: 10px 0 0; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.20);
  background: rgba(255,255,255,0.08);
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}
.button:hover { transform: translateY(-2px); background: rgba(255,255,255,0.13); border-color: rgba(255,255,255,0.35); }
.button.primary { background: linear-gradient(135deg, var(--cyan), var(--blue)); border: none; box-shadow: 0 18px 44px rgba(6, 182, 212, 0.27); }

.card-glow { position: relative; }
.card-glow::before {
  content: "";
  position: absolute;
  inset: -14px;
  background: linear-gradient(135deg, rgba(6,182,212,0.42), rgba(34,197,94,0.2), rgba(245,158,11,0.25));
  filter: blur(30px);
  opacity: 0.9;
  z-index: 0;
}
.hero-visual { z-index: 1; }
.visual-stack {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 26px 86px rgba(0,0,0,0.38);
}
.visual-stack img { width: 100%; background: #fff; }
.floating-panel {
  position: absolute;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(7, 17, 31, 0.84);
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 12px 28px rgba(0,0,0,0.26);
  backdrop-filter: blur(10px);
}
.floating-panel .metric-label { display: block; color: rgba(255,255,255,0.62); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; }
.floating-panel strong { display: block; font-size: 0.95rem; }
.top-left { top: 18px; left: 18px; }
.bottom-right { bottom: 18px; right: 18px; }

.section { padding: 92px 0; }
.section.slim { padding: 76px 0; background: #fff; }
.two-col { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.prose { color: #475467; font-size: 1.07rem; }
.prose.compact { font-size: 0.96rem; }
.centered-heading { text-align: center; width: min(900px, 100%); margin: 0 auto 44px; }
.centered-heading.narrow { width: min(790px, 100%); }
.centered-heading p { color: #667085; }

.highlight-section { background: linear-gradient(180deg, #f8fbff, #eef6ff); }
.highlight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.highlight-card, .method-card, .formula-card, .figure-card, .mini-result, .metric-card, .bib-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}
.highlight-card { padding: 30px; position: relative; overflow: hidden; }
.highlight-card::after {
  content: "";
  position: absolute;
  right: -46px;
  top: -46px;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.10);
}
.icon-chip, .pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.icon-chip {
  width: 44px;
  height: 44px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  margin-bottom: 24px;
}
.pill {
  padding: 7px 11px;
  color: #075985;
  background: #e0f2fe;
  font-size: 0.74rem;
  text-transform: uppercase;
}
.highlight-card p, .method-card p, .mini-result p, .metric-card p, .formula-card p, figcaption { color: #667085; }

.method-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; align-items: stretch; }
.method-card { padding: 22px; overflow: hidden; display: flex; flex-direction: column; gap: 18px; }
.method-card.large { grid-column: 1 / -1; display: grid; grid-template-columns: 0.78fr 1.22fr; align-items: center; }
.method-card img { border-radius: 18px; border: 1px solid var(--line); background: #fff; }
.method-text { padding: 8px; }
.formula-card {
  margin-top: 26px;
  padding: 28px;
  display: grid;
  grid-template-columns: 0.8fr 1.4fr 1fr;
  gap: 26px;
  align-items: center;
}
.formula-block {
  font-size: 1.02rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 18px 18px 10px;
  overflow-x: auto;
}

.results { background: #fff; }
.figure-card { padding: 18px; }
.figure-card.wide img, .figure-card img, .mini-result img { border-radius: 18px; border: 1px solid var(--line); background: #fff; }
figcaption { margin: 14px 4px 0; font-size: 0.94rem; }
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 24px; }
.mini-result { padding: 22px; }
.mini-result img { margin-top: 18px; width: 100%; }

.sim2real { background: linear-gradient(180deg, #f8fbff, #eef6ff); }
.split-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; margin-bottom: 24px; }
.real-grid { display: grid; grid-template-columns: 0.88fr 1.12fr; gap: 24px; align-items: stretch; }
.figure-card.tall img { height: 100%; object-fit: contain; }
.metric-card { padding: 30px; }
.table-wrap { overflow-x: auto; margin: 22px 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
th, td { padding: 14px 12px; border-bottom: 1px solid #e5edf7; text-align: left; white-space: nowrap; }
th { color: #475467; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; }
.winner td { font-weight: 800; color: #064e3b; background: #ecfdf5; }
.winner td:first-child { border-radius: 12px 0 0 12px; }
.winner td:last-child { border-radius: 0 12px 12px 0; }
.note { border-left: 4px solid var(--green); padding-left: 16px; }

.bib-wrap { display: grid; grid-template-columns: 0.42fr 1fr; gap: 34px; align-items: start; }
.bib-card { position: relative; padding: 0; overflow: hidden; background: #07111f; border-color: rgba(255,255,255,0.08); }
pre { margin: 0; padding: 28px; overflow-x: auto; color: #dbeafe; font-family: "JetBrains Mono", monospace; font-size: 0.92rem; line-height: 1.55; }
.copy-button {
  position: absolute;
  right: 14px;
  top: 14px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 8px 14px;
  color: #fff;
  background: rgba(255,255,255,0.08);
  font-weight: 800;
  cursor: pointer;
}
.copy-button:hover { background: rgba(255,255,255,0.16); }

.footer { padding: 36px 0; color: rgba(255,255,255,0.72); background: #07111f; }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.footer a { color: #fff; font-weight: 700; }

@media (max-width: 980px) {
  .hero-grid, .two-col, .method-card.large, .formula-card, .split-panel, .real-grid, .bib-wrap { grid-template-columns: 1fr; }
  .hero-grid { padding: 74px 0 66px; }
  .highlight-grid, .result-grid, .method-grid { grid-template-columns: 1fr; }
  .method-card.large { display: flex; }
}

@media (max-width: 720px) {
  .wrap { width: min(100% - 28px, 1160px); }
  .nav-toggle {
    display: inline-flex;
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
    background: rgba(255,255,255,0.08);
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 800;
  }
  .nav-links {
    display: none;
    position: absolute;
    left: 14px;
    right: 14px;
    top: 60px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(7, 17, 31, 0.96);
    border: 1px solid rgba(255,255,255,0.10);
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .nav-links.open { display: flex; }
  .section { padding: 66px 0; }
  .section.slim { padding: 56px 0; }
  .floating-panel { display: none; }
  h1 { font-size: clamp(2.25rem, 13vw, 3.8rem); }
  h2 { font-size: clamp(1.8rem, 9vw, 2.6rem); }
  .button-row { align-items: stretch; }
  .button { width: 100%; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
  th, td { padding: 11px 10px; }
}


.hero-video-layout .hero-stack {
  position: relative;
  padding: 86px 0 76px;
}
.hero-copy-centered {
  text-align: center;
  width: min(980px, 100%);
  margin: 0 auto 34px;
}
.hero-copy-centered .hero-subtitle,
.hero-copy-centered .hero-context {
  margin-left: auto;
  margin-right: auto;
}
.hero-context {
  color: rgba(255,255,255,0.82);
  font-size: 1.02rem;
  max-width: 860px;
  margin-top: 18px;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 24px 0 2px;
}
.hero-tags span {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  color: #eff6ff;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.16);
}
.hero-media-shell {
  width: min(1060px, 100%);
  margin: 0 auto;
  z-index: 1;
}
.hero-media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 26px 86px rgba(0,0,0,0.38);
}
.hero-media video {
  width: 100%;
  display: block;
  background: #050b15;
  max-height: 72vh;
}
.media-caption-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  background: rgba(7, 17, 31, 0.92);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.media-caption-bar strong {
  font-size: 1rem;
}
.caption-label {
  display: block;
  color: rgba(255,255,255,0.62);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.media-caption-bar p {
  color: rgba(255,255,255,0.75);
  margin: 0;
  max-width: 440px;
}
.single-note-card {
  margin-top: 24px;
  padding: 24px 28px;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}
.single-note-card p { color: #667085; margin-bottom: 0; }
.sim2real-hero-figure img {
  width: 100%;
}

@media (max-width: 980px) {
  .media-caption-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .hero-video-layout .hero-stack { padding: 72px 0 62px; }
  .hero-tags { justify-content: flex-start; }
  .hero-copy-centered { text-align: left; }
  .hero-copy-centered .hero-subtitle,
  .hero-copy-centered .hero-context { margin-left: 0; margin-right: 0; }
  .media-caption-bar { padding: 16px 16px 18px; }
}

.footer p a {
  color: #fff;
  font-weight: 800;
  border-bottom: 1px solid rgba(255,255,255,0.45);
}
.footer p a:hover {
  border-bottom-color: #fff;
}
