:root {
  --ink: #1c1d1f;
  --ink-soft: #3c424b;
  --muted: #555f6d;
  --muted-light: #7a8492;
  --line: #e6e8ec;
  --paper: #ffffff;
  --paper-soft: #f7f8fa;
  --orange: #d93a00;
  --orange-deep: #b83200;
  --orange-soft: #fff1ea;
  --nav: #111318;
  --radius-lg: 14px;
  --radius-md: 10px;
  --shadow-soft: 0 24px 60px -28px rgba(17, 19, 24, 0.28);
  --shell: 1200px;
  --font: "Source Han Sans CN", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button {
  font: inherit;
}

.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;
}

.section-inner {
  width: min(var(--shell), calc(100% - 48px));
  margin: 0 auto;
}

/* Navigation */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(14, 16, 21, 0.9), rgba(14, 16, 21, 0.72));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(14, 16, 21, 0.96);
  box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.6);
}

.nav-shell {
  width: min(1200px, calc(100% - 48px));
  height: 65px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  width: 126px;
  height: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: auto;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #ff8c50, #ffb686);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #fff;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.menu-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header.menu-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.menu-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
  display: none;
}

body.nav-open {
  overflow: hidden;
}

/* Hero */
.hero {
  position: relative;
  min-height: 695px;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  background-color: #eaf1ff;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 36%, rgba(255, 255, 255, 0.58) 58%, rgba(255, 255, 255, 0) 79%),
    url("assets/banner-download.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
}

.hero-inner {
  width: min(var(--shell), calc(100% - 48px));
  margin: 0 auto;
  padding: 146px 0 96px;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  color: var(--ink);
  font-size: clamp(44px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.hero-copy {
  max-width: 640px;
  margin: 26px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.85;
}

.platform-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.platform-list li {
  padding: 7px 14px;
  border: 1px solid rgba(28, 29, 31, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #3a414b;
  font-size: 13px;
  line-height: 1;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hero-actions {
  display: flex;
  align-items: center;
  margin-top: 36px;
}

.download-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 60px;
  padding: 0 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #d93a00 0%, #b83200 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  box-shadow:
    0 18px 38px -14px rgba(217, 58, 0, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  animation: download-glow 3.2s ease-in-out infinite;
}

.download-primary svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.download-primary:hover {
  transform: translateY(-2px) scale(1.02);
  background: linear-gradient(135deg, #e84200 0%, #c93400 100%);
  box-shadow:
    0 24px 48px -14px rgba(217, 58, 0, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.download-primary:active {
  transform: translateY(0) scale(0.99);
}

.download-primary:focus-visible {
  outline: 3px solid #ff8c50;
  outline-offset: 4px;
}

@keyframes download-glow {
  0%, 100% {
    box-shadow:
      0 18px 38px -14px rgba(217, 58, 0, 0.55),
      inset 0 1px 0 rgba(255, 255, 255, 0.26);
  }
  50% {
    box-shadow:
      0 22px 50px -12px rgba(217, 58, 0, 0.78),
      inset 0 1px 0 rgba(255, 255, 255, 0.32);
  }
}

.hero-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
}

/* Shared section heading */
.section {
  position: relative;
}

.section-heading {
  max-width: 780px;
}

.section-heading h2,
.system-copy h2,
.architecture-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.section-heading p,
.system-copy p,
.architecture-copy p {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

/* Features */
.features {
  padding: 98px 0 112px;
  background: var(--paper);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px 32px;
  margin-top: 58px;
}

.feature-item {
  text-align: center;
}

.feature-item img {
  width: 88px;
  height: 88px;
  margin: 0 auto 18px;
}

.feature-item h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.feature-item p {
  max-width: 220px;
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

/* System compatibility */
.system-band {
  min-height: 486px;
  display: flex;
  align-items: center;
  background-color: #fff;
  background-image:
    linear-gradient(90deg, #fff 0%, #fff 44%, rgba(255, 255, 255, 0.9) 54%, rgba(255, 255, 255, 0.2) 72%, rgba(255, 255, 255, 0) 84%),
    url("assets/system-background.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

.system-inner {
  display: flex;
  align-items: center;
  min-height: 486px;
  padding: 76px 0;
}

.system-copy {
  max-width: 610px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #3d4550;
  font-size: 13px;
  line-height: 1;
  box-shadow: 0 8px 18px -16px rgba(17, 19, 24, 0.28);
}

/* Architecture */
.architecture {
  padding: 104px 0;
  background: var(--paper);
}

.architecture-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(48px, 8vw, 112px);
  align-items: center;
}

.architecture-visual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.arch-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 104px;
  padding: 20px;
  border: 1px solid #e9ebef;
  border-radius: 18px;
  background:
    linear-gradient(150deg, #ffffff 0%, #f7f8fa 100%);
  color: #55606e;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 16px;
  letter-spacing: 0.02em;
  box-shadow: 0 20px 40px -34px rgba(17, 19, 24, 0.35);
}

.arch-card:nth-child(2),
.arch-card:nth-child(3) {
  transform: translateY(18px);
}

.architecture-copy {
  text-align: right;
}

.architecture-copy p {
  max-width: 500px;
  margin-left: auto;
}

/* Stats */
.stats-band {
  padding: 64px 0;
  border-top: 1px solid #eceef2;
  border-bottom: 1px solid #eceef2;
  background: var(--paper-soft);
}

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

.stat {
  padding-right: 24px;
  border-right: 1px solid #e2e5ea;
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  color: var(--ink);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Footer */
.site-footer {
  background: var(--paper);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr 0.9fr 1.4fr;
  gap: 48px;
  padding: 72px 0 56px;
}

.footer-brand-name {
  display: block;
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer-brand p {
  max-width: 280px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.footer-col h2 {
  margin: 0 0 18px;
  color: #8a919c;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  width: fit-content;
  margin: 12px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  transition: color 0.2s ease;
}

.footer-col a:hover,
.footer-col a:focus-visible,
.legal-links a:hover,
.legal-links a:focus-visible {
  color: var(--orange);
}

.footer-contact a {
  word-break: break-all;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin-top: 20px;
}

.social-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

.social-item img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.footer-bottom {
  border-top: 1px solid var(--line);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
}

.footer-bottom p {
  margin: 0;
  color: #8a919c;
  font-size: 13px;
}

.legal-links {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #b0b5bd;
  font-size: 13px;
}

.legal-links a {
  color: #8a919c;
  transition: color 0.2s ease;
}

/* Responsive */
@media (max-width: 1080px) {
  .feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px 20px;
  }

  .feature-item img {
    width: 76px;
    height: 76px;
  }

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

  .footer-contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .site-header.menu-open .mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 10px 24px 22px;
    background: #111318;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .mobile-nav a {
    padding: 14px 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .mobile-nav a:last-child {
    border-bottom: 0;
  }

  .hero {
    min-height: 620px;
    background-position: 68% top;
    background-image:
      linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 48%, rgba(255, 255, 255, 0.5) 76%, rgba(255, 255, 255, 0.1) 100%),
      url("assets/banner-download.png");
  }

  .hero-inner {
    padding: 124px 0 76px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .system-band {
    background-position: 70% center;
    background-image:
      linear-gradient(90deg, #fff 0%, #fff 54%, rgba(255, 255, 255, 0.9) 66%, rgba(255, 255, 255, 0.4) 86%, rgba(255, 255, 255, 0.1) 100%),
      url("assets/system-background.png");
  }

  .system-inner {
    min-height: 420px;
  }

  .architecture-inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .architecture-copy {
    text-align: left;
  }

  .architecture-copy p {
    margin-left: 0;
  }

  .architecture-visual {
    max-width: 560px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .stat:nth-child(2) {
    border-right: 0;
  }

  .stat:nth-child(3),
  .stat:nth-child(4) {
    padding-top: 26px;
    border-top: 1px solid #e2e5ea;
  }

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

  .footer-contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .section-inner,
  .nav-shell,
  .hero-inner {
    width: calc(100% - 40px);
  }

  .hero {
    min-height: 610px;
    background-position: 74% top;
  }

  .hero h1 {
    font-size: 36px;
    letter-spacing: -0.04em;
  }

  .hero-copy {
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.8;
  }

  .platform-list {
    gap: 8px;
    margin-top: 22px;
  }

  .platform-list li {
    padding: 7px 11px;
    font-size: 12px;
  }

  .hero-actions {
    margin-top: 30px;
  }

  .download-primary {
    width: 100%;
    min-height: 56px;
    padding: 0 24px;
    font-size: 17px;
  }

  .download-primary svg {
    width: 20px;
    height: 20px;
  }

  .features,
  .architecture {
    padding: 72px 0;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 18px;
    margin-top: 40px;
  }

  .feature-item img {
    width: 68px;
    height: 68px;
    margin-bottom: 14px;
  }

  .feature-item h3 {
    font-size: 16px;
  }

  .feature-item p {
    font-size: 13px;
  }

  .section-heading h2,
  .system-copy h2,
  .architecture-copy h2 {
    font-size: 32px;
  }

  .section-heading p,
  .system-copy p,
  .architecture-copy p {
    font-size: 15px;
    line-height: 1.75;
  }

  .system-band {
    min-height: 0;
    background-position: 78% center;
  }

  .system-inner {
    min-height: 0;
    padding: 64px 0;
  }

  .system-copy {
    max-width: 100%;
  }

  .tag-list li {
    padding: 8px 12px;
    font-size: 12px;
  }

  .architecture-visual {
    gap: 12px;
  }

  .arch-card {
    min-height: 84px;
    font-size: 14px;
    border-radius: 14px;
  }

  .arch-card:nth-child(2),
  .arch-card:nth-child(3) {
    transform: translateY(12px);
  }

  .stats-band {
    padding: 48px 0;
  }

  .stat strong {
    font-size: 22px;
  }

  .stat span {
    font-size: 13px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 56px 0 42px;
  }

  .footer-contact {
    grid-column: auto;
  }

  .footer-brand p {
    max-width: none;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 88px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .download-primary {
    animation: none;
    transition: none;
  }

  .download-primary:hover {
    transform: none;
  }
}
