:root {
  --bg: #f7f7f5;
  --paper: #ffffff;
  --ink: #161616;
  --muted: #686866;
  --line: #d9d9d5;
  --dark: #1d1d1d;
  --accent: #e35f4d;
  --accent-dark: #bd4132;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, "SF Pro Display", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 720; }
.brand img { border-radius: 7px; }
nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
nav a, .footer-links a, .release-link { transition: color .2s ease; }
nav a:hover, .footer-links a:hover, .release-link:hover { color: var(--accent-dark); }

.hero {
  width: min(var(--max), calc(100% - 48px));
  min-height: calc(100svh - 68px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(300px, .75fr) minmax(520px, 1.35fr);
  align-items: center;
  gap: 68px;
  padding: 56px 0 84px;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 0; font-size: clamp(48px, 6vw, 86px); line-height: .98; font-weight: 800; letter-spacing: 0; }
h1 span { display: block; }
.hero-lead { max-width: 540px; margin: 28px 0 30px; color: #454543; font-size: 20px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  min-height: 48px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { color: white; background: var(--ink); }
.button.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.button.secondary { background: transparent; }
.button.secondary:hover { color: white; background: var(--ink); }
.button-icon { font-size: 20px; line-height: 1; }
.release-status { min-height: 22px; margin: 16px 0 0; color: var(--muted); font-size: 13px; }
.hero > * { min-width: 0; }
.hero-product { position: relative; }
.hero-product::before {
  content: "";
  position: absolute;
  inset: 8% -2% -7% 7%;
  z-index: -1;
  background: #dadad6;
}
.hero-product img {
  width: 100%;
  height: auto;
  border: 1px solid #bdbdb8;
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(0,0,0,.16);
}

.proof-strip {
  min-height: 86px;
  padding: 18px max(24px, calc((100vw - var(--max)) / 2));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 20px;
  color: white;
  background: var(--dark);
  font-size: 14px;
  text-align: center;
}
.proof-strip span + span { border-left: 1px solid #474747; }

.section { width: min(1100px, calc(100% - 48px)); margin: 0 auto; padding: 120px 0; }
.section-heading { max-width: 720px; margin-bottom: 50px; }
.section-heading.narrow { max-width: 620px; }
.section-heading h2, .download-section h2 { margin: 0; font-size: clamp(34px, 4vw, 56px); line-height: 1.12; letter-spacing: 0; }
.section-heading > p:last-child { margin: 18px 0 0; color: var(--muted); font-size: 18px; }

.compare-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.compare-grid figure { margin: 0; }
.compare-grid figure img { width: 100%; height: auto; border: 1px solid var(--line); }
.compare-grid figcaption { margin-top: 14px; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 14px; }
.compare-grid figcaption strong { color: var(--ink); font-size: 16px; }

.app-section { width: min(var(--max), calc(100% - 48px)); }
.app-showcase { padding: 22px; background: var(--dark); border-radius: 8px; }
.app-showcase img { width: 100%; height: auto; border: 1px solid #444; border-radius: 4px; }
.feature-list { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 46px; border-top: 1px solid var(--line); }
.feature-list article { padding: 26px 24px 0 0; }
.feature-list article + article { padding-left: 24px; border-left: 1px solid var(--line); }
.feature-list article > span { color: var(--accent-dark); font-size: 13px; font-weight: 760; }
.feature-list h3 { margin: 12px 0 8px; font-size: 20px; }
.feature-list p { margin: 0; color: var(--muted); font-size: 14px; }

.gallery-section { padding: 112px 0 128px; color: white; background: var(--dark); overflow: hidden; }
.gallery-heading { width: min(1100px, calc(100% - 48px)); margin: 0 auto 46px; }
.gallery-heading h2 { max-width: 720px; }
.gallery { width: max-content; display: flex; gap: 16px; animation: gallery-scroll 52s linear infinite; }
.gallery:hover { animation-play-state: paused; }
.gallery img { width: min(38vw, 470px); height: auto; object-fit: contain; flex: none; background: white; }
@keyframes gallery-scroll { from { transform: translateX(0); } to { transform: translateX(calc(-50% + 24vw)); } }

.download-section { padding: 120px max(24px, calc((100vw - var(--max)) / 2)); background: #e9e9e5; }
.download-inner { display: grid; grid-template-columns: 1fr minmax(420px, .8fr); gap: 90px; align-items: start; }
.download-inner > div:first-child > p:last-child { max-width: 600px; margin: 20px 0 0; color: var(--muted); font-size: 18px; }
.download-options { border-top: 1px solid #aaa; }
.download-row { min-height: 88px; display: grid; grid-template-columns: 54px 1fr 24px; gap: 16px; align-items: center; border-bottom: 1px solid #aaa; transition: background .2s ease, padding .2s ease; }
.download-row:hover { padding: 0 12px; background: var(--paper); }
.platform-mark { width: 48px; height: 34px; display: grid; place-items: center; color: white; background: var(--ink); border-radius: 4px; font-size: 12px; font-weight: 760; }
.download-row strong, .download-row small { display: block; }
.download-row small { margin-top: 2px; color: var(--muted); }
.release-link { display: inline-block; margin-top: 18px; font-size: 14px; font-weight: 700; }
details { max-width: 760px; margin-top: 54px; color: var(--muted); font-size: 14px; }
summary { color: var(--ink); cursor: pointer; font-weight: 700; }

footer {
  padding: 34px max(24px, calc((100vw - var(--max)) / 2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  background: var(--paper);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.footer-brand { color: var(--ink); }
.footer-links { justify-self: end; display: flex; gap: 20px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery { animation: none; }
  .button { transition: none; }
}

@media (max-width: 900px) {
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 44px; padding: 64px 0 74px; }
  .hero-copy { max-width: 700px; }
  .proof-strip { grid-template-columns: repeat(2, 1fr); }
  .proof-strip span + span { border: 0; }
  .feature-list { grid-template-columns: repeat(2, 1fr); }
  .feature-list article:nth-child(3) { padding-left: 0; border-left: 0; }
  .download-inner { grid-template-columns: 1fr; gap: 48px; }
  footer { grid-template-columns: 1fr; text-align: center; }
  .footer-brand, .footer-links { justify-self: center; }
}

@media (max-width: 640px) {
  .site-header { height: 60px; padding: 0 18px; }
  .brand span { font-size: 14px; }
  nav { gap: 14px; }
  nav a:nth-child(-n+2) { display: none; }
  .hero { width: min(100% - 32px, var(--max)); padding: 48px 0 58px; }
  h1 { max-width: 100%; font-size: 40px; line-height: 1.05; text-wrap: balance; }
  .hero-lead { margin: 20px 0 24px; font-size: 17px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .button { width: 100%; }
  .proof-strip { padding-inline: 18px; font-size: 13px; }
  .section { width: min(100% - 32px, 1100px); padding: 82px 0; }
  .section-heading { margin-bottom: 34px; }
  .section-heading h2, .download-section h2 { font-size: 34px; }
  .section-heading > p:last-child, .download-inner > div:first-child > p:last-child { font-size: 16px; }
  .compare-grid { grid-template-columns: 1fr; gap: 42px; }
  .app-section { width: min(100% - 24px, var(--max)); }
  .app-showcase { padding: 8px; border-radius: 5px; }
  .feature-list { grid-template-columns: 1fr; margin-top: 32px; }
  .feature-list article, .feature-list article + article { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .gallery-section { padding: 80px 0 96px; }
  .gallery-heading { width: min(100% - 32px, 1100px); }
  .gallery img { width: 74vw; }
  .gallery { animation-duration: 44s; }
  .download-section { padding: 82px 18px; }
  .download-inner { gap: 36px; }
  .download-row { grid-template-columns: 50px 1fr 18px; }
  footer { padding: 30px 18px; }
}
