/* ─── Tokens ─────────────────────────────────────────── */
:root {
  --bg:             #0a0a0f;
  --surface:        #13131a;
  --accent:         #6c63ff;
  --text-primary:   #f0f0f5;
  --text-secondary: #9090a8;
  --border:         #2a2a3a;
  --radius:         12px;
  --max-w:          1100px;
}

/* ─── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 1rem;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ─── Container ──────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ─── Nav ────────────────────────────────────────────── */
nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--accent); }
.nav-back {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-back:hover { color: var(--accent); }

/* ─── Hero ───────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 6rem 1.5rem 4rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}
.hero .tagline {
  font-size: 1.25rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}
.hero .description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* ─── Section ────────────────────────────────────────── */
.section { padding: 4rem 0; }
.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  text-align: center;
}

/* ─── App Cards ──────────────────────────────────────── */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
}
.app-card:hover {
  box-shadow: 0 0 0 1px var(--accent);
  border-color: var(--accent);
}
.app-card .app-icon { font-size: 2.5rem; margin-bottom: 0.25rem; }
.app-card .app-icon img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: block;
  object-fit: cover;
}
.app-card .app-name { font-size: 1.15rem; font-weight: 700; }
.app-card .app-tagline {
  font-size: 0.95rem;
  color: var(--text-secondary);
  flex: 1;
}
.app-card .app-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
  transition: opacity 0.2s;
}
.app-card .app-link:hover { opacity: 0.8; }

/* ─── App Hero (detail page) ─────────────────────────── */
.app-hero {
  padding: 4rem 0 3rem;
  text-align: center;
}
.app-hero .app-hero-icon { font-size: 4rem; margin-bottom: 1rem; }
.app-hero .app-hero-icon img {
  width: 112px;
  height: 112px;
  border-radius: 24px;
  display: inline-block;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.app-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.app-hero p {
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto;
  font-size: 1rem;
}

/* ─── Feature Grid ───────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.feat-icon { font-size: 1.5rem; flex-shrink: 0; }
.feat-body { flex: 1; min-width: 0; }
.feat-title { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.2rem; }
.feat-desc { font-size: 0.875rem; color: var(--text-secondary); }

/* ─── Store Badges ───────────────────────────────────── */
.store-cta { text-align: center; padding: 3rem 0; }
.store-cta h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; }
.store-badges { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.badge-btn:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.badge-icon { font-size: 1.4rem; }
.badge-label { display: flex; flex-direction: column; text-align: left; }
.badge-sub { font-size: 0.65rem; font-weight: 400; color: var(--text-secondary); }
.badge-store { font-size: 1rem; font-weight: 700; }

/* ─── Disclaimer ─────────────────────────────────────── */
.disclaimer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 2rem 0;
}
.disclaimer a { color: var(--accent); }

/* ─── Privacy Policy ─────────────────────────────────── */
.privacy-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 0 5rem;
}
.privacy-content h1 { font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; }
.privacy-content .last-updated {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}
.privacy-content h2 { font-size: 1.15rem; font-weight: 600; margin: 2rem 0 0.75rem; }
.privacy-content p { color: var(--text-secondary); margin-bottom: 1rem; }
.privacy-content ul {
  color: var(--text-secondary);
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.privacy-content ul li { margin-bottom: 0.4rem; }
.privacy-content a { color: var(--accent); }
.privacy-content a:hover { text-decoration: underline; }

/* ─── Footer ─────────────────────────────────────────── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy { font-size: 0.875rem; color: var(--text-secondary); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 768px) {
  .apps-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .hero { padding: 4rem 1rem 2.5rem; }
  .app-hero { padding: 3rem 1rem 2rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
