:root {
  --paper: #f8faf9;
  --white: #fff;
  --ink: #172c29;
  --muted: #596c63;
  --green: #147d64;
  --green-dark: #0e604d;
  --green-light: #edf7f1;
  --line: #dfe7e2;
  --nav-height: 68px;
  --heading-font: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --body-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + 28px); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body-font); font-size: 16px; font-weight: 500; font-optical-sizing: auto; letter-spacing: -.01em; line-height: 1.6; }
button, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled, select:disabled { cursor: default; opacity: .45; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--green); }
button, select, a { touch-action: manipulation; }
:focus-visible { outline: 3px solid #539e8b; outline-offset: 4px; }
::selection { background: #cfe9dc; color: var(--ink); }
svg { display: block; flex-shrink: 0; width: 20px; height: 20px; }
img { max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--heading-font); }
.page-width { width: min(1080px, calc(100% - 64px)); margin-inline: auto; }
.section-width { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; left: 20px; top: -100px; z-index: 100; padding: 12px 20px; border-radius: 6px; background: var(--ink); color: white; }
.skip-link:focus { top: 10px; color: white; }

.site-header { position: sticky; top: 0; z-index: 30; height: var(--nav-height); border-bottom: 1px solid var(--line); background: rgb(248 250 249 / 96%); backdrop-filter: blur(14px); }
.site-nav { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--heading-font); font-size: 19px; font-weight: 800; letter-spacing: -.7px; }
.brand-mark { width: 26px; height: 26px; color: var(--green); }
.wordmark-version { color: var(--green); }
.nav-links { display: flex; align-items: center; gap: 30px; color: #425a4e; font-size: 14px; font-weight: 600; }
.nav-github { display: flex; gap: 13px; align-items: center; border-left: 1px solid var(--line); padding-left: 28px; color: var(--ink); }

.hero { padding-top: 58px; text-align: center; }
.venue-badge { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 21px; padding: 6px 13px; border: 1px solid #d1e4d8; border-radius: 30px; background: #eff6ef; color: #45684f; font-size: 14px; }
.status-dot { width: 6px; height: 6px; margin-right: 3px; border-radius: 50%; background: #5d9164; }
h1 { font-size: clamp(42px, 6vw, 70px); font-weight: 800; letter-spacing: -3.8px; line-height: 1.15; }
h1 > span:first-child { color: var(--green); }
.publication-subtitle { display: block; margin-top: 15px; font-size: clamp(23px, 3.1vw, 35px); font-weight: 650; letter-spacing: -1px; line-height: 1.35; }
.publication-authors { margin-top: 26px; font-size: 22px; font-weight: 600; letter-spacing: -.35px; line-height: 1.65; }
.author-block { display: inline-block; }
.publication-authors a { color: #356b58; text-decoration-color: #8bad9d; text-underline-offset: 4px; }
.publication-authors a:hover { color: var(--green-dark); text-decoration: underline; }
.publication-authors sup, .publication-affiliation sup { font-size: .65em; font-weight: 500; }
.publication-affiliation { margin-top: 4px; color: var(--muted); font-size: 20px; font-weight: 500; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 11px; padding: 11px 20px; border: 1px solid transparent; border-radius: 7px; font-size: 15px; font-weight: 600; transition: background .15s, border-color .15s; }
.button-secondary { border-color: var(--line); background: white; }
.button-secondary:hover { border-color: #a5c3b3; background: var(--green-light); }
.publication-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 26px; }
.publication-button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 9px; padding: 10px 22px; border: 1px solid #363636; border-radius: 999px; background: #363636; color: white; font-size: 17px; font-weight: 600; line-height: 1.4; }
.publication-button svg { width: 20px; height: 20px; }
.publication-button[href]:hover { border-color: #242424; background: #242424; color: white; }
.publication-pending:disabled { opacity: 1; }
.soon-label { padding-left: 5px; border-left: 1px solid #737373; color: #e2e2e2; font-size: 14px; font-weight: 500; }
.highlights { display: grid; grid-template-columns: 1fr 1fr 1.35fr; margin: 45px auto 0; padding: 23px 0; border-block: 1px solid var(--line); }
.highlights > div + div { border-left: 1px solid var(--line); }
.highlights strong { color: var(--ink); font-family: var(--heading-font); font-size: 23px; font-weight: 750; letter-spacing: -.6px; word-spacing: .04em; }
.highlights strong span { color: var(--green); }
.highlights p { margin-top: 3px; color: var(--muted); font-size: 14px; }

.demo-section { position: relative; margin-top: 65px; }
.section-anchor { position: absolute; top: 0; left: 0; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 25px; }
.eyebrow { margin-bottom: 7px; color: var(--green); font-size: 12px; font-weight: 700; letter-spacing: 1.8px; }
h2 { font-size: clamp(25px, 3vw, 32px); font-weight: 750; letter-spacing: -1.1px; line-height: 1.3; }
.section-heading > p { padding-bottom: 2px; color: var(--muted); font-size: 15px; text-align: right; }
.demo-workspace { border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 5px 30px rgb(31 58 43 / 3%); }
.demo-tabs { display: grid; grid-template-columns: 1.25fr 1fr 1fr; padding: 0 22px; border-bottom: 1px solid var(--line); border-radius: 12px 12px 0 0; background: #f0f4f1; }
.demo-tab { position: relative; min-width: 0; min-height: 61px; padding: 14px 10px; border: 0; background: transparent; color: #4e6558; font-size: 17px; font-weight: 650; line-height: 1.4; }
.demo-tab::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; background: transparent; content: ''; }
.demo-tab:hover { color: var(--green); }
.demo-tab[aria-selected='true'] { color: var(--green-dark); }
.demo-tab[aria-selected='true']::after { background: var(--green); }
.task-description { padding: 17px 24px; color: #425b4d; font-size: 17px; }
.sample-toolbar { position: sticky; top: var(--nav-height); z-index: 10; display: flex; align-items: center; gap: 14px; padding: 14px 24px; border-block: 1px solid var(--line); background: #fff; box-shadow: 0 6px 10px -10px #65736b; }
.example-control { display: flex; min-width: 0; flex: 1; align-items: center; gap: 16px; }
.sample-toolbar label { flex-shrink: 0; color: #56685f; font-size: 15px; font-weight: 600; }
select { display: block; width: 100%; height: 44px; min-width: 0; padding: 0 36px 0 12px; border: 1px solid #dce4dd; border-radius: 5px; appearance: none; background: #fcfdfc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m5 6 3 3 3-3' stroke='%2364746f' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center / 16px; color: var(--ink); font-size: 16px; font-weight: 550; text-overflow: ellipsis; cursor: pointer; }
select:hover { border-color: #90b29f; }
.sample-navigation { display: flex; flex-shrink: 0; gap: 8px; }
.sample-button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 7px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 5px; background: white; color: var(--ink); font-size: 15px; font-weight: 600; }
.sample-button:hover:not(:disabled) { border-color: #a5c3b3; background: var(--green-light); color: var(--green-dark); }
.sample-button svg { width: 16px; height: 16px; }
.sample-content { padding: 20px 24px 22px; }
.input-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.input-card { min-width: 0; padding: 13px 16px; border: 1px solid var(--line); border-radius: 7px; background: #f8faf8; }
.input-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.input-label { color: #4d6356; font-size: 14px; font-weight: 650; }
.input-detail { color: #486352; font-size: 14px; font-weight: 550; }
.input-card audio { display: block; width: 100%; height: 40px; }
.prompt-card { background: #faf9f5; border-color: #e8e4d9; }
.prompt-card .input-label { color: #7d7353; }
.prompt-text { font-size: 17px; line-height: 1.5; }
.transcript { margin-top: 7px; color: var(--muted); font-size: 14px; }
.transcript summary { width: fit-content; cursor: pointer; }
.transcript p { margin-top: 6px; color: #4c5f53; line-height: 1.65; }
.comparison-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0 10px; }
.comparison-heading h3 { font-family: inherit; font-size: 15px; font-weight: 600; }
.model-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.model-card { position: relative; min-width: 0; padding: 13px 12px 12px; border: 1px solid var(--line); border-radius: 7px; background: white; transition: border-color .15s, box-shadow .15s; }
.model-card.is-ours { border-color: #c3dccb; background: #f1f8f3; }
.model-card.is-playing, .input-card.is-playing { border-color: var(--green); box-shadow: 0 0 0 2px rgb(20 125 100 / 10%); }
.model-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 10px; }
.model-heading h4 { margin: 0; font-family: inherit; font-size: 15px; font-weight: 700; letter-spacing: -.2px; }
.model-mode { flex-shrink: 0; padding: 1px 6px; border: 1px solid #e0e7e1; border-radius: 4px; color: #52665a; font-size: 13px; font-weight: 550; }
.model-mode.is-streaming { border-color: #d3e3d9; color: #4b7b60; }
.model-card audio { display: block; width: 100%; height: 40px; }
audio { border-radius: 20px; }
.media-error { margin-top: 6px; color: #9c4232; font-size: 14px; }
.playback-status { padding: 12px 24px; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; background: #fbfcfb; color: #56685f; font-size: 14px; }
.playback-status:empty { display: none; }
.loading-message { padding: 55px 10px; color: var(--muted); font-size: 16px; text-align: center; }
.notice { padding: 20px; border: 1px solid #e7cebf; border-radius: 6px; background: #fff7f1; color: #80543b; font-size: 16px; }
.notice p { margin-bottom: 12px; }
.notice a { text-decoration: underline; }

.video-section { margin-top: 84px; }
.video-frame { overflow: hidden; border: 1px solid #d7e1d9; border-radius: 10px; background: #152c25; }
.demo-video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; }
.overview-section { margin-top: 85px; padding-bottom: 85px; }
.system-figure { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: white; }
.system-figure > a { display: block; padding: 28px; }
.system-figure img { display: block; width: 100%; }
.system-figure figcaption { display: flex; justify-content: space-between; gap: 16px; padding: 14px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.abstract-layout { display: grid; grid-template-columns: 170px 1fr; gap: 35px; margin-top: 36px; }
.abstract-layout h3 { font-size: 20px; font-weight: 700; letter-spacing: -.5px; }
.abstract-content { color: #45594e; font-size: 17px; font-weight: 450; line-height: 1.85; }
.abstract-content p + p { margin-top: 16px; }
.abstract-content strong { color: #304e3c; font-weight: 650; }
.site-footer { padding-block: 28px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.site-footer .wordmark { font-size: 15px; }
.site-footer p { margin-top: 3px; color: var(--muted); font-size: 14px; }
.footer-links { display: flex; gap: 22px; color: var(--muted); font-size: 14px; }

@media (min-width: 1400px) {
  .hero { padding-top: 68px; }
  .demo-section { margin-top: 75px; }
}

@media (min-width: 1001px) and (max-width: 1100px) {
  .model-heading { gap: 3px; }
  .model-heading h4 { font-size: 14px; }
  .model-mode { padding-inline: 5px; }
}

@media (max-width: 1000px) {
  .page-width, .section-width { width: calc(100% - 48px); }
  .model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .highlights strong { font-size: 20px; }
  .abstract-layout { grid-template-columns: 120px 1fr; gap: 20px; }
}

@media (max-width: 650px) {
  :root { --nav-height: 60px; }
  .page-width, .section-width { width: calc(100% - 32px); }
  .wordmark { gap: 7px; font-size: 17px; }
  .brand-mark { width: 22px; height: 22px; }
  .nav-links { gap: 18px; font-size: 14px; }
  .nav-links a[href='#overview'], .nav-github { display: none; }
  .hero { padding-top: 36px; }
  .venue-badge { margin-bottom: 20px; font-size: 13px; }
  h1 { font-size: 46px; letter-spacing: -2.8px; }
  .publication-subtitle { margin-top: 14px; font-size: 23px; letter-spacing: -.7px; }
  .desktop-break { display: none; }
  .publication-authors { margin-top: 20px; font-size: 20px; }
  .publication-affiliation { font-size: 18px; }
  .button { gap: 6px; padding: 10px 12px; }
  .publication-links { gap: 10px; margin-top: 24px; }
  .publication-button { gap: 7px; padding: 10px 16px; font-size: 16px; }
  .soon-label { font-size: 13px; }
  .highlights { grid-template-columns: 1fr 1fr; margin-top: 30px; padding-block: 18px; gap: 18px 0; }
  .highlights strong { font-size: 20px; }
  .highlights p { padding-inline: 8px; font-size: 13px; }
  .highlights > div:last-child { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid var(--line); border-left: 0; }
  .highlights > div:last-child strong { font-size: 17px; }
  .demo-section { margin-top: 40px; }
  .section-heading { display: block; margin-bottom: 20px; }
  .section-heading > p { margin-top: 9px; text-align: left; }
  .section-heading > p br { display: none; }
  h2 { font-size: 26px; letter-spacing: -.9px; }
  .eyebrow { margin-bottom: 6px; }
  .demo-tabs { padding-inline: 6px; }
  .demo-tab { min-height: 65px; padding: 12px 6px; font-size: 14px; }
  .task-description { padding: 14px; font-size: 16px; }
  .sample-toolbar { flex-wrap: wrap; gap: 10px; padding: 12px 14px; }
  .example-control { flex-basis: 100%; gap: 12px; }
  .sample-navigation { width: 100%; }
  .sample-button { flex: 1; }
  .sample-toolbar label { font-size: 14px; }
  .sample-content { padding: 14px; }
  .input-grid { grid-template-columns: 1fr; gap: 10px; }
  .input-card { padding: 11px 12px; }
  .input-heading { margin-bottom: 6px; }
  .prompt-text { font-size: 16px; }
  .comparison-heading { margin-top: 17px; }
  .model-grid { grid-template-columns: 1fr; gap: 9px; }
  .model-card { padding: 11px 12px; }
  .model-heading { margin-bottom: 7px; }
  .playback-status { padding: 12px 14px; }
  .video-section, .overview-section { margin-top: 50px; }
  .overview-section { padding-bottom: 45px; }
  .system-figure > a { padding: 14px; }
  .system-figure figcaption { display: block; padding: 12px 14px; }
  .abstract-layout { grid-template-columns: 1fr; gap: 15px; margin-top: 26px; }
  .abstract-layout h3 { font-size: 19px; }
  .abstract-content { font-size: 16px; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 18px; }
  .footer-links { flex-wrap: wrap; gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
