:root {
  color-scheme: light only;
  --bg: #ffffff;
  --text: #14181f;
  --muted: #5f6673;
  --soft: #f5f6f8;
  --accent: #1a6cff;
  --accent-hover: #0e57e0;
  --accent-soft: #eef4ff;
  --button-text: #ffffff;
  --shadow: 0 12px 40px rgb(20 30 50 / 10%);
  --shadow-large: 0 24px 72px rgb(20 30 50 / 14%);
  --radius: 14px;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Segoe UI Variable", "Segoe UI", "Microsoft YaHei UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--button-text);
  background: var(--accent);
  border-radius: var(--radius-pill);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(255 255 255 / 88%);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  width: min(1120px, calc(100% - 48px));
  min-height: 72px;
  margin: 0 auto;
}

.wordmark {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 760;
  letter-spacing: -0.01em;
}

.wordmark img {
  width: 34px;
  height: 34px;
}

.site-header nav {
  display: flex;
  gap: 32px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.site-header nav a,
.footer-links a,
.text-link {
  transition: color 160ms ease;
}

.site-header nav a:hover,
.site-header nav a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  color: var(--accent);
}

.header-download {
  justify-self: end;
  min-height: 42px;
  padding: 10px 22px;
  color: var(--button-text);
  background: var(--accent);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 160ms ease, transform 160ms ease;
}

.header-download:hover {
  background: var(--accent-hover);
}

.header-download:active {
  transform: translateY(1px);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 56px;
  align-items: center;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 88px 0 72px;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  display: inline-block;
  margin: 0 0 20px;
  padding: 7px 16px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 5.4vw, 64px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-copy {
  max-width: 460px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

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

.hero-meta {
  margin: 26px 0 0;
  color: #9aa1ac;
  font-size: 13px;
}

.hero-visual {
  position: relative;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 8% -10% -12% -8%;
  z-index: -1;
  background: radial-gradient(closest-side, #e3edff 0%, #ffffff00 100%);
}

.hero-visual img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-large);
}

/* ---------- buttons ---------- */

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

.button.primary {
  color: var(--button-text);
  background: var(--accent);
  box-shadow: 0 10px 26px rgb(26 108 255 / 32%);
}

.button.primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 12px 30px rgb(26 108 255 / 38%);
}

.button.secondary {
  color: var(--accent);
  background: var(--accent-soft);
}

.button.secondary:hover {
  background: #dfeaff;
}

.text-link {
  color: var(--text);
  font-size: 15px;
  font-weight: 680;
}

/* ---------- stats ---------- */

.stats {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding-bottom: 96px;
}

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

.stats-inner div {
  padding: 26px 30px;
  background: var(--soft);
  border-radius: var(--radius);
}

.stats-inner strong,
.stats-inner span {
  display: block;
}

.stats-inner strong {
  font-size: 19px;
  font-weight: 760;
}

.stats-inner span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13.5px;
}

/* ---------- sections ---------- */

.product-section,
.flow-section,
.safety-section {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 90px 0;
  scroll-margin-top: 80px;
}

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

.section-heading.center,
.safety-copy.center,
.download-copy.center {
  margin: 0 auto;
  text-align: center;
}

.section-heading h2,
.safety-copy h2,
.download-copy h2 {
  margin: 0;
  font-size: clamp(30px, 3.8vw, 42px);
  line-height: 1.2;
  font-weight: 780;
  letter-spacing: -0.015em;
}

.section-heading p,
.safety-copy > p,
.download-copy > p {
  max-width: 560px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.product-shot {
  width: 100%;
  margin: 52px 0 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-large);
}

.product-shot img {
  width: 100%;
  height: auto;
}

/* ---------- flow ---------- */

.flow-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}

.flow-list li {
  min-width: 0;
  padding: 28px 26px;
  background: var(--soft);
  border-radius: var(--radius);
}

.flow-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 50%;
  font-size: 15px;
  font-weight: 760;
}

.flow-list strong {
  display: block;
  margin-top: 18px;
  font-size: 17px;
  font-weight: 720;
}

.flow-list p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

/* ---------- safety ---------- */

.safety-section {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 72px;
  align-items: center;
}

.safety-copy .section-heading,
.safety-copy h2,
.safety-copy > p {
  text-align: left;
}

.safety-copy > p {
  margin-left: 0;
}

.safety-copy dl {
  margin: 34px 0 0;
}

.safety-copy dl div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  padding: 14px 0;
}

.safety-copy dt,
.safety-copy dd {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
}

.safety-copy dt {
  color: var(--accent);
  font-weight: 720;
}

.safety-copy dd {
  color: var(--muted);
}

.settings-shot {
  max-height: 620px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-large);
}

.settings-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

/* ---------- download ---------- */

.download-section {
  background: var(--soft);
  scroll-margin-top: 80px;
}

.download-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 72px;
  align-items: center;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 96px 0;
}

.download-copy > p {
  margin-left: auto;
  margin-right: auto;
}

.download-options {
  display: grid;
  gap: 18px;
}

.download-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 30px;
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.download-card-head h3,
.download-card-head p {
  margin: 0;
}

.download-card-head h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 740;
}

.download-card-head .tag {
  padding: 4px 10px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
}

.download-card-head p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.download-card-head p a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.download-card .button {
  align-self: flex-start;
}

.download-card code {
  color: #a6adb8;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 10.5px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

/* ---------- footer ---------- */

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  width: min(1120px, calc(100% - 48px));
  min-height: 100px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 13px;
}

.footer-inner strong {
  color: var(--text);
  font-size: 16px;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 22px;
}

/* ---------- motion ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 460ms ease, transform 460ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid #7db0ff;
  outline-offset: 3px;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    width: min(100% - 32px, 1120px);
  }

  .site-header nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 60px 0 56px;
  }

  .hero-visual::after {
    inset: 4% -6% -10% -4%;
  }

  .stats,
  .product-section,
  .flow-section,
  .safety-section,
  .download-inner,
  .footer-inner {
    width: min(100% - 40px, 1120px);
  }

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

  .safety-section,
  .download-inner {
    grid-template-columns: 1fr;
  }

  .safety-section {
    gap: 48px;
  }

  .download-inner {
    gap: 46px;
  }
}

@media (max-width: 600px) {
  .header-inner {
    width: calc(100% - 28px);
    min-height: 64px;
  }

  .wordmark {
    font-size: 18px;
  }

  .wordmark img {
    width: 30px;
    height: 30px;
  }

  .header-download {
    min-height: 38px;
    padding: 8px 16px;
    font-size: 13px;
  }

  .hero {
    width: calc(100% - 32px);
    padding: 46px 0 48px;
  }

  .hero h1 {
    font-size: 40px;
  }

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

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .stats,
  .product-section,
  .flow-section,
  .safety-section,
  .download-inner,
  .footer-inner {
    width: calc(100% - 32px);
  }

  .stats-inner {
    grid-template-columns: 1fr;
  }

  .product-section,
  .flow-section,
  .safety-section {
    padding: 68px 0;
  }

  .flow-list {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }

  .settings-shot {
    max-height: 400px;
  }

  .download-inner {
    padding: 68px 0;
  }

  .download-card .button {
    align-self: stretch;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 26px 0;
  }

  .footer-links {
    margin-top: 10px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
