/* === VARIABLES === */
:root {
  --green: #4A7C59;
  --green-light: #6B9E7A;
  --green-dark: #3A6347;
  --green-bg: #F0F5F1;
  --cream: #FDFAF5;
  --text: #2D2D2D;
  --text-secondary: #6B6B6B;
  --text-light: #9A9A9A;
  --white: #FFFFFF;
  --border: #E8E8E8;
  --shadow: 0 2px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --radius: 20px;
  --radius-sm: 12px;
  --max-width: 1100px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* === NAV === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(253, 250, 245, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s;
}
.nav.scrolled {
  box-shadow: var(--shadow);
  border-bottom-color: var(--border);
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
}
.nav-logo:hover { text-decoration: none; }
.nav-logo img { width: 36px; height: 36px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--green); text-decoration: none; }
.lang-switch {
  display: inline-flex;
  background: var(--green-bg);
  border-radius: 20px;
  padding: 3px;
  font-size: 0.8rem;
}
.lang-switch a {
  padding: 4px 12px;
  border-radius: 17px;
  color: var(--text-secondary);
  font-weight: 600;
  transition: all 0.2s;
}
.lang-switch a.active {
  background: var(--green);
  color: var(--white);
}

/* === HERO === */
.hero {
  padding: 140px 0 80px;
  text-align: center;
  overflow: hidden;
  position: relative;
}
/* Decorative gradient blobs */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.hero::before {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(74,124,89,0.15), transparent 70%);
  top: -100px;
  left: -100px;
}
.hero::after {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(107,158,122,0.12), transparent 70%);
  bottom: 0;
  right: -80px;
}
.hero .container { position: relative; z-index: 1; }
.hero-badge {
  display: inline-block;
  background: var(--green-bg);
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 28px;
  border: 1px solid rgba(74,124,89,0.15);
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--green), var(--green-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero > .container > p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  color: var(--white);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 16px 36px;
  border-radius: 50px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(74, 124, 89, 0.35);
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(74, 124, 89, 0.45);
  text-decoration: none;
}
.hero-cta img { height: 28px; }
.hero-phones {
  margin-top: 64px;
  display: flex;
  justify-content: center;
  gap: 24px;
  perspective: 1000px;
}
.hero-phone {
  width: 240px;
  border-radius: 28px;
  box-shadow: var(--shadow-xl);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hero-phone:hover { transform: translateY(-12px) !important; }
.hero-phone:nth-child(1) { transform: rotate(-4deg) translateY(20px); }
.hero-phone:nth-child(2) { transform: scale(1.08); z-index: 1; }
.hero-phone:nth-child(3) { transform: rotate(4deg) translateY(20px); }

/* === SECTION === */
.section {
  padding: 100px 0;
  position: relative;
}
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.section-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* === WAVE DIVIDERS === */
.wave-divider {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.wave-divider.top { top: -1px; }
.wave-divider.bottom { bottom: -1px; }
.wave-divider svg {
  display: block;
  width: 100%;
  height: 48px;
}

/* === PRIVACY HIGHLIGHTS === */
.privacy-bar {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(74,124,89,0.1);
  border-radius: var(--radius);
  padding: 32px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 30px rgba(0,0,0,0.04);
}
.privacy-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 500;
}
.privacy-item span { font-size: 1.3rem; }

/* === FEATURES === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  border-color: rgba(74,124,89,0.2);
}
.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--green-bg), rgba(74,124,89,0.1));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--green);
  stroke-width: 2;
  fill: none;
}
.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* === HOW IT WORKS === */
.section-green {
  background: var(--green-bg);
  position: relative;
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 48px;
  counter-reset: step;
  position: relative;
}
/* Connecting line between steps */
.steps::before {
  content: '';
  position: absolute;
  top: 24px;
  left: calc(16.66% + 24px);
  right: calc(16.66% + 24px);
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--green-light));
  opacity: 0.3;
}
.step {
  text-align: center;
  counter-increment: step;
  position: relative;
}
.step::before {
  content: counter(step);
  display: flex;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  color: var(--white);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 auto 20px;
  box-shadow: 0 4px 15px rgba(74,124,89,0.3);
  position: relative;
  z-index: 1;
}
.step h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.step p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* === SCREENSHOTS === */
.screenshots-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 8px 24px 32px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.screenshots-scroll::-webkit-scrollbar { display: none; }
.screenshot-item {
  flex: 0 0 240px;
  scroll-snap-align: center;
}
.screenshot-item img {
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid rgba(0,0,0,0.06);
}
.screenshot-item img:hover { transform: scale(1.04) translateY(-4px); }
.screenshot-caption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 12px;
  font-weight: 500;
}

/* === PRICING === */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  max-width: 700px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  border: 2px solid var(--border);
  text-align: center;
  transition: all 0.3s;
  position: relative;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.pricing-card.featured {
  border-color: var(--green);
  box-shadow: 0 8px 40px rgba(74,124,89,0.12);
}
.pricing-card.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--green-light));
  border-radius: var(--radius) var(--radius) 0 0;
}
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--green), var(--green-light));
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.pricing-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--green);
  margin-bottom: 8px;
}
.pricing-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 4px; }
.pricing-price {
  font-size: 2.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 16px 0 4px;
}
.pricing-period {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 24px;
}
.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 28px;
}
.pricing-features li {
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.pricing-features li::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 10px;
  vertical-align: middle;
  background: var(--green-bg);
  border-radius: 50%;
  position: relative;
}
.pricing-features li::after {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  font-size: 0.75rem;
  position: relative;
  left: -25px;
  margin-right: -10px;
}
.pricing-cta {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
}
.pricing-card .pricing-cta {
  background: var(--green-bg);
  color: var(--green);
}
.pricing-card .pricing-cta:hover {
  background: var(--green);
  color: var(--white);
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(74,124,89,0.3);
}
.pricing-card.featured .pricing-cta {
  background: linear-gradient(135deg, var(--green), var(--green-light));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(74,124,89,0.3);
}
.pricing-card.featured .pricing-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(74,124,89,0.4);
  text-decoration: none;
}
.pricing-note {
  text-align: center;
  margin-top: 28px;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* === CTA BANNER === */
.cta-banner {
  background: linear-gradient(135deg, var(--green-dark), var(--green), var(--green-light));
  border-radius: var(--radius);
  padding: 64px 48px;
  text-align: center;
  color: var(--white);
  margin: 40px 0;
  position: relative;
  overflow: hidden;
}
/* Decorative circles on CTA */
.cta-banner::before,
.cta-banner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  pointer-events: none;
}
.cta-banner::before {
  width: 300px;
  height: 300px;
  top: -100px;
  right: -50px;
}
.cta-banner::after {
  width: 200px;
  height: 200px;
  bottom: -60px;
  left: -40px;
}
.cta-banner h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
}
.cta-banner p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  color: var(--green);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 16px 36px;
  border-radius: 50px;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  text-decoration: none;
}

/* === FOOTER === */
.footer {
  background: #1a2e22;
  color: rgba(255,255,255,0.7);
  padding: 56px 0 0;
  margin-top: 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
}
.footer-brand { max-width: 300px; }
.footer-brand h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--white);
}
.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}
.footer-links h5 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.footer-links a {
  display: block;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  padding: 5px 0;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); text-decoration: none; }
.footer-bottom {
  text-align: center;
  padding: 24px 0;
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

/* === LEGAL PAGES === */
.legal-page {
  padding: 120px 0 80px;
  max-width: 760px;
  margin: 0 auto;
}
.legal-page h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 32px;
}
.legal-page h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 32px 0 12px;
}
.legal-page h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 20px 0 8px;
}
.legal-page p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.7;
}
.legal-page ul {
  margin: 8px 0 16px 20px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.legal-page ul li { margin-bottom: 6px; }

/* === ANIMATIONS (AOS overrides + custom) === */
[data-aos] {
  transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Hero stagger animations */
.hero-badge,
.hero h1,
.hero > .container > p,
.hero-cta,
.hero-phones {
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeIn 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.hero-badge { animation-delay: 0.1s; }
.hero h1 { animation-delay: 0.2s; }
.hero > .container > p { animation-delay: 0.35s; }
.hero-cta { animation-delay: 0.45s; }
.hero-phones { animation-delay: 0.6s; transform: translateY(40px); }

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Keep phone rotations after animation */
.hero-phones .hero-phone:nth-child(1) { animation: phoneLeft 0.7s 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; opacity: 0; }
.hero-phones .hero-phone:nth-child(2) { animation: phoneCenter 0.7s 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; opacity: 0; }
.hero-phones .hero-phone:nth-child(3) { animation: phoneRight 0.7s 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; opacity: 0; }

@keyframes phoneLeft {
  from { opacity: 0; transform: rotate(-8deg) translateY(40px); }
  to { opacity: 1; transform: rotate(-4deg) translateY(20px); }
}
@keyframes phoneCenter {
  from { opacity: 0; transform: scale(0.9) translateY(40px); }
  to { opacity: 1; transform: scale(1.08); }
}
@keyframes phoneRight {
  from { opacity: 0; transform: rotate(8deg) translateY(40px); }
  to { opacity: 1; transform: rotate(4deg) translateY(20px); }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav-links { gap: 12px; }
  .nav-links .nav-text { display: none; }
  .hero { padding: 110px 0 60px; }
  .hero-phones { gap: 12px; }
  .hero-phone { width: 170px; }
  .section { padding: 72px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-cards { grid-template-columns: 1fr; max-width: 360px; }
  .privacy-bar { padding: 24px; gap: 20px; }
  .cta-banner { padding: 48px 24px; }
  .footer-inner { flex-direction: column; }
  .steps { gap: 32px; }
  .steps::before { display: none; }
}
@media (max-width: 480px) {
  .hero-phones { flex-direction: column; align-items: center; }
  .hero-phone { width: 220px; }
  .hero-phones .hero-phone:nth-child(1),
  .hero-phones .hero-phone:nth-child(3) { animation: phoneMobile 0.7s 0.7s ease forwards; }
  .hero-phones .hero-phone:nth-child(2) { animation: phoneMobile 0.7s 0.8s ease forwards; }
  @keyframes phoneMobile {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: none; }
  }
}
