:root {
  --navy: #1b3e5e;
  --orange: #ed8532;
  --bg: #ebeff1;
  --surface: #ffffff;
  --surface-high: #dce4ea;
  --text: #13283c;
  --muted: #5b6f83;
  --on-accent: #ffffff;
  --radius: 20px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1c2b;
    --surface: #14283d;
    --surface-high: #1b3e5e;
    --text: #eaf0f5;
    --muted: #8fa4b8;
    --on-accent: #2a1404;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Header */
header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 700; letter-spacing: .12em; }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.brand small { display: block; font-weight: 400; letter-spacing: 0; color: var(--muted); font-size: 13px; }
nav.links { display: flex; gap: 20px; flex-wrap: wrap; }
nav.links a { color: var(--muted); font-size: 15px; }
nav.links a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
  padding: 32px 0 56px;
}
.hero h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.1; margin: 0 0 16px; letter-spacing: -.01em; }
.hero h1 span { color: var(--orange); }
.hero p.lead { font-size: 18px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.shots { position: relative; height: 520px; }
.shots img {
  position: absolute;
  width: 240px;
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(13, 28, 43, .25);
  border: 6px solid var(--surface);
}
.shots img:first-child { left: 0; top: 0; z-index: 2; }
.shots img:last-child { right: 0; top: 48px; }

/* Buttons */
.buttons { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  border: 2px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--orange); color: var(--on-accent); box-shadow: 0 8px 20px rgba(237, 133, 50, .35); }
.btn.secondary { border-color: var(--surface-high); color: var(--text); background: var(--surface); }
.btn svg { width: 20px; height: 20px; }
.btn.soon { color: var(--muted); cursor: default; box-shadow: none; }
.btn.soon:hover, .btn.soon:active { transform: none; }
.platforms { margin-top: 18px; font-size: 14px; color: var(--muted); }
.platforms .soon { white-space: nowrap; }
.version { margin-top: 4px; font-size: 14px; color: var(--muted); }
.version:empty { display: none; }
.version .badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-high);
  color: var(--text);
  font-size: 12px;
  margin-left: 6px;
}

/* Sections */
section { padding: 48px 0; }
section h2 { font-size: 28px; margin: 0 0 24px; letter-spacing: -.01em; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 12px 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }
.num {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--orange); color: var(--on-accent); font-weight: 700;
}
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature { display: flex; gap: 16px; background: var(--surface); border-radius: var(--radius); padding: 20px 24px; }
.feature .dot { flex: none; width: 10px; height: 10px; margin-top: 9px; border-radius: 50%; background: var(--orange); }
.feature h3 { margin: 0 0 4px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); }

/* Install tabs */
.install { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.install ol { margin: 0; padding-left: 20px; }
.install li { margin: 6px 0; }
.install li span { color: var(--muted); }

/* FAQ */
details { background: var(--surface); border-radius: 16px; padding: 18px 22px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--orange); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p, details ul { color: var(--muted); margin: 12px 0 0; }

/* What's new */
.notes { background: var(--surface); border-radius: var(--radius); padding: 24px 28px; }
.notes ul { margin: 0; padding-left: 20px; }
.notes li { margin: 6px 0; }

/* Text pages */
article.page { background: var(--surface); border-radius: var(--radius); padding: 32px clamp(20px, 4vw, 48px); margin: 8px 0 48px; }
article.page h1 { margin-top: 0; font-size: 32px; }
article.page h2 { font-size: 21px; margin-top: 32px; }
article.page p, article.page li { color: var(--text); }
article.page .muted { color: var(--muted); }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; }
pre { background: var(--bg); border-radius: 12px; padding: 14px 16px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }

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

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 8px; }
  .shots { height: 420px; max-width: 420px; margin: 0 auto; width: 100%; }
  .shots img { width: 190px; }
  .cards, .features, .install { grid-template-columns: 1fr; }
  nav.links { display: none; }
}
