/* ── SiteSmartly Marketing Site — Custom Styles ──────────────────────────── */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-family: 'Inter', sans-serif; }
body { -webkit-font-smoothing: antialiased; overflow-x: hidden; }

/* ── Gradient text ─────────────────────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #F97316 0%, #F59E0B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Navbar ────────────────────────────────────────────────────────────────── */
#navbar {
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 24px rgba(0,0,0,0.08);
}
#navbar.scrolled .nav-link { color: #1F2937 !important; }
#navbar.scrolled .nav-cta-outline { border-color: #F97316; color: #F97316; }
#navbar.scrolled #logo-text { color: #111827; }

/* Fix white text becoming invisible on white scrolled navbar background */
/* Targets Sign In link (text-white/80) and phone link (text-white/60) */
#navbar.scrolled a.text-white\/80 {
  color: #374151 !important;
}
#navbar.scrolled a.text-white\/80:hover {
  color: #111827 !important;
  background: rgba(0,0,0,0.06) !important;
}
#navbar.scrolled a.text-white\/60 {
  color: #6B7280 !important;
}
#navbar.scrolled a.text-white\/60:hover {
  color: #374151 !important;
}
#navbar.scrolled #menu-btn {
  color: #1F2937 !important;
}
#navbar.scrolled #menu-btn:hover {
  background: rgba(0,0,0,0.06) !important;
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero-bg {
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 40%, #0f172a 100%);
  position: relative;
  overflow: hidden;
}
.hero-bg::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(249,115,22,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245,158,11,0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn-primary {
  background: linear-gradient(135deg, #F97316, #F59E0B);
  color: white;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(249,115,22,0.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249,115,22,0.45);
  filter: brightness(1.05);
}
.btn-outline {
  border: 2px solid rgba(255,255,255,0.4);
  color: white;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
}
.btn-outline:hover {
  border-color: white;
  background: rgba(255,255,255,0.1);
}
.btn-outline-dark {
  border: 2px solid #F97316;
  color: #F97316;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
}
.btn-outline-dark:hover {
  background: #F97316;
  color: white;
}

/* ── Cards ─────────────────────────────────────────────────────────────────── */
.feature-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid #F3F4F6;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.09);
  border-color: #FED7AA;
}

.step-card {
  position: relative;
}
.step-card::after {
  content: '';
  position: absolute;
  top: 32px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #F97316, transparent);
}
.step-card:last-child::after { display: none; }

/* ── App Mockup ────────────────────────────────────────────────────────────── */
.mockup-wrapper {
  filter: drop-shadow(0 40px 80px rgba(0,0,0,0.5));
  transform: perspective(1200px) rotateX(5deg) rotateY(-5deg);
  transition: transform 0.4s ease;
}
.mockup-wrapper:hover {
  transform: perspective(1200px) rotateX(2deg) rotateY(-2deg);
}

/* ── Pricing ───────────────────────────────────────────────────────────────── */
.pricing-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid #E5E7EB;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.pricing-popular {
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border: 2px solid #F97316 !important;
  position: relative;
}
.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #F97316, #F59E0B);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Testimonials ──────────────────────────────────────────────────────────── */
.testimonial-card {
  border: 1px solid #E5E7EB;
  transition: box-shadow 0.25s ease;
}
.testimonial-card:hover {
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

/* ── FAQ ───────────────────────────────────────────────────────────────────── */
.faq-item { border-bottom: 1px solid #E5E7EB; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.2s ease;
}
.faq-answer.open { max-height: 300px; }
.faq-icon { transition: transform 0.3s ease; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* ── Stats ─────────────────────────────────────────────────────────────────── */
.stat-card {
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #F97316, #F59E0B);
}

/* ── Section divider ───────────────────────────────────────────────────────── */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFF7ED;
  color: #F97316;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid #FED7AA;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── CTA Banner ────────────────────────────────────────────────────────────── */
.cta-bg {
  background: linear-gradient(135deg, #F97316 0%, #F59E0B 50%, #F97316 100%);
  background-size: 200% 200%;
  animation: gradient-shift 4s ease infinite;
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ── WhatsApp FAB ──────────────────────────────────────────────────────────── */
.whatsapp-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  background: #25D366;
  color: white;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  transition: all 0.2s ease;
  animation: fab-pulse 2.5s ease infinite;
}
.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(37,211,102,0.6);
}
@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.5); }
  50% { box-shadow: 0 4px 32px rgba(37,211,102,0.7); }
}
.whatsapp-fab .tooltip {
  position: absolute;
  right: calc(100% + 12px);
  background: #111827;
  color: white;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.whatsapp-fab:hover .tooltip { opacity: 1; }

/* ── Mobile menu ───────────────────────────────────────────────────────────── */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
#mobile-menu.open { max-height: 500px; }

/* ── AOS custom ────────────────────────────────────────────────────────────── */
[data-aos] { opacity: 0; }
[data-aos].aos-animate { opacity: 1; }


/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .mockup-wrapper {
    transform: none;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4));
  }
  .step-card::after { display: none; }

  /* Tighter hero headline on small phones */
  .hero-bg h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  /* Ensure feature cards don't shrink too much in 2-col grid */
  .feature-card { min-width: 0; }

  /* Pricing popular badge — avoid clipping when stacked */
  .popular-badge { font-size: 0.65rem; padding: 3px 12px; }

  /* Stats cards — tighter on small screens */
  .stat-card { padding: 1rem; }

  /* Section tags centred on mobile */
  .section-tag { display: inline-flex; }

  /* FAB slightly smaller on mobile */
  .whatsapp-fab { width: 48px; height: 48px; bottom: 20px; right: 20px; }
  .whatsapp-fab svg { width: 24px; height: 24px; }
}

/* ── Footer ────────────────────────────────────────────────────────────────── */
.footer-link { transition: color 0.15s ease; }
.footer-link:hover { color: #F97316; }

/* ── Form ──────────────────────────────────────────────────────────────────── */
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #111827;
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-input:focus {
  border-color: #F97316;
  box-shadow: 0 0 0 3px rgba(249,115,22,0.12);
}

/* ── Comparison table ──────────────────────────────────────────────────────── */
.compare-check { color: #10B981; }
.compare-cross { color: #D1D5DB; }
.compare-row:nth-child(even) { background: #F9FAFB; }

/* ── Scroll-to-top ────────────────────────────────────────────────────────── */
#scroll-top {
  position: fixed;
  bottom: 92px;
  right: 28px;
  z-index: 998;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #F97316;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(249,115,22,0.35);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
  pointer-events: none;
}
#scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#scroll-top:hover {
  background: #EA580C;
  box-shadow: 0 6px 20px rgba(249,115,22,0.5);
}
@media (max-width: 768px) {
  #scroll-top { width: 38px; height: 38px; bottom: 76px; right: 20px; }
}
