:root {
  --bg: #f7f4f2;
  --surface: #ffffff;
  --text: #1a1310;
  --text-muted: #6b5f59;
  --accent: #e30a17;
  --accent-text: #ffffff;
  --border: #e7ddd8;
  --code-bg: #f1ece9;
  --shadow: 0 1px 2px rgba(20,10,8,0.04), 0 8px 24px rgba(20,10,8,0.06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17120f;
    --surface: #211a16;
    --text: #f3ece7;
    --text-muted: #b2a49d;
    --accent: #ff4b48;
    --accent-text: #1a0705;
    --border: #362c26;
    --code-bg: #2a221d;
    --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 8px 24px rgba(0,0,0,0.35);
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.lang-switch {
  text-align: right;
  font-size: 0.85rem;
  margin-bottom: 24px;
}
.lang-switch a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 6px;
}
.lang-switch a:hover {
  color: var(--text);
  background: var(--surface);
}
.lang-switch a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

.hero {
  text-align: center;
  margin-bottom: 40px;
}
.hero img {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
h1 {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto 28px;
}

.example {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 1.05rem;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 18px;
  margin-bottom: 32px;
}
.example .arrow { color: var(--text-muted); }
.example .result { color: var(--accent); font-weight: 600; }

.cta {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: var(--accent-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 15px 30px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.download-btn:hover { transform: translateY(-1px); }
.download-btn:active { transform: translateY(0); }
.cta-note {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.steps {
  margin-top: 64px;
}
.steps h2 {
  font-size: 1.3rem;
  margin-bottom: 20px;
}
ol.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
ol.step-list li {
  display: flex;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  align-items: flex-start;
}
.step-num {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-body p {
  margin: 0;
}
.step-body .fine {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 6px;
}
code {
  background: var(--code-bg);
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 0.92em;
}
pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 12px 0 0;
  overflow-x: auto;
}
pre code {
  background: none;
  padding: 0;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

.callout {
  margin-top: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.callout strong { color: var(--text); }

footer {
  margin-top: 64px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}
footer a { color: inherit; text-decoration: underline; }
