/* SPDX-License-Identifier: GPL-3.0-or-later */
:root {
  --bg: #f6f7fb; --surface: #ffffff; --text: #141821; --muted: #5d6573;
  --line: #e2e5ec; --accent: #2457d6; --accent-2: #3a74f0; --accent-text: #ffffff;
  --soft: #e8eefc; --radius: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1118; --surface: #171b24; --text: #eef1f6; --muted: #a2aab8;
    --line: #2a303c; --accent: #7aa2ff; --accent-2: #5b8cff; --accent-text: #0c1020;
    --soft: #1d2638;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
}
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

header.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: inherit; text-decoration: none; }
.brand img { width: 36px; height: 36px; }
nav.top a { color: var(--muted); text-decoration: none; margin-left: 20px; font-size: 15px; }
nav.top a:hover { color: var(--text); }

.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; padding: 40px 0 64px; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.08; margin: 0 0 18px; letter-spacing: -0.02em; }
.hero p.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.phones { position: relative; height: 520px; }
.phones img {
  position: absolute; width: 230px; border-radius: 28px; border: 8px solid #10131a;
  box-shadow: 0 20px 50px rgba(20, 30, 60, .25);
}
.phones img:first-child { left: 0; top: 40px; transform: rotate(-4deg); }
.phones img:last-child { right: 0; top: 0; transform: rotate(3deg); }

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 12px;
  font-weight: 600; text-decoration: none; border: 1px solid var(--line); background: var(--surface); color: var(--text);
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn:hover { filter: brightness(1.05); }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.small { font-size: 14px; color: var(--muted); }

section { padding: 56px 0; }
section h2 { font-size: clamp(26px, 3.4vw, 34px); margin: 0 0 10px; letter-spacing: -0.01em; }
section > .wrap > p.sub { color: var(--muted); margin: 0 0 32px; font-size: 17px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps .card::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--soft); color: var(--accent); font-weight: 700; margin-bottom: 12px;
}
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }

.downloads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.downloads .card { display: flex; flex-direction: column; gap: 14px; }
.downloads .card .buttons { margin-top: auto; }
.downloads ul { margin: 0; padding-left: 18px; color: var(--muted); }
.downloads li a { font-weight: 600; }
[hidden] { display: none !important; }
.version { display: inline-block; font-size: 13px; padding: 2px 10px; border-radius: 99px; background: var(--soft); color: var(--accent); margin-left: 8px; vertical-align: middle; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery { display: flex; gap: 18px; overflow-x: auto; padding: 8px 2px 18px; scroll-snap-type: x mandatory; }
.gallery figure { margin: 0; flex: 0 0 220px; scroll-snap-align: start; }
.gallery img { border-radius: 20px; border: 1px solid var(--line); }
.gallery figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; text-align: center; }
.desktop-shot { border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 12px 40px rgba(20, 30, 60, .12); }

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

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: 8px 24px; justify-content: space-between; }
footer a { color: var(--muted); }

.doc { max-width: 760px; padding: 24px 0 64px; }
.doc h1 { font-size: 36px; margin: 8px 0 4px; }
.doc h2 { font-size: 22px; margin: 32px 0 8px; }
.doc p, .doc li { color: var(--text); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 24px; padding-top: 16px; }
  .phones { height: 400px; max-width: 380px; }
  .phones img { width: 180px; }
  .steps, .downloads, .features { grid-template-columns: 1fr; }
  nav.top a:not(:last-child) { display: none; }
}
