/* ═══════════════════════════════════════════════
   Karakam — Official Website
   ═══════════════════════════════════════════════ */

:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-light: #eef2ff;
  --dark: #0f172a;
  --text: #1e293b;
  --text-muted: #64748b;
  --bg: #f8fafc;
  --border: #e2e8f0;
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ─────────── Buttons ─────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s ease;
  white-space: nowrap;
  font-family: var(--font);
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); transform: translateY(-2px); }
.btn-whatsapp {
  background: #25d366;
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover { background: #1ebe5b; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4); }
.btn-lg { padding: 13px 28px; font-size: 15.5px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-nav { padding: 8px 16px; font-size: 13.5px; }

/* ─────────── Navbar ─────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all 0.25s ease;
}
.navbar.scrolled {
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-mark.logo-img-mark {
  background: none;
  overflow: visible;
  width: auto;
  height: auto;
}
.logo-img-mark img {
  display: block;
  width: auto;
  height: 38px;
  border-radius: 8px;
}
.logo-mark svg { width: 21px; height: 21px; }
.logo-text { font-size: 19px; font-weight: 800; color: var(--dark); }

.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
  position: relative;
}
.nav-links a:hover { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 14px; }

.lang-switch {
  display: flex;
  gap: 3px;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 3px;
  border-radius: 10px;
}
.lang-btn {
  padding: 4px 9px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font);
}
.lang-btn.active { background: var(--primary); color: #fff; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  width: 22px;
  height: 2.5px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.25s ease;
}

/* ─────────── Hero ─────────── */
.hero {
  position: relative;
  padding: 150px 0 90px;
  overflow: hidden;
  background: linear-gradient(180deg, #eef2ff 0%, var(--bg) 100%);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
}
.blob-1 { width: 420px; height: 420px; background: #c7d2fe; top: -100px; inset-inline-start: -120px; }
.blob-2 { width: 380px; height: 380px; background: #ddd6fe; bottom: -80px; inset-inline-end: -100px; }
.blob-3 { width: 280px; height: 280px; background: #bfdbfe; top: 40%; inset-inline-start: 55%; }

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.hero h1 {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--dark);
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}
.grad {
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 30px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-trust {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 13.5px;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 5px; }

/* ─── Hero visual (fake app window) ─── */
.hero-visual { position: relative; }
.app-window {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
  border: 1px solid var(--border);
  overflow: hidden;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.red { background: #f87171; }
.dot.yellow { background: #fbbf24; }
.dot.green { background: #34d399; }
.window-title { margin-inline-start: auto; font-size: 12px; color: var(--text-muted); font-weight: 500; }
.window-body { display: flex; height: 320px; }
.fake-sidebar { width: 90px; background: #111827; padding: 14px 10px; display: flex; flex-direction: column; gap: 10px; }
.fs-logo { width: 40px; height: 40px; background: linear-gradient(135deg, var(--primary), #7c3aed); border-radius: 10px; margin-bottom: 8px; }
.fs-item {
  height: 34px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}
.fs-item.active { background: var(--primary); box-shadow: 0 3px 10px rgba(79, 70, 229, 0.5); }
.fake-main { flex: 1; padding: 16px; background: #f8fafc; }
.fm-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.fm-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.fm-card.c1 { border-top: 3px solid var(--primary); }
.fm-card.c2 { border-top: 3px solid #10b981; }
.fm-card.c3 { border-top: 3px solid #f59e0b; }
.fm-num { font-size: 18px; font-weight: 800; color: var(--dark); }
.fm-label { height: 8px; width: 70%; background: #e2e8f0; border-radius: 4px; margin-top: 6px; }
.fm-table { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.fm-row { height: 34px; border-bottom: 1px solid #f1f5f9; padding: 0 12px; }
.fm-row.head { height: 28px; background: #f8fafc; }
.fm-row:nth-child(2) { background: linear-gradient(90deg, #eef2ff 0%, transparent 40%); }

.floating-chip {
  position: absolute;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  animation: float 4s ease-in-out infinite;
}
.chip-1 { top: -18px; inset-inline-end: -10px; }
.chip-2 { bottom: -18px; inset-inline-start: -10px; animation-delay: 2s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ─────────── Sections ─────────── */
.section { padding: 90px 0; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.sec-head h2 { font-size: 34px; font-weight: 800; color: var(--dark); margin-bottom: 12px; letter-spacing: -0.3px; }
.sec-sub { color: var(--text-muted); font-size: 16px; }

/* ─── Features ─── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: all 0.22s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  border-color: #c7d2fe;
}
.f-icon {
  width: 46px;
  height: 46px;
  background: color-mix(in srgb, var(--ic) 12%, white);
  color: var(--ic);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.f-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 17px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 14px; }

/* ─── Businesses ─── */
.businesses { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.biz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}
.biz-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  font-weight: 600;
  color: var(--text);
  transition: all 0.18s ease;
}
.biz-card:hover { border-color: var(--primary); background: var(--primary-light); color: var(--primary); transform: translateY(-2px); }
.biz-icon { font-size: 22px; }

/* ─── Steps ─── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}
.step {
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 24px;
  position: relative;
  transition: all 0.22s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08); }
.step-num {
  position: absolute;
  top: -16px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}
.step-icon { font-size: 34px; margin-bottom: 14px; }
.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--dark); }
.step p { color: var(--text-muted); font-size: 14px; }

/* ─── Pricing ─── */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.price-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px;
  text-align: center;
  position: relative;
  transition: all 0.22s ease;
}
.price-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08); }
.price-card.popular {
  border: 2px solid var(--primary);
  box-shadow: 0 12px 40px rgba(79, 70, 229, 0.15);
}
.price-pop {
  position: absolute;
  top: -13px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}
.price-name { font-size: 14px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.price-val { font-size: 40px; font-weight: 800; color: var(--dark); margin: 10px 0 4px; }
.price-val span { font-size: 16px; font-weight: 500; color: var(--text-muted); }
.price-card p { color: var(--text-muted); font-size: 14px; margin-bottom: 22px; min-height: 44px; }

/* ─── Contact ─── */
.contact { padding-top: 60px; }
.contact-card {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 60%, #2563eb 100%);
  border-radius: 24px;
  padding: 50px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  color: #fff;
  box-shadow: 0 24px 60px rgba(79, 70, 229, 0.35);
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  top: -120px;
  inset-inline-end: -100px;
}
.contact-info { position: relative; }
.contact-info h2 { font-size: 30px; font-weight: 800; margin-bottom: 12px; }
.contact-info > p { opacity: 0.9; font-size: 15px; margin-bottom: 28px; }
.contact-methods { display: flex; flex-direction: column; gap: 16px; }
.cm-item { display: flex; align-items: center; gap: 14px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 14px; padding: 14px 16px; }
.cm-icon { font-size: 22px; }
.cm-label { font-size: 12px; opacity: 0.75; }
.cm-val { font-weight: 600; font-size: 15px; }

.contact-form { position: relative; background: #fff; border-radius: 18px; padding: 28px; }
.cform .field { margin-bottom: 14px; }
.cform label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.cform input,
.cform select,
.cform textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--text);
  outline: none;
  font-family: var(--font);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cform input:focus,
.cform select:focus,
.cform textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}
.cform textarea { resize: vertical; }
.form-note {
  margin-top: 12px;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  padding: 10px;
  font-size: 13px;
  text-align: center;
}

/* ─────────── Footer ─────────── */
.footer { background: #0f172a; color: #94a3b8; padding: 60px 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand .logo-text { color: #fff; }
.footer-brand p { font-size: 13.5px; margin-top: 14px; max-width: 320px; }
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.fl-col { display: flex; flex-direction: column; gap: 9px; }
.fl-title { color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.fl-col a { color: #94a3b8; text-decoration: none; font-size: 13px; transition: color 0.15s ease; }
.fl-col a:hover { color: #c7d2fe; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 24px;
  font-size: 13px;
  text-align: center;
}

/* ─────────── RTL adjustments ─────────── */
html[dir="rtl"] .step-num,
html[dir="rtl"] .price-pop { transform: translateX(50%); }

/* ─────────── Responsive ─────────── */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 60px; }
  .hero { padding-top: 120px; }
  .hero h1 { font-size: 36px; }
  .contact-card { grid-template-columns: 1fr; padding: 34px; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .btn-nav { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .sec-head h2 { font-size: 28px; }
  .floating-chip { display: none; }
}

/* ═══════════════════════════════════════════════
   ANIMATION SYSTEM
   ═══════════════════════════════════════════════ */

/* ── Scroll progress bar ── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #7c3aed, #ec4899);
  z-index: 200;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.1s linear;
  box-shadow: 0 0 12px rgba(79, 70, 229, 0.4);
}

/* ── Back to top button ── */
.back-to-top {
  position: fixed;
  bottom: 28px;
  inset-inline-end: 28px;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35);
  opacity: 0;
  transform: translateY(16px) scale(0.8);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 150;
}
.back-to-top svg { width: 20px; height: 20px; }
.back-to-top.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 30px rgba(79, 70, 229, 0.45);
}

/* ── Hero entrance animations ── */
.anim-hero {
  opacity: 0;
  animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--d, 0s);
}
.anim-hero-right {
  opacity: 0;
  animation: heroFadeRight 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeRight {
  from { opacity: 0; transform: translateX(40px) scale(0.96); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
html[dir="rtl"] .anim-hero-right {
  animation-name: heroFadeLeft;
}
@keyframes heroFadeLeft {
  from { opacity: 0; transform: translateX(-40px) scale(0.96); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

/* ── Animated gradient text ── */
.grad {
  background-size: 200% 200%;
  animation: gradShift 4s ease infinite;
}
@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ── Animated blobs ── */
.blob-1 { animation: blobFloat 12s ease-in-out infinite; }
.blob-2 { animation: blobFloat 16s ease-in-out infinite reverse; }
.blob-3 { animation: blobFloat 10s ease-in-out infinite 2s; }
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.12); }
  66% { transform: translate(-25px, 20px) scale(0.94); }
}

/* ── Floating chips (richer) ── */
.floating-chip { animation: chipFloat 4.5s ease-in-out infinite; }
.chip-2 { animation-delay: 1.6s; }
@keyframes chipFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(-2deg); }
}

/* ── App window: live data bars ── */
.fake-main .fm-card {
  animation: cardPulse 3.2s ease-in-out infinite;
}
.fake-main .fm-card:nth-child(2) { animation-delay: 0.4s; }
.fake-main .fm-card:nth-child(3) { animation-delay: 0.8s; }
@keyframes cardPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.fm-label {
  background: linear-gradient(90deg, #e2e8f0 0%, #cbd5e1 50%, #e2e8f0 100%);
  background-size: 200% 100%;
  animation: shimmer 2.4s linear infinite;
  width: 70%;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.fm-row:nth-child(2) {
  background-size: 200% 100%;
  animation: rowScan 2.8s ease-in-out infinite;
}
@keyframes rowScan {
  0%, 100% { background-position: 100% 0; }
  50% { background-position: 0% 0; }
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  transform: translateX(-40px);
}
.reveal-right {
  transform: translateX(40px);
}
html[dir="rtl"] .reveal-left { transform: translateX(40px); }
html[dir="rtl"] .reveal-right { transform: translateX(-40px); }
html[dir="rtl"] .reveal-left.in-view,
html[dir="rtl"] .reveal-right.in-view { transform: translateX(0); }
.reveal-scale {
  transform: scale(0.92);
}
.reveal-scale.in-view {
  transform: scale(1);
}

/* ── Section heads ── */
.sec-head h2 {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.sec-head .sec-sub {
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.12s;
}
.sec-head.in-view h2,
.sec-head.in-view .sec-sub {
  opacity: 1;
  transform: translateY(0);
}

/* ── Feature / biz / step cards stagger ── */
.features-grid .feature-card,
.biz-grid .biz-card,
.steps .step,
.price-grid .price-card {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.22s ease,
    border-color 0.22s ease;
  transition-delay: calc(var(--i, 0) * 70ms);
}
.features-grid.in-view .feature-card,
.biz-grid.in-view .biz-card,
.steps.in-view .step,
.price-grid.in-view .price-card {
  opacity: 1;
  transform: translateY(0);
}

/* ── Card hover: icon bounce ── */
.feature-card:hover .f-icon {
  animation: iconBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes iconBounce {
  0% { transform: scale(1) rotate(0deg); }
  40% { transform: scale(1.18) rotate(-6deg); }
  70% { transform: scale(0.95) rotate(4deg); }
  100% { transform: scale(1) rotate(0deg); }
}
.biz-card .biz-icon { display: inline-block; transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.biz-card:hover .biz-icon { transform: scale(1.3) rotate(-8deg); }

/* ── Step number pulse ── */
.step:hover .step-num {
  animation: stepPulse 0.5s ease;
}
@keyframes stepPulse {
  0% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.18); }
  100% { transform: translateX(-50%) scale(1); }
}

/* ── Button shine sweep ── */
.btn-primary, .btn-whatsapp {
  position: relative;
  overflow: hidden;
}
.btn-primary::after, .btn-whatsapp::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-25deg);
  transition: none;
}
.btn-primary:hover::after, .btn-whatsapp:hover::after {
  animation: shineSweep 0.9s ease;
}
@keyframes shineSweep {
  from { left: -100%; }
  to { left: 140%; }
}

/* ── Contact card entry ── */
.contact-card .contact-info,
.contact-card .contact-form {
  opacity: 0;
  transform: translateY(26px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.contact-card.in-view .contact-info { opacity: 1; transform: translateY(0); }
.contact-card.in-view .contact-form { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
.cm-item { transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease; }
.cm-item:hover { transform: translateX(6px); }
html[dir="rtl"] .cm-item:hover { transform: translateX(-6px); }

/* ── Navbar entrance ── */
.navbar {
  animation: navSlideDown 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes navSlideDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Logo subtle glow ── */
.logo-mark {
  animation: logoGlow 3s ease-in-out infinite;
}
@keyframes logoGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.35); }
  50% { box-shadow: 0 0 24px 4px rgba(79, 70, 229, 0.25); }
}

/* ── Nav link underline sweep ── */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-links a:hover::after,
.nav-links a.active-link::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ── Footer links hover ── */
.fl-col a {
  position: relative;
  width: fit-content;
}
.fl-col a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: #c7d2fe;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}
.fl-col a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ── Respect reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .anim-hero, .anim-hero-right,
  .reveal, .sec-head h2, .sec-head .sec-sub,
  .features-grid .feature-card, .biz-grid .biz-card,
  .steps .step, .price-grid .price-card,
  .contact-card .contact-info, .contact-card .contact-form {
    opacity: 1;
    transform: none;
  }
}
