:root {
  --bg: #0A0A0A;
  --bg-surface: #141414;
  --text: #F0EDE8;
  --text-muted: #6B6B6B;
  --accent: #FFF8E7;
  --accent-dim: rgba(255, 248, 231, 0.1);
  --border: rgba(255, 255, 255, 0.08);
  --radius-sm: 6px;
  --radius: 10px;
  --max-w: 720px;
  --header-h: 60px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; }
img { display: block; max-width: 100%; }

/* ── Typography ─────────────────────────────────── */

h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
}

h2 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

p {
  line-height: 1.7;
  color: var(--text-muted);
}

/* ── Layout ─────────────────────────────────────── */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

main { flex: 1; }

/* ── Header ─────────────────────────────────────── */

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--accent);
  text-decoration: none;
}

header nav { display: flex; align-items: center; gap: 8px; }

header nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}

header nav a:hover { color: var(--text); background: var(--accent-dim); }

header nav a.btn-nav {
  color: var(--accent);
  border: 1px solid rgba(255, 248, 231, 0.2);
  background: var(--accent-dim);
}

header nav a.btn-nav:hover { background: rgba(255, 248, 231, 0.16); }

/* ── Footer ─────────────────────────────────────── */

footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: auto;
}

footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--accent);
  font-size: 1rem;
  text-decoration: none;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--text); }

.footer-copy {
  color: var(--text-muted);
  font-size: 0.78rem;
  width: 100%;
}

/* ── Buttons ─────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.1s;
  cursor: pointer;
  border: none;
  gap: 8px;
}

.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--accent); color: #0A0A0A; }
.btn-primary:hover { opacity: 0.88; }

.btn-ghost {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(255, 248, 231, 0.18);
}

.btn-ghost:hover { background: rgba(255, 248, 231, 0.15); }

/* ── Store badges ────────────────────────────────── */

.store-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 18px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}

.store-badge:hover {
  border-color: rgba(255, 248, 231, 0.3);
  background: #1a1a1a;
}

.store-badge-icon { font-size: 1.4rem; line-height: 1; }

.store-badge-text { display: flex; flex-direction: column; }

.store-badge-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.store-badge-name { font-size: 0.875rem; font-weight: 600; margin-top: 1px; }

/* ── Hero ────────────────────────────────────────── */

.hero {
  padding: 88px 0 72px;
  text-align: center;
}

.hero h1 { margin-bottom: 16px; }

.hero .lead {
  font-size: 1.1rem;
  max-width: 440px;
  margin: 0 auto 40px;
}

.hero .store-badges { justify-content: center; }

/* ── Feature grid ────────────────────────────────── */

.features {
  padding: 0 0 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}

.feature {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.feature-icon { font-size: 1.5rem; margin-bottom: 12px; }
.feature h2 { margin-bottom: 6px; }
.feature p { font-size: 0.875rem; }

/* ── Content pages (About, Terms, Privacy) ───────── */

.content-page { padding: 64px 0 80px; }

.content-page h1 { margin-bottom: 8px; }

.page-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 48px;
}

.content-section { margin-bottom: 36px; }
.content-section h2 { margin-bottom: 10px; color: var(--text); }
.content-section p + p { margin-top: 12px; }
.content-section ul { color: var(--text-muted); padding-left: 20px; line-height: 1.7; }
.content-section li + li { margin-top: 4px; }

/* ── Deeplink splash ─────────────────────────────── */

.deeplink-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  text-align: center;
  padding: 40px 24px;
  gap: 0;
}

.deeplink-logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: 48px;
}

.deeplink-wrap h1 { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 10px; }

.deeplink-wrap .lead { max-width: 300px; margin-bottom: 36px; }

.deeplink-actions { display: flex; flex-direction: column; align-items: center; gap: 20px; width: 100%; max-width: 320px; }
.deeplink-actions .btn { width: 100%; }
.deeplink-actions .store-badges { justify-content: center; }

/* ── Download page ───────────────────────────────── */

.download-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
  gap: 12px;
}

.download-page h1 { margin-bottom: 8px; }
.download-page p { margin-bottom: 32px; }
.download-page .store-badges { justify-content: center; }

/* ── Utilities ───────────────────────────────────── */

.store-intro { margin-bottom: 24px; }

/* ── Divider ─────────────────────────────────────── */

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

/* ── Responsive ──────────────────────────────────── */

@media (max-width: 480px) {
  .hero { padding: 56px 0 48px; }
  .features { grid-template-columns: 1fr; }
  footer .container { flex-direction: column; align-items: flex-start; }
}
