:root {
  color-scheme: dark;
  --bg: oklch(14% 0.032 238);
  --bg-deep: oklch(9% 0.026 242);
  --surface: oklch(18% 0.04 236);
  --surface-raised: oklch(23% 0.047 233);
  --line: oklch(49% 0.075 227 / 48%);
  --line-soft: oklch(49% 0.075 227 / 23%);
  --ink: oklch(97% 0.012 225);
  --muted: oklch(78% 0.04 226);
  --blue: oklch(74% 0.15 238);
  --mint: oklch(82% 0.13 166);
  --violet: oklch(70% 0.15 290);
  font-family: "Segoe UI Variable", "Segoe UI", "Microsoft YaHei UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg-deep); }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 72% 22%, oklch(55% 0.17 240 / 18%), transparent 28rem),
    radial-gradient(circle at 20% 84%, oklch(70% 0.13 166 / 9%), transparent 25rem),
    linear-gradient(132deg, var(--bg-deep), var(--bg) 52%, oklch(12% 0.038 225));
  color: var(--ink);
}

button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header,
.hero,
.capabilities,
.release-history,
.site-footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img, .app-identity img { border-radius: 9px; }
.brand span { display: flex; flex-direction: column; gap: 1px; }
.brand strong { font-size: 17px; font-weight: 740; }
.brand small { color: var(--muted); font-size: 12px; }

.platform-mark,
.release-state {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
}
.platform-mark {
  padding: 9px 13px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: oklch(20% 0.035 235 / 72%);
}
.status-dot,
.release-state i,
.stage-heading small i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 9px oklch(82% 0.13 166 / 72%);
}

.hero {
  display: grid;
  min-height: min(690px, calc(100vh - 190px));
  align-items: center;
  padding-block: clamp(54px, 8vw, 100px);
  grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
  gap: clamp(42px, 7vw, 88px);
}
.brand-line {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}
h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(42px, 5.4vw, 72px);
  font-weight: 780;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-wrap: balance;
}
.hero-intro {
  max-width: 56ch;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.82;
}
.hero-actions { display: flex; flex-wrap: wrap; margin-top: 36px; gap: 12px; }
.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}
.primary-action { border: 0; background: var(--blue); color: oklch(15% 0.055 238); }
.secondary-action { border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.primary-action:hover, .secondary-action:hover { transform: translateY(-2px); }
.secondary-action:hover { border-color: var(--blue); background: var(--surface-raised); }
.primary-action svg,
.secondary-action svg,
.dialog-close svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
.release-line { display: flex; flex-wrap: wrap; margin-top: 22px; color: oklch(71% 0.035 229); font-size: 12px; gap: 8px 16px; }

.product-panel { position: relative; min-height: 500px; perspective: 1200px; }
.window-shell {
  position: absolute;
  inset: 38px 0 26px;
  overflow: hidden;
  border: 1px solid oklch(57% 0.1 230 / 68%);
  border-radius: 14px;
  background: oklch(15% 0.04 236);
  box-shadow: 0 8px 8px oklch(5% 0.02 240 / 32%);
  transform: rotateY(-5deg) rotateX(1deg);
}
.window-titlebar {
  display: flex;
  height: 54px;
  align-items: center;
  justify-content: space-between;
  padding-inline: 17px;
  border-bottom: 1px solid var(--line-soft);
  background: oklch(12% 0.028 237);
}
.app-identity { display: flex; min-width: 0; align-items: center; gap: 9px; font-size: 12px; font-weight: 650; }
.app-identity span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.window-actions { display: flex; gap: 12px; }
.window-actions i { display: block; width: 11px; height: 1px; background: oklch(74% 0.03 230); }
.window-actions i:nth-child(2) { width: 8px; height: 8px; border: 1px solid oklch(74% 0.03 230); background: transparent; }
.window-actions i:nth-child(3) { position: relative; width: 10px; background: transparent; }
.window-actions i:nth-child(3)::before,
.window-actions i:nth-child(3)::after { position: absolute; top: 4px; width: 10px; height: 1px; background: oklch(74% 0.03 230); content: ""; transform: rotate(45deg); }
.window-actions i:nth-child(3)::after { transform: rotate(-45deg); }

.workspace { display: flex; height: calc(100% - 54px); }
.rail { display: flex; width: 64px; flex: 0 0 64px; flex-direction: column; align-items: center; gap: 20px; padding-top: 25px; border-right: 1px solid var(--line-soft); background: oklch(13% 0.035 237); }
.rail span { width: 23px; height: 23px; border-radius: 6px; background: oklch(38% 0.055 230); }
.rail .active { background: var(--blue); box-shadow: 0 0 16px oklch(70% 0.15 238 / 28%); }
.stage { min-width: 0; flex: 1; padding: 25px 24px 20px; }
.stage-heading { display: flex; align-items: center; justify-content: space-between; font-size: 15px; }
.stage-heading small { display: inline-flex; align-items: center; color: var(--mint); font-size: 10px; gap: 6px; }
.stage-heading small i { width: 5px; height: 5px; }
.device-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.device {
  display: flex;
  min-height: 204px;
  flex-direction: column;
  justify-content: flex-end;
  gap: 9px;
  padding: 14px 10px;
  border: 1px solid oklch(50% 0.065 229 / 54%);
  border-radius: 10px;
  background: radial-gradient(circle at 50% 18%, oklch(65% 0.14 240 / 12%), transparent 55%), oklch(18% 0.038 234);
}
.device.primary { border-color: var(--blue); }
.device b { margin-bottom: auto; color: var(--muted); font-size: 11px; font-weight: 650; }
.device span { height: 7px; border-radius: 4px; background: oklch(42% 0.06 230); }
.device span:nth-child(2) { width: 72%; background: oklch(72% 0.12 238); }
.device span:nth-child(3) { width: 48%; margin-left: auto; background: oklch(75% 0.12 167); }
.signals { display: flex; align-items: center; gap: 12px; margin-top: 19px; padding-top: 15px; border-top: 1px solid var(--line-soft); color: oklch(73% 0.035 228); font-size: 10px; }
.signals span { display: inline-flex; align-items: center; gap: 5px; }
.signals i { width: 5px; height: 5px; border-radius: 50%; }
.signals .blue { background: var(--blue); }
.signals .mint { background: var(--mint); }
.signals .violet { background: var(--violet); }
.signals b { margin-left: auto; color: var(--mint); }

.capabilities { display: flex; border-block: 1px solid var(--line-soft); }
.capabilities > div { flex: 1 1 0; padding: 25px clamp(18px, 3vw, 38px); }
.capabilities > div + div { border-left: 1px solid var(--line-soft); }
.capabilities strong { display: block; font-size: 14px; }
.capabilities span { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.55; }

.release-history { display: grid; grid-template-columns: minmax(210px, 0.72fr) minmax(0, 1.8fr); gap: clamp(32px, 6vw, 84px); padding-block: clamp(42px, 6vw, 72px); border-top: 1px solid var(--line-soft); }
.release-history[hidden] { display: none; }
.release-history h2 { margin: 0 0 10px; font-size: clamp(26px, 3vw, 38px); line-height: 1.15; }
.release-history p { max-width: 31ch; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.release-history details { border-block: 1px solid var(--line); }
.release-history summary { display: flex; min-height: 58px; cursor: pointer; list-style: none; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 650; }
.release-history summary::-webkit-details-marker { display: none; }
.release-history summary b { margin-left: 7px; color: var(--mint); font-size: 11px; }
.release-history summary svg { width: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; transition: transform 180ms ease; }
.release-history details[open] summary svg { transform: rotate(180deg); }
.release-history-list { border-top: 1px solid var(--line-soft); }
.release-history-row { display: grid; grid-template-columns: minmax(90px, 0.55fr) minmax(220px, 1.8fr) minmax(140px, 0.9fr) auto; align-items: center; gap: 22px; padding-block: 20px; }
.release-history-row + .release-history-row { border-top: 1px solid var(--line-soft); }
.release-identity { display: flex; align-items: center; gap: 8px; }
.latest-tag { padding: 3px 6px; border: 1px solid oklch(77% 0.13 170 / 44%); border-radius: 8px; color: var(--mint); font-size: 9px; font-weight: 750; }
.release-description strong { display: block; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.release-description p { display: -webkit-box; margin: 5px 0 0; overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.release-meta { color: var(--muted); font-size: 11px; }
.release-download { padding: 8px 13px; border: 1px solid var(--line); border-radius: 8px; font-size: 11px; font-weight: 650; text-decoration: none; }
.release-download:hover { border-color: var(--blue); background: oklch(64% 0.18 245 / 10%); }

.site-footer { display: flex; min-height: 92px; align-items: center; justify-content: space-between; color: oklch(66% 0.025 230); font-size: 11px; gap: 24px; }

.contact-dialog { width: min(900px, calc(100% - 32px)); max-width: none; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); }
.contact-dialog::backdrop { background: oklch(5% 0.02 240 / 76%); backdrop-filter: blur(5px); }
.dialog-shell { position: relative; display: grid; min-height: 470px; grid-template-columns: 1.12fr 0.88fr; }
.contact-copy { padding: clamp(38px, 6vw, 64px); background: radial-gradient(circle at 20% 20%, oklch(60% 0.16 242 / 14%), transparent 20rem), oklch(16% 0.039 238); }
.contact-copy > p:first-of-type { margin: 0 0 8px; color: var(--blue); font-size: 13px; font-weight: 700; }
.contact-copy h2 { margin: 0; font-size: clamp(31px, 4vw, 44px); letter-spacing: -0.03em; }
.contact-copy h2 + p { max-width: 43ch; margin: 20px 0 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.contact-copy ul { margin: 26px 0 0; padding: 0; color: oklch(72% 0.034 228); font-size: 12px; line-height: 1.8; list-style: none; }
.contact-copy li { position: relative; padding-left: 17px; }
.contact-copy li::before { position: absolute; top: 0.7em; left: 1px; width: 5px; height: 5px; border-radius: 50%; background: var(--mint); content: ""; }
.qr-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 45px 34px; background: oklch(21% 0.043 231); text-align: center; }
.qr-frame { display: grid; width: min(240px, 70vw); aspect-ratio: 1; place-items: center; padding: 14px; border-radius: 14px; background: white; }
.qr-frame img { display: none; width: 100%; height: 100%; object-fit: contain; }
.qr-frame.has-image img { display: block; }
.qr-frame.has-image .qr-unavailable { display: none; }
.qr-unavailable { display: flex; flex-direction: column; align-items: center; color: oklch(42% 0.04 230); font-size: 12px; gap: 13px; }
.qr-unavailable svg { width: 62px; height: 62px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.qr-panel > strong { margin-top: 22px; font-size: 15px; }
.qr-panel > span { margin-top: 8px; color: var(--muted); font-size: 11px; }
.dialog-close { position: absolute; top: 14px; right: 14px; z-index: 1; display: grid; width: 36px; height: 36px; padding: 0; place-items: center; border: 1px solid var(--line-soft); border-radius: 9px; background: oklch(15% 0.03 235 / 78%); color: var(--muted); cursor: pointer; }
.dialog-close:hover { border-color: var(--blue); color: var(--ink); }

@media (max-width: 980px) {
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .product-panel { min-height: 510px; }
}
@media (max-width: 680px) {
  .site-header, .hero, .capabilities, .release-history, .site-footer { width: min(100% - 28px, 1180px); }
  .site-header { min-height: 74px; }
  .brand small { display: none; }
  .platform-mark { padding: 8px 10px; font-size: 11px; }
  .hero { padding-block: 46px 38px; gap: 34px; }
  h1 { max-width: none; font-size: clamp(38px, 11vw, 54px); }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .product-panel { min-height: 390px; }
  .window-shell { inset: 24px 0 12px; transform: none; }
  .rail { width: 48px; flex-basis: 48px; }
  .stage { padding: 18px 13px 14px; }
  .device-grid { gap: 7px; }
  .device { min-height: 134px; padding: 10px 7px; }
  .signals span:nth-child(2), .signals span:nth-child(3) { display: none; }
  .capabilities { flex-direction: column; }
  .capabilities > div + div { border-top: 1px solid var(--line-soft); border-left: 0; }
  .release-history { grid-template-columns: 1fr; gap: 26px; }
  .release-history-row { grid-template-columns: 1fr auto; gap: 9px 16px; }
  .release-description, .release-meta { grid-column: 1; }
  .release-download { grid-row: 1 / span 3; grid-column: 2; }
  .site-footer { min-height: 110px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; }
  .dialog-shell { grid-template-columns: 1fr; }
  .contact-copy { padding: 38px 28px 30px; }
  .contact-copy ul { display: none; }
  .qr-panel { padding: 30px 24px 38px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
