:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #eaf1fa;
  background: #060a13;
  --muted: #9aaac0;
  --gold: #f3af3c;
  --line: #252b35;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.skip-link { position: absolute; z-index: 5; top: 10px; left: 10px; padding: 10px 15px; color: #060a13; background: white; }
.skip-link:not(:focus) { clip-path: inset(50%); width: 1px; height: 1px; padding: 0; overflow: hidden; white-space: nowrap; }

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 clamp(24px, 3.2vw, 66px);
  border-bottom: 1px solid var(--line);
}
.wordmark { display: inline-flex; align-items: center; gap: 13px; font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; }
.brand-dot { width: 15px; height: 15px; border-radius: 50%; background: linear-gradient(135deg, #ffdc81, #df8d16); }
.header-links { display: flex; align-items: center; gap: 34px; }
.site-nav, .languages { color: var(--muted); font-size: 1rem; }
.site-nav a:hover, .languages a:hover, .languages a[aria-current] { color: #f3f7fb; }

.hero { display: grid; grid-template-columns: 51.25% 48.75%; min-height: calc(100svh - 72px); }
.hero-content { display: flex; align-items: center; min-width: 0; padding: 65px clamp(34px, 4vw, 82px); }
.hero-inner { width: 100%; max-width: 900px; margin-inline: auto; }
.eyebrow { margin: 0 0 25px; color: var(--gold); font: 500 .85rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .19em; text-transform: uppercase; }
h1 { max-width: 13ch; margin: 0 0 clamp(40px, 4vw, 80px); font-size: clamp(2.5rem, 3.6vw, 4.4rem); line-height: 1.12; letter-spacing: -.025em; font-weight: 500; }
.product-row, .platform-row { position: relative; display: grid; grid-template-columns: 66px minmax(0, 1fr) auto; align-items: center; gap: clamp(12px, 1vw, 20px); border-top: 1px solid var(--line); }
.product-row { min-height: 150px; padding: 22px 0; transition: background .2s ease; }
.product-row:hover, .product-row:focus-within, .platform-row:hover { background: linear-gradient(90deg, #171717, transparent 85%); }
.row-number { align-self: center; color: var(--muted); font: .85rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; }
.row-copy { min-width: 0; }
.row-copy h2 { margin: 0; font-size: clamp(1.6rem, 2.1vw, 2.5rem); font-weight: 500; line-height: 1.2; letter-spacing: -.015em; }
.row-copy p { margin: 10px 0 0; color: #bdcada; font-size: clamp(.95rem, 1vw, 1.1rem); font-weight: 400; line-height: 1.55; }
.row-actions { display: flex; align-items: center; gap: 12px; }
.explore, .demo { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 10px 19px; border-radius: 999px; font-size: .95rem; font-weight: 500; white-space: nowrap; }
.explore { color: #0b111c; background: #eef4fb; }
.explore::after { position: absolute; z-index: 1; inset: 0; content: ""; }
.explore:focus-visible::after { outline: 2px solid var(--gold); outline-offset: -2px; }
.demo { position: relative; z-index: 2; border: 1px solid #596171; }
.demo:hover { border-color: #eaf1fa; }
.play { width: 0; height: 0; border-block: 6px solid transparent; border-left: 8px solid var(--gold); }
.arrow { font-size: 1.2rem; line-height: 1; }
.platform-row { min-height: 100px; border-bottom: 1px solid var(--line); font-size: clamp(1.3rem, 1.5vw, 1.8rem); font-weight: 500; letter-spacing: -.01em; }
.platform-arrow { color: var(--gold); font-size: 2rem; font-weight: 400; }
.hero-image { position: relative; min-height: 100%; overflow: hidden; border-left: 1px solid var(--line); background: #050810; }
.hero-image::after { position: absolute; inset: 0; content: ""; pointer-events: none; background: linear-gradient(90deg, #060a1380, transparent 20%); }
.hero-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.stage-view { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.stage-view.is-on { opacity: 1; }
.stage-view.infer img { filter: saturate(.8) brightness(.92); }
.stage-view.wafer, .stage-view.platform { display: flex; align-items: center; justify-content: center; }
.stage-view svg { width: auto; height: min(84%, 640px); aspect-ratio: 1; }
.stage-label { position: absolute; z-index: 2; left: 24px; bottom: 22px; margin: 0; color: var(--muted); font: 500 .72rem/1.8 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; }
.scan { position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: linear-gradient(90deg, transparent, #5eead4, transparent); box-shadow: 0 0 22px #5eead4; opacity: .8; animation: scan 4.8s linear infinite; }
@keyframes scan { 0% { top: -2px; opacity: 0; } 8% { opacity: .9; } 92% { opacity: .9; } 100% { top: 100%; opacity: 0; } }

@media (max-width: 1200px) {
  .hero { grid-template-columns: 56% 44%; }
  .hero-content { padding-inline: 35px; }
  .product-row, .platform-row { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .row-actions { flex-wrap: wrap; justify-content: flex-end; }
  .explore, .demo { min-height: 44px; padding-inline: 14px; }
}
@media (min-width: 801px) and (max-height: 820px) {
  .hero-content { padding-block: 30px; }
  .eyebrow { margin-bottom: 16px; }
  h1 { margin-bottom: 30px; font-size: clamp(2.4rem, 3.3vw, 3.8rem); }
  .product-row { min-height: 116px; padding-block: 16px; }
  .platform-row { min-height: 78px; }
}
@media (max-width: 800px) {
  .header { min-height: 64px; padding-inline: 20px; }
  .header-links { gap: 18px; }
  .site-nav, .languages { font-size: .9rem; }
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero-content { order: 2; padding: 35px 22px 50px; }
  .hero-image { order: 1; height: clamp(230px, 52vw, 400px); min-height: 0; border-left: 0; }
  .hero-image::after { background: linear-gradient(0deg, #060a13a0, transparent 40%); }
  .hero-image img { object-position: center 55%; }
  h1 { max-width: 15ch; margin-bottom: 38px; font-size: clamp(2.2rem, 7vw, 3.4rem); }
  .product-row { grid-template-columns: 30px minmax(0, 1fr); min-height: 0; padding: 24px 0; }
  .product-row .row-number { align-self: start; padding-top: 9px; }
  .row-actions { grid-column: 2; justify-content: flex-start; margin-top: 4px; }
  .platform-row { grid-template-columns: 30px minmax(0, 1fr) auto; min-height: 86px; }
}
@media (prefers-reduced-motion: reduce) { .product-row, .stage-view { transition: none; } .scan { animation: none; display: none; } }

/* Chinese headline: keep words together instead of breaking mid-word */
html[lang^="zh"] h1 { max-width: 12em; word-break: keep-all; letter-spacing: 0; line-height: 1.25; }
