:root{
  --bg: #f8fbff;
  --bg2: #eef6ff;
  --card: rgba(255,255,255,.82);
  --card-strong: #ffffff;
  --text: #0b1220;
  --muted: #475569;
  --border: rgba(15,23,42,.12);
  --accent: #2563eb;
  --accent2: #06b6d4;
  --shadow: 0 16px 40px rgba(2,6,23,.10);
  --shadow2: 0 6px 18px rgba(2,6,23,.08);
  --radius: 14px;
  --max: 1120px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(1200px 600px at 18% 0%, rgba(37,99,235,.18), transparent 60%),
              radial-gradient(900px 500px at 92% 10%, rgba(6,182,212,.14), transparent 55%),
              linear-gradient(180deg, var(--bg), var(--bg2));
  color:var(--text);
  line-height:1.55;
}

a{color:var(--accent); text-decoration: none;}
a:hover{text-decoration: underline;}
.btn:hover,.nav__link:hover,.brand:hover,.authors__item a:hover{text-decoration:none;}
.container{max-width:var(--max); margin:0 auto; padding:0 20px;}

.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248,251,255,.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 28px rgba(2,6,23,.06);
}
.topbar__inner{display:flex; align-items:center; justify-content:space-between; padding:12px 0;}
.brand{font-weight:700; text-decoration:none; letter-spacing:.2px; color: var(--text);}
.nav{display:flex; gap:14px; flex-wrap:wrap; justify-content:flex-end;}
.nav__link{color:var(--muted); text-decoration:none; font-size:14px; padding:6px 8px; border-radius:10px;}
.nav__link:hover{color:var(--text); background: rgba(37,99,235,.08);}

.hero{padding:52px 0 28px;}
.hero .container{text-align:center;}
.hero .abstract{text-align:left;}
.title{font-size: clamp(28px, 4vw, 44px); line-height:1.1; margin:0 0 10px;}
.authors{margin:0; color:var(--muted); font-size:16px;}
.authors__item a{color:var(--text); text-decoration:none; border-bottom:1px solid rgba(37,99,235,.35);}
.authors__item a:hover{border-bottom-color:var(--accent2);}
.authors__sep{opacity:.55; padding:0 6px;}
.authors__affil{
  font-size: 12px;
  vertical-align: super;
  margin-left: 3px;
  color: var(--muted);
}
.authors__note{
  font-size: 12px;
  vertical-align: super;
  margin-left: 2px;
  color: var(--muted);
}
.affils{margin:10px 0 18px; color:var(--muted);}
.affils__sep{opacity:.55; padding:0 8px;}
.affils__item sup{margin-right:6px; font-size:12px; vertical-align: super;}
.note-marker{
  font-size: inherit;
  vertical-align: baseline;
  margin-right: 6px;
  color: var(--muted);
}

.cta{display:flex; gap:10px; flex-wrap:wrap; margin:14px 0 22px; justify-content:center;}
.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding:10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.82);
  color: var(--text);
  text-decoration:none;
  box-shadow: var(--shadow2);
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.btn:hover{transform: translateY(-1px); background: var(--card-strong); border-color: rgba(37,99,235,.30);}
.btn:active{transform: translateY(0px);}
.btn--small{padding:8px 12px; font-size:14px; cursor:pointer;}
.btn__icon{width:18px; height:18px; display:inline-block; flex:0 0 auto;}

.hero-demo{
  max-width: 1040px;
  margin: 14px auto 18px;
  padding: 16px;
}

.section{padding:36px 0;}
.section--alt{background: rgba(37,99,235,.04); border-top:1px solid var(--border); border-bottom:1px solid var(--border);}
.section__header{margin-bottom:14px; text-align:center;}
.h2{margin:0 0 6px; font-size:26px;}
.h3{margin:0 0 8px; font-size:18px;}
.muted{color:var(--muted);}

.grid{display:grid; gap:16px;}
.grid.two{grid-template-columns: 1.1fr .9fr;}
.grid.three{grid-template-columns: repeat(3, 1fr);}
.grid.one{grid-template-columns: 1fr;}
.grid.videos4{grid-template-columns: repeat(2, 1fr);}
.grid.results6{grid-template-columns: repeat(2, 1fr);}
@media (max-width: 980px){
  .grid.two{grid-template-columns: 1fr;}
  .grid.three{grid-template-columns: 1fr;}
  .grid.videos4{grid-template-columns: 1fr;}
  .grid.results6{grid-template-columns: 1fr;}
}

.card{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 16px;
  text-align: left;
  min-width: 0;
}
.card--flat{
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.card.note{margin-top:16px;}
.card > p{
  margin:0 0 12px;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  overflow-wrap: break-word;
}
.card > p:last-child{margin-bottom:0;}
.card .h2,.card .h3{text-align:left;}

.bullets{margin:10px 0 0; padding-left:18px; color:var(--muted);}
.callout{
  margin-top:12px;
  padding:12px 12px;
  border-radius: 12px;
  border: 1px dashed rgba(37,99,235,.28);
  background: rgba(37,99,235,.06);
  color: var(--muted);
}

.media{display:flex; flex-direction:column; gap:10px; min-width:0;}
.video-frame{
  width:100%;
  max-width:100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(15,23,42,.04);
  overflow: hidden;
  position: relative;
  clip-path: inset(0 round 12px);
}
.video{
  width:100%;
  max-width:100%;
  display:block;
  border: 0;
  border-radius: 12px;
  background: transparent;
  aspect-ratio: 16 / 9;
}
.video-frame > .video{
  border-radius: inherit;
}
.video--hero{aspect-ratio: 16 / 9;}
.caption{margin:0; color:var(--muted); font-size:14px; text-align:center;}

.figure{margin:14px 0 0;}
.figure__img{
  width:100%;
  height:auto;
  display:block;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(15,23,42,.03);
}

.code{
  margin:0;
  padding:14px;
  overflow:auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(248,250,252,.92);
}
code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  color: #0f172a;
}
.bibtex__bar{display:flex; justify-content:space-between; align-items:center; margin-bottom:10px;}
.bibtex__hint{color:var(--muted); font-size:14px;}

.footer{padding:22px 0 40px;}
.footer__inner{border-top:1px solid var(--border); padding-top:16px;}

:focus-visible{
  outline: 3px solid rgba(37,99,235,.32);
  outline-offset: 3px;
}
