:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-2: #eef1f6;
  --text: #0f172a;
  --muted: #475569;
  --border: #dde3ec;
  --accent: #0a6cff;
  --accent-2: #14b8a6;
  --code-bg: #0f172a;
  --code-text: #e2e8f0;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(15 23 42 / 6%), 0 12px 32px rgb(15 23 42 / 8%);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1120;
    --surface: #111a2e;
    --surface-2: #17223a;
    --text: #e8edf6;
    --muted: #9aa8bd;
    --border: #22304d;
    --accent: #4d9bff;
    --accent-2: #2dd4bf;
    --code-bg: #060b16;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 12px 32px rgb(0 0 0 / 35%);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
code, pre { font-family: "Cascadia Code", "Cascadia Mono", Consolas, monospace; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.nav { display: flex; gap: 20px; font-size: 15px; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--text); text-decoration: none; }

/* Buttons */
.store-badge { display: inline-block; line-height: 0; }
.store-badge img { height: 56px; width: auto; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 8px; font-weight: 600; border: 1px solid var(--border); color: var(--text); background: var(--surface); }
.btn:hover { text-decoration: none; border-color: var(--accent); }

/* Hero */
.hero { padding: 72px 0 40px; text-align: center; }
.hero img.logo { width: 96px; height: 96px; margin: 0 auto 20px; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.1; margin: 0 0 16px; letter-spacing: -0.02em; }
.hero h1 .grad { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 20px; color: var(--muted); max-width: 680px; margin: 0 auto 28px; }
.hero .actions { display: flex; gap: 16px; justify-content: center; align-items: center; flex-wrap: wrap; }
.price { color: var(--muted); font-size: 14px; margin-top: 14px; }

.terminal { max-width: 560px; margin: 36px auto 0; text-align: left; background: var(--code-bg); color: var(--code-text); border-radius: 12px; padding: 16px 20px; box-shadow: var(--shadow); font-size: 15px; }
.terminal .bar { display: flex; gap: 6px; margin-bottom: 12px; }
.terminal .bar span { width: 11px; height: 11px; border-radius: 50%; background: #475569; }
.terminal .bar span:nth-child(1) { background: #f87171; }
.terminal .bar span:nth-child(2) { background: #fbbf24; }
.terminal .bar span:nth-child(3) { background: #34d399; }
.terminal pre { margin: 0; white-space: pre-wrap; }
.terminal .p { color: #60a5fa; }
.terminal .c { color: #94a3b8; }

.shot { margin: 48px auto 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }

/* Sections */
section { padding: 64px 0; }
section h2 { font-size: 32px; margin: 0 0 12px; letter-spacing: -0.01em; text-align: center; }
section .sub { color: var(--muted); text-align: center; max-width: 640px; margin: 0 auto 40px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .icon { font-size: 22px; margin-bottom: 10px; }

.flow { display: flex; align-items: stretch; justify-content: center; gap: 12px; flex-wrap: wrap; }
.flow .step { flex: 1 1 200px; max-width: 240px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; text-align: center; }
.flow .step > code { display: block; font-size: 13px; color: var(--accent); margin-bottom: 6px; word-break: break-all; }
.flow .step p { margin: 0; color: var(--muted); font-size: 14px; }
.flow .arrow { align-self: center; color: var(--muted); font-size: 22px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.gallery img { border-radius: 10px; border: 1px solid var(--border); }

.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

/* Documents (privacy, support) */
.doc { max-width: 760px; margin: 0 auto; padding: 48px 24px 72px; }
.doc h1 { font-size: 38px; margin: 0 0 4px; }
.doc .updated { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 22px; margin: 32px 0 8px; text-align: left; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc code { background: var(--surface-2); padding: 1px 6px; border-radius: 5px; font-size: 14px; }

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

@media (max-width: 640px) {
  .nav { display: none; }
  .hero { padding-top: 48px; }
  .flow .arrow { transform: rotate(90deg); }
}
