:root {
  --primary: #980075;
  --primary-hover: #7d005f;
  --secondary: #ed881c;
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #111827;
  --text-muted: #4b5563;
  --radius: 12px;
  --shadow: 0 16px 40px rgba( 117, 0, 152, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Cairo", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
}

/* Animations & glass helpers */
@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes fade-up {
  0% { opacity: 0; transform: translateY(16px); filter: blur(4px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.hero-animated {
  position: relative;
  overflow: hidden;
}

.hero-animated .hero-float {
  animation: float-soft 6s ease-in-out infinite;
}

.glass-pane {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 18px;
}

.fade-up {
  animation: fade-up 0.7s ease forwards;
  opacity: 0;
}

.fade-up.delay-1 { animation-delay: 0.1s; }
.fade-up.delay-2 { animation-delay: 0.2s; }
.fade-up.delay-3 { animation-delay: 0.3s; }

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(8px);
  transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
}

.reveal-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1ad741, #0fbf36);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.3s ease;
  backdrop-filter: blur(6px);
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.28);
  background: linear-gradient(135deg, #20e152, #12c93d);
}

.whatsapp-float .pulse-dot {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: pulse-glow 1.8s ease-out infinite;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(26, 215, 65, 0.35); }
  70% { box-shadow: 0 0 0 14px rgba(26, 215, 65, 0); }
  100% { box-shadow: 0 0 0 0 rgba(26, 215, 65, 0); }
}

@media (max-width: 576px) {
  .whatsapp-float {
    bottom: 14px;
    left: 14px;
    width: 54px;
    height: 54px;
    font-size: 24px;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #b3008f);
  color: #fff;
  box-shadow: 0 12px 30px rgba(152, 0, 117, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover), var(--primary));
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: #d1d5db;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(31, 217, 255, 0.15);
  color: var(--secondary);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(242, 242, 241, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e7eb;
}

.navbar .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 600;
  color: var(--text-muted);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  align-items: center;
  padding: 72px 0;
}

.hero-visual {
  background: radial-gradient(circle at 20% 20%, rgba(152, 0, 117, 0.08), transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(31, 217, 255, 0.12), transparent 36%),
    #fff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.hero-title {
  font-family: "Tajawal", "Cairo", sans-serif;
  font-size: clamp(32px, 4vw, 44px);
  margin: 0 0 16px;
  line-height: 1.2;
}

.hero-subtitle {
  color: var(--text-muted);
  margin: 0 0 24px;
  font-size: 18px;
}

.input-group {
  display: flex;
  gap: 8px;
  background: var(--surface);
  border: 1px solid #e5e7eb;
  padding: 8px;
  border-radius: var(--radius);
}

.input-group input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 16px;
  padding: 8px 12px;
  outline: none;
}

.section {
  padding: 72px 0;
}

.section h2 {
  font-family: "Tajawal", "Cairo", sans-serif;
  font-size: 28px;
  margin-bottom: 18px;
}

.section p.lead {
  color: var(--text-muted);
  margin-top: 0;
  margin-bottom: 28px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.card {
  background: #fff;
  border: 1px solid #eef2ff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.05);
}

.card h3 {
  margin: 12px 0 8px;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: var(--text-muted);
}

.theme-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
}

.theme-card {
  position: relative;
  scroll-snap-align: start;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
}

.theme-card img { display: block; width: 100%; }

.theme-card button {
  position: absolute;
  inset: auto 12px 12px 12px;
  width: calc(100% - 24px);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.theme-card:hover button {
  opacity: 1;
  transform: translateY(0);
}

.marquee {
  display: flex;
  gap: 28px;
  animation: marquee 18s linear infinite;
  width: max-content;
}

.marquee-container {
  overflow: hidden;
  border: 1px solid #eef2ff;
  border-radius: 16px;
  padding: 14px;
  background: #fff;
}

.partner {
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--text-muted);
  font-weight: 700;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.pricing-toggle {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 6px;
  gap: 6px;
}

.pricing-toggle button {
  border: none;
  background: transparent;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-muted);
}

.pricing-toggle button.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.08);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.price-card {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 20px;
  position: relative;
  background: #fff;
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.04);
}

.price-card.highlight {
  border-color: var(--primary);
  box-shadow: 0 16px 36px rgba(152, 0, 117, 0.18);
}

.price-card .tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(152, 0, 117, 0.12);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
}

.price {
  font-size: 32px;
  font-weight: 800;
  margin: 10px 0;
}

.checklist {
  display: grid;
  gap: 10px;
  color: var(--text-muted);
}

.table-compare {
  width: 100%;
  border-collapse: collapse;
  margin-top: 28px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.06);
}

.table-compare th,
.table-compare td {
  border: 1px solid #e5e7eb;
  padding: 12px;
  text-align: center;
}

.table-compare th {
  background: var(--surface);
  font-weight: 800;
}

.footer {
  background: linear-gradient(135deg, rgba(125, 0, 95, 0.9), rgba(152, 0, 117, 0.85));
  animation: footerPulse 6s ease-in-out infinite;
  color: #ffffff;
  padding: 40px 0 24px;
  margin-top: 72px;
}

@keyframes footerPulse {
  0%   { background: linear-gradient(135deg, rgba(125, 0, 95, 0.9), rgba(152, 0, 117, 0.85)); }
  50%  { background: linear-gradient(135deg, rgba(152, 0, 117, 0.9), rgba(125, 0, 95, 0.82)); }
  100% { background: linear-gradient(135deg, rgba(125, 0, 95, 0.9), rgba(152, 0, 117, 0.85)); }
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.footer h4,
.footer h5,
.footer h6 { margin: 0 0 12px; color: #fff; }

.footer a { color: #ffd9b3; display: block; margin-bottom: 6px; transition: color 0.25s ease; }

.footer a:hover { color: #ed881c; }

.footer .text-muted { color: rgba(255, 255, 255, 0.75) !important; }

.footer .btn-success { background: #ed881c; border-color: #ed881c; }
.footer .btn-success:hover { background: #d87414; border-color: #d87414; }

.stepper { display: flex; gap: 10px; margin-bottom: 18px; }
.stepper .step {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  text-align: center;
  font-weight: 700;
}
.step.active { border-color: var(--primary); color: var(--primary); }

.form-grid {
  display: grid;
  gap: 14px;
}

.input { width: 100%; padding: 12px 14px; border: 1px solid #e5e7eb; border-radius: 10px; font-size: 16px; }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  align-items: center;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px; border-bottom: 1px solid #e5e7eb; text-align: right; }
.table th { color: var(--text-muted); font-weight: 700; }

.pill { display: inline-flex; padding: 6px 10px; border-radius: 999px; font-weight: 700; }
.pill.green { background: rgba(16,185,129,0.14); color: var(--secondary); }
.pill.blue { background: rgba(79,70,229,0.14); color: var(--primary); }

.checklist-item { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--surface); }
.progress {
  width: 100%; height: 8px; border-radius: 999px; background: #e5e7eb; overflow: hidden;
}
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--secondary)); }

.storefront-hero {
  background: linear-gradient(135deg, rgba(79,70,229,0.08), rgba(16,185,129,0.08));
  padding: 48px 0;
  border-radius: 16px;
}

.bottom-nav {
  position: sticky;
  bottom: 0;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  display: none;
  grid-template-columns: repeat(4, 1fr);
}

.bottom-nav a { text-align: center; padding: 10px 0; font-weight: 700; color: var(--text-muted); }

@media (max-width: 768px) {
  .navbar .inner { height: 64px; }
  .nav-links { display: none; }
  .bottom-nav { display: grid; }
  .table-compare { font-size: 14px; }
}
