/* ── Design tokens ── */
:root {
  --bg:           #121429;
  --surface:      #1c1f38;
  --surface-muted:#262945;
  --border:       rgba(158,140,237,0.15);

  --magic:        #f2a673;
  --magic-dark:   #d4834a;
  --violet:       #9e8ced;

  --sky-start:    #332e73;
  --sky-end:      #734d8c;

  --text:         #f7f0e0;
  --text-mid:     rgba(247,240,224,0.65);
  --text-dim:     rgba(247,240,224,0.40);

  --r-card:       24px;
  --r-btn:        18px;
  --r-chip:       14px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Typography helpers ── */
.serif { font-family: Georgia, "Times New Roman", serif; }
.label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ── Layout ── */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18,20,41,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 0.5px solid var(--surface-muted);
}
.nav-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
  text-decoration: none;
}
.nav-logo .moon { font-size: 22px; }
.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.nav-links a {
  color: var(--text-mid);
  font-size: 15px;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ── Hero ── */
.hero {
  padding: 80px 24px 72px;
  text-align: center;
}
.hero-emoji {
  font-size: 56px;
  line-height: 1;
  margin-bottom: 24px;
  display: block;
}
.hero h1 {
  font-family: Georgia, serif;
  font-size: clamp(36px, 7vw, 58px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}
.hero h1 span { color: var(--magic); }
.hero-tagline {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: clamp(18px, 3vw, 22px);
  color: var(--text-mid);
  max-width: 520px;
  margin: 0 auto 40px;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--magic) 0%, var(--magic-dark) 100%);
  color: #fff;
  font-weight: 600;
  font-size: 17px;
  padding: 16px 32px;
  border-radius: var(--r-btn);
  box-shadow: 0 6px 20px rgba(242,166,115,0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(242,166,115,0.45);
  text-decoration: none;
  color: #fff;
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-mid);
  font-size: 15px;
  border: 1px solid var(--border);
  padding: 12px 24px;
  border-radius: var(--r-chip);
  transition: color 0.2s, border-color 0.2s;
}
.btn-secondary:hover {
  color: var(--text);
  border-color: var(--violet);
  text-decoration: none;
}
.apple-icon { width: 18px; height: 22px; flex-shrink: 0; }

/* ── Hero card (sky gradient) ── */
.hero-card {
  margin: 64px auto 0;
  max-width: 340px;
  background: linear-gradient(145deg, var(--sky-start) 0%, var(--sky-end) 100%);
  border: 1px solid rgba(158,140,237,0.2);
  border-radius: var(--r-card);
  padding: 32px 28px;
  text-align: left;
}
.hero-card .label { margin-bottom: 10px; }
.hero-card-title {
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}
.hero-card-body {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.7;
}
.hero-card-footer {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.play-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--magic) 0%, var(--magic-dark) 100%);
  box-shadow: 0 4px 14px rgba(242,166,115,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.progress-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.progress-bar {
  height: 4px;
  border-radius: 99px;
  background: var(--surface-muted);
  overflow: hidden;
}
.progress-fill {
  width: 35%;
  height: 100%;
  border-radius: 99px;
  background: var(--magic);
}
.progress-label { font-size: 13px; color: var(--text-dim); }

/* ── Section ── */
section { padding: 72px 24px; }
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header .label { margin-bottom: 12px; }
.section-header h2 {
  font-family: Georgia, serif;
  font-size: clamp(26px, 5vw, 36px);
  font-weight: 700;
  line-height: 1.2;
}
.section-header p {
  color: var(--text-mid);
  margin-top: 12px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Features grid ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 28px 24px;
  transition: border-color 0.25s;
}
.feature-card:hover { border-color: rgba(158,140,237,0.4); }
.feature-emoji { font-size: 32px; margin-bottom: 16px; display: block; }
.feature-card h3 {
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p { color: var(--text-mid); font-size: 15px; line-height: 1.65; }

/* ── How it works ── */
.steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 600px;
  margin: 0 auto;
}
.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--violet);
  flex-shrink: 0;
}
.step-content h3 {
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}
.step-content p { color: var(--text-mid); font-size: 15px; }

/* ── CTA banner ── */
.cta-section {
  background: linear-gradient(145deg, var(--sky-start) 0%, var(--sky-end) 100%);
  border-top: 1px solid rgba(158,140,237,0.15);
  border-bottom: 1px solid rgba(158,140,237,0.15);
  text-align: center;
}
.cta-section h2 {
  font-family: Georgia, serif;
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 700;
  margin-bottom: 12px;
}
.cta-section p { color: var(--text-mid); margin-bottom: 32px; }
.badge-note { margin-top: 16px; font-size: 13px; color: var(--text-dim); }

/* ── Footer ── */
footer {
  border-top: 0.5px solid var(--surface-muted);
  padding: 32px 24px;
}
.footer-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.footer-copy { font-size: 14px; color: var(--text-dim); }
.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}
.footer-links a { font-size: 14px; color: var(--text-dim); }
.footer-links a:hover { color: var(--text); text-decoration: none; }

/* ── Prose pages (privacy, support) ── */
.prose {
  max-width: 680px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}
.prose h1 {
  font-family: Georgia, serif;
  font-size: clamp(28px, 6vw, 42px);
  font-weight: 700;
  margin-bottom: 8px;
}
.prose .page-date { color: var(--text-dim); font-size: 14px; margin-bottom: 48px; }
.prose h2 {
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  margin: 40px 0 12px;
}
.prose p { color: var(--text-mid); margin-bottom: 16px; line-height: 1.75; }
.prose ul, .prose ol {
  color: var(--text-mid);
  padding-left: 24px;
  margin-bottom: 16px;
  line-height: 1.75;
}
.prose li { margin-bottom: 6px; }
.prose a { color: var(--magic); }
.prose strong { color: var(--text); font-weight: 600; }

/* ── Support FAQ ── */
.faq { margin-top: 8px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r-chip);
  padding: 20px 22px;
  margin-bottom: 12px;
  background: var(--surface);
}
.faq-item h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.faq-item p { color: var(--text-mid); font-size: 15px; margin: 0; }

.contact-card {
  background: linear-gradient(145deg, var(--sky-start), var(--sky-end));
  border: 1px solid rgba(158,140,237,0.2);
  border-radius: var(--r-card);
  padding: 32px 28px;
  margin-top: 40px;
  text-align: center;
}
.contact-card h2 {
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}
.contact-card p { color: var(--text-mid); margin-bottom: 20px; }
.contact-email {
  display: inline-block;
  background: rgba(18,20,41,0.4);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 22px;
  font-size: 16px;
  color: var(--magic);
  font-weight: 500;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .nav-links { display: none; }
  .hero { padding: 56px 20px 56px; }
  section { padding: 56px 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
