:root {
  --purple: #7041e0;
  --blue: #4a56d9;
  --bg: #f6f6fb;
  --surface: #ffffff;
  --text: #1c1b29;
  --muted: #5b5a6e;
  --border: #e3e2ee;
  --red: #c9423c;
  --green: #23803a;
  --radius: 18px;
  --max: 1080px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12121a;
    --surface: #1c1c27;
    --text: #ececf4;
    --muted: #a6a5b8;
    --border: #2d2d3c;
    --red: #ef7b75;
    --green: #5fcf7c;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
@media (prefers-color-scheme: dark) { a { color: #9aa3ff; } }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; gap: 20px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--text); }

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--purple), var(--blue));
  color: #fff;
  overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 0; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.1; margin: 0 0 18px; letter-spacing: -0.02em; }
.hero p.lead { font-size: 20px; opacity: 0.92; margin: 0 0 28px; max-width: 34em; }
.hero .shot { align-self: end; max-width: 360px; justify-self: center; max-height: 600px; overflow: hidden; }
.hero .shot img { filter: drop-shadow(0 20px 40px rgba(10, 10, 50, 0.35)); }
.example {
  display: inline-grid; gap: 2px; background: #fff; color: #1c1b29; border-radius: 14px;
  padding: 12px 20px; margin: 0 0 28px; font-variant-numeric: tabular-nums;
}
.example .before { color: #c9423c; }
.example .after { color: #23803a; font-weight: 700; font-size: 20px; }
.cta {
  display: inline-flex; align-items: center; gap: 10px; background: #fff; color: #1c1b29;
  font-weight: 700; padding: 14px 26px; border-radius: 999px; text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}
.cta:hover { transform: translateY(-1px); }
.cta.dark { background: linear-gradient(160deg, var(--purple), var(--blue)); color: #fff; }
.trust { display: flex; gap: 22px; flex-wrap: wrap; margin: 22px 0 64px; font-size: 15px; opacity: 0.9; }

/* Sections */
section { padding: 64px 0; }
section h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
section .sub { color: var(--muted); margin: 0 0 36px; max-width: 40em; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 0 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card .ico { font-size: 26px; margin-bottom: 10px; }
.steps { counter-reset: s; display: grid; gap: 16px; padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(160deg, var(--purple), var(--blue)); color: #fff; font-weight: 700;
}
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.shots img { border-radius: 14px; border: 1px solid var(--border); }
.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.alt .card { background: var(--bg); }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 650; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* Article pages */
.article { max-width: 740px; margin: 0 auto; padding: 48px 20px 72px; }
.article h1 { font-size: clamp(30px, 4.4vw, 42px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.02em; }
.article .meta { color: var(--muted); font-size: 15px; margin: 0 0 32px; }
.article h2 { font-size: 26px; margin: 44px 0 10px; line-height: 1.25; }
.article h3 { font-size: 20px; margin: 28px 0 6px; }
.article li { margin-bottom: 6px; }
.article table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 16px; display: block; overflow-x: auto; }
.article th, .article td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.article th { background: var(--surface); }
.article figure { margin: 28px auto; max-width: 320px; }
.article figure img { border-radius: 16px; border: 1px solid var(--border); }
.article figcaption { color: var(--muted); font-size: 14px; text-align: center; margin-top: 8px; }
.callout { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--purple); border-radius: 12px; padding: 16px 20px; margin: 24px 0; }
.callout p { margin: 0; }
.app-box {
  background: linear-gradient(160deg, var(--purple), var(--blue)); color: #fff; border-radius: var(--radius);
  padding: 28px; margin: 40px 0;
}
.app-box h3 { margin: 0 0 6px; font-size: 22px; }
.app-box p { margin: 0 0 18px; opacity: 0.92; }
code { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; font-size: 0.92em; }
.related { border-top: 1px solid var(--border); margin-top: 48px; padding-top: 24px; }
.related ul { padding-left: 20px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 28px; }
.site-footer a { color: var(--muted); }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .hero .shot { max-width: 280px; max-height: 420px; }
  .grid { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(2, 1fr); }
  section { padding: 48px 0; }
}
