/* ============================================================
   SQY Code — official site styles
   Light theme by default; dark theme via [data-theme="dark"].
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-tint: #fafafa;
  --fg: #0a0a0a;
  --fg-muted: #6b6b6b;
  --fg-soft: #8a8a8a;
  --border: #e6e6e6;
  --border-strong: #d4d4d4;
  --btn-dark-bg: #0a0a0a;
  --btn-dark-fg: #ffffff;
  --btn-outline-bg: #ffffff;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  --brand: #2563eb;
  --wrap: 1120px;
  --radius: 10px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-tint: #121212;
  --fg: #f5f5f5;
  --fg-muted: #a8a8a8;
  --fg-soft: #8a8a8a;
  --border: #262626;
  --border-strong: #3a3a3a;
  --btn-dark-bg: #f5f5f5;
  --btn-dark-fg: #0a0a0a;
  --btn-outline-bg: #0a0a0a;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.4);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-mark { width: 28px; height: 28px; display: block; }

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

.nav-links a {
  font-size: 14px;
  color: var(--fg-muted);
  transition: color 0.18s var(--ease);
}
.nav-links a:hover { color: var(--fg); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--fg-muted);
  cursor: pointer;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.icon-btn:hover { color: var(--fg); border-color: var(--border); background: var(--bg-tint); }
.icon-btn svg {
  width: 18px; height: 18px; fill: none;
  stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

.menu-btn { display: none; }

.mobile-menu {
  border-top: 1px solid var(--border);
  padding: 12px 24px 20px;
  background: var(--bg);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  display: block;
  padding: 12px 0;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
}
.mobile-menu .mobile-download {
  margin-top: 12px;
  padding: 12px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease),
    border-color 0.18s var(--ease), color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.btn-dark { background: var(--btn-dark-bg); color: var(--btn-dark-fg); }
.btn-dark:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); opacity: 0.9; }

.btn-outline { background: var(--btn-outline-bg); color: var(--fg); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--fg); }

.btn-sm { min-height: 38px; padding: 0 18px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 0 34px; font-size: 16px; }

/* ---------------- Hero ---------------- */
.hero { padding: 104px 0 0; }

.hero-inner { text-align: center; }

.eyebrow, .kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-soft);
  margin: 0 0 28px;
}

.hero-title {
  font-size: clamp(44px, 6.4vw, 76px);
  letter-spacing: -0.05em;
  line-height: 1.06;
  margin-bottom: 14px;
}

.hero-title-cn {
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--fg-muted);
  margin-bottom: 34px;
}

.hero-sub {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--fg-muted);
  margin-bottom: 6px;
}
.hero-sub-cn { font-size: 15px; color: var(--fg-soft); margin-bottom: 32px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 72px;
}

.hero-shot, .wide-shot, .split-shot { margin: 0; }

.hero-shot img, .wide-shot img, .split-shot img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--bg-tint);
}

.hero-shot figcaption, .wide-shot figcaption, .split-shot figcaption {
  margin-top: 14px;
  font-size: 13px;
  color: var(--fg-soft);
  text-align: center;
}

/* ---------------- Sections ---------------- */
.section { padding: 128px 0; border-top: 1px solid var(--border); }
.section-tint { background: var(--bg-tint); }

.section-head { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.section-head .kicker { margin-bottom: 20px; }
.section-head h2 {
  font-size: clamp(34px, 4.4vw, 52px);
  letter-spacing: -0.045em;
  margin-bottom: 10px;
}
.section-head h3 {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}
.lead { font-size: 18px; color: var(--fg-muted); margin-bottom: 8px; }
.lead-cn { font-size: 15px; color: var(--fg-soft); }

/* ---------------- Split ---------------- */
.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  align-items: center;
  margin-top: 96px;
}
.split:first-of-type { margin-top: 0; }
.split-reverse { grid-template-columns: 1.15fr 0.85fr; }

.split-copy h4 {
  font-size: 28px;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
}
.split-copy h4 span {
  display: block;
  margin-top: 8px;
  font-size: 17px;
  font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: -0.02em;
}
.split-copy p { color: var(--fg-muted); font-size: 16px; }
.split-copy p.cn { color: var(--fg-soft); font-size: 14px; }

.tick-list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
}
.tick-list li {
  position: relative;
  padding: 9px 0 9px 26px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  color: var(--fg-muted);
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 17px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--brand);
}

/* ---------------- Feature list ---------------- */
.feature-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }

.feature {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 40px 8px;
  border-bottom: 1px solid var(--border);
}
.feature-no {
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-soft);
  letter-spacing: 0.04em;
  padding-top: 5px;
}
.feature-body h4 {
  font-size: 26px;
  letter-spacing: -0.035em;
  margin-bottom: 14px;
}
.feature-body h4 span {
  margin-left: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--fg-soft);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.feature-body p { color: var(--fg-muted); font-size: 16px; margin-bottom: 4px; }
.feature-body p.cn { color: var(--fg-soft); font-size: 14px; margin-bottom: 0; }

/* ---------------- Experience shots ---------------- */
.wide-shot { margin: 0 auto 88px; max-width: 960px; }
.split .split-shot { min-width: 0; }

/* ---------------- Download ---------------- */
.download { text-align: center; }
.download .kicker { margin-bottom: 22px; }
.download h2 {
  font-size: clamp(42px, 5.4vw, 64px);
  letter-spacing: -0.05em;
  margin-bottom: 10px;
}
.download h3 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 500;
  color: var(--fg-muted);
  margin-bottom: 26px;
}
.download .lead { font-size: 18px; margin-bottom: 6px; }
.download .lead-cn { margin-bottom: 36px; }

.version-line {
  font-size: 13px;
  color: var(--fg-soft);
  margin: 20px 0 34px;
  font-variant-numeric: tabular-nums;
}
.version-line span { padding: 0 6px; color: var(--border-strong); }

.download-notes {
  list-style: none;
  margin: 0 auto;
  padding: 28px 0 0;
  border-top: 1px solid var(--border);
  max-width: 480px;
  text-align: left;
}
.download-notes li {
  padding: 8px 0 8px 22px;
  position: relative;
  font-size: 14px;
  color: var(--fg-muted);
}
.download-notes li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 16px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-strong);
}
.download-foot { margin-top: 30px; font-size: 12px; color: var(--fg-soft); }

/* ---------------- Footer ---------------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-tint); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 48px;
}
.footer-brand p { margin-top: 14px; font-size: 14px; color: var(--fg-muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 28px; }
.footer-links a { font-size: 14px; color: var(--fg-muted); transition: color 0.18s var(--ease); }
.footer-links a:hover { color: var(--fg); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  padding-bottom: 26px;
  font-size: 12px;
  color: var(--fg-soft);
}

/* ---------------- Reveal animation ---------------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
  .split, .split-reverse { grid-template-columns: 1fr; gap: 40px; }
  .split-reverse .split-shot { order: -1; }
  .feature { grid-template-columns: 56px 1fr; gap: 12px; }
  .section { padding: 96px 0; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-grid; }
  .nav-inner { height: 62px; }
  html { scroll-padding-top: 72px; }
  .hero { padding-top: 72px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .section { padding: 76px 0; }
  .split { margin-top: 64px; }
  .section-head { margin-bottom: 44px; }
  .feature { padding: 28px 0; }
  .feature-body h4 { font-size: 22px; }
  .feature-body h4 span { display: block; margin: 6px 0 0; white-space: normal; }
  .wide-shot { margin-bottom: 56px; }
  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-links { gap: 18px 24px; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  .hero-title { font-size: 40px; }
  .btn { min-height: 46px; }
  .btn-lg { min-height: 52px; }
  .nav-actions .btn-sm { display: none; }
  .hero-shot img, .wide-shot img, .split-shot img { border-radius: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
