/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --gradient-blue: #A8D8FF;
  --gradient-lavender: #B8B5FF;
  --gradient-pink: #FFB8E6;
  --gradient-peach: #FFEAB8;
  --text-dark: rgb(38, 26, 64);
  --text-secondary: rgb(77, 64, 102);
  --text-muted: rgb(102, 89, 128);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'SF Pro Rounded', ui-rounded, system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Gradient Background ── */
.gradient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    var(--gradient-blue) 0%,
    var(--gradient-lavender) 35%,
    var(--gradient-pink) 70%,
    var(--gradient-peach) 100%
  );
}

.fade-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 260px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255,255,255,0.4) 50%,
    rgba(255,255,255,0.9) 100%
  );
}

/* ── Stars ── */
.stars { position: absolute; inset: 0; overflow: hidden; }

.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  animation: twinkle 3s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0% { opacity: 0.2; transform: scale(0.8); }
  100% { opacity: 0.8; transform: scale(1.2); }
}

/* ── Nav ── */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
}

.nav-links { display: flex; gap: 28px; }

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 100px 24px 80px;
  max-width: 680px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
}

.subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 40px;
}

.badges { display: flex; justify-content: center; gap: 16px; }

.app-store-badge img { height: 48px; transition: opacity 0.2s; }
.app-store-badge:hover img { opacity: 0.8; }

/* ── Features ── */
.features {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 40px 24px 100px;
  max-width: 900px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.feature {
  text-align: center;
  max-width: 240px;
  flex: 1;
  min-width: 200px;
}

.feature-icon { font-size: 36px; margin-bottom: 16px; }

.feature h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 40px 24px;
  border-top: 1px solid rgba(38, 26, 64, 0.08);
}

.footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 16px; }

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

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

.copyright { font-size: 13px; color: var(--text-muted); }

/* ── Legal Pages ── */
.legal {
  max-width: 700px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.legal h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
}

.legal .last-updated {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 12px;
}

.legal p, .legal li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.legal ul { padding-left: 20px; }

.legal a { color: var(--text-dark); }

/* ── Responsive ── */
@media (max-width: 600px) {
  nav { padding: 16px 20px; }
  .hero { padding: 60px 20px 60px; }
  .features { gap: 32px; padding: 20px 20px 60px; }
}
