:root {
  color-scheme: dark;
  --bg: #0b0b0d;
  --bg-elevated: #151518;
  --bg-card: #1c1c21;
  --text: #f2f2f5;
  --text-muted: #a0a0ab;
  --line: #2a2a31;
  --accent: #0a84ff;
  --rec: #ff453a;
  --live: #bf5af2;
  --radius: 18px;
  --max: 1100px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(11,11,13,.8); backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--text-muted); font-size: 15px; }
.nav a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 640px) { .nav { gap: 14px; font-size: 14px; } }

/* Hero */
.hero { padding: 72px 0 40px; text-align: center; }
.hero .icon { width: 112px; height: 112px; border-radius: 26px; margin: 0 auto 24px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.hero h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 14px; }
.hero p.lead { font-size: clamp(17px, 2.2vw, 21px); color: var(--text-muted); max-width: 680px; margin: 0 auto 28px; }
.cta { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 600; background: var(--accent); color: #fff; }
.btn:hover { text-decoration: none; filter: brightness(1.1); }
.btn.secondary { background: var(--bg-card); color: var(--text); border: 1px solid var(--line); }
.btn.disabled { background: var(--bg-card); color: var(--text-muted); border: 1px solid var(--line); cursor: default; }
.btn.disabled:hover { filter: none; }
.hero .devices { margin-top: 48px; display: grid; grid-template-columns: 1fr 2.2fr 1fr; gap: 20px; align-items: end; }
.hero .devices img { border-radius: 24px; box-shadow: 0 20px 60px rgba(0,0,0,.55); border: 1px solid var(--line); }
@media (max-width: 760px) { .hero .devices { grid-template-columns: 1fr 1fr; } .hero .devices .ipad { grid-column: 1 / -1; } }

/* Sections */
section { padding: 56px 0; border-top: 1px solid var(--line); }
section h2 { font-size: clamp(26px, 4vw, 36px); letter-spacing: -0.02em; margin: 0 0 8px; }
section p.sub { color: var(--text-muted); margin: 0 0 32px; max-width: 700px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card .glyph { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; background: var(--bg-elevated); font-size: 22px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--text-muted); font-size: 15px; }

/* Screenshots */
.shots { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: start; }
.shot img { border-radius: 20px; border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.shot figcaption { color: var(--text-muted); font-size: 14px; margin-top: 10px; text-align: center; }
.shot.wide { grid-column: 1 / -1; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { position: relative; padding: 22px 22px 22px 64px; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 20px; top: 20px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; }
.step h3 { margin: 0 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--text-muted); font-size: 15px; }

/* Prose pages */
.prose { max-width: 760px; padding: 48px 0 64px; }
.prose h1 { font-size: clamp(30px, 5vw, 42px); letter-spacing: -0.02em; margin: 0 0 6px; }
.prose .updated { color: var(--text-muted); margin: 0 0 32px; }
.prose h2 { font-size: 22px; margin: 36px 0 10px; }
.prose h3 { font-size: 17px; margin: 24px 0 6px; }
.prose p, .prose li { color: #d4d4db; }
.prose details { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 10px 0; background: var(--bg-card); }
.prose summary { cursor: pointer; font-weight: 600; color: var(--text); }
.prose details p { margin: 10px 0 4px; }
.prose code { background: var(--bg-elevated); padding: 2px 6px; border-radius: 6px; font-size: 14px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--text-muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; }
.site-footer nav { display: flex; gap: 18px; }
.site-footer .legal { max-width: 640px; }
