@font-face {
  font-family: "Geist";
  src: url("../fonts/22a5144ee8d83bca-s.p.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/7d4881bb7e1bf84d-s.p.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #10231a;
  --muted: #607168;
  --green: #2f8c67;
  --green-deep: #176b4b;
  --green-bright: #59ba86;
  --navy: #07347b;
  --paper: #fdfefc;
  --tint: #f0f7f3;
  --line: #d8e6dd;
  --orange: #ef9e4f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 74px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Geist", Arial, sans-serif;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { max-width: 100%; }
.container { width: min(1160px, calc(100% - 44px)); margin: 0 auto; }
.content-column { max-width: 1020px; }

.topnav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 max(24px, calc((100vw - 1160px) / 2));
  border-bottom: 1px solid rgba(216, 230, 221, .9);
  background: rgba(253, 254, 252, .9);
  backdrop-filter: blur(18px);
}
.wordmark { display: flex; align-items: center; gap: 11px; font-size: 14px; font-weight: 760; letter-spacing: -.02em; }
.wordmark-logo { width: auto; height: 31px; object-fit: contain; }
.navlinks { display: flex; align-items: center; gap: 16px; color: #53635a; font-size: 12px; font-weight: 650; }
.navlinks a { padding: 8px 0; transition: color .2s ease; }
.navlinks a:hover { color: var(--green); }

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 90px;
  text-align: center;
  background:
    radial-gradient(circle at 50% -10%, #eaf8ee 0, rgba(249, 253, 250, .96) 34%, var(--paper) 66%),
    linear-gradient(var(--paper), var(--paper));
}
.hero::before {
  position: absolute;
  inset: 0;
  opacity: .18;
  pointer-events: none;
  background-image: linear-gradient(rgba(47, 140, 103, .15) 1px, transparent 1px), linear-gradient(90deg, rgba(47, 140, 103, .15) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 62%);
  content: "";
}
.hero-glow { position: absolute; width: 420px; height: 420px; border-radius: 50%; filter: blur(95px); opacity: .17; pointer-events: none; }
.hero-glow-left { left: -230px; top: 110px; background: #61be87; }
.hero-glow-right { right: -230px; top: 180px; background: #5d8fc8; }
.hero-inner { position: relative; }
.card-kicker {
  color: var(--green);
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero h1 { max-width: 1160px; margin: 0 auto 26px; font-size: clamp(35px, 4vw, 52px); line-height: 1.1; letter-spacing: -.042em; font-weight: 520; }
.hero h1 span { display: inline; background: linear-gradient(95deg, #40a46f, #4489b8 52%, #365fc2); background-clip: text; -webkit-background-clip: text; color: transparent; }
.authors { display: grid; gap: 8px; max-width: 820px; margin: 0 auto; color: #2474aa; font-size: 19px; line-height: 1.6; }
.author-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
.authors a { text-underline-offset: 3px; transition: color .2s ease; }
.authors a:hover { color: var(--green-deep); text-decoration: underline; }
.authors sup { margin-left: 2px; font-size: .68em; line-height: 0; vertical-align: super; }
.affiliations { margin: 11px 0 0; color: #4b5c53; font-size: 19px; }
.author-note { margin: 5px 0 0; color: #87938c; font-size: 19px; }

.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 52px; row-gap: 18px; margin: 28px 0 34px; }
.chat-action { display: flex; align-items: center; gap: 11px; width: 220px; }
.chat-avatar { display: grid; flex: 0 0 48px; place-items: center; width: 48px; height: 48px; overflow: hidden; border: 1px solid #dfe7e1; border-radius: 12px; background: white; box-shadow: 0 8px 22px rgba(31, 63, 44, .12); }
.chat-avatar img { width: 29px; height: 29px; object-fit: contain; }
.chat-avatar-code { background: linear-gradient(145deg, #f7fff9, #e7f6ec); color: var(--green-deep); font-family: "Geist Mono", monospace; font-size: 13px; font-weight: 800; }
.chat-bubble { position: relative; display: grid; flex: 1 1; place-items: center; min-height: 50px; padding: 0 18px; border-radius: 13px; font-size: 14px; font-weight: 750; }
.chat-bubble-green { background: #95ec69; color: #14221b; box-shadow: 0 10px 25px rgba(58, 174, 75, .16); }
.chat-bubble-green::before { position: absolute; right: -8px; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 9px solid #95ec69; content: ""; }
.chat-bubble-white { border: 1px solid #d7e2da; background: white; color: #213129; box-shadow: 0 10px 25px rgba(31, 63, 44, .08); }
.chat-bubble-white::before { position: absolute; left: -9px; border-top: 8px solid transparent; border-right: 10px solid #d7e2da; border-bottom: 8px solid transparent; content: ""; }
.chat-bubble-white::after { position: absolute; left: -7px; border-top: 7px solid transparent; border-right: 9px solid white; border-bottom: 7px solid transparent; content: ""; }

.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; max-width: 900px; margin: 0 auto 48px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--line); box-shadow: 0 15px 40px rgba(30, 65, 43, .06); }
.hero-stats div { display: flex; flex-direction: column; gap: 3px; padding: 18px 14px; background: rgba(255, 255, 255, .92); }
.hero-stats strong { font-size: 23px; letter-spacing: -.035em; }
.hero-stats span { color: var(--muted); font-size: 11px; }

.paper-figure { margin: 44px auto 0; padding: 22px; border: 1px solid #d8e4dc; border-radius: 20px; background: white; box-shadow: 0 18px 50px rgba(30, 65, 43, .08); }
.paper-figure img { display: block; width: 100%; height: auto; border-radius: 10px; object-fit: contain; }
.paper-figure figcaption { max-width: 920px; margin: 17px auto 0; color: #697970; font-size: 18px; line-height: 1.5; text-align: center; }
.paper-figure-wide { max-width: 1120px; overflow: hidden; padding: 20px 30px; }
.paper-figure-wide img { margin-top: -5%; margin-bottom: -13%; }
.hero-cases { display: grid; gap: 24px; max-width: 1120px; margin: 30px auto 0; text-align: left; }
.hero-case { margin: 0; padding: 18px; border: 1px solid #d8e4dc; border-radius: 20px; background: white; box-shadow: 0 18px 50px rgba(30, 65, 43, .08); }
.hero-case-heading { padding: 5px 7px 18px; text-align: center; }
.hero-case-heading h2 { margin: 0; font-size: 28px; font-weight: 620; line-height: 1.2; letter-spacing: -.035em; }
.hero-case img { display: block; width: 100%; height: auto; border-radius: 12px; }

.section { padding: 104px 0; }
.section-heading { max-width: 1120px; margin: 0 auto 36px; text-align: center; }
.section-heading h2 { margin: 0; font-size: clamp(34px, 4.5vw, 54px); line-height: 1.08; letter-spacing: -.047em; }
.section-heading-caption { max-width: 1120px; margin: 15px auto 0; color: #4a5951; font-size: 17px; line-height: 1.65; }
.section-heading-description { max-width: 880px; margin: 18px auto 0; color: #45554c; font-size: 17px; line-height: 1.75; }
.section-heading + .paper-figure { margin-top: 0; }

.abstract-section { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--tint); }
.abstract-title { margin: 0 0 34px; font-size: 46px; line-height: 1.1; letter-spacing: -.04em; text-align: center; }
.abstract-text { max-width: 900px; margin: 0 auto; color: #4f5d55; font-size: 19px; line-height: 1.72; }
.abstract-text strong { color: #25382e; }
.abstract-section .paper-figure { max-width: 1020px; }
.teaser-figure { overflow: hidden; }
.teaser-figure img { margin-bottom: -30%; }
.teaser-figure figcaption { margin-top: 10px; }

.recipe-section { background: #fff; }
.recipe-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 13px; }
.recipe-card { min-height: 260px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(150deg, #fff, #f7fbf8); box-shadow: 0 14px 36px rgba(26, 67, 43, .055); }
.recipe-card > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #e4f3e9; color: var(--green-deep); font-family: "Geist Mono", monospace; font-size: 11px; font-weight: 800; }
.recipe-card h3 { margin: 32px 0 13px; font-size: 19px; line-height: 1.2; letter-spacing: -.035em; }
.recipe-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

.tint-section { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--tint); }
.paper-section .paper-figure { max-width: 1120px; }
#harness .paper-figure { overflow: hidden; }
#harness .paper-figure img { width: 135%; max-width: none; margin: -11.5% -22.5% -14% -12.5%; }
#data .paper-figure { overflow: hidden; }
#data .paper-figure img { width: 125%; max-width: none; margin: -8% -12.5% -7%; }
.feature-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-top: 24px; }
.feature-row article { padding: 21px; border-left: 3px solid var(--green); border-radius: 0 12px 12px 0; background: rgba(255, 255, 255, .72); }
.feature-row span { color: var(--green-deep); font-size: 13px; font-weight: 780; }
.feature-row p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

.data-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 1000px; margin: 26px auto 0; }
.data-stats div { display: flex; flex-direction: column; align-items: center; padding: 21px 12px; border: 1px solid var(--line); border-radius: 14px; background: #fbfdfb; }
.data-stats strong { color: var(--navy); font-size: 25px; letter-spacing: -.04em; }
.data-stats span { margin-top: 3px; color: var(--muted); font-size: 11px; }

.benchmark-section { border-top: 1px solid #dce3ef; border-bottom: 1px solid #dce3ef; background: #f6f8fc; }
#benchmark .paper-figure { overflow: hidden; }
#benchmark .paper-figure img { width: 130%; max-width: none; margin: -3% -18.5% -12% -11.5%; }
.benchmark-balance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 1000px; margin: 26px auto 0; }
.benchmark-balance > div { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100px; padding: 21px 12px; border: 1px solid var(--line); border-radius: 14px; background: #fbfdfb; }
.benchmark-values { display: flex; align-items: center; justify-content: center; gap: 9px; }
.benchmark-balance span { margin-top: 6px; color: var(--muted); font-size: 11px; }
.benchmark-balance strong { color: var(--navy); font-size: 18px; letter-spacing: -.025em; }
.benchmark-balance i { color: #a6afba; font-style: normal; }

.training-section { background: #fff; }
.training-figure { max-width: 1120px; margin-top: 0; }
#agent-training .training-figure img { margin-bottom: -5%; }
#agent-training .training-figure figcaption { margin-top: 10px; }
#image-training .training-figure { overflow: hidden; }
#image-training .training-figure img { width: 115%; max-width: none; margin: -6.5% -5% -8% -10%; }
#image-training .training-figure figcaption { margin-top: 10px; }
.stage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 1000px; margin: 24px auto 0; }
.stage-card { padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, .82); box-shadow: 0 14px 36px rgba(26, 67, 43, .055); }
.stage-card > span { color: var(--green-deep); font-family: "Geist Mono", monospace; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.stage-card h3 { margin: 12px 0 12px; font-size: 26px; line-height: 1.18; letter-spacing: -.04em; }
.stage-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.image-training-section .stage-card > span { color: var(--navy); }

.results-section { overflow: hidden; background: #fff; color: var(--ink); }
.light-heading .section-heading-caption { color: #4a5951; }
.result-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.result-cards article { min-height: 200px; padding: 23px; border: 1px solid var(--line); border-radius: 17px; background: #fbfdfb; box-shadow: 0 14px 36px rgba(26, 67, 43, .055); }
.result-cards span { color: var(--green-deep); font-family: "Geist Mono", monospace; font-size: 9px; letter-spacing: .07em; text-transform: uppercase; }
.result-cards strong { display: block; margin: 25px 0 11px; color: var(--ink); font-size: 28px; letter-spacing: -.05em; }
.result-cards p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }

.showcase-section { background: #e3f2e9; }
.carousel-shell { max-width: 1120px; margin: 0 auto; padding: 20px; border: 1px solid #c8dfd1; border-radius: 22px; background: rgba(255, 255, 255, .9); box-shadow: 0 22px 55px rgba(43, 93, 64, .09); color: var(--ink); }
.carousel-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 4px 16px; }
.carousel-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.carousel-tabs button { padding: 9px 13px; border: 1px solid #c8dacd; border-radius: 999px; background: white; color: #5a6f62; font-size: 11px; font-weight: 700; cursor: pointer; }
.carousel-tabs button.active { border-color: var(--green); background: var(--green); color: white; }
.carousel-counter { color: #71897b; font-family: "Geist Mono", monospace; font-size: 10px; letter-spacing: .14em; white-space: nowrap; }
.carousel-stage { position: relative; overflow: hidden; min-height: 420px; border-radius: 14px; background: white; }
.carousel-slide { margin: 0; animation: case-fade .38s ease both; }
.carousel-slide[hidden] { display: none; }
.carousel-arrow { position: absolute; top: 50%; z-index: 3; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 1px solid #c6dbce; border-radius: 50%; background: rgba(255, 255, 255, .94); color: #2c7654; font-size: 20px; cursor: pointer; box-shadow: 0 10px 28px rgba(30, 65, 43, .14); transform: translateY(-50%); transition: transform .2s ease; }
.carousel-arrow:hover { transform: translateY(-50%) scale(1.05); }
.carousel-prev { left: 14px; }
.carousel-next { right: 14px; }
.quantitative-carousel { border-color: var(--line); background: #fbfdfb; box-shadow: 0 18px 50px rgba(30, 65, 43, .08); }
.quantitative-carousel .carousel-toolbar { color: var(--ink); }
.quantitative-carousel .carousel-tabs button { border-color: #c8dacd; background: white; color: #5a6f62; }
.quantitative-carousel .carousel-tabs button.active { border-color: var(--green); background: var(--green); color: white; }
.quantitative-carousel .carousel-counter { color: #71897b; }
.quantitative-carousel .carousel-stage { min-height: 0; }
.quantitative-slide { display: grid; place-items: center; height: min(72vw, 780px); padding: 18px 56px; background: white; }
.quantitative-slide img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.qualitative-figure { max-width: 1120px; margin-top: 0; padding: 16px; }
@keyframes case-fade { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: translateX(0); } }

.bibtex-section { border-top: 1px solid var(--line); background: #fff; }
.bibtex-card { padding: 34px 38px; border: 1px solid #e1e8e3; border-radius: 16px; background: #f5f7f5; }
.bibtex-card pre { margin: 0; overflow-x: auto; color: #35463d; font-family: "Geist Mono", monospace; font-size: 14px; line-height: 1.75; white-space: pre; }

footer { padding: 34px 0; background: #09140e; color: white; }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; }
.footer-inner > div { display: flex; align-items: center; gap: 10px; }
.footer-logo { width: auto; height: 30px; object-fit: contain; }
.footer-inner strong { font-size: 12px; }
.footer-inner p { margin: 0; color: #7f9689; font-size: 10px; text-align: center; }
.footer-inner > a { color: #95aa9e; font-size: 10px; text-align: right; }

a:focus-visible, button:focus-visible { outline: 3px solid rgba(47, 140, 103, .35); outline-offset: 3px; }

@media (max-width: 950px) {
  .navlinks { display: none; }
  .hero { padding-top: 70px; }
  .recipe-grid, .feature-row, .result-cards { grid-template-columns: 1fr 1fr; }
  .stage-grid { grid-template-columns: 1fr; }
  .benchmark-balance { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-inner > div { justify-content: center; }
  .footer-inner > a { text-align: center; }
}

@media (max-width: 650px) {
  .container { width: min(100% - 28px, 1160px); }
  .topnav { height: 60px; padding: 0 14px; }
  .wordmark-logo { height: 27px; }
  .hero { padding: 56px 0 72px; }
  .hero h1 { font-size: 40px; }
  .authors { gap: 6px; font-size: 17px; }
  .author-row { gap: 6px 14px; }
  .affiliations, .author-note { font-size: 17px; }
  .hero-actions { column-gap: 18px; }
  .hero-stats, .data-stats { grid-template-columns: 1fr 1fr; }
  .section { padding: 76px 0; }
  .section-heading h2 { font-size: 35px; }
  .abstract-title { font-size: 36px; }
  .abstract-text { font-size: 17px; line-height: 1.68; }
  .paper-figure, .paper-figure-wide { padding: 10px; border-radius: 14px; }
  .paper-figure figcaption { padding: 0 6px; font-size: 14px; }
  .hero-cases { gap: 16px; margin-top: 20px; }
  .hero-case { padding: 9px; border-radius: 14px; }
  .hero-case-heading { padding: 7px 5px 13px; }
  .hero-case-heading h2 { font-size: 21px; }
  .recipe-grid, .feature-row, .result-cards { grid-template-columns: 1fr; }
  .recipe-card { min-height: 220px; }
  .stage-card { padding: 22px; }
  .stage-card h3 { font-size: 24px; }
  .carousel-shell { padding: 10px; }
  .carousel-toolbar { align-items: flex-start; }
  .carousel-stage { min-height: 360px; }
  .carousel-arrow { width: 38px; height: 38px; font-size: 17px; }
  .carousel-prev { left: 7px; }
  .carousel-next { right: 7px; }
  .quantitative-slide { height: min(76vw, 520px); padding: 10px 34px; }
  .qualitative-figure { padding: 8px; }
  .bibtex-card { padding: 22px 18px; }
  .bibtex-card pre { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel-slide { animation: none; }
  .carousel-arrow { transition: none; }
}
