/* ================================================================
   4Jawaly Landing Page v6 — Theme-driven CSS via data-service
   ================================================================ */

/* ─── CSS VARIABLES (per-service theming) ─────────────────────── */
:root {
  --font: 'Cairo', sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,.06);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.10);
  --transition: .25s ease;
  --white: #fff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --red: #ef4444;
}

/* SMS (default) — dark blue/indigo matching original indexv6ooo design */
[data-service="sms"] {
  --primary: #2c3e8f;
  --primary-light: #c5cae9;
  --primary-dark: #1a237e;
  --primary-bg: #e8eaf6;
  --primary-glow: rgba(26,35,126,.15);
  --gradient: linear-gradient(135deg, #2c3e8f, #5c6bc0);
  --gradient-hero: linear-gradient(160deg, #ede7f6 0%, #e8eaf6 40%, #fff 100%);
}

/* WhatsApp */
[data-service="whatsapp"] {
  --primary: #22c55e;
  --primary-light: #bbf7d0;
  --primary-dark: #16a34a;
  --primary-bg: #f0fdf4;
  --primary-glow: rgba(34,197,94,.15);
  --gradient: linear-gradient(135deg, #22c55e, #16a34a);
  --gradient-hero: linear-gradient(160deg, #f0fdf4 0%, #dcfce7 40%, #fff 100%);
}

/* Hosting — royal blue matching original indexv6ooo design */
[data-service="hosting"] {
  --primary: #1565c0;
  --primary-light: #90caf9;
  --primary-dark: #0d47a1;
  --primary-bg: #e3f2fd;
  --primary-glow: rgba(21,101,192,.15);
  --gradient: linear-gradient(135deg, #1565c0, #1976d2);
  --gradient-hero: linear-gradient(160deg, #e3f2fd 0%, #bbdefb 40%, #fff 100%);
}

/* ─── RESET & BASE ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── HEADER ──────────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.logo img { height: 36px; width: auto; }

.nav {
  display: flex;
  gap: 28px;
}
.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  transition: color var(--transition);
}
.nav a:hover { color: var(--primary); }

.login-btn {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 8px 20px;
  border-radius: 100px;
  transition: all var(--transition);
}
.login-btn:hover {
  background: var(--primary);
  color: var(--white);
}

/* ─── HERO ────────────────────────────────────────────────────── */
.hero {
  background: var(--gradient-hero);
  padding: 48px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .25;
}
.blob-a {
  width: 400px; height: 400px;
  background: var(--primary-light);
  top: -100px; right: -80px;
  animation: blobFloat 8s ease-in-out infinite;
}
.blob-b {
  width: 300px; height: 300px;
  background: var(--primary);
  bottom: -60px; left: -40px;
  opacity: .12;
  animation: blobFloat 10s ease-in-out infinite reverse;
}
.blob-c {
  width: 200px; height: 200px;
  background: var(--primary-light);
  top: 50%; left: 40%;
  opacity: .15;
  animation: blobPulse 6s ease-in-out infinite;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -20px) scale(1.05); }
  50% { transform: translate(-20px, 15px) scale(.95); }
  75% { transform: translate(15px, 25px) scale(1.03); }
}
@keyframes blobPulse {
  0%, 100% { transform: scale(1); opacity: .15; }
  50% { transform: scale(1.2); opacity: .25; }
}

/* ─── SERVICE TABS ───────────────────────────────────────────── */
.service-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}
.service-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-500);
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition);
}
.service-tab:hover {
  border-color: var(--primary-light);
  color: var(--primary);
}
.service-tab.active {
  background: var(--gradient);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 4px 16px var(--primary-glow);
}
.service-tab i {
  font-size: 16px;
}

/* ─── HERO GRID (text + form side by side) ───────────────────── */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: start;
  position: relative;
  z-index: 2;
}

.hero-copy {
  padding-top: 12px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-glow);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
  border: 1px solid var(--primary-light);
}

.hero-title {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  line-height: 1.4;
  color: var(--gray-900);
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 20px;
}

.hero-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.hero-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--gray-700);
}
.hero-points li i {
  color: var(--primary);
  font-size: 16px;
  flex-shrink: 0;
}

/* Hero Image (optional per service) */
.hero-image-wrap {
  margin-top: 8px;
}
.hero-image {
  max-width: 340px;
  width: 100%;
  height: auto;
  border-radius: 16px;
  filter: drop-shadow(0 12px 32px rgba(0,0,0,.12));
}

/* ─── FORM CARD ──────────────────────────────────────────────── */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 32px 28px;
  border: 1px solid var(--gray-100);
  position: sticky;
  top: 80px;
  z-index: 10;
}

.form-head {
  text-align: center;
  margin-bottom: 24px;
}
.form-head h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}
.form-head p {
  font-size: 14px;
  color: var(--gray-500);
}

/* ─── FORM FIELDS ────────────────────────────────────────────── */
.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.field label .req { color: var(--red); }

.field input,
.phone-wrap input[type="tel"] {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--gray-800);
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  outline: none;
  transition: all var(--transition);
}
.field input:focus,
.phone-wrap input[type="tel"]:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.field input::placeholder,
.phone-wrap input::placeholder {
  color: var(--gray-300);
}

/* ─── PHONE WRAP ─────────────────────────────────────────────── */
.phone-wrap {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  overflow: visible;
  background: var(--gray-50);
  transition: all var(--transition);
  position: relative;
}
.phone-wrap:focus-within {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.phone-wrap input[type="tel"] {
  border: none;
  background: transparent;
  border-radius: 0;
  flex: 1;
}
.phone-wrap input[type="tel"]:focus {
  box-shadow: none;
  border: none;
}

/* Old-style code span (for backwards compat) */
.phone-wrap .code {
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-500);
  background: var(--gray-100);
  border-right: 1px solid var(--gray-200);
  user-select: none;
  white-space: nowrap;
  direction: ltr;
}

/* Country Selector Button */
.country-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-500);
  background: var(--gray-100);
  border: none;
  border-right: 1px solid var(--gray-200);
  cursor: pointer;
  white-space: nowrap;
  direction: ltr;
  transition: background var(--transition);
  order: 1;
}
[dir="rtl"] .country-selector {
  border-right: none;
  border-left: 1px solid var(--gray-200);
}
.country-selector:hover {
  background: var(--gray-200);
}
.country-selector .flag-icon {
  border-radius: 2px;
  object-fit: cover;
  flex-shrink: 0;
}
.country-selector .fa-caret-down {
  font-size: 10px;
  color: var(--gray-400);
}

/* Country Dropdown */
.country-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  margin-top: 4px;
  max-height: 280px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.country-dropdown[hidden] { display: none; }

.country-search-wrap {
  padding: 8px;
  border-bottom: 1px solid var(--gray-100);
}
.country-search {
  width: 100%;
  padding: 8px 12px;
  font-family: var(--font);
  font-size: 13px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  outline: none;
  background: var(--gray-50);
}
.country-search:focus {
  border-color: var(--primary);
}

.country-list {
  overflow-y: auto;
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 0;
}
.country-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--gray-700);
  cursor: pointer;
  direction: ltr;
  text-align: left;
  transition: background .15s ease;
}
.country-list li:hover {
  background: var(--primary-bg);
}
.country-list li.active {
  background: var(--primary-bg);
  color: var(--primary-dark);
  font-weight: 600;
}
.country-list li img {
  width: 24px;
  height: 16px;
  border-radius: 2px;
  object-fit: cover;
  flex-shrink: 0;
}
.country-list li .dial-code {
  margin-left: auto;
  color: var(--gray-400);
  font-size: 13px;
}

/* ─── FIELD ERRORS ───────────────────────────────────────────── */
.field-error {
  display: block;
  font-size: 12px;
  color: var(--red);
  margin-top: 4px;
  min-height: 0;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: all .2s ease;
}
.field-error.visible {
  max-height: 40px;
  opacity: 1;
  margin-top: 6px;
}
.field.has-error input,
.field.has-error .phone-wrap {
  border-color: var(--red);
}

/* ─── CLOUDFLARE TURNSTILE ───────────────────────────────────── */
.turnstile-box {
  margin: 16px 0 8px;
  display: flex;
  justify-content: center;
  min-height: 65px;
}

/* ─── SUBMIT BUTTON ──────────────────────────────────────────── */
.submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  background: var(--gradient);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 8px;
}
.submit-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px var(--primary-glow);
}
.submit-btn:active {
  transform: translateY(0);
}
.submit-btn:disabled {
  opacity: .7;
  cursor: not-allowed;
  transform: none;
}

/* ─── SUCCESS STATE ──────────────────────────────────────────── */
.form-success {
  text-align: center;
  padding: 24px 0;
}
.success-icon {
  font-size: 56px;
  color: var(--primary);
  margin-bottom: 16px;
}
.form-success h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}
.form-success p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ─── SECTIONS ───────────────────────────────────────────────── */
.section {
  padding: 80px 0;
}
.section.alt {
  background: var(--gray-50);
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}
.section-head h2 {
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
}
.section-head p {
  font-size: 16px;
  color: var(--gray-500);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ─── FEATURES GRID (cards-grid) ─────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  border: 1px solid var(--gray-100);
  transition: all var(--transition);
}
.section.alt .feature-card {
  background: var(--white);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transition: all var(--transition);
}
.feature-icon i {
  font-size: 22px;
  color: var(--primary);
}
.feature-card:hover .feature-icon {
  background: var(--gradient);
}
.feature-card:hover .feature-icon i {
  color: var(--white);
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 13.5px;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ─── STEPS GRID ─────────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-card {
  text-align: center;
  padding: 0 12px;
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient);
  color: var(--white);
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 6px 20px var(--primary-glow);
}

.step-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}
.step-card p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ─── STATS BAR ──────────────────────────────────────────────── */
.stats {
  background: var(--gradient);
  padding: 48px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item {
  text-align: center;
  color: var(--white);
}
.stat-value {
  display: block;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 14px;
  opacity: .85;
}

/* ─── CTA SECTION ────────────────────────────────────────────── */
.cta {
  padding: 80px 0;
  background: var(--gray-50);
}

.cta-box {
  text-align: center;
  background: var(--white);
  border-radius: 20px;
  padding: 56px 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
}
.cta-box h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
}
.cta-box p {
  font-size: 16px;
  color: var(--gray-500);
  margin-bottom: 28px;
}
.cta-box a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  background: var(--gradient);
  border-radius: 100px;
  transition: all var(--transition);
  box-shadow: 0 6px 24px var(--primary-glow);
}
.cta-box a:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px var(--primary-glow);
}

/* ─── FOOTER ─────────────────────────────────────────────────── */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 28px 0;
}
.footer-row {
  text-align: center;
}
.footer-row p {
  font-size: 13px;
  color: var(--gray-500);
}

/* ─── TOAST NOTIFICATIONS ────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font);
  z-index: 9999;
  opacity: 0;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--shadow-lg);
  max-width: 90vw;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast-success {
  background: #065f46;
  color: #d1fae5;
}
.toast-error {
  background: #991b1b;
  color: #fef2f2;
}
.toast i { font-size: 18px; flex-shrink: 0; }

/* ─── ANIMATIONS & MICRO-INTERACTIONS ────────────────────────── */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
.shake { animation: shake .5s ease; }

/* --- Scroll Reveal --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1);
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
.feature-card.animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.feature-card.animate-on-scroll:nth-child(2) { transition-delay: .1s; }
.feature-card.animate-on-scroll:nth-child(3) { transition-delay: .2s; }
.feature-card.animate-on-scroll:nth-child(4) { transition-delay: .3s; }
.feature-card.animate-on-scroll:nth-child(5) { transition-delay: .4s; }
.feature-card.animate-on-scroll:nth-child(6) { transition-delay: .5s; }
.step-card.animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.step-card.animate-on-scroll:nth-child(2) { transition-delay: .15s; }
.step-card.animate-on-scroll:nth-child(3) { transition-delay: .3s; }
.stat-item.animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.stat-item.animate-on-scroll:nth-child(2) { transition-delay: .1s; }
.stat-item.animate-on-scroll:nth-child(3) { transition-delay: .2s; }
.stat-item.animate-on-scroll:nth-child(4) { transition-delay: .3s; }

/* --- Hero Entrance --- */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeLeft {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
.hero-badge  { animation: heroFadeUp .7s cubic-bezier(.22,1,.36,1) .1s both; }
.hero-title  { animation: heroFadeUp .7s cubic-bezier(.22,1,.36,1) .25s both; }
.hero-desc   { animation: heroFadeUp .7s cubic-bezier(.22,1,.36,1) .4s both; }
.hero-points { animation: heroFadeUp .7s cubic-bezier(.22,1,.36,1) .55s both; }
.form-card   { animation: heroFadeLeft .7s cubic-bezier(.22,1,.36,1) .3s both; }

/* --- Hero Points Staggered --- */
.hero-points li {
  opacity: 0;
  animation: heroFadeUp .5s cubic-bezier(.22,1,.36,1) both;
}
.hero-points li:nth-child(1) { animation-delay: .6s; }
.hero-points li:nth-child(2) { animation-delay: .7s; }
.hero-points li:nth-child(3) { animation-delay: .8s; }
.hero-points li:nth-child(4) { animation-delay: .9s; }
.hero-points li:nth-child(5) { animation-delay: 1s; }
.hero-points li:nth-child(6) { animation-delay: 1.1s; }

/* --- Card Hover Micro-interaction --- */
.feature-card {
  will-change: transform, box-shadow;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,.1);
  border-color: var(--primary-light);
}
.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(-5deg);
}
.feature-icon {
  transition: all .35s cubic-bezier(.22,1,.36,1);
}

/* --- Step Number Hover --- */
.step-num {
  transition: all .35s cubic-bezier(.22,1,.36,1);
}
.step-card:hover .step-num {
  transform: scale(1.12);
  box-shadow: 0 8px 28px var(--primary-glow);
}

/* --- Button Micro-interactions --- */
.submit-btn {
  position: relative;
  overflow: hidden;
}
.submit-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.15) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: none;
}
.submit-btn:hover::after {
  animation: btnShimmer .8s ease;
}
@keyframes btnShimmer {
  to { transform: translateX(100%); }
}

.login-btn {
  position: relative;
  overflow: hidden;
}
.login-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s cubic-bezier(.22,1,.36,1);
  z-index: -1;
}
.login-btn:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

/* --- CTA Button Hover --- */
.cta-box a {
  position: relative;
  overflow: hidden;
}
.cta-box a::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.2) 50%, transparent 70%);
  transform: translateX(-100%);
}
.cta-box a:hover::after {
  animation: btnShimmer .8s ease;
}

/* --- Form Field Focus Glow --- */
.field input:focus {
  box-shadow: 0 0 0 3px var(--primary-glow), 0 2px 8px var(--primary-glow);
}
.phone-wrap:focus-within {
  box-shadow: 0 0 0 3px var(--primary-glow), 0 2px 8px var(--primary-glow);
}

/* --- Form Card Subtle Hover --- */
.form-card {
  transition: box-shadow .4s ease;
}
.form-card:hover {
  box-shadow: 0 16px 56px rgba(0,0,0,.12);
}

/* --- Service Tab Micro-interaction --- */
.service-tab {
  position: relative;
  overflow: hidden;
}
.service-tab::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--primary-glow);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width .4s ease, height .4s ease;
}
.service-tab:hover::before {
  width: 200px;
  height: 200px;
}
.service-tab.active::before { display: none; }

/* --- Section Head Entrance --- */
.section-head.animate-on-scroll {
  transform: translateY(24px) scale(.97);
}
.section-head.animate-on-scroll.visible {
  transform: translateY(0) scale(1);
}

/* --- CTA Box Entrance --- */
.cta-box.animate-on-scroll {
  transform: translateY(32px) scale(.96);
}
.cta-box.animate-on-scroll.visible {
  transform: translateY(0) scale(1);
}

/* --- Stats Counter Animation --- */
.stat-value {
  display: inline-block;
}

/* --- WhatsApp Float Pulse --- */
@keyframes floatPulse {
  0%   { box-shadow: 0 4px 20px rgba(37,211,102,.35); }
  50%  { box-shadow: 0 4px 20px rgba(37,211,102,.35), 0 0 0 10px rgba(37,211,102,.15); }
  100% { box-shadow: 0 4px 20px rgba(37,211,102,.35), 0 0 0 20px rgba(37,211,102,0); }
}
.whatsapp-float {
  animation: floatPulse 2s ease-in-out infinite;
}
.whatsapp-float:hover {
  animation: none;
}

/* --- Nav Links Underline Effect --- */
.nav a {
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width .3s cubic-bezier(.22,1,.36,1);
}
.nav a:hover::after {
  width: 100%;
}

/* ─── MOBILE CTA BAR ────────────────────────────────────────── */
.mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 12px 16px;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--gray-200);
  transition: transform .3s ease;
}
.mobile-cta.hidden {
  transform: translateY(100%);
}
.mobile-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  background: var(--gradient);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
}

/* ─── WHATSAPP FLOAT BUTTON ──────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #25d366;
  color: #fff;
  border-radius: 100px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(37,211,102,.35);
  transition: all .3s ease;
  text-decoration: none;
}
.whatsapp-float:hover {
  background: #1ebe57;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,.45);
}
.whatsapp-float i {
  font-size: 22px;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 380px;
    gap: 32px;
  }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .header-row { height: 56px; }

  .hero { padding: 32px 0 40px; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-copy { text-align: center; }
  .hero-points li { justify-content: center; }
  .hero-image-wrap { text-align: center; }
  .hero-image { max-width: 280px; margin: 0 auto; }

  .service-tabs {
    flex-wrap: wrap;
    gap: 6px;
  }
  .service-tab {
    font-size: 13px;
    padding: 8px 16px;
  }

  .form-card {
    position: static;
    max-width: 480px;
    margin: 0 auto;
  }

  .section { padding: 56px 0; }
  .cards-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; gap: 24px; }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 16px;
  }

  .cta { padding: 56px 0; }
  .cta-box { padding: 40px 24px; }

  body { padding-bottom: 72px; }
  .whatsapp-float {
    bottom: 80px;
    left: 16px;
    padding: 10px 16px;
    font-size: 13px;
  }
  .whatsapp-float i { font-size: 20px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .form-card { padding: 24px 20px; }
  .hero-title { font-size: 24px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
