:root {
  color-scheme: light;
  --ink: #1d1d1f;
  --muted: #86868b;
  --faint: #aeaeb2;
  --paper: #f5f5f7;
  --panel: #ffffff;
  --panel-2: #f0f0f2;
  --line: #e5e5ea;
  --line-strong: #d1d1d6;
  --accent: #0071e3;
  --accent-strong: #0058b0;
  --accent-soft: #e1f0ff;
  --success: #34c759;
  --warning: #ff9f0a;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  padding: 0.1em 0.35em;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--accent-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(229, 229, 234, 0.75);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 700;
  letter-spacing: 0;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.nav a,
.header-download {
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.nav a:hover {
  color: var(--ink);
}

.header-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-xs);
}

.header-download:hover {
  background: var(--accent-strong);
  color: #fff;
}

.hero {
  position: relative;
  min-height: 90vh;
  overflow: hidden;
  color: var(--ink);
}

.hero__bg,
.hero__overlay {
  position: absolute;
  inset: 0;
}

.hero__bg {
  background-image: url("assets/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  filter: saturate(0.86);
  transform: scale(1.02);
}

.hero__overlay {
  background:
    linear-gradient(90deg, rgba(245, 245, 247, 0.98) 0%, rgba(245, 245, 247, 0.92) 44%, rgba(245, 245, 247, 0.72) 100%),
    radial-gradient(circle at 78% 22%, rgba(0, 113, 227, 0.16), transparent 34%);
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 500px);
  align-items: center;
  gap: 56px;
  width: min(var(--max), calc(100% - 48px));
  min-height: 90vh;
  margin: 0 auto;
  padding: 104px 0 56px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(54px, 7vw, 96px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero__lead {
  max-width: 680px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 24px);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-card);
}

.button--primary:hover {
  background: var(--accent-strong);
}

.button--secondary {
  border-color: var(--line);
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}

.button--secondary:hover {
  border-color: var(--line-strong);
  background: var(--panel-2);
}

.button[aria-disabled="true"] {
  opacity: 0.52;
  cursor: not-allowed;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 620px;
  margin: 42px 0 0;
}

.hero__stats div {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.hero__stats dt {
  font-size: 22px;
  font-weight: 850;
}

.hero__stats dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.hero__visual {
  margin: 0;
  align-self: end;
}

.hero__visual img {
  aspect-ratio: 1;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-color: var(--line);
  border-radius: 16px;
  object-fit: cover;
  box-shadow: var(--shadow-xl);
}

.section {
  padding: 86px 24px;
}

.section__inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.intro-band {
  padding: 48px 24px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}

.intro-grid h2,
.section-heading h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: 0;
}

.intro-grid > p,
.section-heading p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.section-heading .latest-line {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  margin-top: 16px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-xs);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-card,
.download-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-xs);
}

.feature-card {
  min-height: 238px;
  padding: 22px;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
}

.feature-card h3,
.showcase-card h3,
.download-card h3 {
  margin: 20px 0 0;
  font-size: 20px;
  line-height: 1.18;
}

.feature-card p,
.showcase-card p,
.download-card p,
.release-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.showcase {
  background: #fff;
  border-block: 1px solid var(--line);
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.showcase-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}

.showcase-card--large {
  grid-row: span 2;
}

.showcase-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  border-bottom: 1px solid var(--line);
}

.showcase-card--large img {
  aspect-ratio: 16 / 12;
}

.showcase-card div {
  padding: 22px;
}

.downloads {
  background: var(--paper);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.download-card {
  position: relative;
  padding: 26px;
}

.download-card--preferred {
  border-color: rgba(0, 113, 227, 0.35);
  box-shadow: 0 10px 28px rgba(0, 113, 227, 0.12);
}

.download-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.os-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 850;
}

.preferred {
  display: none;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.download-card--preferred .preferred {
  display: inline;
}

.download-card .button {
  width: 100%;
  margin-top: 24px;
}

.release-note {
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.site-footer {
  padding: 34px 24px;
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.footer-inner p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner a {
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 980px) {
  .site-header {
    height: 64px;
    padding: 0 18px;
  }

  .nav {
    display: none;
  }

  .hero__content,
  .intro-grid {
    grid-template-columns: 1fr;
  }

  .hero__content {
    gap: 34px;
    width: min(100% - 36px, var(--max));
    padding-top: 96px;
  }

  .hero__visual {
    width: min(420px, 100%);
  }

  .feature-grid,
  .showcase-grid,
  .download-grid {
    grid-template-columns: 1fr;
  }

  .showcase-card--large {
    grid-row: auto;
  }
}

@media (max-width: 620px) {
  .header-download {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero__content {
    min-height: auto;
    padding-bottom: 42px;
  }

  .hero__stats {
    grid-template-columns: 1fr;
  }

  .hero__lead,
  .intro-grid > p,
  .section-heading p {
    font-size: 15px;
  }

  .section {
    padding: 62px 18px;
  }

  .intro-band {
    padding: 42px 18px;
  }

  .button {
    width: 100%;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
