:root {
  --bg: #ffffff;
  --fg: #1c1c1e;
  --muted: #6b6b70;
  --accent: #4f46e5;
  --accent-fg: #ffffff;
  --border: #e6e6ea;
  --card: #f6f6f8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121214;
    --fg: #f0f0f3;
    --muted: #a0a0a6;
    --accent: #818cf8;
    --accent-fg: #0b0b0d;
    --border: #2a2a30;
    --card: #1c1c22;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 980px; margin: 0 auto; padding: 0 20px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header / Footer */
.site-header { border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; }
.brand { font-weight: 700; font-size: 20px; color: var(--fg); }
.brand-num { color: var(--accent); }
.site-header nav a { margin-left: 18px; color: var(--fg); font-weight: 500; }
.lang-switch { border: 1px solid var(--border); padding: 2px 8px; border-radius: 6px; font-size: 13px; }
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding: 18px 0;
  color: var(--muted);
  font-size: 14px;
}
.site-footer .container { display: flex; justify-content: space-between; }

/* Embed: no header / no footer */
body.embed { background: var(--bg); }
body.embed .container { padding: 12px 16px; max-width: 720px; }

/* Sections */
.hero { padding: 60px 0 30px; text-align: center; }
.hero h1 { font-size: 48px; margin: 0 0 12px; }
.hero .num { color: var(--accent); }
.hero .lead { font-size: 18px; color: var(--muted); max-width: 640px; margin: 0 auto; }
.cta-row { margin-top: 28px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta {
  background: var(--accent); color: var(--accent-fg);
  padding: 12px 22px; border-radius: 8px; font-weight: 600; display: inline-block;
}
.cta:hover { text-decoration: none; opacity: 0.92; }
.cta-secondary {
  background: transparent; color: var(--accent);
  border: 1px solid var(--accent);
}

.features, .screenshots, .video, .download { padding: 40px 0; border-top: 1px solid var(--border); }
.features h2, .screenshots h2, .video h2, .download h2 { font-size: 28px; margin: 0 0 20px; }
.grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px;
}
.grid li {
  background: var(--card); padding: 18px; border-radius: 12px; border: 1px solid var(--border);
}
.grid h3 { margin: 0 0 6px; font-size: 18px; }
.grid p { margin: 0; color: var(--muted); }

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
img.shot {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--border); border-radius: 12px;
}
.shot.placeholder, .video-placeholder {
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: 12px;
  min-height: 220px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
}
.video-placeholder { min-height: 320px; }

/* Agreement */
.agreement h1 { font-size: 28px; margin: 30px 0 6px; }
.agreement h2 { font-size: 20px; margin: 24px 0 8px; }
.agreement p, .agreement ul { color: var(--fg); }
.agreement .muted { color: var(--muted); }

/* Download page */
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.dl-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  color: var(--fg);
  text-decoration: none;
}
.dl-card:hover { border-color: var(--accent); text-decoration: none; }
.dl-card h3 { margin: 0 0 6px; font-size: 18px; display: flex; align-items: center; gap: 10px; }
.os-icon { width: 20px; height: 20px; flex: none; color: var(--accent); }
.dl-card p { margin: 0; color: var(--muted); font-size: 14px; }
.dl-cardlink { display: block; color: var(--fg); text-decoration: none; }
.dl-cardlink:hover { text-decoration: none; }
.dl-alt { margin-top: 10px; font-size: 13px; }
.dl-alt a { color: var(--muted); }
.dl-note { margin-top: 18px; color: var(--muted); font-size: 14px; }

/* Brand icon in the header */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-icon { border-radius: 7px; display: block; }
