:root {
  --bg: #ffffff;
  --surface: #f8fbff;
  --surface-2: #eef7fb;
  --ink: #142033;
  --muted: #607088;
  --line: #d9e5ef;
  --blue: #1689ef;
  --blue-dark: #096bc5;
  --cyan: #27b6d6;
  --green: #19835a;
  --green-soft: #e9f8f1;
  --red: #d83e43;
  --red-soft: #fff0f0;
  --purple: #7756d9;
  --purple-soft: #f4f0ff;
  --shadow: 0 20px 55px rgba(37, 75, 105, 0.11);
  --shadow-soft: 0 8px 28px rgba(37, 75, 105, 0.08);
  --radius: 22px;
  --radius-sm: 14px;
  --wrap: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }

.wrap { width: min(calc(100% - 40px), var(--wrap)); margin: 0 auto; }
.narrow { width: min(calc(100% - 40px), 860px); }
.section { position: relative; padding: 92px 0; }
.section-tight { padding: 24px 0 70px; }
.tint { background: linear-gradient(180deg, #f9fcff 0%, #f2f9fb 100%); border-top: 1px solid #edf3f7; border-bottom: 1px solid #e6f0f5; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(210, 224, 235, 0.82);
}
.nav { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; letter-spacing: -0.02em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(135deg, var(--blue), var(--cyan)); color: white; font-size: 13px; box-shadow: 0 7px 18px rgba(22, 137, 239, .25); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; color: #3e5068; font-size: 14px; font-weight: 650; transition: color .2s ease; }
.nav-links a:hover { color: var(--blue-dark); }
.nav-toggle { display: none; width: 40px; height: 40px; border: 0; background: transparent; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

.hero { overflow: hidden; padding: 112px 0 74px; background: linear-gradient(180deg, #fafdff 0%, #ffffff 100%); }
.hero-inner { position: relative; z-index: 2; text-align: center; }
.hero-glow { position: absolute; border-radius: 999px; filter: blur(4px); pointer-events: none; }
.hero-glow-a { width: 620px; height: 620px; background: radial-gradient(circle, rgba(38, 171, 232, .16), rgba(38, 171, 232, 0) 68%); top: -280px; left: -190px; }
.hero-glow-b { width: 560px; height: 560px; background: radial-gradient(circle, rgba(109, 204, 154, .15), rgba(109, 204, 154, 0) 68%); right: -170px; top: -240px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 7px 12px; border-radius: 999px; border: 1px solid #d8e8f4; background: rgba(255,255,255,.78); color: #4a6277; font-size: 13px; font-weight: 700; }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(25, 131, 90, .09); }
h1 { max-width: 1020px; margin: 24px auto 18px; font-size: clamp(42px, 6vw, 72px); line-height: 1.04; letter-spacing: -0.055em; font-weight: 840; }
.accent { background: linear-gradient(110deg, var(--blue-dark), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { max-width: 820px; margin: 0 auto; color: #53657b; font-size: clamp(18px, 2.2vw, 23px); line-height: 1.55; }
.hero-lead em { color: var(--ink); font-style: normal; font-weight: 700; }
.authors { margin-top: 28px; display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; font-size: 17px; font-weight: 700; }
.authors a { text-decoration: none; border-bottom: 1px solid #b4c9db; }
.author-sep { color: #a5b2c1; }
.affiliation { margin-top: 3px; color: var(--muted); font-size: 15px; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 11px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 17px; border-radius: 12px; border: 1px solid #d3e0ea; background: white; color: #26384d; text-decoration: none; font-size: 14px; font-weight: 750; box-shadow: 0 5px 18px rgba(35, 70, 98, .06); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-2px); border-color: #b7cfdf; box-shadow: 0 10px 24px rgba(35, 70, 98, .11); }
.button-primary { background: linear-gradient(135deg, #158aef, #2079df); color: white; border-color: transparent; }
.button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.button:nth-child(2) svg { fill: currentColor; stroke: none; }
.hf { line-height: 1; font-size: 17px; }
.stats { margin: 56px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 980px; }
.stat-card { border: 1px solid #dce9f2; background: rgba(255,255,255,.82); border-radius: 18px; padding: 21px 18px; box-shadow: var(--shadow-soft); }
.stat-value { font-size: 28px; font-weight: 850; letter-spacing: -0.04em; color: #173651; }
.stat-label { margin-top: 2px; font-weight: 720; font-size: 14px; }
.stat-note { margin-top: 3px; color: var(--muted); font-size: 12px; }

.figure-card { background: white; border: 1px solid #dbe8f1; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.figure-card img { width: 100%; background: white; }
.figure-card figcaption { padding: 16px 21px 18px; border-top: 1px solid #edf2f6; color: #5c6e82; font-size: 13px; line-height: 1.55; }
.figure-card figcaption strong { color: #25384c; }
.figure-wide img { aspect-ratio: 2 / 1; object-fit: contain; }

.section-kicker { color: var(--blue-dark); text-transform: uppercase; font-size: 12px; font-weight: 850; letter-spacing: .16em; margin-bottom: 9px; }
h2 { margin: 0; max-width: 900px; font-size: clamp(31px, 4vw, 48px); line-height: 1.13; letter-spacing: -0.04em; }
.section-intro { max-width: 820px; margin: 16px 0 0; color: var(--muted); font-size: 18px; }
.abstract-text { font-size: 19px; color: #3b4d61; line-height: 1.82; }
.abstract-text:first-of-type { margin-top: 28px; }
.abstract-text strong { color: var(--ink); }

.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 38px; }
.problem-card { min-height: 310px; display: flex; flex-direction: column; padding: 28px; border: 1px solid #dce7ee; background: white; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.problem-card.emphasis { border-color: #b7dff2; background: linear-gradient(150deg, #f8fdff 0%, #f2fbf7 100%); }
.problem-card h3 { margin: 17px 0 8px; font-size: 21px; letter-spacing: -.02em; }
.problem-card p { color: #5d6e80; margin: 0; }
.problem-icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: #edf6fc; color: #157cd5; font-weight: 850; }
.sound-icon { display: flex; align-items: center; justify-content: center; gap: 3px; }
.sound-icon span { width: 4px; border-radius: 4px; background: currentColor; }
.sound-icon span:nth-child(1), .sound-icon span:nth-child(5) { height: 13px; }
.sound-icon span:nth-child(2), .sound-icon span:nth-child(4) { height: 25px; }
.sound-icon span:nth-child(3) { height: 34px; }
.transcript-icon { background: var(--purple-soft); color: var(--purple); font-family: Georgia, serif; font-size: 18px; }
.fd-icon { background: var(--green-soft); color: var(--green); font-size: 14px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 24px; }
.pill { border-radius: 999px; padding: 4px 9px; font-size: 11px; font-weight: 760; }
.pill.neutral { color: #426078; background: #eff5f8; }
.pill.warning { color: #9e5d17; background: #fff4df; }
.pill.positive { color: #13714d; background: #e8f7ef; }

.method-layout { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(330px, .97fr); gap: 34px; align-items: center; margin-top: 42px; }
.architecture img { aspect-ratio: 1214 / 1295; object-fit: contain; }
.method-steps { display: flex; flex-direction: column; gap: 13px; }
.method-step { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 19px; border-radius: 16px; border: 1px solid #dce7ef; background: #fff; box-shadow: 0 6px 20px rgba(38,71,96,.05); }
.step-index { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: #eaf6ff; color: var(--blue-dark); font-weight: 850; }
.method-step h3 { margin: 1px 0 5px; font-size: 16px; }
.method-step p { margin: 0; color: #627285; font-size: 14px; line-height: 1.6; }
.spec-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid #dce8f0; border-radius: 17px; overflow: hidden; }
.spec { padding: 19px 22px; background: #fbfdff; border-right: 1px solid #dce8f0; }
.spec:last-child { border-right: none; }
.spec-value { display: block; font-size: 21px; font-weight: 850; letter-spacing: -.03em; }
.spec-label { display: block; margin-top: 2px; color: #6b7b8c; font-size: 12px; }

.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.feature-card { padding: 31px; min-height: 310px; border-radius: var(--radius); background: white; border: 1px solid #dae7ef; box-shadow: var(--shadow-soft); }
.feature-tag { color: var(--blue-dark); font-size: 11px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.feature-card h3 { margin: 9px 0 9px; font-size: 25px; letter-spacing: -.03em; }
.feature-card p { color: #607083; font-size: 16px; }
.math { font-family: Georgia, serif; color: #2a4159; font-style: italic; white-space: nowrap; }
.mini-diagram { margin-top: 29px; display: flex; align-items: center; gap: 9px; }
.gate-diagram span:not(.arrow) { border: 1px solid #d9e3ea; border-radius: 8px; padding: 8px 10px; color: #718094; background: #fafcfd; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.gate-diagram .hot { color: var(--red)!important; border-color: #efb4b6!important; background: var(--red-soft)!important; }
.gate-diagram .arrow { color: #9aa8b7; }
.gate-diagram strong { border-radius: 9px; padding: 8px 12px; background: var(--red-soft); color: var(--red); border: 1px solid #efb4b6; font-size: 12px; }
.boundary-strip { margin-top: 39px; position: relative; height: 48px; display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; align-items: center; }
.boundary-strip span { height: 14px; border-radius: 4px; background: #dfe9ef; }
.boundary-strip span.near { height: 27px; background: #ffd9a2; border: 1px solid #efb760; }
.boundary-strip i { width: 2px; height: 48px; background: var(--red); justify-self: center; position: relative; }
.boundary-strip i:after { content: "EOT"; position: absolute; top: -24px; left: 50%; transform: translateX(-50%); color: var(--red); font-size: 10px; font-style: normal; font-weight: 850; }

.result-highlight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 38px; }
.result-highlight { padding: 26px; border: 1px solid #dce7ef; border-radius: 19px; background: linear-gradient(180deg, #fff, #fafdff); box-shadow: var(--shadow-soft); }
.result-number { color: #106ebd; font-weight: 900; font-size: 38px; letter-spacing: -.05em; line-height: 1; }
.result-highlight h3 { margin: 11px 0 5px; font-size: 17px; }
.result-highlight p { margin: 0; color: #667689; font-size: 14px; }
.table-section { margin-top: 34px; border: 1px solid #d9e6ee; border-radius: var(--radius); background: white; overflow: hidden; box-shadow: var(--shadow-soft); }
.table-heading { padding: 23px 25px 17px; display: flex; justify-content: space-between; gap: 24px; align-items: start; }
.table-heading h3 { margin: 0; font-size: 19px; }
.table-heading p { margin: 4px 0 0; color: #748394; font-size: 13px; }
.table-badge { flex: 0 0 auto; background: #eef7fc; color: #3d6a85; border-radius: 999px; padding: 5px 9px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 720px; }
th { padding: 12px 16px; text-align: left; background: #f6fafc; border-top: 1px solid #e8eff4; border-bottom: 1px solid #dce6ed; color: #526477; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
td { padding: 13px 16px; border-bottom: 1px solid #edf2f5; color: #45576b; }
tr:last-child td { border-bottom: none; }
tr.ours td { background: #eaf8fb; color: #183c53; border-top: 1px solid #bfe6ee; border-bottom: 1px solid #bfe6ee; }
.muted-row { opacity: .67; }
.table-note { margin: 0; padding: 12px 25px 16px; color: #8491a0; font-size: 11px; }
.findings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; margin-top: 38px; }
.finding { position: relative; padding: 28px 25px 25px; border-radius: 19px; background: #f8fbfd; border: 1px solid #e0e9ef; }
.finding > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #e4f3fd; color: var(--blue-dark); font-weight: 850; font-size: 12px; }
.finding h3 { margin: 15px 0 7px; font-size: 17px; }
.finding p { margin: 0; color: #637487; font-size: 14px; }

.dark-section { color: white; background: radial-gradient(circle at 20% 0%, #1a4861 0%, #112b3d 35%, #0f2536 75%); overflow: hidden; }
.dark-section:before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(52,180,205,.22), rgba(52,180,205,0) 70%); right: -130px; top: -180px; }
.light { color: #8fdff1; }
.light-copy { color: #c1d3de; }
.latency-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.latency-card { min-height: 170px; display: flex; flex-direction: column; justify-content: center; padding: 26px; border-radius: 18px; border: 1px solid rgba(170,218,232,.17); background: rgba(255,255,255,.055); backdrop-filter: blur(10px); }
.latency-label { color: #b8d1dc; font-size: 12px; font-weight: 760; text-transform: uppercase; letter-spacing: .08em; }
.latency-card strong { margin-top: 6px; font-size: 34px; line-height: 1; letter-spacing: -.04em; }
.latency-card small { margin-top: 12px; color: #a9c0cc; line-height: 1.5; }

.code-card { margin-top: 30px; border: 1px solid #cfdce5; background: #0e1b28; border-radius: 18px; overflow: hidden; box-shadow: 0 20px 50px rgba(20, 40, 55, .14); }
.code-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 10px 13px 10px 18px; background: #132536; border-bottom: 1px solid rgba(255,255,255,.08); color: #8ea8b9; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.copy-code { border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); color: #d5e1e9; border-radius: 7px; padding: 5px 9px; cursor: pointer; font-size: 10px; font-weight: 800; }
.copy-code:hover { background: rgba(255,255,255,.09); }
pre { margin: 0; padding: 23px 25px 26px; overflow-x: auto; }
code { color: #d7e4ec; font: 13px/1.75 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.bib-card { margin-top: 24px; }

.footer { border-top: 1px solid #e2eaf0; background: #fbfcfd; }
.footer-inner { min-height: 160px; padding: 38px 0; display: grid; grid-template-columns: 1.5fr auto; column-gap: 30px; align-items: center; }
.footer strong { display: block; font-size: 18px; }
.footer span { display: block; color: #728192; font-size: 13px; margin-top: 3px; }
.footer-links { display: flex; gap: 19px; }
.footer-links a { color: #3d586e; text-decoration: none; font-size: 13px; font-weight: 720; }
.footer-meta { grid-column: 1 / -1; padding-top: 22px; color: #9aa6b2; font-size: 11px; }

.reveal { opacity: 0; transform: translateY(12px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .stats, .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .problem-grid, .result-highlight-grid, .findings-grid, .latency-grid { grid-template-columns: 1fr; }
  .method-layout { grid-template-columns: 1fr; }
  .architecture { max-width: 640px; margin: 0 auto; }
  .feature-grid { grid-template-columns: 1fr; }
  .spec:nth-child(2) { border-right: none; }
  .spec:nth-child(-n+2) { border-bottom: 1px solid #dce8f0; }
}

@media (max-width: 720px) {
  .wrap, .narrow { width: min(calc(100% - 28px), var(--wrap)); }
  .section { padding: 72px 0; }
  .hero { padding-top: 84px; }
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 68px; left: 14px; right: 14px; padding: 15px; flex-direction: column; align-items: stretch; gap: 0; background: rgba(255,255,255,.97); border: 1px solid #dce6ed; border-radius: 14px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 8px; }
  h1 { font-size: clamp(39px, 13vw, 57px); }
  .hero-lead { font-size: 18px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 17px 12px; }
  .stat-value { font-size: 23px; }
  .problem-card { min-height: auto; }
  .table-heading { flex-direction: column; gap: 10px; }
  .footer-inner { grid-template-columns: 1fr; gap: 18px; }
  .footer-meta { grid-column: 1; padding-top: 0; }
}

@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
  .spec, .spec:nth-child(2) { border-right: none; border-bottom: 1px solid #dce8f0; }
  .spec:last-child { border-bottom: none; }
  .hero-actions { align-items: stretch; }
  .button { justify-content: center; flex: 1 1 100%; }
  .authors { font-size: 15px; }
  .figure-card figcaption { font-size: 12px; }
}

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