:root {
  --bg: #0a0e17;
  --bg-soft: #121829;
  --fg: #eef1f7;
  --muted: #99a2b5;
  --rule: #222a3d;
  --accent: #4c9bff;
  --teal: #17b5a3;
  --blue: #0e248f;
  --radius: 16px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }

/* Nav */
header.nav {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(160%) blur(12px);
  background: rgba(10, 14, 23, 0.72);
  border-bottom: 1px solid var(--rule);
}
.nav .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav nav { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.nav nav a { color: var(--fg); font-size: 0.95rem; opacity: 0.85; }
.nav nav a:hover { opacity: 1; text-decoration: none; }
@media (max-width: 640px) { .nav nav a.hide-sm { display: none; } }

/* Buttons */
.appstore {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: #000;
  padding: 12px 18px; border-radius: 12px; font-weight: 600;
  border: 0;
}
.appstore:hover { text-decoration: none; opacity: 0.92; }
.appstore svg { width: 22px; height: 22px; }
.appstore small { display: block; font-size: 0.66rem; font-weight: 500; line-height: 1; opacity: 0.7; }
.appstore b { display: block; font-size: 1.05rem; line-height: 1.1; }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--teal) 0%, var(--blue) 70%);
  opacity: 0.22; filter: blur(2px);
}
.hero .wrap {
  position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 40px; align-items: center; padding: 80px 20px 70px;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); line-height: 1.08; margin: 0 0 16px; letter-spacing: -0.02em; }
.hero p.lede { font-size: 1.2rem; color: #cfd6e6; margin: 0 0 28px; max-width: 36ch; }
.hero .cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero .shot { justify-self: center; }
.hero .shot img {
  width: 280px; max-width: 70vw; border-radius: 34px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55); border: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .cta { justify-content: center; }
  .hero p.lede { margin-left: auto; margin-right: auto; }
}

/* Sections */
section { padding: 72px 0; border-top: 1px solid var(--rule); }
section h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin: 0 0 12px; letter-spacing: -0.01em; }
.section-lead { color: var(--muted); max-width: 56ch; margin: 0 0 36px; }
.center { text-align: center; }
.center .section-lead { margin-left: auto; margin-right: auto; }

/* Privacy band */
.privacy { background: var(--bg-soft); }
.privacy .pills { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.privacy .pill {
  border: 1px solid var(--rule); border-radius: 999px; padding: 8px 16px;
  font-weight: 600; font-size: 0.95rem; background: rgba(255,255,255,0.02);
}

/* Features */
.features .grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
@media (max-width: 820px) { .features .grid { grid-template-columns: 1fr; } }
.card {
  background: var(--bg-soft); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 22px;
}
.card .ico { font-size: 1.6rem; }
.card h3 { margin: 10px 0 6px; font-size: 1.12rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* Screenshot gallery */
.shots-row { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.shots-row img {
  height: 520px; border-radius: 28px; scroll-snap-align: center; flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,0.08); box-shadow: 0 20px 50px rgba(0,0,0,0.45);
}
@media (max-width: 640px) { .shots-row img { height: 70vh; } }

/* Footer */
footer { border-top: 1px solid var(--rule); padding: 40px 0; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
footer nav { margin-left: auto; display: flex; gap: 20px; }
footer a { color: var(--fg); opacity: 0.85; }

/* Doc pages (privacy / support) */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 20px 96px; }
.doc h1 { font-size: 2rem; margin: 0 0 4px; }
.doc .updated { color: var(--muted); margin-bottom: 28px; }
.doc h2 { font-size: 1.25rem; margin: 36px 0 8px; }
.doc h3 { font-size: 1.05rem; margin: 24px 0 6px; }
.doc ul { padding-left: 1.2rem; }
.doc li { margin: 8px 0; }
.doc hr { border: 0; border-top: 1px solid var(--rule); margin: 36px 0 0; }
.doc .back { display: inline-block; margin-bottom: 24px; }
