:root {
  --bg:#181818;
  --bg-sunken:#131313;
  --panel:#202020;
  --panel-2:#2A2A2A;
  --border:#333333;
  --border-strong:#4A4A4A;
  --grid-line:#262626;
  --accent:#D2FA2D;
  --accent-dark:#9DC20F;
  --accent-line:rgba(210,250,45,.45);
  --accent-soft:rgba(210,250,45,.09);
  --mint:#8BEA9B;
  --coral:#FF6B7A;
  --violet:#6E6BFF;
  --text:#F5F5F5;
  --muted:#A3A3A3;
  --faint:#6E6E6E;
  --ink:#141414;
  --ink-soft:#4A4A4A;
  --ink-grid:rgba(20,20,20,.14);
  --paper:#F7F7F7;
  --success:#3DDC84;
  --warn:#FFB547;
  --error:#FF5C5C;
  --clear:transparent;
  --veil:rgba(0,0,0,.65);

  --font-display:"Inter","Noto Sans SC","PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  --font-body:"Inter","Noto Sans SC","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  --font-mono:"JetBrains Mono",ui-monospace,"SFMono-Regular",Menlo,Consolas,monospace;
  --weight-regular:400;
  --weight-medium:500;
  --weight-semibold:650;
  --weight-bold:700;
  --weight-heavy:800;
  --weight-display:900;
  --type-body:16px;
  --type-small:14px;
  --type-caption:12px;
  --type-h1:clamp(34px,3.3vw,46px);
  --type-h2:clamp(28px,3vw,42px);
  --type-h3:22px;
  --tracking-display:-.035em;
  --tracking-cjk:-.02em;

  --r-sheet:32px;
  --r-card:24px;
  --r-mini:20px;
  --r-field:10px;
  --r-chip:8px;
  --r-menu:16px;
  --r-item:12px;
  --r-swatch:44px;
  --r-code:6px;
  --r-slice:18px;
  --r-badge:14px;
  --r-pill:999px;
  --r-round:50%;
  --shadow-card:0 22px 44px -26px rgba(0,0,0,.78);
  --shadow-paper:0 18px 36px -28px rgba(20,20,20,.45);

  --gutter:clamp(16px,2.2vw,32px);
  --content-width:1200px;
  --reading-width:800px;
  --header-width:1472px;
  --topbar-h:76px;
  --peek:28px;
  --grid-step:72px;
  --motion-fast:.2s;
  --motion-reveal:.55s;
}

*,*::before,*::after { box-sizing:border-box; }
* { margin:0; padding:0; }
html { background:var(--bg); color-scheme:dark; scroll-behavior:smooth; scroll-padding-top:24px; }
html.nav-open { overflow:hidden; }
body {
  background:var(--bg); color:var(--text);
  font-family:var(--font-body); font-size:var(--type-body); line-height:1.6;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
a { color:inherit; text-decoration:none; }
button,input,select,textarea { font:inherit; }
button { cursor:pointer; }
button,summary,a { -webkit-tap-highlight-color:var(--clear); }
button { border:0; }
img,svg { display:block; max-width:100%; }
svg,img, .eyebrow-dot,.status-dot { flex-shrink:0; }
img { height:auto; }
ul { list-style:none; }
fieldset { border:0; }
[hidden] { display:none !important; }
:focus-visible { outline:2px solid var(--accent); outline-offset:3px; border-radius:var(--r-chip); }
::selection { background:var(--accent); color:var(--ink); }
h1,h2,h3,h4 { font-family:var(--font-display); line-height:1.15; text-wrap:balance; }
h1 { font-size:var(--type-h1); font-weight:var(--weight-display); letter-spacing:var(--tracking-display); }
h2 { font-size:var(--type-h2); font-weight:var(--weight-display); letter-spacing:var(--tracking-display); }
h3 { font-size:var(--type-h3); font-weight:var(--weight-heavy); letter-spacing:var(--tracking-cjk); }
:lang(zh-CN) h1,:lang(zh-CN) h2,:lang(zh-TW) h1,:lang(ja) h1,:lang(ko) h1 { letter-spacing:var(--tracking-cjk); }
p,li,dd { overflow-wrap:break-word; }
code { font-family:var(--font-mono); overflow-wrap:anywhere; }
pre { max-width:100%; min-width:0; overflow-x:auto; padding:20px; border:1px solid var(--border); border-radius:var(--r-mini); background:var(--panel); color:var(--text); }
pre code { overflow-wrap:normal; word-break:normal; white-space:pre; font-size:13px; }
hr { border:0; border-top:1px solid var(--border); }
strong { font-weight:var(--weight-semibold); }
.wrap { width:100%; max-width:calc(var(--content-width) + var(--gutter) * 2); margin-inline:auto; padding-inline:var(--gutter); }
.reading { max-width:calc(var(--reading-width) + var(--gutter) * 2); }
.section { padding-top:80px; padding-bottom:80px; }
.stack { display:grid; gap:24px; }
.grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
.grid > *, .stack > *, .feat > *, .feat-body > *, .footer-grid > *, .hero > *, .topbar > * { min-width:0; }
.nowrap { white-space:nowrap; }
.mono { font-family:var(--font-mono); }
.muted { color:var(--muted); }
.accent { color:var(--accent); }
.sr-only { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.skip-link { position:fixed; top:8px; left:16px; z-index:100; padding:12px 20px; transform:translateY(-160%); border-radius:var(--r-pill); background:var(--accent); color:var(--ink); }
.skip-link:focus { transform:none; }

.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  min-height:52px; padding:12px 24px; border:1.5px solid var(--clear);
  border-radius:var(--r-pill); font-size:16px; font-weight:var(--weight-bold);
  letter-spacing:-.005em; line-height:1.4; text-align:center;
  transition:background-color var(--motion-fast),border-color var(--motion-fast),color var(--motion-fast);
}
.btn svg { width:18px; height:18px; }
.btn-primary { background:var(--accent); color:var(--ink); }
.btn-primary:hover,.btn-primary.is-hover { background:var(--accent-dark); color:var(--ink); }
.btn-primary:active { background:var(--mint); color:var(--ink); }
.btn-ghost { border-color:var(--border-strong); background:var(--clear); color:var(--text); padding-inline:22px; }
.btn-ghost:hover,.btn-ghost.is-hover { border-color:var(--text); }
.btn:disabled,.btn[aria-disabled="true"] { opacity:.5; cursor:not-allowed; }
.btn.is-focus { outline:2px solid var(--accent); outline-offset:3px; }
.cta-row { margin-top:34px; display:flex; flex-wrap:wrap; gap:12px; }
.pill-link {
  display:inline-flex; align-items:center; gap:10px; margin-top:24px; min-height:46px;
  padding:10px 20px; border:1.5px solid var(--ink); border-radius:var(--r-pill);
  background:var(--clear); color:var(--ink); font-weight:var(--weight-bold); font-size:15px;
}
.pill-link:hover { background:var(--accent); color:var(--ink); }
.pill-link svg { width:16px; height:16px; }

#site-header { position:relative; z-index:50; background:var(--bg); color:var(--text); }
.topbar {
  position:relative; z-index:50; min-height:var(--topbar-h); width:100%;
  max-width:min(100%,calc(var(--header-width) + var(--gutter) * 2)); margin-inline:auto;
  display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:24px;
  padding-inline:var(--gutter); background:var(--bg); color:var(--text);
}
.brand {
  justify-self:start; display:inline-flex; align-items:center; gap:10px; flex-shrink:0;
  font-family:var(--font-display); font-weight:var(--weight-heavy); font-size:16px;
  letter-spacing:-.01em; color:var(--text);
}
.brand-mark { width:30px; height:30px; }
.nav { min-width:0; padding:4px; border:1px solid var(--border); border-radius:var(--r-pill); background:var(--panel); color:var(--muted); }
.nav ul { display:flex; align-items:center; list-style:none; margin:0; padding:0; gap:2px; }
.nav li { min-width:0; }
.nav a {
  display:flex; align-items:center; gap:7px; min-height:36px; padding:7px 15px 7px 13px;
  border-radius:var(--r-pill); font-size:14px; font-weight:var(--weight-medium);
  white-space:nowrap; color:var(--muted);
  transition:color var(--motion-fast),background-color var(--motion-fast);
}
.nav a:hover { color:var(--text); background:var(--panel-2); }
.nav a[aria-current="page"] { background:var(--accent); color:var(--ink); font-weight:var(--weight-semibold); }
.nav svg { width:16px; height:16px; }
.header-tools { justify-self:end; display:flex; align-items:center; gap:8px; flex-shrink:0; }
.lang { position:relative; }
.lang-button,.lang summary {
  list-style:none; display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height:38px; padding:8px 14px 8px 12px; border:1px solid var(--border);
  border-radius:var(--r-pill); font-size:14px; background:var(--bg); color:var(--text); cursor:pointer; white-space:nowrap;
}
.lang summary::-webkit-details-marker { display:none; }
.lang-button:hover,.lang summary:hover { border-color:var(--border-strong); }
.lang-button svg,.lang summary svg { width:16px; height:16px; color:var(--muted); }
.lang-short { display:none; }
.lang-caret { font-size:11px; color:var(--muted); }
.lang-menu {
  position:absolute; z-index:3; right:0; top:calc(100% + 8px); min-width:170px; padding:6px;
  background:var(--panel-2); color:var(--text); border:1px solid var(--border);
  border-radius:var(--r-menu); box-shadow:var(--shadow-card);
}
.lang-menu a { display:flex; align-items:center; min-height:44px; padding:8px 12px; border-radius:var(--r-field); font-size:14px; color:var(--text); }
.lang-menu a:hover,.lang-menu a[aria-current] { background:var(--panel); color:var(--accent); }
.menu-button { display:none; align-items:center; justify-content:center; min-width:44px; min-height:44px; border:1px solid var(--border); border-radius:var(--r-pill); background:var(--panel); color:var(--text); }
.menu-button svg { width:20px; height:20px; }
.mobile-drawer { position:absolute; top:100%; left:var(--gutter); right:var(--gutter); z-index:4; max-height:calc(100dvh - var(--topbar-h) - 16px); overflow-y:auto; overscroll-behavior:contain; padding:12px; border:1px solid var(--border); border-radius:var(--r-mini); background:var(--panel); color:var(--text); box-shadow:var(--shadow-card); }
.mobile-drawer a { display:flex; align-items:center; width:100%; min-height:46px; gap:12px; padding:12px 16px; border-radius:var(--r-field); }
.mobile-drawer a:hover { background:var(--panel-2); color:var(--text); }
.mobile-drawer a[aria-current="page"] { background:var(--accent); color:var(--ink); }
.mobile-drawer svg { width:18px; height:18px; }
.drawer-languages { margin-top:12px; padding-top:12px; border-top:1px solid var(--border); }
.menu-veil { position:fixed; inset:0; z-index:40; background:var(--veil); color:var(--text); }
.preview-mobile { display:none; }

.hero {
  display:grid; grid-template-columns:minmax(500px,44%) 1fr;
  height:calc(100vh - var(--topbar-h) - var(--peek)); min-height:700px; max-height:940px;
  overflow-x:clip;
}
.hero-copy { display:flex; flex-direction:column; justify-content:center; padding:0 32px 48px clamp(24px,4.45vw,64px); }
.eyebrow { align-self:flex-start; display:inline-flex; align-items:center; gap:10px; min-height:30px; padding:4px 14px 4px 11px; background:var(--panel); color:var(--muted); border:1px solid var(--border); border-radius:var(--r-pill); font-size:13px; }
.eyebrow-dot { width:8px; height:8px; border-radius:var(--r-round); background:var(--accent); color:var(--ink); box-shadow:0 0 0 3px var(--accent-soft); }
.hero-title { margin-top:26px; font-size:clamp(30px,3.3vw,46px); line-height:1.12; }
.hero-title span { display:block; white-space:nowrap; }
.hero-title em { font-style:normal; color:var(--accent); }
.hero-lede { margin-top:22px; max-width:31em; font-size:16px; line-height:1.72; color:var(--muted); }
.hero-lede strong { color:var(--text); }
.spec { margin-top:44px; padding-top:20px; border-top:1px solid var(--grid-line); display:grid; gap:14px; }
.spec-row { display:flex; align-items:center; gap:12px; }
.spec-label { width:72px; flex-shrink:0; font-size:12px; color:var(--muted); letter-spacing:.02em; }
.proto-list,.platforms { display:flex; flex-wrap:wrap; gap:8px; }
.proto { display:inline-flex; align-items:center; min-height:28px; padding:3px 10px; background:var(--panel); color:var(--muted); border:1px solid var(--border); border-radius:var(--r-chip); font-family:var(--font-mono); font-size:12px; }
.platform { display:inline-flex; align-items:center; gap:8px; min-height:36px; padding:7px 15px 7px 12px; border:1px solid var(--border); border-radius:var(--r-pill); font-size:13px; font-weight:var(--weight-medium); color:var(--text); }
.platform svg { width:15px; height:15px; color:var(--muted); }
.platform:hover { border-color:var(--accent-line); }
.platform:hover svg { color:var(--accent); }

.sheet { margin-inline:16px; padding:96px clamp(24px,5.5vw,80px) 112px; border-radius:var(--r-sheet) var(--r-sheet) 0 0; background:var(--paper); color:var(--ink); color-scheme:light; }
.sheet .muted { color:var(--ink-soft); }
.sheet :focus-visible { outline-color:var(--ink); }
.sheet .btn-ghost { border-color:var(--ink); color:var(--ink); background:var(--clear); }
.sheet .btn-ghost:hover { background:var(--accent); color:var(--ink); }
.panel,.content-card { padding:28px; border:1px solid var(--border); border-radius:var(--r-card); background:var(--panel); color:var(--text); box-shadow:var(--shadow-card); min-width:0; }
.sheet .content-card { background:var(--paper); color:var(--ink); border-color:var(--ink-grid); box-shadow:var(--shadow-paper); }
.prose { min-width:0; line-height:1.85; }
.prose > * + * { margin-top:20px; }
.prose h2 { margin-top:56px; }
.prose h3 { margin-top:32px; }
.prose ul,.prose ol { padding-left:1.5em; }
.prose ul { list-style:disc; }
.prose a:not(.btn):not(.pill-link) { text-decoration:underline; text-underline-offset:4px; }
.prose :not(pre) > code { padding:2px 5px; border-radius:var(--r-code); }
.sheet .prose :not(pre) > code { background:var(--ink-grid); color:var(--ink); }

.site-footer { padding-top:72px; padding-bottom:28px; background:var(--bg); color:var(--text); }
.footer-grid { display:grid; grid-template-columns:1.2fr .8fr 1.5fr .7fr; gap:40px; }
.footer-brand p { margin-top:20px; max-width:26em; color:var(--muted); font-size:14px; }
.footer-title { margin-bottom:16px; font-size:14px; font-weight:var(--weight-bold); }
.footer-links { display:grid; gap:10px; font-size:14px; color:var(--muted); }
.footer-links a { display:inline-block; padding-block:3px; }
.footer-links a:hover { color:var(--accent); }
.footer-bottom { margin-top:48px; padding-top:24px; border-top:1px solid var(--border); display:flex; justify-content:space-between; flex-wrap:wrap; gap:16px; font-size:13px; color:var(--muted); }
.reveal { opacity:1; }
.reveal-ready .reveal:not(.shown) { opacity:0; transform:translateY(16px); }
.reveal-ready .reveal { transition:opacity var(--motion-reveal) ease,transform var(--motion-reveal) ease; }
.reveal.shown { opacity:1; transform:none; }

@media (max-width:1180px) {
  .nav a { padding-inline:10px 12px; }
  .topbar { gap:16px; }
}
@media (max-width:1280px) {
  html:lang(en) .desktop-nav,html:lang(ja) .desktop-nav,html:lang(ko) .desktop-nav { display:none; }
  html:lang(en) .topbar,html:lang(ja) .topbar,html:lang(ko) .topbar { display:flex; }
  html:lang(en) .header-tools,html:lang(ja) .header-tools,html:lang(ko) .header-tools { margin-left:auto; }
  html:lang(en) .menu-button,html:lang(ja) .menu-button,html:lang(ko) .menu-button { display:inline-flex; }
}
@media (max-width:1080px) {
  .topbar { display:flex; min-height:var(--topbar-h); }
  .desktop-nav { display:none; }
  .header-tools { margin-left:auto; }
  .menu-button { display:inline-flex; }
  .hero { grid-template-columns:1fr; height:auto; max-height:none; min-height:0; }
  .hero-copy { padding:48px 24px 40px; }
  .footer-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .preview-mobile { display:block; }
  .preview-mobile summary { list-style:none; }
  .preview-mobile[open] .mobile-drawer { display:block; }
}
@media (max-width:768px) {
  h1,.hero-title { font-size:clamp(24px,4vw,30px); }
}
@media (max-width:640px) {
  .brand { font-size:14px; gap:8px; flex-shrink:1; }
  .brand span { min-width:0; overflow-wrap:anywhere; }
  .brand-mark { width:28px; height:28px; }
  .topbar { gap:8px; }
  .lang-full { display:none; }
  .lang-short { display:inline; }
  .lang-button,.lang summary { min-height:44px; padding-inline:10px; }
  .hero-title { font-size:clamp(24px,7vw,30px); }
  .hero-title span { white-space:normal; }
  .hero-copy { padding-inline:var(--gutter); }
  .spec-row { flex-direction:column; align-items:flex-start; gap:8px; }
  .spec-label { width:auto; }
  .proto-list,.platforms { flex-direction:row; flex-wrap:wrap; }
  .sheet { margin-inline:8px; padding:64px 20px 80px; }
  .grid,.footer-grid { grid-template-columns:minmax(0,1fr); }
  .section { padding-top:56px; padding-bottom:56px; }
  .panel,.content-card { padding:20px; }
  .tilt,[data-tilt] { transform:none !important; }
  .footer-grid { gap:32px; }
  .footer-bottom { margin-top:32px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { transition:none !important; animation:none !important; }
  .reveal-ready .reveal:not(.shown) { opacity:1; transform:none; }
}