:root {
  --bg: #0e1217;
  --panel: #161c24;
  --line: #262e39;
  --text: #f6efe3;
  --muted: #a9b0ba;
  --flame: #ff7a1a;
  --flame-2: #ffb21a;
  --radius: 18px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--flame-2); text-underline-offset: 3px; }
a:hover { color: var(--flame); }

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

/* Header */
.site-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand span { font-weight: 700; letter-spacing: 0.06em; }
.site-head nav a { color: var(--muted); text-decoration: none; margin-left: 20px; font-size: 15px; }
.site-head nav a:hover { color: var(--text); }

/* Hero */
.hero { text-align: center; padding: 28px 0 56px; }
.hero img { width: min(300px, 70vw); height: auto; }
.hero p {
  max-width: 560px; margin: 8px auto 0;
  font-size: 20px; color: var(--muted);
}

h2 {
  font-weight: 700;
  font-size: 28px; margin: 0 0 20px; letter-spacing: 0.01em;
}
section { padding: 36px 0; border-top: 1px solid var(--line); }

/* App cards */
.apps { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.app {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 12px;
}
.app header { display: flex; align-items: center; gap: 14px; }
.app header img { width: 64px; height: 64px; border-radius: 16px; flex: none; }
.app h3 { font-size: 20px; margin: 0; line-height: 1.25; }
.app p { margin: 0; color: var(--muted); flex: 1; }
.app .links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 15px; }
.badge {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; padding: 2px 9px; border-radius: 999px; margin-top: 4px;
  background: rgba(255, 122, 26, 0.14); color: var(--flame-2);
}
.badge.wip { background: rgba(169, 176, 186, 0.14); color: var(--muted); }

.shots { display: grid; gap: 18px 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); margin-top: 20px; }
.shots figure { margin: 0; }
.shots img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.shots figcaption { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* Long-form pages (privacy etc.) */
.doc { max-width: 720px; padding-bottom: 48px; }
.doc h1 { font-size: 34px; line-height: 1.2; margin: 12px 0 4px; }
.doc h2 { font-size: 22px; margin: 32px 0 8px; }
.doc .meta { color: var(--muted); margin: 0 0 24px; }
.doc li { margin: 4px 0; }
.doc .card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px; margin: 20px 0;
}

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer a { color: var(--muted); }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-head nav a { margin-left: 14px; }
  .brand span { display: none; }
  .hero p { font-size: 18px; }
}
