:root {
  --green-50: #f0fdf4;
  --green-100: #dcfce7;
  --green-200: #bbf7d0;
  --green-300: #86efac;
  --green-400: #4ade80;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;
  --green-800: #166534;
  --green-900: #14532d;
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --cream: #fdfcf8;
  --text-primary: #1a2e1a;
  --text-secondary: #4a6b4a;
  --text-muted: #7a9a7a;
  --surface: #ffffff;
  --border: #e2ede2;
  --shadow: rgba(22, 101, 52, 0.08);
  --shadow-lg: rgba(22, 101, 52, 0.12);
  --radius: 16px;
  --radius-lg: 24px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  color: var(--text-primary);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(253, 252, 248, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 2px 20px var(--shadow); }
.nav-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text-primary);
}
.nav-logo img { width: 36px; height: 36px; border-radius: 8px; }
.nav-logo span { font-weight: 700; font-size: 1.15rem; }
.nav-links { display: flex; gap: 8px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--text-secondary);
  padding: 8px 16px; border-radius: 10px; font-size: 0.92rem; font-weight: 500;
  transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--green-700); background: var(--green-100);
}
.nav-hamburger {
  display: none; background: none; border: none; cursor: pointer;
  width: 32px; height: 32px; position: relative;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px; background: var(--text-primary);
  position: absolute; left: 5px; transition: all 0.3s;
}
.nav-hamburger span:nth-child(1) { top: 8px; }
.nav-hamburger span:nth-child(2) { top: 15px; }
.nav-hamburger span:nth-child(3) { top: 22px; }

/* ===== HERO ===== */
.hero {
  padding: 140px 24px 80px;
  text-align: center;
  background: linear-gradient(180deg, var(--green-50) 0%, var(--cream) 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 40%, var(--green-200) 0%, transparent 40%),
              radial-gradient(circle at 70% 60%, rgba(45, 212, 191, 0.15) 0%, transparent 35%);
  opacity: 0.5; animation: float 20s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-20px, 20px) rotate(5deg); }
}
.hero-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--green-100); color: var(--green-700);
  padding: 6px 16px; border-radius: 100px; font-size: 0.85rem; font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 3.8rem); font-weight: 800;
  line-height: 1.1; margin-bottom: 20px;
  background: linear-gradient(135deg, var(--green-800), var(--green-600), var(--teal-500));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.2rem; color: var(--text-secondary);
  max-width: 520px; margin: 0 auto 36px;
}
.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 14px;
  font-size: 1rem; font-weight: 600;
  text-decoration: none; transition: all 0.25s;
  border: none; cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--green-600), var(--green-500));
  color: white; box-shadow: 0 4px 14px rgba(22, 163, 74, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.4);
}
.btn-secondary {
  background: var(--surface); color: var(--green-700);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover { background: var(--green-50); border-color: var(--green-300); }

.hero-image {
  margin-top: 48px; position: relative; z-index: 1;
}
.hero-screenshot {
  max-width: 280px; border-radius: 32px;
  box-shadow: 0 20px 60px var(--shadow-lg), 0 0 0 1px var(--border);
}

/* ===== FEATURES ===== */
.features {
  padding: 100px 24px;
  max-width: 1120px; margin: 0 auto;
}
.section-label {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--green-600); font-weight: 600; font-size: 0.9rem;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 700;
  margin-bottom: 16px;
}
.section-subtitle {
  color: var(--text-secondary); font-size: 1.1rem;
  max-width: 560px; margin-bottom: 56px;
}
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  transition: all 0.3s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--shadow);
  border-color: var(--green-200);
}
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 20px;
}
.feature-icon.green { background: var(--green-100); }
.feature-icon.teal { background: rgba(45, 212, 191, 0.15); }
.feature-icon.amber { background: rgba(251, 191, 36, 0.15); }
.feature-icon.sky { background: rgba(56, 189, 248, 0.15); }
.feature-icon.coral { background: rgba(251, 113, 133, 0.15); }
.feature-icon.purple { background: rgba(167, 139, 250, 0.15); }
.feature-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--text-secondary); font-size: 0.95rem; }

/* ===== STATS ===== */
.stats {
  padding: 80px 24px;
  background: linear-gradient(135deg, var(--green-700), var(--green-600));
}
.stats-inner {
  max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  text-align: center;
}
.stat-item h3 { font-size: clamp(1.8rem, 4vw, 2.5rem); color: white; font-weight: 800; }
.stat-item p { color: var(--green-200); font-size: 0.9rem; font-weight: 500; margin-top: 4px; }

/* ===== CTA ===== */
.cta {
  padding: 100px 24px; text-align: center;
  background: linear-gradient(180deg, var(--cream) 0%, var(--green-50) 100%);
}
.cta-inner {
  max-width: 600px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 56px 40px;
  box-shadow: 0 8px 30px var(--shadow);
}
.cta-inner h2 { font-size: 2rem; font-weight: 700; margin-bottom: 16px; }
.cta-inner p { color: var(--text-secondary); margin-bottom: 32px; font-size: 1.05rem; }

/* ===== FOOTER ===== */
.footer {
  padding: 48px 24px 32px;
  background: var(--green-900); color: var(--green-200);
}
.footer-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: start;
  flex-wrap: wrap; gap: 32px;
}
.footer-brand { max-width: 280px; }
.footer-brand h3 { color: white; font-size: 1.2rem; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.6; }
.footer-col h4 { color: white; font-size: 0.9rem; font-weight: 600; margin-bottom: 12px; }
.footer-col a {
  display: block; color: var(--green-200); text-decoration: none;
  font-size: 0.88rem; padding: 4px 0; transition: color 0.2s;
}
.footer-col a:hover { color: white; }
.footer-bottom {
  max-width: 1120px; margin: 32px auto 0;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.82rem; color: var(--green-300);
}

/* ===== PAGE LAYOUTS (Privacy, Support, Help) ===== */
.page-hero {
  padding: 120px 24px 60px;
  background: linear-gradient(180deg, var(--green-50) 0%, var(--cream) 100%);
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800;
  margin-bottom: 12px;
}
.page-hero p { color: var(--text-secondary); font-size: 1.1rem; }

.page-content {
  max-width: 760px; margin: 0 auto; padding: 60px 24px 100px;
}
.page-content h2 {
  font-size: 1.5rem; font-weight: 700; margin: 40px 0 16px;
  color: var(--green-800);
}
.page-content h3 {
  font-size: 1.15rem; font-weight: 600; margin: 28px 0 12px;
  color: var(--green-700);
}
.page-content p, .page-content li {
  color: var(--text-secondary); font-size: 1rem; line-height: 1.75;
}
.page-content ul, .page-content ol {
  margin: 12px 0 20px 24px;
}
.page-content li { margin-bottom: 8px; }
.page-content a { color: var(--green-600); text-decoration: underline; }
.page-content a:hover { color: var(--green-800); }

/* Support page cards */
.support-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  margin-bottom: 24px; transition: all 0.3s;
}
.support-card:hover { box-shadow: 0 8px 24px var(--shadow); }
.support-card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.support-card .icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}

/* Help cards */
.help-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; margin: 32px 0;
}
.help-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  text-decoration: none; color: inherit; transition: all 0.3s;
}
.help-card:hover {
  transform: translateY(-3px); box-shadow: 0 8px 24px var(--shadow);
  border-color: var(--green-200);
}
.help-card .emoji { font-size: 2rem; margin-bottom: 12px; display: block; }
.help-card h3 { font-size: 1.05rem; margin-bottom: 6px; color: var(--text-primary); }
.help-card p { font-size: 0.9rem; color: var(--text-secondary); margin: 0; }

/* Tutorial accordion */
.tutorial-section {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 16px; overflow: hidden;
}
.tutorial-header {
  padding: 20px 24px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  background: none; border: none; width: 100%;
  font-size: 1.05rem; font-weight: 600; color: var(--text-primary);
  text-align: left;
}
.tutorial-header:hover { background: var(--green-50); }
.tutorial-header .arrow { transition: transform 0.3s; font-size: 0.8rem; color: var(--text-muted); }
.tutorial-section.open .tutorial-header .arrow { transform: rotate(180deg); }
.tutorial-body {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
}
.tutorial-section.open .tutorial-body { max-height: 2000px; }
.tutorial-body-inner { padding: 0 24px 24px; }
.tutorial-step {
  display: flex; gap: 16px; margin-bottom: 16px;
}
.tutorial-step-num {
  flex-shrink: 0; width: 32px; height: 32px;
  background: var(--green-100); color: var(--green-700);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem;
}
.tutorial-step-content h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.tutorial-step-content p { font-size: 0.9rem; color: var(--text-secondary); margin: 0; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-item:last-child { border: none; }
.faq-q { font-weight: 600; font-size: 1.05rem; margin-bottom: 8px; cursor: pointer; }
.faq-a { color: var(--text-secondary); font-size: 0.95rem; display: none; }
.faq-item.open .faq-a { display: block; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { 
    display: none; position: fixed; top: 64px; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 16px;
    box-shadow: 0 8px 24px var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: block; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; }
  .hero { padding: 120px 24px 60px; }
  .cta-inner { padding: 40px 24px; }
}
