:root {
  --text: #1d1d1f;
  --muted: #6e6e73;
  --bg: #ffffff;
  --panel: #f5f6f8;
  --line: #e2e5ea;
  --accent: #1f5fbf;
  --accent-text: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --text: #f5f5f7; --muted: #a1a1a6; --bg: #0c0d10; --panel: #16181d;
    --line: #2a2e36; --accent: #6ea2ff; --accent-text: #08142b;
  }
}
:root[data-theme="dark"] {
  --text: #f5f5f7; --muted: #a1a1a6; --bg: #0c0d10; --panel: #16181d;
  --line: #2a2e36; --accent: #6ea2ff; --accent-text: #08142b;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--accent); }
main, header, footer { max-width: 760px; margin: 0 auto; padding: 0 16px; }

header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; }
.mark { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--accent); color: var(--accent-text); font-size: 13px; font-weight: 700; letter-spacing: .02em; }
nav a { margin-left: 16px; text-decoration: none; color: var(--muted); }
nav a:hover { color: var(--text); }

.hero { padding: 48px 0 16px; }
.hero h1 { font-size: 40px; line-height: 1.1; margin: 0 0 12px; }
.hero p { color: var(--muted); font-size: 20px; margin: 0; max-width: 560px; }

.apps { display: grid; gap: 16px; margin: 32px 0; }
.app { display: flex; gap: 20px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.app .icon img { display: block; width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 4px 14px rgba(0,0,0,.14); }
.app h2 { font-size: 22px; line-height: 1.2; margin: 2px 0 4px; }
.app h2 a { color: var(--text); text-decoration: none; }
.app h2 a:hover { text-decoration: underline; }
.app p { margin: 0 0 10px; }
.platforms { color: var(--muted); font-size: 14px; font-weight: 600; }
.links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 14px 0 0 !important; }
.button {
  display: inline-block; background: var(--accent); color: var(--accent-text);
  padding: 8px 16px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px;
}
.button[hidden], .soon[hidden] { display: none; }
.more { font-weight: 600; font-size: 15px; text-decoration: none; }
.soon { color: var(--muted); font-size: 15px; }

footer { color: var(--muted); font-size: 14px; padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--line); margin-top: 32px; }
footer a { color: var(--muted); }

@media (max-width: 520px) {
  .hero h1 { font-size: 32px; }
  .app { flex-direction: column; gap: 14px; }
  .app .icon img { width: 72px; height: 72px; border-radius: 17px; }
}
