:root {
  color-scheme: dark;
  font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  background: #101317;
  color: #f4f5f0;
  --muted: #b2bdc0;
  --accent: #c5fa78;
  --line: #323b3d;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.shell { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.top, .top nav, .brand { display: flex; align-items: center; }
.top { justify-content: space-between; min-height: 76px; border-bottom: 1px solid var(--line); }
.top nav { gap: clamp(16px, 4vw, 36px); color: var(--muted); }
.top nav a:hover { color: var(--accent); }
.brand { gap: 10px; font-weight: 750; font-size: 1.2rem; }
.hero { min-height: 570px; padding-block: 78px; display: grid; grid-template-columns: 1fr 1.04fr; align-items: center; gap: clamp(30px, 6vw, 80px); }
.platform { color: var(--accent); font-weight: 650; }
h1, h2, h3, p { margin: 0; }
h1 { margin-top: 14px; font-size: clamp(2.4rem, 5.6vw, 4.6rem); line-height: 1.15; letter-spacing: -.06em; }
h1 span { color: var(--accent); }
.lead { color: var(--muted); margin: 24px 0 28px; max-width: 34ch; font-size: 1.125rem; }
.button { display: inline-block; background: var(--accent); color: #172013; border-radius: 9px; padding: 12px 20px; font-weight: 750; }
.button:hover { background: #ddffa9; }
.demo { min-width: 0; background: #191e23; border: 1px solid #384447; border-radius: 18px; overflow: hidden; box-shadow: 0 16px 70px #bafd7014; }
.window-bar { display: flex; align-items: center; gap: 13px; padding: 13px 18px; font-size: .875rem; color: var(--muted); }
.lights { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.canvas { padding: 26px; background-color: #232c2d; background-image: radial-gradient(#435152 1px, transparent 1px); background-size: 15px 15px; }
.sample-label { color: #dae4d9; font-size: .875rem; margin-bottom: 10px; }
.selection { border: 1px solid var(--accent); background: #26362c; padding: 18px; font-size: clamp(1.55rem, 3.5vw, 2.8rem); font-weight: 700; line-height: 1.12; letter-spacing: -.035em; }
.demo-actions { display: flex; gap: 9px; padding: 16px 18px 10px; }
.demo button { cursor: pointer; border: 1px solid var(--line); border-radius: 7px; padding: 6px 12px; font: inherit; font-size: .875rem; background: #262d31; color: #e9efeb; }
.demo button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.result { padding: 0 18px 18px; }
.result span { color: var(--muted); font-size: .875rem; }
.result p { overflow-wrap: anywhere; }
.features { border-top: 1px solid var(--line); padding-block: 54px 66px; }
h2 { font-size: clamp(1.7rem, 4vw, 2.45rem); line-height: 1.25; }
.grid { margin-top: 26px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
article { border: 1px solid var(--line); border-radius: 12px; padding: 20px; background: #191e23; }
article img { filter: brightness(0) invert(1); }
article h3 { margin: 8px 0; font-size: 1.12rem; }
article p, .download p, footer { color: var(--muted); }
.download { display: flex; align-items: center; justify-content: space-between; gap: 22px; background: #233025; border: 1px solid #3f553c; border-radius: 15px; padding: clamp(20px, 5vw, 45px); }
.download p { max-width: 52ch; margin-top: 12px; }
code { overflow-wrap: anywhere; }
.status { color: var(--accent); border: 1px solid #5b7352; border-radius: 8px; padding: 8px 14px; white-space: nowrap; }
footer { padding-block: 28px; }
@media (max-width: 840px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 660px) {
  .shell { width: calc(100% - 32px); }
  .hero { grid-template-columns: 1fr; padding-block: 46px; }
  .download { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 430px) {
  .grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
