:root {
  --bg: #0a0a0f;
  --bg2: #111118;
  --card: #16161e;
  --border: #2a2a38;
  --accent: #6366f1;
  --accent2: #8b5cf6;
  --text: #e2e8f0;
  --muted: #64748b;
  --radius: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

/* ── Nav ── */
nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 40px;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-size: 18px; font-weight: 700; letter-spacing: -0.5px;
  background: linear-gradient(135deg, #a5b4fc, #c084fc);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 14px; color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 100px 24px 80px;
  background: radial-gradient(ellipse 800px 400px at 50% -50px, rgba(99,102,241,0.15), transparent);
}

.hero-badge {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: 1px;
  color: #a5b4fc;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 100px;
  padding: 4px 14px;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800; letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero h1 .grad {
  background: linear-gradient(135deg, #a5b4fc, #c084fc, #f472b6);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 18px; color: var(--muted);
  max-width: 520px; margin: 0 auto 36px;
}

.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 100px;
  font-size: 14px; font-weight: 600;
  transition: all 0.2s; cursor: pointer; border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white;
  box-shadow: 0 4px 24px rgba(99,102,241,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(99,102,241,0.45); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
}
.btn-outline:hover { border-color: var(--accent); color: var(--text); }

/* ── Section ── */
.section { padding: 80px 24px; max-width: 1100px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 56px; }
.section-label {
  font-size: 12px; font-weight: 600; letter-spacing: 1.5px;
  color: var(--accent); text-transform: uppercase; margin-bottom: 12px;
}
.section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700; letter-spacing: -0.5px;
}
.section-header p { color: var(--muted); margin-top: 10px; font-size: 16px; }

/* ── App Grid ── */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.app-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
  transition: all 0.25s;
  position: relative;
}
.app-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(99,102,241,0.06), transparent);
  opacity: 0; transition: opacity 0.25s;
  pointer-events: none;
}
.app-card:hover { border-color: rgba(99,102,241,0.5); transform: translateY(-4px); }
.app-card:hover::before { opacity: 1; }

.app-card-top { display: flex; align-items: flex-start; gap: 16px; }

.app-icon {
  width: 64px; height: 64px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.app-info { flex: 1; min-width: 0; }
.app-name {
  font-size: 17px; font-weight: 700; letter-spacing: -0.3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.app-desc {
  font-size: 13px; color: var(--muted);
  margin-top: 4px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.app-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto;
}

.app-privacy {
  font-size: 12px; color: var(--muted);
  transition: color 0.2s;
}
.app-privacy:hover { color: var(--text); }

.app-store-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: white; color: #000;
  border-radius: 100px; padding: 8px 14px;
  font-size: 12px; font-weight: 700; letter-spacing: -0.3px;
  transition: all 0.2s;
  position: relative; z-index: 10;
}
.app-store-btn:hover { background: #e2e8f0; transform: scale(1.04); }
.app-store-btn svg { width: 14px; height: 14px; }

/* ── Blog ── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }

.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
  transition: all 0.25s;
}
.blog-card:hover { border-color: rgba(99,102,241,0.5); transform: translateY(-4px); }

.blog-date { font-size: 12px; color: var(--muted); }
.blog-title { font-size: 20px; font-weight: 700; letter-spacing: -0.3px; line-height: 1.3; }
.blog-excerpt { font-size: 14px; color: var(--muted); line-height: 1.6; flex: 1; }
.blog-read-more {
  font-size: 13px; font-weight: 600; color: var(--accent);
  display: inline-flex; align-items: center; gap: 4px;
  transition: gap 0.2s;
}
.blog-read-more:hover { gap: 8px; }

/* ── Contact ── */
.contact-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 60px 40px;
  text-align: center;
  background-image: radial-gradient(ellipse 600px 300px at 50% 100%, rgba(99,102,241,0.08), transparent);
}
.contact-box h2 { font-size: 32px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 12px; }
.contact-box p { color: var(--muted); margin-bottom: 28px; }
.contact-email {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white; border-radius: 100px;
  padding: 14px 28px; font-size: 16px; font-weight: 600;
  transition: all 0.2s;
  box-shadow: 0 4px 24px rgba(99,102,241,0.35);
}
.contact-email:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(99,102,241,0.45); }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 40px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-left { font-size: 13px; color: var(--muted); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }

/* ── Privacy / Blog Post pages ── */
.page-hero {
  padding: 80px 24px 48px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse 600px 300px at 50% -50px, rgba(99,102,241,0.12), transparent);
}
.page-hero .breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.page-hero .breadcrumb a { color: var(--accent); }
.page-hero h1 { font-size: clamp(24px, 3vw, 36px); font-weight: 700; letter-spacing: -0.5px; }
.page-hero .meta { font-size: 13px; color: var(--muted); margin-top: 10px; }

.prose {
  max-width: 720px; margin: 0 auto;
  padding: 60px 24px 80px;
}
.prose h2 {
  font-size: 22px; font-weight: 700; margin: 36px 0 12px;
  letter-spacing: -0.3px;
}
.prose h3 {
  font-size: 18px; font-weight: 600; margin: 28px 0 8px;
  color: #c4b5fd;
}
.prose h4 { font-size: 15px; font-weight: 600; margin: 20px 0 6px; color: #a5b4fc; }
.prose p { font-size: 15px; line-height: 1.8; color: #cbd5e1; margin-bottom: 16px; }
.prose ul { padding-left: 20px; margin-bottom: 16px; }
.prose li { font-size: 15px; color: #cbd5e1; line-height: 1.8; margin-bottom: 4px; }
.prose strong { color: var(--text); }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }
.prose h1 { font-size: 26px; font-weight: 700; margin: 36px 0 12px; }

/* ── Blog index ── */
.blog-hero {
  padding: 80px 24px 60px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse 600px 300px at 50% -50px, rgba(99,102,241,0.12), transparent);
}
.blog-hero h1 { font-size: 40px; font-weight: 800; letter-spacing: -1px; }
.blog-hero p { color: var(--muted); margin-top: 10px; }

.blog-list { max-width: 760px; margin: 0 auto; padding: 60px 24px 80px; display: flex; flex-direction: column; gap: 20px; }

.blog-list-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex; align-items: center; gap: 24px;
  transition: all 0.25s;
}
.blog-list-item:hover { border-color: rgba(99,102,241,0.5); transform: translateX(4px); }
.blog-list-content { flex: 1; }
.blog-list-date { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.blog-list-title { font-size: 20px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 8px; }
.blog-list-excerpt { font-size: 14px; color: var(--muted); line-height: 1.6; }
.blog-list-arrow { color: var(--accent); font-size: 20px; flex-shrink: 0; }

/* ── Responsive ── */
@media (max-width: 640px) {
  nav { padding: 14px 20px; }
  .nav-links { gap: 16px; }
  footer { flex-direction: column; text-align: center; }
  .contact-box { padding: 40px 24px; }
  .blog-list-item { flex-direction: column; align-items: flex-start; gap: 12px; }
}
