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

:root {
  /* App-matched palette */
  --bg: #F9F7F3;
  --bg-dark: #2E2E2E;
  --primary: #6B8F71;
  --primary-dark: #56765B;
  --primary-light: rgba(107, 143, 113, .10);
  --secondary: #5F6F7A;
  --text: #2E2E2E;
  --text-muted: rgba(46, 46, 46, .55);
  --card: #FFFFFF;
  --warm-yellow: #C7AA66;
  --muted-red: #AF625A;
  --divider: rgba(46, 46, 46, .08);

  --radius: 16px;
  --radius-lg: 24px;
  --max-w: 1120px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
}

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

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}

.nav.scrolled {
  background: rgba(249, 247, 243, .85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--divider);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.nav-logo span {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.02em;
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .2s;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--primary);
  color: #fff !important;
  font-weight: 600;
  font-size: 14px;
  border-radius: 12px;
  transition: background .2s, transform .15s, box-shadow .2s;
}

.nav-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(107, 143, 113, .3);
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(107, 143, 113, .12) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(199, 170, 102, .08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 24px;
  letter-spacing: .02em;
}

.hero-badge svg {
  width: 14px;
  height: 14px;
}

.hero h1 {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 440px;
  line-height: 1.65;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  border-radius: 14px;
  transition: background .2s, transform .15s, box-shadow .2s;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(107, 143, 113, .3);
}

.btn-primary svg {
  width: 20px;
  height: 20px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
  font-size: 16px;
  border-radius: 14px;
  transition: background .2s, transform .15s;
}

.btn-secondary:hover {
  background: rgba(107, 143, 113, .16);
  transform: translateY(-1px);
}

.hero-phone {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}

.hero-phone img {
  width: 380px;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .12));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-14px);
  }
}

/* ===== Stats strip ===== */
.stats-strip {
  padding: 48px 0;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--primary);
}

.stat-item span {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===== Features ===== */
.features {
  padding: 100px 0 80px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -.025em;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  font-size: 16px;
}

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

.feature-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: transform .25s, box-shadow .25s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--warm-yellow));
  opacity: 0;
  transition: opacity .25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .06);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
}

.feature-icon.green {
  background: rgba(107, 143, 113, .12);
}

.feature-icon.yellow {
  background: rgba(199, 170, 102, .12);
}

.feature-icon.blue {
  background: rgba(95, 111, 122, .10);
}

.feature-icon.red {
  background: rgba(175, 98, 90, .10);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -.01em;
}

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

/* ===== How It Works ===== */
.how-it-works {
  padding: 80px 0 100px;
  background: linear-gradient(180deg, transparent, rgba(107, 143, 113, .04) 50%, transparent);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  counter-reset: step;
}

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

.step-number {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(107, 143, 113, .25);
}

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

.step-card p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 260px;
  margin: 0 auto;
}

/* ===== Testimonial / Quote ===== */
.quote-section {
  padding: 80px 0;
}

.quote-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: 0 4px 32px rgba(0, 0, 0, .04);
  position: relative;
}

.quote-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  left: 32px;
  font-size: 80px;
  font-weight: 800;
  color: var(--primary);
  opacity: .12;
  line-height: 1;
}

.quote-card blockquote {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 20px;
  font-style: italic;
}

.quote-card cite {
  font-size: 14px;
  color: var(--text-muted);
  font-style: normal;
  font-weight: 500;
}

/* ===== CTA ===== */
.cta {
  padding: 80px 0;
}

.cta-card {
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, .08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-card::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, .05) 0%, transparent 70%);
  pointer-events: none;
}

.cta-card h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.025em;
  margin-bottom: 12px;
  position: relative;
}

.cta-card p {
  color: rgba(255, 255, 255, .75);
  font-size: 16px;
  max-width: 440px;
  margin: 0 auto 32px;
  position: relative;
}

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  font-size: 16px;
  border-radius: 14px;
  transition: transform .15s, box-shadow .2s;
  position: relative;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
}

.btn-white svg {
  width: 20px;
  height: 20px;
}

/* ===== Footer ===== */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--divider);
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-brand span {
  font-size: 15px;
  font-weight: 600;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color .2s;
}

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

.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--divider);
}

/* ===== Legal Pages ===== */
.legal-page {
  padding: 120px 0 60px;
  min-height: calc(100vh - 160px);
}

.legal-content {
  max-width: 700px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -.025em;
  margin-bottom: 8px;
}

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

.legal-content section {
  margin-bottom: 32px;
}

.legal-content h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -.01em;
}

.legal-content p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
}

.legal-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: var(--primary-dark);
}

/* ===== Reveal Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: .1s;
}

.reveal-delay-2 {
  transition-delay: .2s;
}

.reveal-delay-3 {
  transition-delay: .3s;
}

.reveal-delay-4 {
  transition-delay: .4s;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-phone img {
    width: 300px;
  }

  .hero-phone {
    order: -1;
  }

  .features-grid,
  .steps-grid,
  .stats-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .stats-grid {
    max-width: 100%;
    grid-template-columns: repeat(3, 1fr);
  }

  .nav-links {
    display: none;
  }

  .quote-card {
    padding: 40px 28px;
  }

  .cta-card {
    padding: 48px 24px;
  }
}

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-phone img {
    width: 260px;
  }

  .hero h1 {
    font-size: 34px;
  }

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

  .footer-links {
    justify-content: center;
  }
}