/* ============================================
   Anshik Digital Solutions - Tech Theme
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --primary: #6366F1;
  --primary-light: #818CF8;
  --primary-dark: #4F46E5;
  --accent: #25D366;
  --neon: #22D3EE;
  --neon-glow: rgba(34, 211, 238, 0.15);
  --dark: #0B0F1A;
  --dark-card: #111827;
  --dark-border: #1F2937;
  --text-dark: #0F172A;
  --text-light: #F1F5F9;
  --text-muted: #64748B;
  --text-muted-light: #94A3B8;
  --white: #FFFFFF;
  --gradient: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #A855F7 100%);
  --gradient-neon: linear-gradient(135deg, #6366F1 0%, #22D3EE 100%);
  --gradient-soft: linear-gradient(135deg, #F8FAFC 0%, #EEF2FF 50%, #F0F9FF 100%);
  --gradient-dark: linear-gradient(135deg, #0B0F1A 0%, #1E1B4B 100%);
}

/* ---------- Reset & Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
}

/* ---------- Page Loader ---------- */
.page-loader {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--dark);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.page-loader.hidden { opacity: 0; visibility: hidden; }

.loader-logo {
  font-size: 1.8rem; font-weight: 800;
  background: var(--gradient-neon);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: loaderPulse 1s ease infinite;
}
@keyframes loaderPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.95); }
}

/* ---------- Scroll Progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; background: var(--gradient-neon);
  z-index: 1001; width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%;
  z-index: 1000;
  background: rgba(11, 15, 26, 0.9);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
  transition: box-shadow 0.3s ease;
}
.navbar.scrolled { box-shadow: 0 4px 30px rgba(99, 102, 241, 0.15); }

.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}

.nav-logo {
  font-size: 1.35rem; font-weight: 800;
  background: var(--gradient-neon);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex; list-style: none; gap: 2rem; align-items: center;
}
.nav-links a {
  text-decoration: none; color: var(--text-muted-light);
  font-size: 0.9rem; font-weight: 500;
  transition: color 0.3s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--neon);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--neon); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.nav-toggle span {
  width: 24px; height: 2.5px; background: var(--text-light);
  border-radius: 2px; transition: all 0.3s;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem; border-radius: 10px;
  font-size: 0.95rem; font-weight: 600;
  text-decoration: none; cursor: pointer; border: none;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative; overflow: hidden;
  letter-spacing: -0.01em;
}
.btn::after {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}
.btn:hover::after { left: 100%; }
.btn:active { transform: scale(0.95) !important; }

.btn-primary {
  background: var(--gradient); color: var(--white);
  -webkit-text-fill-color: var(--white);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

.btn-whatsapp {
  background: var(--accent); color: var(--white);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
}

.btn-outline {
  background: transparent; color: var(--primary);
  border: 2px solid rgba(99, 102, 241, 0.3);
}
.btn-outline:hover {
  background: var(--primary); color: var(--white);
  border-color: var(--primary); transform: translateY(-2px);
}

/* ---------- Hero Section (Dark Tech) ---------- */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  background: var(--gradient-dark);
  padding: 6rem 1.5rem 4rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -30%; right: -15%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: ''; position: absolute; bottom: -20%; left: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-container {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: center; width: 100%;
  position: relative; z-index: 1;
}

.hero-content h1 {
  font-size: 3.2rem; font-weight: 800; line-height: 1.12;
  margin-bottom: 1.25rem; color: var(--text-light);
  letter-spacing: -0.03em;
}
.hero-content h1 span {
  background: var(--gradient-neon);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-content p {
  font-size: 1.1rem; color: var(--text-muted-light);
  line-height: 1.7; margin-bottom: 2rem; max-width: 500px;
}
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-image { display: flex; justify-content: center; align-items: center; }
.hero-illustration { width: 100%; max-width: 480px; height: auto; }

/* Hero floating shapes */
.hero-shape {
  position: absolute; border-radius: 50%; opacity: 0.4;
  animation: float 6s ease-in-out infinite;
}
.hero-shape-1 {
  width: 80px; height: 80px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.15);
  top: 20%; left: 5%;
}
.hero-shape-2 {
  width: 50px; height: 50px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.12);
  bottom: 20%; right: 8%; animation-delay: 2s;
}
.hero-shape-3 {
  width: 30px; height: 30px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.15);
  top: 60%; left: 10%; animation-delay: 4s;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

/* ---------- Trust Bar ---------- */
.trust-bar {
  background: var(--dark);
  padding: 3rem 1.5rem;
  border-bottom: 1px solid var(--dark-border);
}
.trust-container {
  max-width: 900px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: 2.5rem; flex-wrap: wrap;
}
.trust-item { text-align: center; }
.trust-number {
  font-size: 2.5rem; font-weight: 800;
  background: var(--gradient-neon);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}
.trust-label {
  font-size: 0.85rem; color: var(--text-muted-light);
  font-weight: 500; margin-top: 0.25rem;
}
.trust-divider {
  width: 1px; height: 40px;
  background: rgba(99, 102, 241, 0.2);
}

/* ---------- Section Common ---------- */
.section { padding: 5rem 1.5rem; }
.section-alt { background: var(--gradient-soft); }

.section-title {
  text-align: center; font-size: 2.25rem; font-weight: 800;
  margin-bottom: 0.75rem; color: var(--text-dark);
  letter-spacing: -0.02em; position: relative;
}
.section-title::after {
  content: ''; display: block; width: 60px; height: 4px;
  background: var(--gradient-neon); border-radius: 2px;
  margin: 0.75rem auto 0;
}
.section-subtitle {
  text-align: center; color: var(--text-muted);
  font-size: 1.05rem; margin-bottom: 3rem;
  max-width: 600px; margin-left: auto; margin-right: auto;
}
.container { max-width: 1200px; margin: 0 auto; }

/* ---------- Service Cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.service-card {
  background: var(--white); border-radius: 16px;
  padding: 2.5rem 2rem; text-align: center;
  border: 1px solid #E2E8F0;
  transition: all 0.4s ease;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--gradient-neon);
  transform: scaleX(0); transition: transform 0.4s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.2);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 64px; height: 64px; border-radius: 14px;
  background: linear-gradient(135deg, #EEF2FF, #F0F9FF);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem; font-size: 1.75rem;
  border: 1px solid rgba(99, 102, 241, 0.1);
}
.service-card h3 {
  font-size: 1.2rem; font-weight: 700; margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.service-card p {
  color: var(--text-muted); font-size: 0.9rem;
  line-height: 1.65; margin-bottom: 1.25rem;
}
.service-price {
  font-size: 1.75rem; font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
}
.service-price small {
  font-size: 0.85rem; font-weight: 500;
  -webkit-text-fill-color: var(--text-muted);
}

/* Popular & Upcoming */
.service-card.popular {
  border: 2px solid var(--primary);
  transform: scale(1.03);
}
.service-card.popular:hover { transform: scale(1.03) translateY(-8px); }
.popular-badge {
  position: absolute; top: -1px; left: 50%;
  transform: translateX(-50%);
  background: var(--gradient); color: var(--white);
  padding: 0.35rem 1.25rem; border-radius: 0 0 10px 10px;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.03em; white-space: nowrap;
}
.service-card.upcoming {
  border: 2px dashed rgba(99, 102, 241, 0.2);
  opacity: 0.85;
}
.service-card.upcoming:hover { opacity: 1; }
.upcoming-badge {
  position: absolute; top: -1px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #F59E0B, #F97316);
  color: var(--white); padding: 0.35rem 1.25rem;
  border-radius: 0 0 10px 10px;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.03em; white-space: nowrap;
}

/* ---------- Features / Why Me ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.feature-item {
  text-align: center; padding: 2rem 1.5rem;
  border-radius: 16px; transition: all 0.3s ease;
  border: 1px solid transparent;
}
.feature-item:hover {
  background: var(--white);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.06);
  border-color: rgba(99, 102, 241, 0.1);
  transform: translateY(-5px);
}
.feature-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--gradient); display: flex;
  align-items: center; justify-content: center;
  margin: 0 auto 1.25rem; font-size: 1.4rem;
  color: var(--white);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.25);
}
.feature-item h3 {
  font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem;
}
.feature-item p {
  color: var(--text-muted); font-size: 0.88rem; line-height: 1.6;
}

/* ---------- Process Steps ---------- */
.process-steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2rem; position: relative;
}
.process-steps::before {
  content: ''; position: absolute; top: 40px;
  left: 20%; right: 20%; height: 2px;
  background: var(--gradient-neon); opacity: 0.2; z-index: 0;
}
.step { text-align: center; position: relative; z-index: 1; }
.step-number {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--gradient-neon); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 800;
  margin: 0 auto 1.25rem;
  box-shadow: 0 8px 25px rgba(34, 211, 238, 0.25);
}
.step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.step p { color: var(--text-muted); font-size: 0.88rem; }

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: flex;
  gap: 2rem;
  animation: marquee 20s linear infinite;
  width: max-content;
}

.testimonials-wrapper {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.testimonials-wrapper:hover .testimonials-grid {
  animation-play-state: paused;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.testimonial-card {
  background: var(--white); border-radius: 16px;
  padding: 2rem; border: 1px solid #E2E8F0;
  position: relative; transition: all 0.4s ease;
  min-width: 340px; max-width: 340px;
  flex-shrink: 0;
}
.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.15);
}
.testimonial-card .quote-icon {
  font-size: 2.5rem; opacity: 0.1;
  position: absolute; top: 1rem; right: 1.5rem;
}
.testimonial-card p {
  color: var(--text-muted); font-size: 0.93rem;
  line-height: 1.7; margin-bottom: 1.25rem; font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--gradient); display: flex;
  align-items: center; justify-content: center;
  color: var(--white); font-weight: 700; font-size: 0.9rem;
}
.testimonial-author h4 { font-size: 0.93rem; font-weight: 700; }
.testimonial-author span { font-size: 0.78rem; color: var(--text-muted); }
.stars { color: #FBBF24; margin-bottom: 0.75rem; font-size: 0.95rem; }

/* ---------- Lead Form ---------- */
.form-section {
  background: var(--gradient-dark);
  padding: 5rem 1.5rem; position: relative; overflow: hidden;
}
.form-section::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.form-section::after {
  content: ''; position: absolute; bottom: -80px; left: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}
.form-container {
  max-width: 520px; margin: 0 auto;
  background: var(--white); border-radius: 20px;
  padding: 3rem 2.5rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  position: relative; z-index: 1;
}
.form-container h2 {
  font-size: 1.65rem; font-weight: 800;
  text-align: center; margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.form-container .form-subtitle {
  text-align: center; color: var(--text-muted);
  margin-bottom: 2rem; font-size: 0.93rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-size: 0.8rem; font-weight: 600;
  margin-bottom: 0.4rem; color: var(--text-dark);
  text-transform: uppercase; letter-spacing: 0.03em;
}
.form-group input, .form-group select {
  width: 100%; padding: 0.8rem 1rem;
  border: 2px solid #E2E8F0; border-radius: 10px;
  font-size: 0.93rem; font-family: 'Inter', sans-serif;
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none; background: var(--white); color: var(--text-dark);
}
.form-group input:focus, .form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.form-group input.error, .form-group select.error { border-color: #EF4444; }
.error-message { color: #EF4444; font-size: 0.78rem; margin-top: 0.3rem; display: none; }

.btn-submit {
  width: 100%; padding: 0.9rem; font-size: 1rem;
  margin-top: 0.5rem; justify-content: center; position: relative;
}
.spinner {
  display: none; width: 20px; height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: var(--white); border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item {
  border: 1px solid #E2E8F0; border-radius: 12px;
  margin-bottom: 0.75rem; overflow: hidden;
  background: var(--white); transition: all 0.3s;
}
.faq-item:hover {
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.06);
  border-color: rgba(99, 102, 241, 0.15);
}
.faq-question {
  width: 100%; padding: 1.15rem 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  background: none; border: none; cursor: pointer;
  font-size: 0.95rem; font-weight: 600; color: var(--text-dark);
  font-family: 'Inter', sans-serif; text-align: left;
}
.faq-question .faq-icon {
  font-size: 1.2rem; transition: transform 0.3s;
  color: var(--primary); flex-shrink: 0; margin-left: 1rem;
}
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-answer p {
  padding: 0 1.5rem 1.25rem; color: var(--text-muted);
  font-size: 0.88rem; line-height: 1.7;
}
.faq-item.active .faq-answer { max-height: 200px; }

/* ---------- Final CTA ---------- */
.final-cta {
  text-align: center; padding: 5rem 1.5rem;
  background: var(--gradient-dark); position: relative;
}
.final-cta h2 {
  font-size: 2.25rem; font-weight: 800;
  margin-bottom: 1rem; color: var(--text-light);
  letter-spacing: -0.02em;
}
.final-cta p {
  color: var(--text-muted-light); font-size: 1.05rem;
  margin-bottom: 2rem; max-width: 500px;
  margin-left: auto; margin-right: auto;
}
.final-cta-buttons {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--dark); color: rgba(255,255,255,0.6);
  text-align: center; padding: 3.5rem 1.5rem 2rem; font-size: 0.9rem;
  border-top: 1px solid var(--dark-border);
}
.footer-container { max-width: 800px; margin: 0 auto; }
.footer-brand { margin-bottom: 1.5rem; }
.footer-logo {
  font-size: 1.5rem; font-weight: 800;
  background: var(--gradient-neon);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer-brand p { margin-top: 0.5rem; font-size: 0.85rem; opacity: 0.5; }
.footer-links {
  display: flex; justify-content: center; gap: 1.5rem;
  flex-wrap: wrap; margin-bottom: 2rem; padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-links a {
  color: rgba(255,255,255,0.5); text-decoration: none;
  font-size: 0.85rem; font-weight: 500; transition: color 0.3s;
}
.footer-links a:hover { color: var(--neon); }
.footer-bottom p { font-size: 0.78rem; opacity: 0.4; line-height: 1.8; }
.footer a { color: inherit; text-decoration: none; }

/* ---------- WhatsApp Float ---------- */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px;
  width: 60px; height: 60px; background: var(--accent);
  border-radius: 16px; display: flex; align-items: center;
  justify-content: center;
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
  z-index: 999; transition: all 0.3s; text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 10px 35px rgba(37, 211, 102, 0.5);
}
.whatsapp-float svg { width: 30px; height: 30px; fill: var(--white); }
.whatsapp-float::after {
  content: ''; position: absolute; width: 100%; height: 100%;
  border-radius: 16px; background: var(--accent);
  z-index: -1; animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* WhatsApp Tooltip */
.wa-tooltip {
  position: absolute; right: 70px; top: 50%;
  transform: translateY(-50%);
  background: var(--dark-card); color: var(--text-light);
  padding: 0.5rem 1rem; border-radius: 8px;
  font-size: 0.8rem; font-weight: 600; white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(-50%) translateX(10px);
}
.wa-tooltip::after {
  content: ''; position: absolute; right: -6px; top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent; border-left-color: var(--dark-card);
}
.whatsapp-float:hover .wa-tooltip {
  opacity: 1; transform: translateY(-50%) translateX(0);
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed; bottom: 28px; left: 28px;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--dark-card); color: var(--neon);
  border: 1px solid var(--dark-border);
  font-size: 1.2rem; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 998; opacity: 0; visibility: hidden;
  transform: translateY(20px); transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover {
  background: var(--neon); color: var(--dark);
  border-color: var(--neon); transform: translateY(-3px);
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6); display: none;
  align-items: center; justify-content: center;
  z-index: 2000; backdrop-filter: blur(6px);
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--white); border-radius: 20px;
  padding: 3rem 2.5rem; text-align: center;
  max-width: 400px; width: 90%; animation: modalIn 0.4s ease;
}
@keyframes modalIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.modal .success-icon {
  width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(135deg, #10B981, #34D399);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem; font-size: 1.8rem; color: var(--white);
}
.modal h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 0.5rem; }
.modal p { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 0.93rem; }

/* ---------- Animations ---------- */
.fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

.stagger > * {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.stagger.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.4s; }
.stagger.visible > * { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: 72px; left: 0; width: 100%;
    background: var(--dark); flex-direction: column;
    padding: 2rem 1.5rem; gap: 1.25rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transform: translateY(-120%); transition: transform 0.4s ease;
    z-index: 999;
  }
  .nav-links.active { transform: translateY(0); }
  .nav-toggle { display: flex; }
  .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .hero-container { grid-template-columns: 1fr; text-align: center; }
  .hero-content h1 { font-size: 2.1rem; }
  .hero-content p { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-image { order: -1; }
  .hero-illustration { max-width: 260px; }

  .process-steps { grid-template-columns: 1fr; gap: 2.5rem; }
  .process-steps::before { display: none; }
  .section-title { font-size: 1.75rem; }
  .form-container { padding: 2rem 1.5rem; }
  .final-cta h2 { font-size: 1.75rem; }

  .whatsapp-float { bottom: 20px; right: 20px; width: 54px; height: 54px; }
  .wa-tooltip { display: none; }
  .back-to-top { bottom: 20px; left: 20px; width: 40px; height: 40px; font-size: 1rem; }
  .trust-container { gap: 1.5rem; }
  .trust-number { font-size: 1.75rem; }
  .trust-divider { display: none; }
  .service-card.popular { transform: scale(1); }
  .service-card.popular:hover { transform: translateY(-8px); }
  .btn { padding: 0.65rem 1.35rem; font-size: 0.9rem; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.7rem; }
  .services-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
}
