:root {
  --bg: #f6f6fb;
  --hero-glow: #deddfb;
  --card: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #e2e2e7;
  --indigo: #5b5bf0;
  --indigo-deep: #3f3fd8;
  --mint: #79f0c6;
  --code-bg: rgba(91, 91, 240, 0.09);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10101d;
    --hero-glow: #30305b;
    --card: #1b1b20;
    --ink: #f5f5f7;
    --muted: #b2b2c4;
    --line: #2c2c33;
    --indigo: #6e6ef5;
    --indigo-deep: #5656e6;
    --code-bg: rgba(110, 110, 245, 0.16);
  }
}
* { box-sizing: border-box; margin: 0; }
body {
  background: radial-gradient(ellipse 1000px 850px at 50% 160px, var(--hero-glow) 0%, transparent 75%), var(--bg);
  color: var(--ink);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
main { max-width: 1080px; margin: 0 auto; padding: 24px; }
code {
  font: 0.92em/1 ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  background: var(--code-bg); border-radius: 5px; padding: 2px 5px;
}
a { color: var(--indigo); }

/* ---------------------------------------------------------------- hero */
.hero { text-align: center; padding: 72px 0 40px; }
.icon { filter: drop-shadow(0 12px 24px rgba(63, 63, 216, 0.28)); }
h1 { font-size: clamp(2.75rem, 7vw, 4.5rem); letter-spacing: -0.05em; font-weight: 700; margin-top: 20px; }
.tagline { color: var(--muted); font-size: 22px; margin: 6px 0 30px; }
.download {
  display: inline-block; padding: 13px 26px; border-radius: 12px;
  background: var(--indigo); color: #fff;
  text-decoration: none; font-weight: 600; font-size: 17px;
  box-shadow: 0 6px 18px rgba(91, 91, 240, 0.35);
  transition: background 120ms ease, transform 120ms ease;
}
.download:hover { background: var(--indigo-deep); transform: translateY(-1px); }
.fineprint { color: var(--muted); font-size: 14px; margin-top: 14px; }

/* --------------------------------------------------------- screenshots */
.shot { padding: 8px 0 40px; }
.shot img, .panel img {
  display: block; width: 100%; height: auto; border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

/* ------------------------------------------------------------ features */
.features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 16px; padding: 8px 0 48px;
}
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px;
}
.feature h2 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.feature h2::before {
  content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: var(--mint); margin-right: 10px; vertical-align: 2px;
  box-shadow: 0 0 0 3px rgba(121, 240, 198, 0.25);
}
.feature p { color: var(--muted); font-size: 16px; }

/* ---------------------------------------------------------------- tour */
.section-title {
  font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); padding: 20px 0 4px; border-top: 1px solid var(--line);
}
.tour { padding-bottom: 32px; }
.panel { margin: 40px 0 0; }
.panel figcaption { padding: 20px 2px 0; max-width: 62ch; }
.panel h3 { font-size: 22px; letter-spacing: -0.01em; margin-bottom: 8px; }
.panel figcaption p { color: var(--muted); font-size: 16px; }

/* ------------------------------------------------------ worked example */
.section-lead { color: var(--muted); font-size: 18px; max-width: 62ch; margin-top: 10px; }
.panel strong { color: var(--ink); font-weight: 600; }
.steps {
  list-style: none; padding: 0; margin: 28px 0 0; counter-reset: step;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px;
}
.steps li {
  counter-increment: step; position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px; font-size: 15px; color: var(--muted);
}
.steps li::before {
  content: counter(step); position: absolute; left: 18px; top: 17px;
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--code-bg); color: var(--indigo); font-weight: 700; font-size: 13px;
}
.steps li > b { display: block; color: var(--ink); font-size: 16px; line-height: 28px; padding-left: 38px; margin-bottom: 6px; }
.steps span b { color: var(--ink); font-weight: 600; }
.deep { border-bottom: 0; }

/* ------------------------------------------------------------ download */
.download-section { padding: 8px 0 8px; }
.dl-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 34px; margin-top: 20px;
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 34px; align-items: start;
}
.dl-card h2 { font-size: 30px; letter-spacing: -0.02em; }
.dl-lead { color: var(--muted); margin: 8px 0 22px; }
.dl-meta { color: var(--muted); font-size: 14px; margin-top: 14px; }
.dl-specs { display: grid; gap: 10px; align-content: start; }
.dl-specs > div {
  display: grid; grid-template-columns: 108px 1fr; gap: 12px;
  font-size: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.dl-specs > div:last-child { border-bottom: 0; padding-bottom: 0; }
.dl-specs dt { color: var(--muted); }
.dl-specs dd { margin: 0; }

.dl-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px; margin-top: 16px;
}
.dl-note {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px;
  font-size: 15px; color: var(--muted);
}
.dl-note h3 { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.dl-note ol { margin: 0; padding-left: 18px; }
.dl-note li + li { margin-top: 6px; }
.dl-note p + p { margin-top: 10px; }
.dl-note a { text-decoration: none; font-weight: 500; }
.dl-note a:hover { text-decoration: underline; }

/* -------------------------------------------------------------- footer */
footer {
  text-align: center; color: var(--muted); font-size: 14px;
  padding: 48px 0 24px; margin-top: 40px; border-top: 1px solid var(--line);
}
footer a { color: var(--indigo); text-decoration: none; }
footer a:hover { text-decoration: underline; }
.footnote { margin-top: 10px; opacity: 0.7; }

@media (max-width: 760px) {
  .hero { padding: 48px 0 32px; }
  h1 { font-size: 42px; }
  .tagline { font-size: 19px; }
  .dl-card { grid-template-columns: 1fr; gap: 24px; padding: 26px; }
  .panel h3 { font-size: 19px; }
}

a { text-underline-offset: 4px; }
a:focus-visible { outline: 3px solid var(--indigo); outline-offset: 5px; }
@media (max-width: 400px) {
  .features, .dl-grid, .steps { grid-template-columns: minmax(0, 1fr); }
  .dl-card { padding: 20px; }
  .dl-specs > div { grid-template-columns: 1fr; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { .download { transition: none; } }
