
:root {
  --emerald-deep: #064E3B;
  --emerald-mid: #047857;
  --mint: #34D399;
  --cream: #F0FDF4;
  --ink: #102A22;
  --ease-quiet: cubic-bezier(.22, 1, .36, 1);
  --ease-precise: cubic-bezier(.4, 0, .2, 1);
  --ease-emphasis: cubic-bezier(.16, 1, .3, 1);
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
}

.font-display { font-family: 'Fraunces', serif; }

/* Glass morphism */
.glass {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 32px rgba(6, 78, 59, 0.08), inset 0 1px 0 rgba(255,255,255,0.9);
}
.glass-dark {
  background: rgba(6, 78, 59, 0.55);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(52, 211, 153, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Floating orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.orb-mint { background: radial-gradient(circle, #34D399 0%, transparent 70%); }
.orb-emerald { background: radial-gradient(circle, #047857 0%, transparent 70%); }
.orb-deep { background: radial-gradient(circle, #064E3B 0%, transparent 70%); opacity: 0.3; }

/* Eyebrow */
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--emerald-mid);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::after {
  content: '';
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.eyebrow-light { color: var(--mint); }
.eyebrow-light::after { background: var(--mint); opacity: 0.6; }

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--emerald-deep);
  color: white;
  padding: 1.05rem 2.2rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: all 0.4s var(--ease-quiet);
  box-shadow: 0 10px 30px rgba(6, 78, 59, 0.3);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--mint), var(--emerald-mid));
  opacity: 0;
  transition: opacity 0.4s var(--ease-quiet);
  z-index: 0;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary span, .btn-primary i { position: relative; z-index: 1; }
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 45px rgba(6, 78, 59, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255,255,255,0.7);
  color: var(--emerald-deep);
  padding: 1.05rem 2.2rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid rgba(6, 78, 59, 0.15);
  transition: all 0.4s var(--ease-quiet);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  border-color: var(--mint);
  color: var(--emerald-mid);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(52, 211, 153, 0.15);
}

.btn-light {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: white;
  color: var(--emerald-deep);
  padding: 1.05rem 2.2rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.4s var(--ease-quiet);
}
.btn-light:hover {
  background: var(--mint);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(52, 211, 153, 0.4);
}

/* Service Card */
.service-card {
  transition: all 0.5s var(--ease-quiet);
  border: 1px solid rgba(6, 78, 59, 0.08);
  background: white;
  border-radius: 24px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mint), var(--emerald-mid));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-quiet);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(6, 78, 59, 0.14);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover .icon-orb {
  background: var(--emerald-deep);
  color: var(--mint);
  transform: rotate(-8deg) scale(1.05);
}

.icon-orb {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.18), rgba(4, 120, 87, 0.08));
  color: var(--emerald-deep);
  font-size: 24px;
  transition: all 0.5s var(--ease-quiet);
  margin-bottom: 1.5rem;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-quiet), transform 1s var(--ease-quiet);
}
.reveal.is-in { opacity: 1; transform: none; }

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }
.reveal-delay-4 { transition-delay: 0.6s; }

/* Ken burns */
@keyframes kenburns {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.1) translate(-1%, -1%); }
}
.kenburns { animation: kenburns 25s ease-in-out infinite alternate; }

/* Spin */
@keyframes spin-cw { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.spin-slow { animation: spin-cw 30s linear infinite; }

/* Float */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}
.float { animation: float 6s ease-in-out infinite; }
.float-delay { animation: float 7s ease-in-out infinite; animation-delay: -3s; }
.float-slow { animation: float 9s ease-in-out infinite; animation-delay: -2s; }

/* Section title */
.section-title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.section-title-light { color: white; }

/* Inputs */
.input-field {
  width: 100%;
  padding: 1.1rem 1.25rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(6, 78, 59, 0.15);
  border-radius: 14px;
  font-size: 15px;
  color: var(--ink);
  font-family: inherit;
  transition: all 0.3s var(--ease-quiet);
}
.input-field:focus {
  outline: none;
  border-color: var(--mint);
  background: white;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.12);
}
.input-field::placeholder { color: rgba(16, 42, 34, 0.4); }

.input-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--emerald-mid);
  margin-bottom: 0.5rem;
  display: block;
  letter-spacing: 0.02em;
}

/* Nav */
.nav-link {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.3s var(--ease-quiet);
  padding: 0.5rem 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--mint);
  transition: width 0.3s var(--ease-quiet);
}
.nav-link:hover { color: var(--emerald-mid); }
.nav-link:hover::after { width: 100%; }

/* Nav scrolled */
.nav-scrolled {
  background: rgba(240, 253, 244, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(6, 78, 59, 0.08);
  box-shadow: 0 4px 20px rgba(6, 78, 59, 0.04);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(6, 78, 59, 0.55);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s var(--ease-quiet);
}
.modal.is-open { display: flex; opacity: 1; }
.modal-content {
  background: var(--cream);
  border-radius: 24px;
  max-width: 800px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 3rem;
  transform: translateY(30px);
  transition: transform 0.4s var(--ease-quiet);
  position: relative;
}
.modal.is-open .modal-content { transform: translateY(0); }

/* Counter */
.counter {
  font-family: 'Fraunces', serif;
  font-weight: 500;
}

/* FAQ */
.faq-item {
  border: 1px solid rgba(6, 78, 59, 0.1);
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.4s var(--ease-quiet);
  background: rgba(255,255,255,0.6);
}
.faq-item.active {
  border-color: var(--mint);
  background: white;
  box-shadow: 0 12px 40px rgba(6, 78, 59, 0.08);
}
.faq-question {
  cursor: pointer;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
  gap: 1rem;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-quiet), padding 0.4s var(--ease-quiet);
  padding: 0 2rem;
  color: rgba(16, 42, 34, 0.7);
  font-size: 15px;
  line-height: 1.7;
}
.faq-item.active .faq-answer { max-height: 500px; padding: 0 2rem 1.5rem; }
.faq-item.active .faq-icon { transform: rotate(45deg); color: var(--mint); }
.faq-icon { transition: transform 0.3s var(--ease-quiet); color: var(--emerald-mid); }

/* Pricing card */
.pricing-card {
  transition: all 0.5s var(--ease-quiet);
  border: 1px solid rgba(6, 78, 59, 0.1);
  background: white;
  border-radius: 28px;
  padding: 2.5rem;
  position: relative;
}
.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(6, 78, 59, 0.12);
}
.pricing-card.featured {
  background: linear-gradient(160deg, var(--emerald-deep), var(--emerald-mid));
  color: white;
  border: none;
}
.pricing-card.featured .pricing-amount { color: white; }
.pricing-card.featured .pricing-period { color: rgba(255,255,255,0.6); }
.pricing-card.featured .pricing-feature { color: rgba(255,255,255,0.85); }
.pricing-card.featured .pricing-feature i { color: var(--mint); }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--emerald-mid); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--emerald-deep); }

/* Hero specific */
.hero-grid-bg {
  background-image: 
    linear-gradient(rgba(6, 78, 59, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 78, 59, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* Stacked cards */
.stack-card {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  overflow: hidden;
  background: white;
  box-shadow: 0 20px 60px rgba(6, 78, 59, 0.15);
}

/* Review card */
.review-card {
  background: white;
  border-radius: 24px;
  padding: 2rem;
  border: 1px solid rgba(6, 78, 59, 0.08);
  transition: all 0.5s var(--ease-quiet);
  height: 100%;
}
.review-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(6, 78, 59, 0.12);
  border-color: rgba(52, 211, 153, 0.3);
}

/* Newsletter */
.newsletter-bg {
  background: linear-gradient(135deg, var(--emerald-deep) 0%, var(--emerald-mid) 100%);
  position: relative;
  overflow: hidden;
}

/* CTA section */
.cta-section {
  background: linear-gradient(135deg, var(--emerald-deep) 0%, #053d2e 100%);
  position: relative;
  overflow: hidden;
}

/* Process step */
.process-step {
  position: relative;
  padding: 2.5rem;
  border-radius: 24px;
  background: white;
  border: 1px solid rgba(6, 78, 59, 0.08);
  transition: all 0.5s var(--ease-quiet);
}
.process-step:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(6, 78, 59, 0.12);
  border-color: rgba(52, 211, 153, 0.3);
}

/* Form success */
.success-msg {
  display: none;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.15), rgba(4, 120, 87, 0.1));
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: var(--emerald-deep);
  padding: 1rem 1.5rem;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 500;
  align-items: center;
  gap: 0.75rem;
}
.success-msg.is-visible { display: flex; animation: slideIn 0.5s var(--ease-quiet); }
@keyframes slideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Floating dashboard card */
.dash-card {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 20px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 20px 50px rgba(6, 78, 59, 0.12);
}

/* No motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .float, .float-delay, .float-slow, .kenburns, .spin-slow { animation: none !important; }
}

/* Mobile nav */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(240, 253, 244, 0.98);
  backdrop-filter: blur(20px);
  z-index: 150;
  display: none;
  flex-direction: column;
  padding: 6rem 2rem 2rem;
}
.mobile-menu.is-open { display: flex; }

/* Marquee */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-track { animation: marquee 40s linear infinite; }
