:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #14161a;
  --muted: #5d6470;
  --line: #e3e6eb;
  --accent: #2b74f0;
  --accent-ink: #ffffff;
  --accent-soft: #e8f0fe;
  --shadow: 0 1px 2px rgb(16 24 40 / 6%), 0 12px 32px rgb(16 24 40 / 8%);
  --radius: 16px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1013;
    --surface: #171a1f;
    --text: #eef0f3;
    --muted: #9aa2ae;
    --line: #262a31;
    --accent: #4b8cff;
    --accent-soft: #16233a;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 12px 32px rgb(0 0 0 / 35%);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font: 0.88em/1.4 ui-monospace, "SF Mono", Menlo, monospace;
  background: var(--accent-soft);
  padding: 0.12em 0.4em;
  border-radius: 6px;
}

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 15px; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--text); text-decoration: none; }
.lang {
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px;
  font-size: 13px; font-weight: 600; color: var(--text) !important;
}
@media (max-width: 640px) { .nav .hide-sm { display: none; } }

/* Hero */
.hero { padding: 72px 0 40px; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.4vw, 58px); line-height: 1.06; letter-spacing: -0.025em; margin: 0 0 18px; }
.hero h1 span { color: var(--accent); }
.hero p.lead { font-size: 20px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: 12px; font-weight: 600; font-size: 16px;
  border: 1px solid var(--line); color: var(--text); background: var(--surface);
}
.btn:hover { text-decoration: none; border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn svg { width: 18px; height: 18px; }
.meta { margin-top: 16px; font-size: 14px; color: var(--muted); }
.shot {
  justify-self: center; width: 100%; max-width: 330px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 10px; box-shadow: var(--shadow);
}
.shot img { border-radius: 12px; width: 100%; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 44px; gap: 36px; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .cta { justify-content: center; }
}

/* Menu bar strip */
.menubar {
  margin: 8px auto 0; max-width: 560px;
  display: flex; align-items: center; justify-content: flex-end; gap: 18px;
  padding: 7px 16px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line);
  font: 13px/1 -apple-system, BlinkMacSystemFont, system-ui, sans-serif; color: var(--muted);
}
.menubar .fp { color: var(--text); font-variant-numeric: tabular-nums; display: inline-flex; gap: 6px; align-items: center; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.menubar svg { width: 14px; height: 14px; }

/* Sections */
section { padding: 64px 0; scroll-margin-top: 60px; }
section + section { border-top: 1px solid var(--line); }
h2 { font-size: clamp(28px, 3.6vw, 38px); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 12px; }
.sub { color: var(--muted); margin: 0 0 36px; max-width: 40em; font-size: 18px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 12px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.icon {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.icon svg { width: 22px; height: 22px; }

.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .modes { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; } }
.mode figure { margin: 0; }
.mode img { border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); }
.mode h3 { margin: 18px 0 4px; font-size: 18px; }
.mode p { margin: 0; color: var(--muted); font-size: 15.5px; }

.steps { counter-reset: s; display: grid; gap: 14px; max-width: 720px; padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: s; position: relative; padding: 18px 20px 18px 64px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before {
  content: counter(s); position: absolute; left: 20px; top: 18px;
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 14px;
}
.steps strong { display: block; }
.steps span { color: var(--muted); font-size: 15.5px; }

.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

.final { text-align: center; }
.final .cta { justify-content: center; margin-top: 24px; }
.final img { width: 72px; margin: 0 auto 16px; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer a { color: var(--muted); }
footer nav { display: flex; gap: 18px; }
