:root {
  --bg: #0b0d14;
  --text: #f5f7fa;
  --dim: rgba(245, 247, 250, 0.62);
  --faint: rgba(245, 247, 250, 0.4);
  --accent: #6ea8ff;
  --card: rgba(255, 255, 255, 0.055);
  --border: rgba(255, 255, 255, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* soft color blobs behind everything, like the app */
body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  z-index: -1;
}
body::before {
  width: 520px;
  height: 520px;
  background: #2b4a8f;
  top: -160px;
  left: -140px;
}
body::after {
  width: 480px;
  height: 480px;
  background: #6d2b5e;
  bottom: -160px;
  right: -120px;
}

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

/* ---------- nav ---------- */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.3px;
  color: var(--text);
  text-decoration: none;
}
.brand svg {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}
.nav-links {
  display: flex;
  gap: 22px;
}
.nav-links a {
  color: var(--dim);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover {
  color: var(--text);
}

/* ---------- hero ---------- */
.hero {
  text-align: center;
  padding: 64px 0 48px;
}
.hero-icon {
  width: 108px;
  height: 108px;
  border-radius: 26px;
  margin: 0 auto 28px;
  display: block;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.hero h1 {
  font-size: clamp(34px, 7vw, 52px);
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.05;
  margin-bottom: 18px;
}
.hero p {
  font-size: clamp(17px, 3vw, 20px);
  color: var(--dim);
  max-width: 520px;
  margin: 0 auto 34px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 14px;
  background: #fff;
  color: #000;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.15s, opacity 0.15s;
}
.badge:hover {
  transform: translateY(-2px);
}
.badge.secondary {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
}
.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- feature cards ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  padding: 20px 0 72px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.card .emoji {
  font-size: 28px;
  display: block;
  margin-bottom: 12px;
}
.card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 7px;
  letter-spacing: -0.2px;
}
.card p {
  color: var(--dim);
  font-size: 15px;
}

/* ---------- legal / doc pages ---------- */
.doc {
  padding: 44px 0 80px;
}
.doc .card {
  padding: 40px;
}
.doc h1 {
  font-size: clamp(28px, 6vw, 38px);
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 8px;
}
.doc .updated {
  color: var(--faint);
  font-size: 14px;
  margin-bottom: 32px;
}
.doc h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 30px 0 10px;
  letter-spacing: -0.3px;
}
.doc p,
.doc li {
  color: var(--dim);
  font-size: 16px;
  margin-bottom: 12px;
}
.doc ul {
  padding-left: 22px;
}
.doc li {
  margin-bottom: 8px;
}
.doc a {
  color: var(--accent);
  text-decoration: none;
}
.doc a:hover {
  text-decoration: underline;
}
.doc strong {
  color: var(--text);
  font-weight: 600;
}

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  text-align: center;
}
footer .links {
  display: flex;
  gap: 22px;
  justify-content: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
footer a {
  color: var(--dim);
  text-decoration: none;
  font-size: 15px;
}
footer a:hover {
  color: var(--text);
}
footer .copy {
  color: var(--faint);
  font-size: 13px;
}

/* ---------- small screens ---------- */
@media (max-width: 480px) {
  .wrap {
    padding: 0 18px;
  }
  nav {
    padding: 18px 0;
  }
  .brand {
    font-size: 16px;
    gap: 9px;
  }
  .brand svg {
    width: 30px;
    height: 30px;
  }
  .nav-links {
    gap: 16px;
  }
  .nav-links a {
    font-size: 14px;
  }
  .doc .card {
    padding: 26px 22px;
  }
  .hero {
    padding: 40px 0 40px;
  }
}
