/* keepr — GitHub Pages site. Palette mirrors the app's dark theme (src/theme/tokens.ts). */
:root {
  --bg: #02040A;
  --surface: #0F172A;
  --surface-alt: #1E293B;
  --text: #FFFFFF;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --accent: #38BDF8;
  --accent-secondary: #C084FC;
  --border: #334155;
  --success: #22C55E;
  --danger: #FF3B30;
  --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  background-image: linear-gradient(180deg, #0F172A 0%, #050811 45%, #02040A 100%);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(2, 4, 10, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; font-weight: 600; font-size: 24px; letter-spacing: -1px; text-decoration: none; color: var(--text); }
.brand .r { color: var(--accent); }
.brand .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent-secondary); margin-left: 5px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--text-secondary); text-decoration: none; font-size: 15px; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--accent); }

/* ---- Hero ---- */
.hero { text-align: center; padding: 88px 0 64px; }
.hero .app-icon {
  width: 104px; height: 104px; border-radius: 24px; margin: 0 auto 28px;
  box-shadow: 0 12px 40px rgba(56, 189, 248, 0.18); display: block;
}
.hero h1 { font-size: 56px; font-weight: 600; letter-spacing: -1.5px; line-height: 1.1; }
.hero h1 .r { color: var(--accent); }
.hero h1 .dot { display: inline-block; width: 13px; height: 13px; border-radius: 999px; background: var(--accent-secondary); margin-left: 10px; vertical-align: middle; }
.hero .tagline { font-size: 21px; color: var(--text-secondary); margin: 20px auto 0; max-width: 620px; font-weight: 400; }
.hero .lead { font-size: 16px; color: var(--text-muted); margin: 18px auto 0; max-width: 620px; }
.cta-row { display: flex; gap: 14px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-weight: 600; font-size: 15px; padding: 14px 26px; border-radius: 12px; transition: transform .12s, box-shadow .12s;
}
.btn-primary { background: var(--accent); color: #02040A; box-shadow: 0 8px 24px rgba(56,189,248,.25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(56,189,248,.35); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---- Sections ---- */
.section { padding: 56px 0; }
.section h2 { font-size: 32px; font-weight: 600; letter-spacing: -0.5px; text-align: center; }
.section .sub { text-align: center; color: var(--text-muted); margin-top: 10px; font-size: 16px; }

/* ---- Feature grid ---- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 44px; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
}
.feature .fic {
  width: 44px; height: 44px; border-radius: 12px; background: var(--surface-alt);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.feature h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.feature p { color: var(--text-muted); font-size: 14.5px; }

/* ---- Screenshot strip / gallery ---- */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-top: 44px; }
.shot { text-align: center; }
.shot img {
  width: 100%; max-width: 300px; border-radius: 24px; border: 1px solid var(--border);
  box-shadow: 0 16px 44px rgba(0,0,0,.5); transition: transform .2s;
}
.shot img:hover { transform: translateY(-6px); }
.shot .caption { margin-top: 14px; color: var(--text-secondary); font-size: 14px; font-weight: 500; }

.shot-strip { display: flex; gap: 20px; overflow-x: auto; padding: 44px 4px 12px; scroll-snap-type: x mandatory; }
.shot-strip img {
  height: 520px; border-radius: 26px; border: 1px solid var(--border);
  box-shadow: 0 16px 44px rgba(0,0,0,.5); scroll-snap-align: center; flex-shrink: 0;
}

/* ---- Article (privacy) ---- */
.article { max-width: 760px; margin: 0 auto; padding: 56px 0 40px; }
.article h1 { font-size: 38px; font-weight: 600; letter-spacing: -1px; }
.article .updated { color: var(--text-muted); font-size: 14px; margin-top: 8px; margin-bottom: 32px; }
.article h2 { font-size: 22px; font-weight: 600; margin: 34px 0 12px; }
.article p { color: var(--text-secondary); margin-bottom: 16px; font-size: 16px; }
.article ul { color: var(--text-secondary); margin: 0 0 16px 22px; }
.article li { margin-bottom: 8px; }
.article strong { color: var(--text); font-weight: 600; }
.article a { color: var(--accent); text-decoration: none; }
.article a:hover { text-decoration: underline; }
.article .contact-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 24px; margin-top: 12px;
}

/* ---- Footer ---- */
footer { border-top: 1px solid var(--border); padding: 40px 0; margin-top: 40px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
footer .muted { color: var(--text-muted); font-size: 14px; }
footer .flinks { display: flex; gap: 22px; }
footer .flinks a { color: var(--text-secondary); text-decoration: none; font-size: 14px; }
footer .flinks a:hover { color: var(--accent); }

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .hero { padding: 56px 0 40px; }
  .hero h1 { font-size: 40px; }
  .hero .tagline { font-size: 18px; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 14px; }
  .section h2 { font-size: 26px; }
}
