/* ===== Design Tokens ===== */
:root {
  --primary: #6C63FF;
  --primary-light: #A5A0FF;
  --primary-dark: #4A42D4;
  --bg: #FBF8F4;
  --surface: #FFFFFF;
  --text: #2D2D3A;
  --text-secondary: #7A7A8E;
  --success: #6BCB77;
  --streak: #FF8C42;
  --radius-card: 16px;
  --radius-pill: 9999px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--primary);
}

.nav-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.nav-cta:hover { background: var(--primary-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 6px 0;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 80px;
  text-align: center;
  background: linear-gradient(160deg, #f3f1ff 0%, var(--bg) 50%, #fff5ee 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-logo {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  margin: 0 auto 24px;
  box-shadow: 0 8px 32px rgba(108, 99, 255, 0.18);
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--text);
}

.hero h1 span {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 32px;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }

.google-play-badge { height: 52px; }

/* ===== Section Shared ===== */
section { padding: 80px 0; }

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 48px;
}

/* ===== Features Grid ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(108, 99, 255, 0.1);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Feature icon colours */
.icon-gratitude  { background: #ede9ff; color: var(--primary); }
.icon-reflect    { background: #e0f7e4; color: var(--success); }
.icon-habit      { background: #fff2e5; color: var(--streak); }
.icon-goal       { background: #e0f0ff; color: #4a90d9; }
.icon-sport      { background: #ffe5e5; color: #e05555; }
.icon-nutrition  { background: #e9ffe5; color: #4caf50; }
.icon-recovery   { background: #f0e5ff; color: #9b59b6; }
.icon-social     { background: #e5f7ff; color: #00bcd4; }
.icon-stats      { background: #fff8e1; color: #ff9800; }

/* ===== How It Works ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ===== Screenshots ===== */
.screenshots-row {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.screenshot-slot {
  width: 220px;
  height: 440px;
  background: var(--surface);
  border: 2px dashed rgba(108, 99, 255, 0.25);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* ===== Privacy Summary ===== */
.privacy-summary {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.privacy-summary p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.7;
}

.privacy-summary .btn-primary { font-size: 0.9rem; }

/* ===== Footer ===== */
.footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.7);
  padding: 32px 0;
  text-align: center;
  font-size: 0.85rem;
}

.footer a { color: var(--primary-light); }
.footer a:hover { text-decoration: underline; }
.footer-links { margin-top: 8px; }
.footer-links a { margin: 0 12px; }

/* ===== Privacy Policy Page ===== */
.policy-page { padding: 100px 0 60px; }

.policy-page h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.policy-date {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 36px;
}

.policy-page h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--primary-dark);
}

.policy-page p,
.policy-page li {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.policy-page ul {
  padding-left: 24px;
  margin-bottom: 12px;
}

.policy-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 32px;
}

.policy-back:hover { text-decoration: underline; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--surface);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }

  .nav-links.open { display: flex; }

  .nav-toggle { display: block; }

  .hero h1 { font-size: 2rem; }
  .hero-tagline { font-size: 1.05rem; }

  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 40px; }

  .screenshot-slot { width: 180px; height: 360px; }
}
