:root {
  color-scheme: light;
  --canvas: #f5f5f7;
  --surface: #fff;
  --ink: #1d1d1f;
  --muted: #606067;
  --blue: #0071e3;
  --link: #0066cc;
  --radius-card: 24px;
  --radius-media: 18px;
  --radius-pill: 999px;
  --ease: 500ms cubic-bezier(.25, .1, .25, 1);
  --nav-height: 56px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + 24px); }
body { margin: 0; background: var(--canvas); color: var(--ink); }
.preview-controls[hidden] { display: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, p, figure { margin: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }

.container { width: min(1080px, calc(100% - 48px)); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 3;
  top: 8px;
  left: 12px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgb(255 255 255 / 80%);
  border-bottom: 1px solid rgb(29 29 31 / 8%);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.nav, .nav-links, .wordmark { display: flex; align-items: center; }
.nav { justify-content: space-between; min-height: var(--nav-height); }
.wordmark { gap: 8px; font-size: 19px; font-weight: 650; letter-spacing: -.04em; }
.nav-links { gap: clamp(16px, 3vw, 32px); font-size: 13px; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; }
.nav-links a:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: .22em; }
.nav-download { color: var(--link); font-weight: 600; }

.hero-intro { text-align: center; padding: 60px 0 32px; }
.product-label { font-size: 15px; font-weight: 600; letter-spacing: .025em; }
.product-label span, .compatibility span { margin-inline: .22em; }
h1, h2 { font-weight: 650; letter-spacing: -.06em; text-wrap: balance; }
h1 { margin-top: 15px; font-size: clamp(42px, 7.2vw, 80px); line-height: 1.12; }
.hero-description {
  margin: 22px auto 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
}
.actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 24px; }
.hero .actions { margin-top: 24px; }
.button, .text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  font-size: 15px;
  font-weight: 550;
}
.button {
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  background: var(--blue);
  color: white;
  box-shadow: 0 4px 14px rgb(0 113 227 / 22%);
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
}
.button:hover { background: #0069d3; box-shadow: 0 7px 20px rgb(0 113 227 / 30%); transform: translateY(-2px); }
.button:active { transform: scale(.96); }
.text-link { color: var(--link); }
.text-link span { font-size: 1.35em; line-height: .8; }
.compatibility { color: var(--muted); margin-top: 16px; font-size: 13px; }

.product-showcase { text-align: center; }
.product-stage {
  display: grid;
  align-items: center;
  background: #e5edf7;
  border-radius: var(--radius-card);
  padding: clamp(14px, 3vw, 44px) clamp(12px, 5vw, 68px);
}
.preview-panel {
  overflow: hidden;
  border-radius: var(--radius-media);
  box-shadow: 0 18px 50px rgb(37 64 100 / 16%), 0 0 0 1px rgb(30 53 85 / 10%);
}
.preview-panel img { width: 100%; }
.preview-controls {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 4px;
  gap: 2px;
  border-radius: var(--radius-pill);
  background: #e9e9ed;
}
.preview-controls button {
  border: 0;
  border-radius: var(--radius-pill);
  padding: 8px clamp(10px, 2.7vw, 18px);
  min-height: 40px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 550;
}
.preview-controls button:hover { color: var(--ink); }
.preview-controls button[aria-selected="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 4px rgb(0 0 0 / 10%);
}

.features, .download { margin-top: clamp(80px, 10vw, 128px); }
.section-heading { margin-bottom: 32px; }
h2 { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.13; }
.section-heading > p {
  margin-top: 14px;
  color: var(--muted);
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.6;
}
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature-card {
  min-height: 226px;
  padding: clamp(23px, 3vw, 32px);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: 0 4px 12px rgb(0 0 0 / 4%);
}
.feature-cue { display: flex; align-items: center; gap: 6px; min-height: 36px; margin-bottom: 20px; }
kbd {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  padding-inline: 8px;
  border: 1px solid #e4e4e8;
  border-radius: 8px;
  background: var(--canvas);
  box-shadow: 0 2px 0 #e4e4e8;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}
.cue-note, .cue-arrow { color: var(--muted); font-size: 13px; font-weight: 550; }
.feature-card h3 { font-size: 24px; font-weight: 650; letter-spacing: -.035em; }
.feature-card > p:last-child { margin-top: 9px; color: var(--muted); font-size: 15px; line-height: 1.75; }

.download-card {
  background: #161618;
  color: #f5f5f7;
  border-radius: var(--radius-card);
  padding: clamp(48px, 8vw, 80px) 22px;
  text-align: center;
}
.download-card img { margin: 0 auto 18px; }
.download-card h2 + p { margin-top: 15px; color: #d1d1d6; font-size: 16px; line-height: 1.65; }
.download-card .actions { margin: 23px 0 20px; }
.download-card .text-link { color: #85bfff; }
.install-note { color: #b4b4bd; font-size: 13px; line-height: 1.7; }
.install-note + .install-note { margin-top: 4px; }
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  flex-wrap: wrap;
  padding: 28px 0 32px;
  color: var(--muted);
  font-size: 13px;
}
.site-footer nav { display: flex; gap: 8px 22px; flex-wrap: wrap; }
.site-footer a { display: inline-flex; align-items: center; min-height: 34px; }

@media (max-width: 800px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .container { width: calc(100% - 32px); }
  .hero-intro { padding-top: 44px; padding-bottom: 26px; }
  .hero-description br { display: none; }
  .hero-description { max-width: 26em; }
  .product-stage { border-radius: var(--radius-media); }
  .preview-panel { border-radius: 9px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; }
  .feature-cue { margin-bottom: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.product-preview {
  grid-area: 1 / 1;
  width: min(100%, 780px);
  margin-inline: auto;
}
/* Keep every panel in the shared grid cell so the tallest one sets its height. */
.product-preview[hidden] { display: block; visibility: hidden; }
.notch-previews, .notch-previews[hidden] { display: grid; gap: clamp(18px, 3vw, 32px); }
.product-preview figcaption { margin-top: 15px; color: #45566f; font-size: 13px; }
