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

:root {
  --bg: #0f0f11;
  --bg-card: #1a1a1e;
  --bg-card-hover: #222228;
  --border: #2a2a30;
  --text: #f0f0f2;
  --text-muted: #888890;
  --accent: #7b5ea7;
  --accent-light: #9b7ec8;
  --accent-glow: rgba(123, 94, 167, 0.15);
  --radius: 12px;
  --max-w: 860px;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent-light);
  text-decoration: none;
}

a:hover {
  color: var(--text);
  text-decoration: underline;
}

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

.site-header {
  padding: 1.5rem 1.5rem 0;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.logo {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.logo:hover {
  color: var(--text);
  text-decoration: none;
}

main {
  flex: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
  width: 100%;
}

footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

footer .footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

footer a {
  color: var(--text-muted);
}

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

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

.hero {
  margin-bottom: 4rem;
}

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-light);
  background: var(--accent-glow);
  border: 1px solid rgba(123, 94, 167, 0.3);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero h1 span {
  color: var(--accent-light);
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* ─── Section headings ─────────────────────────────────────── */

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* ─── App cards ───────────────────────────────────────────── */

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.app-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(123, 94, 167, 0.4);
  transform: translateY(-2px);
}

.app-icon-img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 0.25rem;
}

.app-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.app-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.app-links {
  margin-top: auto;
  padding-top: 0.75rem;
  display: flex;
  gap: 1rem;
  font-size: 0.82rem;
}

.app-links a {
  color: var(--text-muted);
  font-weight: 500;
}

.app-links a:hover {
  color: var(--accent-light);
  text-decoration: none;
}

/* ─── Privacy policy page ─────────────────────────────────── */

.privacy-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-weight: 500;
}

.privacy-back:hover {
  color: var(--text);
  text-decoration: none;
}

.privacy-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.privacy-header h1 {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.privacy-header .meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.privacy-body h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.privacy-body p,
.privacy-body li {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.privacy-body ul,
.privacy-body ol {
  padding-left: 1.4rem;
  margin-bottom: 0.75rem;
}

.privacy-body a {
  color: var(--accent-light);
}

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

@media (max-width: 480px) {
  main {
    padding-top: 2.5rem;
  }

  footer .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
