:root {
  --primary: #0F172A;
  --secondary: #2563EB;
  --secondary-dark: #1D4ED8;
  --accent: #22C55E;
  --bg: #FFFFFF;
  --bg-alt: #F8FAFC;
  --text: #0F172A;
  --text-muted: #475569;
  --border: #E2E8F0;
  --wa: #25D366;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow: 0 4px 6px -1px rgba(15, 23, 42, .08), 0 2px 4px -2px rgba(15, 23, 42, .06);
  --shadow-lg: 0 20px 40px -10px rgba(15, 23, 42, .18), 0 8px 16px -8px rgba(15, 23, 42, .1);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all .3s ease;
  --container: 1200px;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Poppins', 'Inter', sans-serif;
}

[data-theme="dark"] {
  --primary: #F5F5F5;
  --bg: #000000;
  --bg-alt: #000000;
  --text: #F5F5F5;
  --text-muted: #A1A1AA;
  --border: #1F1F1F;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .6);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, .7), 0 2px 4px -2px rgba(0, 0, 0, .6);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, .8), 0 8px 16px -8px rgba(0, 0, 0, .7);
}
[data-theme="dark"] html, [data-theme="dark"] body { background-color: #000000; }
[data-theme="dark"] .section.alt,
[data-theme="dark"] .contact { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color .35s ease, color .35s ease;
}
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; letter-spacing: -.01em; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; }
::selection { background: var(--secondary); color: #fff; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }

.skip-link {
  position: absolute; top: -40px; left: 1rem; background: var(--secondary); color: #fff;
  padding: .5rem 1rem; border-radius: 8px; z-index: 200; transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .875rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  cursor: pointer; border: 1px solid transparent; transition: var(--transition); white-space: nowrap;
  text-align: center;
}
.btn-primary { background: var(--secondary); color: #fff; }
.btn-primary:hover { background: var(--secondary-dark); transform: translateY(-2px); box-shadow: 0 10px 25px -5px rgba(37, 99, 235, .5); }
.btn-secondary { background: var(--bg); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--bg-alt); border-color: var(--secondary); color: var(--secondary); }
.btn-whatsapp { background: var(--wa); color: #fff; }
.btn-whatsapp:hover { background: #1FBA59; transform: translateY(-2px); box-shadow: 0 10px 25px -5px rgba(37, 211, 102, .5); }
.btn-sm { padding: .625rem 1.125rem; font-size: .875rem; }
.btn-lg { padding: 1rem 1.75rem; font-size: 1rem; }

/* ===== Text helpers ===== */
.text-gradient {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; color: transparent;
}
.eyebrow {
  display: inline-block; color: var(--secondary); font-weight: 600; font-size: .8125rem;
  text-transform: uppercase; letter-spacing: .12em; margin-bottom: .75rem;
}
.badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--bg); border: 1px solid var(--border);
  padding: .5rem 1rem; border-radius: 999px; font-size: .875rem; color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(34, 197, 94, .15); animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%, 100% { box-shadow: 0 0 0 4px rgba(34, 197, 94, .15); } 50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } }

/* ===== Section ===== */
.section { padding: 6rem 0; position: relative; }
.section.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3.5rem; }
.section-head h2 { font-size: clamp(1.875rem, 3.5vw, 2.75rem); margin-bottom: 1rem; }
.section-head p { color: var(--text-muted); font-size: 1.0625rem; }

/* ===== Navbar ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, .75);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}
[data-theme="dark"] .navbar { background: rgba(0, 0, 0, .8); }
.navbar.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo {
  display: flex; align-items: center; gap: .625rem; font-weight: 700; font-size: 1.2rem;
  font-family: var(--font-display); color: var(--text);
}
.logo-img {
  width: 36px; height: 36px; border-radius: 10px; object-fit: cover;
  display: block; flex-shrink: 0;
  box-shadow: 0 6px 16px -4px rgba(37, 99, 235, .25);
}
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  font-size: .9375rem; color: var(--text-muted); font-weight: 500;
  transition: color .2s; position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--secondary); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -22px; height: 2px;
  background: linear-gradient(90deg, var(--secondary), var(--accent)); border-radius: 2px;
}
.nav-actions { display: flex; align-items: center; gap: .625rem; }
.theme-toggle {
  background: var(--bg-alt); border: 1px solid var(--border);
  width: 40px; height: 40px; border-radius: 10px; cursor: pointer;
  display: grid; place-items: center; color: var(--text); transition: var(--transition);
}
.theme-toggle:hover { background: var(--border); transform: rotate(15deg); }
.nav-toggle {
  display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer;
  flex-direction: column; gap: 5px; justify-content: center; align-items: center; padding: 0;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); transition: var(--transition); border-radius: 2px; transform-origin: center; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  padding: 9rem 0 5rem; position: relative; overflow: hidden;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
[data-theme="dark"] .hero { background: var(--bg); }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 4rem; align-items: center; }
.hero-content h1 { font-size: clamp(2.25rem, 5vw, 4rem); margin: 1.25rem 0 1.5rem; letter-spacing: -.025em; }
.hero-sub { font-size: 1.125rem; color: var(--text-muted); max-width: 540px; margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.hero-stats > div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-display); font-size: clamp(1.5rem, 2.5vw, 1.875rem); color: var(--text); font-weight: 700; }
.hero-stats span { font-size: .85rem; color: var(--text-muted); }

.hero-visual { position: relative; aspect-ratio: 1 / 1; max-width: 520px; margin-inline-start: auto; }
.illu-blob { display: none; }
.illu-browser {
  position: absolute; inset: 8% 6%; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; z-index: 1;
  transform: perspective(1000px) rotateY(-6deg) rotateX(2deg);
}
.browser-bar { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.browser-dots { display: inline-flex; gap: 5px; }
.browser-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); display: block; }
.browser-dots i:nth-child(1) { background: #ef4444; }
.browser-dots i:nth-child(2) { background: #f59e0b; }
.browser-dots i:nth-child(3) { background: #22c55e; }
.browser-url { font-size: .75rem; color: var(--text-muted); font-family: ui-monospace, 'SF Mono', monospace; }
.browser-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
.browser-row { display: flex; flex-direction: column; gap: .5rem; }
.br-block { height: 10px; border-radius: 4px; background: var(--bg-alt); }
.br-headline { height: 16px; width: 70%; background: linear-gradient(90deg, var(--secondary), var(--accent)); opacity: .85; }
.br-sub { width: 90%; }
.br-btn { width: 90px; height: 22px; border-radius: 999px; background: var(--secondary); margin-top: .25rem; }
.browser-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.br-card { aspect-ratio: 1; border-radius: 8px; background: linear-gradient(135deg, var(--bg-alt), var(--border)); }
.br-card:nth-child(2) { background: linear-gradient(135deg, rgba(37, 99, 235, .15), rgba(34, 197, 94, .15)); }
.br-card:nth-child(3) { background: linear-gradient(135deg, var(--secondary), var(--accent)); opacity: .85; }
.browser-chart svg { width: 100%; height: 60px; }

/* ===== Services ===== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.service-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2rem; transition: var(--transition); position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--secondary), var(--accent)); opacity: 0;
  transition: opacity .3s; z-index: 0; pointer-events: none;
}
.service-card > * { position: relative; z-index: 1; }
.service-card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: var(--shadow-lg); }
.service-card:hover::before { opacity: .04; }
.service-icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, .12), rgba(34, 197, 94, .12));
  color: var(--secondary); margin-bottom: 1.25rem; transition: var(--transition);
}
.service-card:hover .service-icon { background: linear-gradient(135deg, var(--secondary), var(--accent)); color: #fff; transform: scale(1.1) rotate(-5deg); }
.service-card h3 { font-size: 1.125rem; margin-bottom: .5rem; }
.service-card p { color: var(--text-muted); font-size: .9375rem; }

/* ===== Why ===== */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.why-card {
  display: flex; gap: 1rem; padding: 1.5rem; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius); transition: var(--transition);
}
.why-card:hover { border-color: var(--secondary); transform: translateX(4px); box-shadow: var(--shadow); }
.why-icon {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center; background: linear-gradient(135deg, rgba(37, 99, 235, .12), rgba(34, 197, 94, .12));
  color: var(--secondary);
}
.why-card h3 { font-size: 1.0625rem; margin-bottom: .25rem; }
.why-card p { color: var(--text-muted); font-size: .9rem; }

/* ===== Process / Timeline ===== */
.timeline { position: relative; max-width: 880px; margin: 0 auto; }
.timeline::before { content: ''; position: absolute; left: 28px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--secondary), var(--accent)); opacity: .3; border-radius: 2px; }
.timeline-item { position: relative; padding-left: 80px; margin-bottom: 2.5rem; }
.timeline-item:last-child { margin-bottom: 0; }
.step-num {
  position: absolute; left: 0; top: 0; width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), var(--accent)); color: #fff;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.125rem;
  box-shadow: 0 0 0 6px var(--bg), 0 6px 20px -4px rgba(37, 99, 235, .5);
}
.timeline-item h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.timeline-item p { color: var(--text-muted); max-width: 600px; }

/* ===== Portfolio ===== */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }
.portfolio-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4 / 3; cursor: pointer; transition: var(--transition);
  background: var(--bg-alt); border: 1px solid var(--border);
}
.portfolio-thumb {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 4rem; color: rgba(255, 255, 255, .9); transition: var(--transition);
}
.portfolio-thumb.p1 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.portfolio-thumb.p2 { background: linear-gradient(135deg, #2563eb, #8b5cf6); }
.portfolio-thumb.p3 { background: linear-gradient(135deg, #10b981, #06b6d4); }
.portfolio-thumb.p4 { background: linear-gradient(135deg, #ec4899, #f43f5e); }
.portfolio-thumb.p5 { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.portfolio-thumb.p6 { background: linear-gradient(135deg, #f97316, #eab308); }
.portfolio-overlay {
  position: absolute; inset: 0; padding: 1.5rem; color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, .9) 100%);
  transform: translateY(20%); transition: var(--transition);
}
.portfolio-card:hover .portfolio-overlay { transform: translateY(0); }
.portfolio-card:hover .portfolio-thumb { transform: scale(1.05); }
.portfolio-overlay h3 { font-size: 1.2rem; margin-bottom: .25rem; }
.portfolio-overlay span {
  color: #fff; font-size: .8rem; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; opacity: .9;
}

/* ===== Testimonials ===== */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }
.testimonial-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2rem; transition: var(--transition);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.stars { color: #facc15; margin-bottom: 1rem; font-size: 1.125rem; letter-spacing: .15em; }
.testimonial-text { color: var(--text); margin-bottom: 1.5rem; line-height: 1.7; font-size: .9375rem; }
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.avatar {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-weight: 700; font-family: var(--font-display); flex-shrink: 0;
  font-size: .9rem;
}
.testimonial-author strong { display: block; font-size: .95rem; font-weight: 600; }
.testimonial-author span { font-size: .85rem; color: var(--text-muted); }

/* ===== Pricing ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; align-items: stretch; }
.pricing-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2.5rem 2rem; display: flex; flex-direction: column; transition: var(--transition);
  position: relative;
}
.pricing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pricing-card h3 { font-size: 1.25rem; margin-bottom: .5rem; font-weight: 600; }
.price { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; margin-bottom: 1.5rem; letter-spacing: -.02em; }
.price small { font-size: 1rem; font-weight: 500; color: var(--text-muted); }
.pricing-card.featured .price small { color: #CBD5E1; }
.pricing-features { list-style: none; margin-bottom: 2rem; flex-grow: 1; }
.pricing-features li {
  padding: .625rem 0; color: var(--text-muted);
  display: flex; align-items: center; gap: .625rem; font-size: .9375rem;
}
.pricing-features li::before {
  content: '✓'; color: var(--accent); font-weight: 700; flex-shrink: 0;
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(34, 197, 94, .12); font-size: .75rem;
}
.pricing-card .btn { width: 100%; }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 1rem; overflow: hidden; transition: var(--transition);
}
.faq-item.open { border-color: var(--secondary); box-shadow: var(--shadow); }
.faq-question {
  width: 100%; background: none; border: 0; padding: 1.25rem 1.5rem;
  text-align: left; font-size: 1rem; font-weight: 600; color: var(--text);
  cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; font-family: inherit;
}
.faq-question:hover { color: var(--secondary); }
.faq-icon {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-alt); display: grid; place-items: center;
  color: var(--secondary); transition: var(--transition);
}
.faq-item.open .faq-icon { background: var(--secondary); color: #fff; transform: rotate(45deg); }
.faq-icon::before { content: '+'; font-size: 1.25rem; font-weight: 600; line-height: 1; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-answer-inner { padding: 0 1.5rem 1.25rem; color: var(--text-muted); line-height: 1.7; }

/* ===== Contact ===== */
.contact { background: var(--bg-alt); }
.contact-inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: 4rem; align-items: start; }
.contact-info h2 { font-size: clamp(1.875rem, 3.5vw, 2.5rem); margin-bottom: 1rem; }
.contact-info > p { color: var(--text-muted); margin-bottom: 2rem; max-width: 440px; }
.contact-list { list-style: none; margin-bottom: 2rem; }
.contact-list li {
  display: flex; align-items: center; gap: .875rem; padding: .65rem 0; color: var(--text);
  font-size: .95rem;
}
.contact-list .ci {
  width: 42px; height: 42px; border-radius: 10px; background: var(--bg);
  display: grid; place-items: center; color: var(--secondary);
  border: 1px solid var(--border); flex-shrink: 0;
}
.contact-form {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2rem; display: flex; flex-direction: column; gap: 1rem;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: .875rem 1rem; border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg); color: var(--text); font-family: inherit; font-size: .9375rem;
  transition: var(--transition);
}
.contact-form select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='1 1 6 6 11 1'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: 0; border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.contact-form textarea { resize: vertical; min-height: 120px; }

/* ===== Footer ===== */
.footer { background: var(--primary); color: #CBD5E1; padding: 4.5rem 0 2rem; }
[data-theme="dark"] .footer { background: #000000; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 3rem; margin-bottom: 3rem; }
.footer .logo { color: #fff; margin-bottom: 1rem; }
.footer .logo-text { color: #fff; }
.footer p { color: #94A3B8; font-size: .9rem; max-width: 320px; }
.footer h4 { color: #fff; margin-bottom: 1.25rem; font-size: 1rem; font-weight: 600; }
.footer ul { list-style: none; }
.footer ul li { padding: .4rem 0; font-size: .9rem; }
.footer ul a { color: #94A3B8; transition: color .2s; }
.footer ul a:hover { color: var(--accent); }
.footer .socials { display: flex; gap: .625rem; margin-top: 1.5rem; }
.footer .socials a {
  width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .05);
  display: grid; place-items: center; transition: var(--transition); color: #CBD5E1;
}
.footer .socials a:hover { background: var(--secondary); color: #fff; transform: translateY(-2px); }
.footer-bottom { padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, .08); text-align: center; font-size: .875rem; color: #64748B; }

/* ===== WhatsApp floating ===== */
.wa-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 99;
  width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 30px -4px rgba(37, 211, 102, .5);
  transition: var(--transition);
  animation: wa-pulse 2.5s infinite;
}
.wa-float:hover { transform: scale(1.08); }
@keyframes wa-pulse {
  0% { box-shadow: 0 10px 30px -4px rgba(37, 211, 102, .5), 0 0 0 0 rgba(37, 211, 102, .5); }
  70% { box-shadow: 0 10px 30px -4px rgba(37, 211, 102, .5), 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 10px 30px -4px rgba(37, 211, 102, .5), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ===== Scroll reveal ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-visual { max-width: 460px; }
}

@media (max-width: 968px) {
  .hero { padding: 7.5rem 0 3.5rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 3.5rem; text-align: left; }
  .hero-visual {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto auto;
    gap: .75rem;
    max-width: 460px;
    margin: 0 auto;
    aspect-ratio: auto;
  }
  .illu-browser {
    position: relative; inset: auto;
    grid-row: 1; grid-column: 1 / -1;
    width: 100%; max-width: 400px; margin: 0 auto;
    aspect-ratio: 1 / 1;
    transform: none;
  }
  .hero-stats { gap: 1.25rem; }
  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .section { padding: 4.5rem 0; }
  .section-head { margin-bottom: 3rem; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0; background: var(--bg);
    flex-direction: column; padding: 1.5rem 1.5rem 2rem; gap: 1.25rem;
    border-bottom: 1px solid var(--border); transform: translateY(calc(-100% - 80px));
    transition: transform .3s ease; box-shadow: var(--shadow);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { font-size: 1rem; padding: .25rem 0; }
  .nav-links a.active::after { display: none; }
  .nav-toggle { display: flex; }
  .nav-actions .btn-sm { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-cta { width: 100%; }
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-6px); }
  .timeline::before { left: 22px; }
  .timeline-item { padding-left: 64px; }
  .step-num { width: 46px; height: 46px; font-size: 1rem; }
}

@media (max-width: 520px) {
  .container { padding: 0 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .section { padding: 3.5rem 0; }
  .wa-float { width: 52px; height: 52px; bottom: 1rem; right: 1rem; }
  .wa-float svg { width: 24px; height: 24px; }
}

/* ===== Hero badges stack ===== */
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.badge-location { color: var(--text); }
.badge-location svg { color: var(--secondary); flex-shrink: 0; }

/* ===== Language switcher ===== */
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: 10px; padding: 3px;
}
.lang-btn {
  background: none; border: 0; padding: .4rem .65rem; cursor: pointer;
  font-family: inherit; font-size: .8rem; font-weight: 600; color: var(--text-muted);
  border-radius: 7px; transition: var(--transition); min-width: 38px;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active {
  background: var(--secondary); color: #fff;
  box-shadow: 0 2px 6px -1px rgba(37, 99, 235, .4);
}
body.lang-ar .lang-btn.active { box-shadow: 0 2px 6px -1px rgba(37, 99, 235, .4); }
@media (max-width: 768px) {
  .lang-switch { margin-inline-start: auto; }
}

/* ===== Arabic typography ===== */
body.lang-ar,
body.lang-ar h1, body.lang-ar h2, body.lang-ar h3, body.lang-ar h4 {
  font-family: 'Cairo', 'Inter', system-ui, sans-serif;
  letter-spacing: 0;
}
body.lang-ar .logo-text,
body.lang-ar .text-gradient { font-family: 'Cairo', 'Poppins', sans-serif; }
body.lang-ar .btn { font-family: 'Cairo', 'Inter', sans-serif; font-weight: 700; }
body.lang-ar .hero h1 { line-height: 1.4; }
body.lang-ar .section-head h2 { line-height: 1.4; }
body.lang-ar input, body.lang-ar select, body.lang-ar textarea { font-family: 'Cairo', 'Inter', sans-serif; }

/* ===== RTL layout overrides ===== */
[dir="rtl"] .illu-browser { transform: perspective(1000px) rotateY(6deg) rotateX(2deg); }
[dir="rtl"] .timeline::before { left: auto; right: 28px; }
[dir="rtl"] .timeline-item { padding-left: 0; padding-right: 80px; }
[dir="rtl"] .step-num { left: auto; right: 0; }
[dir="rtl"] .contact-list li,
[dir="rtl"] .why-card,
[dir="rtl"] .testimonial-author { flex-direction: row-reverse; }
[dir="rtl"] .hero-stats > div,
[dir="rtl"] .contact-info,
[dir="rtl"] .footer .logo,
[dir="rtl"] .footer .socials { text-align: right; }
[dir="rtl"] .hero-content { text-align: right; }
[dir="rtl"] .section-head { text-align: center; }
[dir="rtl"] .wa-float { right: auto; left: 1.5rem; }
[dir="rtl"] .nav-links a.active::after { left: auto; right: 0; }
[dir="rtl"] .contact-form input,
[dir="rtl"] .contact-form select,
[dir="rtl"] .contact-form textarea { text-align: right; }
[dir="rtl"] .contact-form select {
  background-position: left 1rem center;
  padding-right: 1rem;
  padding-left: 2.5rem;
}
[dir="rtl"] .hero-cta { justify-content: flex-end; }
[dir="rtl"] .hero-cta .btn-whatsapp svg,
[dir="rtl"] .wa-float svg,
[dir="rtl"] .contact-list .ci svg { transform: scaleX(1); }
[dir="rtl"] .hero-stats strong { font-family: 'Cairo', 'Poppins', sans-serif; }

@media (max-width: 968px) {
  [dir="rtl"] .hero-content { text-align: right; }
}
@media (max-width: 768px) {
  [dir="rtl"] .timeline::before { left: auto; right: 22px; }
  [dir="rtl"] .timeline-item { padding-left: 0; padding-right: 64px; }
  [dir="rtl"] .step-num { left: auto; right: 0; }
  [dir="rtl"] .wa-float { left: 1rem; right: auto; }
}
