:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --bg-soft: #eef6f5;
  --ink: #16191f;
  --ink-muted: #5d6572;
  --ink-soft: #7c8490;
  --line: rgba(32, 41, 56, 0.12);
  --line-strong: rgba(32, 41, 56, 0.2);
  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --panel: rgba(255, 255, 255, 0.66);
  --panel-solid: #ffffff;
  --accent: #1f8f86;
  --accent-dark: #12645f;
  --accent-soft: rgba(31, 143, 134, 0.12);
  --blue: #2b6fae;
  --gold: #c98e24;
  --shadow: 0 24px 80px rgba(28, 47, 65, 0.14);
  --shadow-soft: 0 16px 46px rgba(28, 47, 65, 0.1);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --content: 1180px;
  --nav-height: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 3%, rgba(255, 210, 180, 0.48), transparent 30rem),
    radial-gradient(circle at 86% 4%, rgba(116, 206, 230, 0.38), transparent 31rem),
    radial-gradient(circle at 50% 34rem, rgba(158, 231, 220, 0.24), transparent 36rem),
    linear-gradient(180deg, #fbfcff 0%, #f5faf8 42%, #f7f4fb 100%);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(25, 36, 55, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 36, 55, 0.028) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 64%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 24rem, rgba(112, 219, 205, 0.22), transparent 26rem),
    radial-gradient(circle at 94% 42rem, rgba(198, 157, 243, 0.2), transparent 28rem);
  filter: blur(12px);
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button {
  font: inherit;
}

::selection {
  background: rgba(31, 143, 134, 0.2);
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 10px 14px;
  transform: translateY(-140%);
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  transition: transform 180ms var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 50;
  pointer-events: none;
}

.nav-shell {
  width: min(calc(100% - 32px), 1120px);
  min-height: 54px;
  margin: 0 auto;
  padding: 7px 9px 7px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-bottom-color: rgba(32, 41, 56, 0.14);
  border-radius: 999px;
  box-shadow: 0 14px 46px rgba(31, 44, 58, 0.12);
  backdrop-filter: blur(26px) saturate(1.28);
  -webkit-backdrop-filter: blur(26px) saturate(1.28);
}

.brand {
  flex: 0 0 auto;
  font-weight: 720;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 560;
  white-space: nowrap;
  transition: background 180ms var(--ease), color 180ms var(--ease);
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
}

.nav-links a.active {
  color: var(--ink);
  background: rgba(225, 215, 255, 0.72);
  box-shadow: none;
}

.nav-toggle {
  display: none;
  width: 38px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(18px) saturate(1.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  border-radius: 2px;
}

.section-wrap {
  width: min(calc(100% - 36px), var(--content));
  margin: 0 auto;
}

.section-block {
  padding: 76px 0 0;
}

section[id] {
  scroll-margin-top: 112px;
}

.section-wrap.compact {
  margin-top: 30px;
}

.hero {
  min-height: 100vh;
  padding: 132px 0 62px;
  display: grid;
  align-items: center;
  gap: 34px;
}

.hero-copy {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  hyphens: none;
  overflow-wrap: break-word;
  word-break: normal;
}

h1 {
  margin: 0;
  font-size: clamp(54px, 9vw, 112px);
  line-height: 0.96;
  letter-spacing: 0;
  font-weight: 820;
}

.hero h1 {
  display: inline-block;
  padding: 0.04em 0 0.1em;
  background: linear-gradient(96deg, #f08054 5%, #d94ea8 36%, #9b55ee 63%, #347fe8 96%);
  background-clip: text;
  color: var(--ink);
  line-height: 1.04;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: 0;
  font-weight: 800;
}

h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.24;
  letter-spacing: 0;
}

.subtitle {
  margin: 18px auto 0;
  max-width: 820px;
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.12;
  font-weight: 740;
  color: #252b34;
}

.authors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 8px;
  max-width: 900px;
  margin: 26px auto 0;
  font-size: 16px;
  font-weight: 650;
}

.author-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 2px;
  border-radius: 10px;
  cursor: help;
  outline: none;
}

.author-chip:not(:last-child)::after {
  content: ",";
}

.author-chip:hover,
.author-chip:focus {
  color: var(--accent-dark);
}

.author-chip:focus-visible {
  box-shadow: 0 0 0 3px rgba(80, 176, 164, 0.2);
}

.author-affiliation {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 10;
  width: max-content;
  max-width: min(280px, calc(100vw - 32px));
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 16px 38px rgba(32, 43, 55, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, 6px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  visibility: hidden;
  white-space: normal;
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
}

.author-affiliation::after {
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 10px;
  height: 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.84);
  content: "";
  transform: translateX(-50%) rotate(45deg);
}

.author-chip:hover .author-affiliation,
.author-chip:focus .author-affiliation,
.author-chip:focus-visible .author-affiliation {
  opacity: 1;
  transform: translate(-50%, 0);
  visibility: visible;
}

.button-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 19px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-bottom-color: rgba(32, 41, 56, 0.12);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 28px rgba(31, 44, 58, 0.08);
  backdrop-filter: blur(18px) saturate(1.16);
  -webkit-backdrop-filter: blur(18px) saturate(1.16);
  font-size: 14px;
  font-weight: 680;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background 180ms var(--ease);
}

.button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 38px rgba(31, 44, 58, 0.13);
}

.hero-poster {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.image-frame {
  overflow: hidden;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-bottom-color: rgba(32, 41, 56, 0.12);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(1.16);
  -webkit-backdrop-filter: blur(24px) saturate(1.16);
}

.image-frame img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid rgba(32, 41, 56, 0.08);
}

.hero-poster img {
  aspect-ratio: 2454 / 1114;
  object-fit: cover;
}

.glass-panel {
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-bottom-color: rgba(32, 41, 56, 0.12);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(26px) saturate(1.18);
  -webkit-backdrop-filter: blur(26px) saturate(1.18);
}

.tldr {
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 24px;
  align-items: center;
  padding: 22px 26px;
}

.tldr span {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.tldr p {
  margin: 0;
  color: #242a34;
  font-size: 20px;
  line-height: 1.42;
  font-weight: 650;
}

.section-heading {
  max-width: none;
  margin: 0 0 28px;
}

.section-heading.narrow {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading p:not(.section-kicker) {
  margin: 16px 0 0;
  color: var(--ink-muted);
  font-size: 18px;
}

.abstract-copy,
.results-copy,
.dataset-copy {
  color: #303844;
  font-size: 18px;
  line-height: 1.82;
}

.abstract-copy {
  padding: 26px 0 0;
  border-top: 1px solid var(--line);
}

.abstract-copy p,
.results-copy p,
.dataset-copy p {
  margin: 0 0 20px;
}

.abstract-copy p:last-child,
.results-copy p:last-child,
.dataset-copy p:last-child {
  margin-bottom: 0;
}

.demo-panel {
  padding: 20px;
  text-align: left;
}

.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  text-align: left;
}

.panel-title-row h3 {
  flex: 1 1 auto;
}

.native-demo {
  display: grid;
  gap: 18px;
}

.demo-result-shell {
  position: relative;
  overflow: hidden;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-bottom-color: rgba(32, 41, 56, 0.12);
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 235, 218, 0.58), transparent 26rem),
    radial-gradient(circle at 92% 6%, rgba(224, 216, 255, 0.48), transparent 26rem),
    rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 18px 54px rgba(31, 44, 58, 0.1);
  backdrop-filter: blur(22px) saturate(1.14);
  -webkit-backdrop-filter: blur(22px) saturate(1.14);
}

.demo-result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.demo-count-block {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
}

.demo-count-block span {
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 780;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.demo-count-block strong {
  display: inline-block;
  min-width: 2.6ch;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.95;
  letter-spacing: 0;
  font-weight: 820;
}

.demo-view-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-bottom-color: rgba(32, 41, 56, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.86);
}

.demo-view-tabs button {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  color: var(--ink-muted);
  background: transparent;
  font-size: 14px;
  font-weight: 760;
  cursor: pointer;
  transition: background 160ms var(--ease), color 160ms var(--ease), opacity 160ms var(--ease);
}

.demo-view-tabs button:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.58);
}

.demo-view-tabs button[aria-selected="true"] {
  color: var(--ink);
  background: rgba(225, 215, 255, 0.82);
}

.native-demo.is-running .demo-view-tabs button {
  opacity: 0.58;
  pointer-events: none;
}

.demo-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  color: var(--ink-muted);
  font-size: 14px;
}

.demo-meta-row span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-meta-row span:last-child {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(32, 41, 56, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  font-size: 12px;
  font-weight: 700;
}

.native-demo.is-running .demo-meta-row span:last-child::before {
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 999px;
  background: #9b55ee;
  content: "";
  animation: pulse-dot 900ms ease-in-out infinite;
}

.demo-visual-stage {
  position: relative;
  overflow: hidden;
  height: clamp(360px, 36vw, 500px);
  border: 1px solid rgba(32, 41, 56, 0.12);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(248, 252, 250, 0.7)),
    rgba(255, 255, 255, 0.62);
}

.demo-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 34px;
  text-align: center;
  color: var(--ink-muted);
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 225, 205, 0.56), transparent 20rem),
    radial-gradient(circle at 82% 16%, rgba(206, 232, 255, 0.54), transparent 22rem);
}

.demo-placeholder span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #f08054, #9b55ee 58%, #347fe8);
  font-weight: 820;
  letter-spacing: 0;
  box-shadow: 0 18px 44px rgba(84, 80, 151, 0.18);
}

.demo-placeholder strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
}

.demo-placeholder p {
  max-width: 420px;
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

.demo-preview {
  position: relative;
  overflow: hidden;
  height: 100%;
  border-radius: 20px;
  background: #fff;
}

.demo-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(0.92);
}

.demo-run-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.36);
  backdrop-filter: blur(16px) saturate(1.04);
  -webkit-backdrop-filter: blur(16px) saturate(1.04);
}

.demo-run-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(100%, 360px);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-bottom-color: rgba(32, 41, 56, 0.12);
  border-radius: 24px;
  color: var(--ink-muted);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 70px rgba(31, 44, 58, 0.14);
  text-align: center;
}

.demo-run-card strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
}

.demo-spinner {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 3px solid rgba(155, 85, 238, 0.18);
  border-top-color: rgba(155, 85, 238, 0.78);
  animation: spin 900ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.demo-result-html {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 10px;
}

.demo-result-html .ca-visual-shell {
  width: 100%;
  height: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  place-items: center;
}

.demo-result-html .ca-visual-toolbar {
  display: none;
}

.demo-result-html .ca-image-frame {
  position: relative;
  overflow: visible;
  max-width: 100%;
  max-height: 100%;
  border-radius: 0;
  background: transparent;
}

.demo-result-html .ca-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  object-fit: contain;
}

.demo-result-html .ca-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.demo-result-html .ca-point {
  position: absolute;
  width: 7px;
  height: 7px;
  transform: translate(-50%, -50%);
  border: 1.5px solid rgba(255, 255, 255, 0.96);
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.24), 0 5px 14px rgba(78, 60, 105, 0.24);
}

.demo-result-html .ca-point-rsc {
  background: #2da99d;
}

.demo-result-html .ca-point-pdc {
  background: #f08054;
}

.demo-result-html .ca-box {
  position: absolute;
  border: 2px solid rgba(45, 169, 157, 0.88);
  border-radius: 6px;
  background: rgba(45, 169, 157, 0.12);
  box-shadow: 0 8px 28px rgba(45, 169, 157, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.76);
}

.demo-result-html .ca-no-points {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 10px;
  border: 1px solid rgba(32, 41, 56, 0.12);
  border-radius: 999px;
  color: var(--ink-muted);
  background: rgba(255, 255, 255, 0.86);
  font-size: 12px;
}

.demo-sample-rail {
  display: flex;
  align-items: stretch;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.demo-custom-card {
  flex: 0 0 308px;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-bottom-color: rgba(32, 41, 56, 0.12);
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 230, 213, 0.55), transparent 11rem),
    radial-gradient(circle at 100% 12%, rgba(230, 222, 255, 0.62), transparent 12rem),
    rgba(255, 255, 255, 0.6);
  box-shadow: 0 12px 34px rgba(31, 44, 58, 0.09);
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease);
}

.demo-custom-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 42px rgba(31, 44, 58, 0.12);
}

.demo-custom-card[aria-selected="true"] {
  border-color: rgba(155, 85, 238, 0.34);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 230, 213, 0.58), transparent 11rem),
    radial-gradient(circle at 100% 12%, rgba(225, 215, 255, 0.78), transparent 12rem),
    rgba(247, 244, 255, 0.72);
}

.demo-custom-upload {
  position: relative;
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  min-height: 126px;
  overflow: hidden;
  border: 1px dashed rgba(32, 41, 56, 0.18);
  border-radius: 16px;
  color: var(--ink-muted);
  background: rgba(255, 255, 255, 0.56);
  cursor: pointer;
  text-align: center;
  transition: border-color 160ms var(--ease), background 160ms var(--ease);
}

.demo-custom-upload:hover,
.demo-custom-upload.is-dragging {
  border-color: rgba(155, 85, 238, 0.46);
  background: rgba(255, 255, 255, 0.78);
}

.demo-custom-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.demo-custom-upload:focus-visible {
  outline: none;
  border-color: rgba(155, 85, 238, 0.5);
  box-shadow: 0 0 0 4px rgba(155, 85, 238, 0.1);
}

.demo-custom-upload img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.demo-custom-upload img[hidden] {
  display: none;
}

.demo-custom-upload.has-image {
  border-style: solid;
}

.demo-custom-upload.has-image::after {
  position: absolute;
  inset: auto 8px 8px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(20, 26, 36, 0.58);
  content: "Change";
  font-size: 11px;
  font-weight: 760;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.demo-upload-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(32, 41, 56, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.demo-upload-mark::before {
  color: var(--ink);
  content: "+";
  font-size: 24px;
  font-weight: 520;
  line-height: 1;
}

.demo-custom-upload strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.1;
}

.demo-custom-upload small {
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 680;
}

.demo-custom-upload.has-image .demo-upload-mark,
.demo-custom-upload.has-image strong,
.demo-custom-upload.has-image small {
  opacity: 0;
}

.demo-custom-query {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.demo-custom-query span {
  margin-left: 4px;
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.demo-custom-query input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(32, 41, 56, 0.12);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 160ms var(--ease), background 160ms var(--ease), box-shadow 160ms var(--ease);
}

.demo-custom-query input:focus {
  border-color: rgba(155, 85, 238, 0.42);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0 0 4px rgba(155, 85, 238, 0.1);
}

.demo-custom-run {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-bottom-color: rgba(32, 41, 56, 0.12);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 10px 28px rgba(31, 44, 58, 0.08);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 760;
  transition: transform 160ms var(--ease), background 160ms var(--ease), box-shadow 160ms var(--ease);
}

.demo-custom-run:hover,
.demo-custom-run.is-ready {
  background: rgba(255, 255, 255, 0.9);
}

.demo-custom-run:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(31, 44, 58, 0.11);
}

.native-demo.is-running .demo-custom-run {
  opacity: 0.62;
  pointer-events: none;
}

.demo-sample-card {
  flex: 0 0 168px;
  scroll-snap-align: start;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-bottom-color: rgba(32, 41, 56, 0.12);
  border-radius: 22px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 10px 30px rgba(31, 44, 58, 0.08);
  cursor: pointer;
  text-align: left;
  transition: transform 180ms var(--ease), background 180ms var(--ease), box-shadow 180ms var(--ease), border-color 180ms var(--ease);
}

.demo-sample-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 42px rgba(31, 44, 58, 0.12);
}

.demo-sample-card[aria-selected="true"] {
  border-color: rgba(155, 85, 238, 0.34);
  background: rgba(240, 236, 255, 0.78);
}

.demo-sample-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(32, 41, 56, 0.08);
}

.demo-sample-card span {
  display: block;
  margin: 8px 4px 2px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 720;
  line-height: 1.25;
}

.demo-error {
  margin: -2px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(217, 86, 82, 0.2);
  border-radius: 16px;
  color: #9a312e;
  background: rgba(255, 241, 241, 0.7);
  font-size: 14px;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.fallback-text {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  text-align: left;
}

.figure-card {
  margin: 0;
  padding: 18px;
}

.figure-card + .figure-card {
  margin-top: 28px;
}

.figure-card figcaption {
  padding: 14px 6px 2px;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.55;
}

.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.glass-card,
.resource-card,
.stat-card,
.metric {
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-bottom-color: rgba(32, 41, 56, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.64);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px) saturate(1.14);
  -webkit-backdrop-filter: blur(22px) saturate(1.14);
}

.glass-card {
  min-height: 218px;
  padding: 28px;
}

.glass-card p,
.resource-card p {
  margin: 12px 0 0;
  color: var(--ink-muted);
}

.card-index {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.dataset-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(360px, 0.45fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 22px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-bottom-color: rgba(32, 41, 56, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.64);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px) saturate(1.14);
  -webkit-backdrop-filter: blur(22px) saturate(1.14);
}

.stat-card {
  padding: 10px 14px;
  border-right: 1px solid rgba(32, 41, 56, 0.1);
  box-shadow: none;
  background: transparent;
  border-top: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.stat-card:last-child {
  border-right: 0;
}

.stat-card strong {
  display: block;
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0;
}

.stat-card span {
  display: block;
  margin-top: 7px;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 680;
}

.scroll-figure {
  overflow-x: auto;
}

.scroll-figure img {
  min-width: 760px;
}

.data-note {
  margin-top: 22px;
  padding: 28px;
}

.data-note h3 {
  margin-bottom: 10px;
}

.data-note p {
  margin: 0 0 14px;
  color: var(--ink-muted);
}

.data-note .button-row {
  justify-content: flex-start;
  margin-top: 20px;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.metric {
  padding: 18px 18px 20px;
}

.metric span {
  display: block;
  min-height: 42px;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.28;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.metric strong {
  display: block;
  margin-top: 8px;
  color: var(--accent-dark);
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0;
}

.results-copy {
  margin-bottom: 22px;
}

.gallery-shell {
  padding: 22px;
}

.gallery-description {
  max-width: 760px;
  margin: 0 0 18px;
  color: var(--ink-muted);
}

.segmented-control {
  display: flex;
  gap: 6px;
  padding: 6px;
  margin-bottom: 18px;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-bottom-color: rgba(32, 41, 56, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px) saturate(1.16);
  -webkit-backdrop-filter: blur(18px) saturate(1.16);
}

.segmented-control button {
  min-height: 38px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  color: var(--ink-muted);
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.segmented-control button[aria-selected="true"] {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 24px rgba(31, 44, 58, 0.1);
}

.gallery-figure {
  margin: 0;
}

.gallery-figure a {
  display: block;
  overflow-x: auto;
  padding: 10px;
  border: 1px solid rgba(32, 41, 56, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
}

.gallery-figure img {
  width: 100%;
  min-width: 760px;
  min-height: 360px;
  object-fit: contain;
  border-radius: var(--radius-md);
  border: 1px solid rgba(32, 41, 56, 0.08);
}

.gallery-figure figcaption {
  margin: 12px 0 10px;
  color: var(--ink-muted);
  font-size: 15px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-dark);
  font-weight: 720;
}

.text-link::after {
  content: "↗";
  transition: transform 180ms var(--ease);
}

.text-link:hover::after {
  transform: translate(2px, -2px);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.resource-card {
  position: relative;
  min-height: 224px;
  padding: 26px 26px 82px;
}

.resource-card .text-link {
  position: absolute;
  right: 24px;
  bottom: 22px;
  min-height: 40px;
  padding: 0 10px 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-bottom-color: rgba(32, 41, 56, 0.12);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 10px 28px rgba(31, 44, 58, 0.08);
  backdrop-filter: blur(18px) saturate(1.16);
  -webkit-backdrop-filter: blur(18px) saturate(1.16);
  font-size: 14px;
  font-weight: 700;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background 180ms var(--ease);
}

.resource-card .text-link::after {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-left: 8px;
  border-radius: 999px;
  background: rgba(31, 143, 134, 0.12);
  color: var(--accent-dark);
  font-size: 14px;
}

.resource-card .text-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 38px rgba(31, 44, 58, 0.13);
}

.citation-card {
  position: relative;
  width: 100%;
  padding: 28px;
}

.copy-button {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 1;
}

pre {
  margin: 0;
  padding: 60px 0 0;
  overflow-x: auto;
  color: #202633;
  font-size: 14px;
  line-height: 1.62;
}

code {
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

.site-footer {
  margin-top: 82px;
  padding: 38px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: var(--ink);
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 72px 22px 24px;
  background: rgba(11, 15, 22, 0.82);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(100%, 1600px);
  max-height: calc(100vh - 112px);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 90ms;
}

.delay-2 {
  transition-delay: 160ms;
}

.delay-3 {
  transition-delay: 230ms;
}

@media (max-width: 980px) {
  .nav-shell {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    width: 100%;
    padding-top: 6px;
  }

  .nav-shell.open .nav-links {
    display: flex;
  }

  .hero {
    padding-top: 116px;
  }

  .dataset-intro,
  .pipeline-grid,
  .metric-strip,
  .resource-grid {
    grid-template-columns: 1fr;
  }

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

  .metric span {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  :root {
    --nav-height: 64px;
  }

  body {
    font-size: 15px;
  }

  .section-wrap {
    width: min(calc(100% - 24px), var(--content));
  }

  .section-block {
    padding-top: 58px;
  }

  .site-header {
    top: 10px;
  }

  .nav-shell {
    width: min(calc(100% - 20px), 1120px);
    padding-left: 12px;
  }

  .nav-links {
    gap: 2px;
  }

  .nav-links a {
    padding: 0 10px;
  }

  .hero {
    min-height: auto;
    padding: 104px 0 42px;
  }

  h1 {
    font-size: 54px;
  }

  .subtitle {
    font-size: 25px;
  }

  .abstract-copy,
  .results-copy,
  .dataset-copy {
    font-size: 16px;
  }

  .authors {
    font-size: 15px;
  }

  .author-affiliation {
    bottom: auto;
    top: calc(100% + 8px);
    transform: translate(-50%, -4px);
  }

  .author-affiliation::after {
    top: -5px;
    bottom: auto;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.72);
    border-left: 1px solid rgba(255, 255, 255, 0.72);
  }

  .author-chip:hover .author-affiliation,
  .author-chip:focus .author-affiliation,
  .author-chip:focus-visible .author-affiliation {
    transform: translate(-50%, 0);
  }

  .button-row {
    justify-content: center;
  }

  .tldr {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px;
  }

  .tldr p {
    font-size: 17px;
  }

  .panel-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .panel-title-row .button {
    margin-top: 0;
  }

  .demo-result-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .demo-view-tabs {
    width: 100%;
    overflow-x: auto;
  }

  .demo-view-tabs button {
    flex: 1 0 auto;
  }

  .demo-visual-stage {
    height: 340px;
  }

  .demo-preview,
  .demo-preview img {
    height: 100%;
  }

  .demo-sample-card {
    flex-basis: 146px;
  }

  .demo-custom-card {
    flex-basis: 280px;
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .demo-custom-upload {
    min-height: 118px;
  }

  .stat-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 6px 14px;
  }

  .stat-card {
    border-right: 0;
    border-bottom: 1px solid rgba(32, 41, 56, 0.1);
    padding: 13px 4px;
  }

  .stat-card:last-child {
    border-bottom: 0;
  }

  .stat-card strong {
    font-size: 30px;
  }

  .gallery-figure img {
    min-height: 260px;
  }

  .copy-button {
    position: static;
    margin-bottom: 14px;
  }

  pre {
    padding-top: 0;
    font-size: 12px;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 46px;
  }

  h2 {
    font-size: 32px;
  }

  .button {
    width: 100%;
  }

  .hero .button {
    width: calc(50% - 5px);
  }

  .glass-card,
  .resource-card,
  .data-note,
  .demo-panel,
  .gallery-shell,
  .citation-card {
    padding: 18px;
  }

  .resource-card {
    padding-bottom: 74px;
  }

  .resource-card .text-link {
    right: 18px;
    bottom: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
