:root {
  --bg: #f6f4ee;
  --surface: #ffffff;
  --surface-2: #e8ebe6;
  --ink: #111114;
  --muted: #5d626c;
  --line: #d8d6cd;
  --accent: #ef5b2a;
  --accent-dark: #b83d1a;
  --blue: #184de8;
  --green: #0a8f68;
  --gold: #d8a22a;
  --shadow: 0 24px 70px rgba(17, 17, 20, 0.16);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "HarmonyOS Sans SC", "MiSans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  padding: 0.08rem 0.32rem;
  border: 1px solid rgba(17, 17, 20, 0.14);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.68);
  font-family: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  font-size: 0.92em;
}

.shell {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  border-bottom: 1px solid rgba(17, 17, 20, 0.08);
  background: rgba(246, 244, 238, 0.78);
  backdrop-filter: blur(18px);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(246, 244, 238, 0.94);
  box-shadow: 0 10px 40px rgba(17, 17, 20, 0.08);
}

.nav-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  padding: 4px;
  border: 1px solid rgba(17, 17, 20, 0.2);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 4px 4px 0 var(--ink);
}

.brand-mark span {
  display: block;
  border-radius: 2px;
}

.brand-mark span:nth-child(1) {
  background: var(--accent);
}

.brand-mark span:nth-child(2) {
  background: var(--blue);
}

.brand-mark span:nth-child(3) {
  background: var(--green);
}

.brand-mark span:nth-child(4) {
  background: var(--gold);
}

.brand-text {
  font-size: 1.05rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 6px;
  color: rgba(17, 17, 20, 0.72);
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(17, 17, 20, 0.06);
  color: var(--ink);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid rgba(17, 17, 20, 0.16);
  border-radius: 6px;
  background: var(--surface);
}

.menu-button span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 112px 0 70px;
  background:
    linear-gradient(90deg, rgba(246, 244, 238, 1) 0%, rgba(246, 244, 238, 0.94) 36%, rgba(246, 244, 238, 0.64) 62%, rgba(246, 244, 238, 0.92) 100%),
    repeating-linear-gradient(90deg, rgba(17, 17, 20, 0.06) 0 1px, transparent 1px 84px);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 26%;
  background: linear-gradient(180deg, rgba(246, 244, 238, 0), var(--bg));
  pointer-events: none;
}

.hero-art {
  position: absolute;
  right: max(-120px, -8vw);
  top: 12%;
  width: min(900px, 62vw);
  transform: rotate(-3deg);
  filter: drop-shadow(0 40px 70px rgba(17, 17, 20, 0.24));
}

.hero-art img {
  border-radius: 8px;
}

.hero-shell {
  position: relative;
  z-index: 2;
}

.hero-copy {
  max-width: 650px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-family: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: 5.35rem;
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-lede {
  max-width: 590px;
  margin: 28px 0 0;
  color: rgba(17, 17, 20, 0.76);
  font-size: 1.2rem;
  line-height: 1.85;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  font-weight: 850;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 6px 6px 0 var(--accent);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 8px 8px 0 var(--accent);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.72);
}

.windows-icon {
  width: 18px;
  height: 18px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

.windows-icon i {
  display: block;
  background: currentColor;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 620px;
  margin: 42px 0 0;
  border-block: 1px solid rgba(17, 17, 20, 0.2);
}

.hero-facts div {
  padding: 18px 18px 18px 0;
}

.hero-facts div + div {
  padding-left: 18px;
  border-left: 1px solid rgba(17, 17, 20, 0.18);
}

.hero-facts dt {
  color: var(--muted);
  font-size: 0.84rem;
}

.hero-facts dd {
  margin: 4px 0 0;
  font-weight: 850;
}

.download-strip {
  position: relative;
  z-index: 4;
  margin-top: -1px;
  padding: 64px 0;
  background: var(--ink);
  color: #fff;
}

.download-layout {
  display: grid;
  grid-template-columns: 0.88fr 1.15fr;
  gap: 34px;
  align-items: start;
}

.download-layout h2,
.section-heading h2,
.preview-copy h2,
.release-layout h2,
.faq-layout h2 {
  margin: 0;
  font-size: 2.6rem;
  line-height: 1.14;
  letter-spacing: 0;
  text-wrap: balance;
}

.download-layout p,
.section-heading p,
.preview-copy p {
  max-width: 690px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.72);
  text-wrap: pretty;
}

.download-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.download-card {
  min-height: 190px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: #202025;
  color: #fff;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.download-card:only-child {
  grid-column: 1 / -1;
}

.download-card:hover,
.download-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.5);
  background: #2b2b31;
}

.download-card strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1.2;
}

.download-card span {
  color: rgba(255, 255, 255, 0.72);
}

.primary-download {
  background: var(--accent);
  color: #111114;
}

.primary-download:hover,
.primary-download:focus-visible {
  background: #ff7040;
}

.primary-download span {
  color: rgba(17, 17, 20, 0.72);
}

.download-card-label {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 4px 8px;
  border: 1px solid rgba(17, 17, 20, 0.18);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.28);
  font-size: 0.8rem;
  font-weight: 850;
}

.release-box {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  overflow: hidden;
}

.release-box div {
  padding: 18px 20px;
}

.release-box div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.release-box span {
  display: block;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.86rem;
}

.release-box strong {
  display: block;
  margin-top: 6px;
}

.copy-button {
  min-height: 44px;
  margin-top: 6px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 5px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.section {
  padding: 96px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.86fr 1fr;
  gap: 46px;
  align-items: end;
  margin-bottom: 36px;
}

.section-heading p,
.preview-copy p {
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.feature-card {
  min-height: 285px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid rgba(17, 17, 20, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.feature-card-strong {
  background: var(--surface-2);
}

.feature-card span {
  color: var(--blue);
  font-family: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  font-weight: 900;
}

.feature-card h3 {
  margin: auto 0 12px;
  font-size: 1.42rem;
  line-height: 1.2;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.preview-section {
  background: #fff;
}

.preview-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 56px;
  align-items: center;
}

.plain-list {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  border-block: 1px solid rgba(17, 17, 20, 0.16);
}

.plain-list li {
  padding: 14px 0;
  color: var(--muted);
}

.plain-list li + li {
  border-top: 1px solid rgba(17, 17, 20, 0.1);
}

.product-frame {
  margin: 0;
}

.product-frame img {
  width: 100%;
  border: 1px solid rgba(17, 17, 20, 0.16);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.product-frame figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.release-section {
  background: var(--surface-2);
}

.release-layout {
  display: grid;
  grid-template-columns: 0.36fr 1fr;
  gap: 50px;
}

.timeline {
  border-top: 1px solid rgba(17, 17, 20, 0.18);
}

.timeline article {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(17, 17, 20, 0.18);
}

.timeline time {
  color: var(--accent-dark);
  font-family: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  font-size: 0.9rem;
  font-weight: 850;
}

.timeline h3 {
  margin: 0;
  font-size: 1.25rem;
}

.timeline p {
  margin: 8px 0 0;
  color: var(--muted);
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.4fr 1fr;
  gap: 50px;
}

.faq-list {
  border-top: 1px solid rgba(17, 17, 20, 0.18);
}

details {
  border-bottom: 1px solid rgba(17, 17, 20, 0.18);
}

summary {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  font-weight: 850;
}

summary::after {
  content: "+";
  font-size: 1.5rem;
  line-height: 1;
}

details[open] summary::after {
  content: "-";
}

details p {
  max-width: 680px;
  margin: 0;
  padding: 0 0 22px;
  color: var(--muted);
}

.site-footer {
  padding: 44px 0;
  background: var(--ink);
  color: #fff;
}

.footer-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: start;
}

.site-footer p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.62);
}

.footer-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
}

.copyright {
  grid-column: 1 / -1;
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    padding-top: 112px;
  }

  .hero-art {
    opacity: 0.28;
    right: -220px;
    width: 820px;
  }

  .hero h1 {
    font-size: 4.1rem;
  }

  .download-layout,
  .section-heading,
  .preview-layout,
  .release-layout,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 28px, 1160px);
  }

  .menu-button {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 72px 14px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid rgba(17, 17, 20, 0.14);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    justify-content: center;
  }

  .hero {
    padding: 102px 0 54px;
  }

  .hero-art {
    top: 210px;
    right: -260px;
    width: 650px;
    opacity: 0.18;
  }

  .hero h1 {
    font-size: 3.2rem;
  }

  .hero-lede {
    font-size: 1rem;
  }

  .hero-actions {
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .hero-facts,
  .download-actions,
  .release-box,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-facts div + div,
  .release-box div + div {
    border-left: 0;
    border-top: 1px solid rgba(17, 17, 20, 0.18);
  }

  .release-box div + div {
    border-top-color: rgba(255, 255, 255, 0.16);
  }

  .hero-facts div {
    padding: 14px 0;
  }

  .hero-facts div + div {
    padding-left: 0;
  }

  .download-layout h2,
  .section-heading h2,
  .preview-copy h2,
  .release-layout h2,
  .faq-layout h2 {
    font-size: 2.05rem;
  }

  .section {
    padding: 68px 0;
  }

  .timeline article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .footer-layout {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
