:root {
  color-scheme: light;
  --bg: #f7f4fb;
  --surface: #ffffff;
  --surface-soft: #f1ebf8;
  --text: #1b1525;
  --muted: #5e536c;
  --primary: #7441bd;
  --primary-dark: #572b99;
  --line: #ded4e8;
  --success: #15745b;
  --shadow: 0 20px 60px rgba(58, 36, 86, 0.12);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    'Microsoft YaHei',
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.7;
}

a {
  color: var(--primary-dark);
  text-underline-offset: 0.2em;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(116, 65, 189, 0.35);
  outline-offset: 4px;
}

.site-header,
main,
footer {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: var(--primary);
}

nav {
  display: flex;
  gap: 28px;
}

nav a {
  color: var(--muted);
  font-weight: 650;
  text-decoration: none;
}

nav a:hover {
  color: var(--primary-dark);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.25fr);
  gap: 56px;
  align-items: center;
  padding: 88px 0 104px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 10ch;
  margin-bottom: 24px;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.18;
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.hero-summary {
  max-width: 620px;
  margin-bottom: 12px;
  color: #3f354c;
  font-size: 19px;
}

.english-summary {
  max-width: 620px;
  margin-bottom: 28px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 750;
  text-decoration: none;
}

.button-primary {
  color: #ffffff;
  background: var(--primary);
}

.button-primary:hover {
  background: var(--primary-dark);
}

.button-secondary {
  color: var(--text);
  border-color: var(--line);
  background: var(--surface);
}

.release-note {
  margin: 16px 0 0;
  color: var(--muted);
}

.hero-visual,
.screenshot-grid figure {
  margin: 0;
}

.hero-visual img,
.screenshot-grid img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(105, 74, 135, 0.2);
  border-radius: 18px;
  background: var(--surface);
}

.hero-visual img {
  box-shadow: var(--shadow);
}

.section {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 700px;
  margin-bottom: 48px;
}

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

.feature-grid article {
  min-height: 220px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.feature-grid p,
.steps p,
.faq p,
.final-cta p,
figcaption {
  color: var(--muted);
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

figcaption {
  padding-top: 16px;
}

.steps ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 6px 16px;
  align-items: center;
}

.steps li > span {
  display: grid;
  grid-row: 1 / 3;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  color: var(--primary-dark);
  background: var(--surface-soft);
  font-weight: 800;
}

.steps strong {
  font-size: 18px;
}

.steps p {
  margin-bottom: 0;
}

.faq-list {
  max-width: 820px;
}

details {
  border-top: 1px solid var(--line);
}

details:last-child {
  border-bottom: 1px solid var(--line);
}

summary {
  padding: 22px 4px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 750;
}

details p {
  max-width: 720px;
  padding: 0 4px 22px;
  margin-bottom: 0;
}

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 32px;
  padding: 52px;
  border-radius: 24px;
  background: var(--surface-soft);
}

.final-cta p {
  margin: 12px 0 0;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 44px 0 52px;
  color: var(--muted);
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 64px;
  }

  .hero-copy {
    max-width: 700px;
  }

  h1 {
    max-width: 12ch;
  }

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

@media (max-width: 640px) {
  .site-header,
  main,
  footer {
    width: min(100% - 28px, 1160px);
  }

  .site-header {
    min-height: 68px;
  }

  nav {
    gap: 14px;
  }

  nav a:last-child {
    display: none;
  }

  .hero {
    gap: 38px;
    padding: 54px 0 76px;
  }

  h1 {
    font-size: 44px;
  }

  .section {
    padding: 72px 0;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .feature-grid,
  .screenshot-grid,
  .steps ol {
    grid-template-columns: 1fr;
  }

  .feature-grid article {
    min-height: auto;
  }

  .final-cta {
    align-items: flex-start;
    flex-direction: column;
    padding: 32px;
  }

  footer {
    flex-direction: column;
  }
}

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