:root {
  --bg: #070b16;
  --bg-2: #0b1122;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-b: rgba(255, 255, 255, 0.08);
  --text: #e8ecf5;
  --muted: #9aa4bd;
  --dim: #6b7590;
  --teal: #5eead4;
  --indigo: #818cf8;
  --violet: #c084fc;
  --grad: linear-gradient(100deg, #22b8ff 0%, #4f6bff 50%, #b14dff 100%);
  --radius: 18px;
  --maxw: 1180px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="zh-CN"] body { line-height: 1.75; letter-spacing: 0.01em; }
a { color: inherit; text-decoration: none; }
img { display: block; }
ul { list-style: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(7, 11, 22, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--panel-b); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.brand b { font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-zh { font-size: 13px; font-weight: 500; color: var(--muted); padding-left: 10px; border-left: 1px solid var(--panel-b); }
.nav-links { display: flex; gap: 28px; font-size: 14.5px; color: var(--muted); }
.nav-links a { transition: color .2s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--grad); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  font: 600 13px var(--font); color: var(--dim); background: var(--panel); border: 1px solid var(--panel-b);
  border-radius: 999px; padding: 7px 14px; cursor: pointer; transition: border-color .2s;
}
.lang-toggle:hover { border-color: rgba(129, 140, 248, .6); }
.lang-toggle .sep { margin: 0 6px; opacity: .5; }
.lang-toggle [data-lang].on { color: var(--text); }
.menu-btn { display: none; width: 40px; height: 40px; background: none; border: 0; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, top .25s; }
.menu-btn span:first-child { top: 15px; }
.menu-btn span:last-child { top: 23px; }
.nav.open .menu-btn span:first-child { top: 19px; transform: rotate(45deg); }
.nav.open .menu-btn span:last-child { top: 19px; transform: rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 15px; padding: 13px 24px; border-radius: 999px; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s; }
.btn-primary { background: var(--grad); color: #071021; box-shadow: 0 8px 30px -8px rgba(129, 140, 248, .6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -10px rgba(129, 140, 248, .75); }
.btn-ghost { border: 1px solid var(--panel-b); background: var(--panel); }
.btn-ghost:hover { border-color: rgba(94, 234, 212, .5); }
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; padding: 120px 0 90px; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(700px 420px at 78% 30%, rgba(129, 140, 248, .18), transparent 70%),
    radial-gradient(600px 400px at 10% 80%, rgba(94, 234, 212, .12), transparent 70%);
}
#helix { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.hero-inner { position: relative; z-index: 2; max-width: var(--maxw); }
.hero h1 { font-size: clamp(44px, 7.2vw, 92px); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; margin: 18px 0 26px; max-width: 900px; }
html[lang="zh-CN"] .hero h1 { letter-spacing: -.01em; line-height: 1.15; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 680px; }
.lead strong { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 38px 0 46px; }
.pillars { display: flex; flex-wrap: wrap; gap: 10px; }
.pillars li { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 500; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--panel-b); background: rgba(7, 11, 22, .5); backdrop-filter: blur(6px); }
.pillars .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px var(--teal); }
.pillars li:nth-child(2) .dot { background: #7dd3fc; box-shadow: 0 0 12px #7dd3fc; }
.pillars li:nth-child(3) .dot { background: var(--indigo); box-shadow: 0 0 12px var(--indigo); }
.pillars li:nth-child(4) .dot { background: var(--violet); box-shadow: 0 0 12px var(--violet); }
.scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); width: 24px; height: 38px; border: 2px solid var(--panel-b); border-radius: 14px; z-index: 2; }
.scroll-hint span { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--muted); animation: scroll 1.8s infinite; }
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

.eyebrow { font: 500 12.5px "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .14em; color: var(--teal); }

/* ---------- Stats ---------- */
.stats { border-top: 1px solid var(--panel-b); border-bottom: 1px solid var(--panel-b); background: var(--bg-2); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 24px; border-right: 1px solid var(--panel-b); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; letter-spacing: -.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: 14px; }

/* ---------- Sections ---------- */
.section { padding: 120px 0; position: relative; }
.section.alt { background: var(--bg-2); }
.section-head { max-width: 780px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.1; letter-spacing: -.025em; font-weight: 800; margin: 14px 0 18px; }
html[lang="zh-CN"] .section-head h2 { letter-spacing: 0; line-height: 1.25; }
.sub { color: var(--muted); font-size: 17.5px; }

/* Vision */
.vision { text-align: center; padding: 140px 0; background: radial-gradient(700px 360px at 50% 40%, rgba(94, 234, 212, .08), transparent 70%); }
.vision-inner { max-width: 900px; }
.vision h2 { font-size: clamp(34px, 5vw, 64px); line-height: 1.1; letter-spacing: -.03em; font-weight: 800; margin: 16px 0 26px; }
html[lang="zh-CN"] .vision h2 { letter-spacing: 0; line-height: 1.3; }
.vision-text { font-size: clamp(18px, 1.9vw, 23px); color: var(--muted); max-width: 760px; margin: 0 auto; }

/* Technology pipeline */
.pipeline { display: grid; grid-template-columns: 1fr 40px 1.3fr 40px 1.2fr 40px 1fr; align-items: center; gap: 0; }
.pl-node { padding: 22px; border-radius: 16px; border: 1px solid var(--panel-b); background: var(--panel); }
.pl-k { display: block; font: 500 11.5px "JetBrains Mono", monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px; }
.pl-node b { font-weight: 600; font-size: 15.5px; line-height: 1.4; display: block; }
.pl-node.core { background: linear-gradient(160deg, rgba(94, 234, 212, .12), rgba(129, 140, 248, .14)); border-color: rgba(129, 140, 248, .45); box-shadow: 0 0 60px -20px rgba(129, 140, 248, .6); }
.pl-node.core .pl-k { color: var(--teal); }
.tri { display: flex; gap: 6px; flex-wrap: wrap; }
.tri span { flex: 1; text-align: center; padding: 10px 6px; border-radius: 10px; font-weight: 600; font-size: 14px; background: rgba(7, 11, 22, .55); border: 1px solid rgba(255, 255, 255, .1); }
.tri span:nth-child(1) { color: var(--teal); }
.tri span:nth-child(2) { color: var(--indigo); }
.tri span:nth-child(3) { color: var(--violet); }
.pl-branch { display: grid; gap: 12px; }
.pl-node.out { border-color: rgba(94, 234, 212, .3); }
.pl-arrow { height: 2px; margin: 0 8px; background: var(--grad); position: relative; opacity: .7; }
.pl-arrow::after { content: ""; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left: 7px solid var(--violet); border-right: 0; }
.loop-note { margin: 22px 0 56px; color: var(--muted); font-size: 15px; text-align: center; }
.cards4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { padding: 28px 24px; border-radius: var(--radius); border: 1px solid var(--panel-b); background: var(--panel); transition: transform .25s, border-color .25s; }
.card:hover { transform: translateY(-4px); border-color: rgba(129, 140, 248, .4); }
.card-from { font-size: 13px; color: var(--dim); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .25); }
.card h3 { font-size: 21px; margin: 6px 0 10px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; }
.card p { color: var(--muted); font-size: 14.5px; }

/* Research */
.feature { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; padding: 40px; border-radius: 22px; border: 1px solid rgba(129, 140, 248, .3); background: linear-gradient(150deg, rgba(129, 140, 248, .08), rgba(94, 234, 212, .04)); margin-bottom: 70px; }
.badge { display: inline-block; font: 500 12px "JetBrains Mono", monospace; padding: 5px 11px; border-radius: 999px; background: rgba(94, 234, 212, .1); color: var(--teal); border: 1px solid rgba(94, 234, 212, .25); }
.feature h3 { font-size: 28px; line-height: 1.2; margin: 16px 0 14px; letter-spacing: -.015em; }
.feature p { color: var(--muted); }
.kpis { display: grid; grid-template-columns: auto 1fr; gap: 26px; margin-top: 28px; }
.kpis b { display: block; font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.kpis span { color: var(--muted); font-size: 13.5px; display: block; max-width: 260px; }
.chart-tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--panel-b); margin-bottom: 22px; flex-wrap: wrap; }
.chart-tabs button { font: 500 13px var(--font); color: var(--muted); background: none; border: 0; padding: 7px 14px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.chart-tabs button.active { background: rgba(129, 140, 248, .2); color: var(--text); }
.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 96px 1fr 44px; align-items: center; gap: 12px; font-size: 13.5px; }
.bar .nm { color: var(--muted); white-space: nowrap; }
.bar.us .nm { color: var(--text); font-weight: 600; }
.bar .track { height: 12px; border-radius: 6px; background: rgba(255, 255, 255, .05); overflow: hidden; }
.bar .fill { height: 100%; width: 0; border-radius: 6px; background: rgba(154, 164, 189, .45); transition: width 1s cubic-bezier(.2, .8, .2, 1); }
.bar.us .fill { background: var(--grad); }
.bar .val { text-align: right; font: 500 13px "JetBrains Mono", monospace; color: var(--muted); }
.bar.us .val { color: var(--teal); }
.chart-note { margin-top: 14px; font-size: 12.5px; color: var(--dim) !important; }
.group-title { font-size: 15px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin: 0 0 18px; display: flex; align-items: center; gap: 14px; }
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--panel-b); }
.papers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 56px; }
.papers:last-child { margin-bottom: 0; }
.paper { padding: 24px; border-radius: 16px; border: 1px solid var(--panel-b); background: var(--panel); transition: border-color .25s, transform .25s; }
.paper:hover { border-color: rgba(94, 234, 212, .35); transform: translateY(-3px); }
.venue { font: 500 11.5px "JetBrains Mono", monospace; color: var(--indigo); letter-spacing: .03em; }
.paper h4 { font-size: 17px; margin: 8px 0 8px; line-height: 1.3; }
.paper p { color: var(--muted); font-size: 14.5px; }

/* CTA */
.cta { background: radial-gradient(800px 400px at 50% 0%, rgba(129, 140, 248, .18), transparent 70%), var(--bg-2); text-align: center; }
.cta-inner { max-width: 860px; }
.cta h2 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.12; letter-spacing: -.025em; font-weight: 800; margin: 16px 0 30px; }
html[lang="zh-CN"] .cta h2 { letter-spacing: 0; line-height: 1.3; }
.loop { display: flex; justify-content: center; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 30px; }
.loop span { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--panel-b); background: var(--panel); font-size: 14.5px; font-weight: 500; }
.loop i { font-style: normal; color: var(--dim); }
.cta .sub { margin: 0 auto 32px; max-width: 620px; }
.contact-line { margin-top: 22px; color: var(--dim); font-size: 14px; }
.contact-line a { color: var(--muted); border-bottom: 1px dotted var(--dim); }

/* Footer */
.footer { border-top: 1px solid var(--panel-b); padding: 36px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--dim); font-size: 14px; }
.footer .brand { color: var(--text); font-size: 16px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); transition: color .2s; }
.footer-links a:hover { color: var(--text); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .pipeline { grid-template-columns: 1fr; gap: 0; }
  .pl-arrow { width: 2px; height: 26px; margin: 6px auto; background: linear-gradient(180deg, #5eead4, #c084fc); }
  .pl-arrow::after { right: -4px; top: auto; bottom: -3px; border: 5px solid transparent; border-top: 7px solid var(--violet); border-bottom: 0; }
  .pl-branch { grid-template-columns: 1fr 1fr; }
  .cards4 { grid-template-columns: repeat(2, 1fr); }
  .papers { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-links {
    position: fixed; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 24px 20px;
    background: rgba(7, 11, 22, .96); backdrop-filter: blur(14px); border-bottom: 1px solid var(--panel-b);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
  }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--panel-b); font-size: 16px; }
  .nav-links a.active::after { display: none; }
  .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav.open { background: rgba(7, 11, 22, .96); }
  .menu-btn { display: block; }
  .brand-zh { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--panel-b); }
}
@media (max-width: 600px) {
  .section { padding: 84px 0; }
  .cards4, .papers, .pl-branch { grid-template-columns: 1fr; }
  .feature { padding: 26px; }
  .kpis { grid-template-columns: 1fr; gap: 16px; }
  .bar { grid-template-columns: 82px 1fr 40px; }
  .footer .brand-zh { display: inline; }
}
