/* ===== Design Tokens ===== */
:root {
  --color-primary:   #6B5CE7;
  --color-secondary: #3ECFB2;
  --color-text:      #1C1B2E;
  --color-subtle:    #6E6B82;
  --color-surface:   #F8F7FC;
  --color-dark:      #1C1B2E;
  --gradient-brand:  linear-gradient(135deg, #6B5CE7 0%, #3ECFB2 100%);
  --radius-card:     16px;
  --radius-btn:      50px;
  --shadow-card:     0 4px 24px rgba(107,92,231,0.08);
  --shadow-hover:    0 12px 40px rgba(107,92,231,0.18);
  --nav-height:      72px;
  --section-gap:     clamp(64px, 10vw, 120px);
  --container:       1120px;
  --transition:      0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--color-text);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ===== Layout ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Navigation ===== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  transition: background var(--transition), box-shadow var(--transition);
}
.site-nav .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-nav.scrolled {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(107,92,231,0.08);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--color-text);
}
.nav-logo svg {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}
.nav-logo-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-subtle);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--color-primary); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn-nav {
  background: var(--gradient-brand);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: var(--radius-btn);
  font-size: 0.875rem;
  font-weight: 600;
  transition: opacity var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn-nav:hover { opacity: 0.9; transform: translateY(-1px); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  border: none;
  background: none;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  padding: 24px;
  z-index: 99;
  border-bottom: 1px solid rgba(107,92,231,0.1);
  flex-direction: column;
  gap: 20px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  padding: 8px 0;
  border-bottom: 1px solid rgba(107,92,231,0.06);
}
.mobile-menu .btn-nav { text-align: center; padding: 14px 20px; }

/* ===== Buttons ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--color-primary);
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
  padding: 13px 28px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background var(--transition), transform var(--transition);
}
.btn-secondary:hover { background: rgba(255,255,255,0.25); transform: translateY(-2px); }

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--color-text);
  color: #fff;
  padding: 14px 24px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  box-shadow: 0 4px 16px rgba(28,27,46,0.2);
  min-width: 160px;
}
.btn-store:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(28,27,46,0.3); background: #2d2c45; }
.btn-store-text { display: flex; flex-direction: column; line-height: 1.2; }
.btn-store-text small { font-weight: 400; font-size: 0.7rem; opacity: 0.8; }
.btn-store-text span { font-size: 0.95rem; }

/* ===== Hero ===== */
#hero {
  min-height: 100svh;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 20%, rgba(255,255,255,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(62,207,178,0.2) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: clamp(48px, 8vw, 96px) 0;
}

.hero-text { color: #fff; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-eyebrow-dot { width: 6px; height: 6px; background: var(--color-secondary); border-radius: 50%; }

.hero-headline {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  opacity: 0.9;
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  opacity: 0.8;
}
.hero-trust-item svg { width: 14px; height: 14px; }
.hero-trust-divider { opacity: 0.3; }

/* Phone Mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  width: 260px;
  height: 520px;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 44px;
  padding: 16px;
  backdrop-filter: blur(8px);
  position: relative;
  box-shadow: 0 32px 80px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.2);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.phone-notch {
  width: 80px;
  height: 24px;
  background: rgba(0,0,0,0.5);
  border-radius: 12px;
  margin: 0 auto 16px;
}

.phone-screen {
  background: rgba(255,255,255,0.95);
  border-radius: 32px;
  height: calc(100% - 40px);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.phone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.phone-header-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
}
.phone-date {
  font-size: 0.6rem;
  color: var(--color-subtle);
}

.phone-mood-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--color-subtle);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mood-row {
  display: flex;
  gap: 6px;
  justify-content: space-between;
}
.mood-btn {
  flex: 1;
  aspect-ratio: 1;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: var(--color-surface);
  font-size: 1.1rem;
  line-height: 1;
}
.mood-btn.active {
  background: linear-gradient(135deg, #6B5CE7, #9B7BFF);
  box-shadow: 0 4px 12px rgba(107,92,231,0.3);
}
.mood-btn span { font-size: 0.45rem; color: var(--color-subtle); display: block; }
.mood-btn.active span { color: rgba(255,255,255,0.8); }

.phone-divider { height: 1px; background: rgba(107,92,231,0.08); }

.phone-habit-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--color-subtle);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.habit-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--color-surface);
  border-radius: 10px;
}
.habit-check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.habit-check.done { background: var(--color-primary); border-color: var(--color-primary); }
.habit-check.done::after { content: '✓'; color: #fff; font-size: 0.55rem; font-weight: 700; }
.habit-name { font-size: 0.65rem; font-weight: 500; color: var(--color-text); }
.habit-streak { margin-left: auto; font-size: 0.55rem; color: var(--color-primary); font-weight: 600; }

.phone-insight {
  background: linear-gradient(135deg, rgba(107,92,231,0.1), rgba(62,207,178,0.1));
  border-radius: 10px;
  padding: 10px;
  border: 1px solid rgba(107,92,231,0.1);
}
.phone-insight-title { font-size: 0.6rem; font-weight: 700; color: var(--color-primary); margin-bottom: 4px; }
.phone-insight-text { font-size: 0.55rem; color: var(--color-subtle); line-height: 1.5; }

/* ===== Section Common ===== */
section { padding: var(--section-gap) 0; }
.section-label {
  display: inline-block;
  background: linear-gradient(135deg, rgba(107,92,231,0.1), rgba(62,207,178,0.1));
  color: var(--color-primary);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--color-subtle);
  max-width: 560px;
  line-height: 1.7;
}
.section-header { text-align: center; margin-bottom: clamp(40px, 6vw, 72px); }
.section-header .section-sub { margin: 0 auto; }

/* ===== Features ===== */
#features { background: var(--color-surface); }

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

.feature-card {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(107,92,231,0.06);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(107,92,231,0.12), rgba(62,207,178,0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.feature-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.feature-desc {
  font-size: 0.9rem;
  color: var(--color-subtle);
  line-height: 1.6;
}

/* ===== How It Works ===== */
#how-it-works { background: #fff; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 44px;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 1px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  opacity: 0.2;
}

.step {
  text-align: center;
  position: relative;
}

.step-num {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(107,92,231,0.25);
  position: relative;
  z-index: 1;
}

.step-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}
.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.step-desc {
  font-size: 0.9rem;
  color: var(--color-subtle);
  line-height: 1.6;
  max-width: 220px;
  margin: 0 auto;
}

/* ===== Privacy ===== */
#privacy {
  background: var(--color-dark);
  color: #fff;
}

.privacy-inner {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.privacy-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 40px;
}

.privacy-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-card);
  padding: 16px 24px;
  transition: background var(--transition);
}
.privacy-badge:hover { background: rgba(255,255,255,0.1); }

.privacy-badge-icon { font-size: 1.5rem; }
.privacy-badge-text { text-align: left; }
.privacy-badge-title { font-size: 0.9rem; font-weight: 700; margin-bottom: 2px; }
.privacy-badge-sub { font-size: 0.75rem; opacity: 0.6; }

.privacy-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 32px;
  transition: opacity var(--transition);
}
.privacy-link:hover { opacity: 0.8; }

/* ===== Download CTA ===== */
#download {
  background: var(--color-surface);
  text-align: center;
}

.download-inner { max-width: 640px; margin: 0 auto; }
.download-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin: 36px 0 24px;
}
.download-note {
  font-size: 0.85rem;
  color: var(--color-subtle);
}

/* ===== Footer ===== */
footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.7);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-logo svg { width: 32px; height: 32px; border-radius: 7px; }
.footer-logo-name { font-weight: 700; color: #fff; }
.footer-tagline { font-size: 0.8rem; opacity: 0.5; }

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.85rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: #fff; }

.footer-copy { font-size: 0.8rem; opacity: 0.4; }

/* ===== Scroll Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1), transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-visual { order: -1; }
  .phone-mockup { width: 200px; height: 400px; }

  .features-grid { grid-template-columns: 1fr; }
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .steps-grid::before { display: none; }

  .privacy-badges { flex-direction: column; align-items: center; }
  .privacy-badge { width: 100%; max-width: 320px; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: center; }
  .download-ctas { flex-direction: column; align-items: center; }
  .btn-store { width: 200px; justify-content: center; }
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ===== Pricing ===== */
#pricing { padding: 100px 0; background: var(--color-surface); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-card {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 32px 28px;
  border: 1px solid rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(107,92,231,0.12); }

.pricing-card.featured {
  border: 2px solid var(--color-primary);
  box-shadow: 0 8px 32px rgba(107,92,231,0.15);
  transform: scale(1.03);
}

.pricing-card.featured:hover { transform: scale(1.03) translateY(-4px); }

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
}

.pricing-badge.save { background: var(--color-secondary); }

.pricing-name { font-size: 18px; font-weight: 700; color: var(--color-text); margin-bottom: 8px; }
.pricing-price { font-size: 42px; font-weight: 800; color: var(--color-primary); line-height: 1; }
.pricing-period { font-size: 14px; color: var(--color-subtle); margin-bottom: 24px; }

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
}

.pricing-features li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--color-text);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-features li::before {
  content: "✓";
  color: var(--color-secondary);
  font-weight: 700;
  font-size: 14px;
}

@media (max-width: 768px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-4px); }
}

/* ===== FAQ ===== */
#faq { padding: 100px 0; }

.faq-list {
  max-width: 700px;
  margin: 48px auto 0;
}

.faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding: 0;
}

.faq-item summary {
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
}

.faq-item summary:hover { color: var(--color-primary); }

.faq-item summary::after {
  content: "+";
  font-size: 24px;
  font-weight: 300;
  color: var(--color-subtle);
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
  color: var(--color-primary);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item p {
  padding: 0 0 20px;
  font-size: 15px;
  color: var(--color-subtle);
  line-height: 1.7;
  animation: faqOpen 0.3s ease;
}

@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
