/* =============================================
   RestoPlatform v2 — Main Stylesheet (Light Theme)
   Primary: #73299A | Red: #E73639 | Blue: #2C51E0
   ============================================= */

/* ----- Reset & Base ----- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Legacy vars — used by non-hero sections */
  --red:        #E73639;
  --purple:     #73299A;
  --blue:       #2C51E0;
  --bg:         #ffffff;
  --bg-alt:     #f7f8fa;
  --card-bg:    #EBEDF2;
  --badge-bg:   #EDE0F4;
  --text-dark:  #010101;
  --text-body:  #353535;
  --text-muted: #7A7A7A;
  --border:     #e5e7eb;
  --shadow-sm:  0 4px 16px rgba(0,0,0,0.06);
  --shadow-md:  0 13px 33px -10px rgba(0,0,0,0.17);
  --radius-sm:  10px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --transition: 0.25s ease;

  /* Hero/brand vars — from actual site */
  --rp-red:    #e73639;
  --rp-purple: #803d90;
  --rp-blue:   #00b1eb;
  --rp-text:   #111827;
  --rp-muted:  #5b6472;
  --rp-bg:            #ffffff;
  --rp-bg-soft:       #f8fbff;
  --rp-border: rgba(0, 177, 235, 0.12);
  --rp-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  --rp-radius: 24px;
  --font-ui:   "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-ar:   "Cairo", Tahoma, Arial, sans-serif;
  --font-display: "Inter", "Cairo", "Segoe UI", sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Cairo', 'Inter', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text-body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

/* ----- Utility ----- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.gradient-text {
  background: linear-gradient(121deg, var(--red) 27%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section { padding: 80px 0; }
.section-dark { background: var(--bg-alt); }

.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.2;
}
.section-header p { color: var(--text-muted); font-size: 1rem; max-width: 600px; margin: 0 auto; }

.section-label-center {
  display: block;
  text-align: center;
  margin-bottom: 14px;
  font-size: 0.875rem;
  font-weight: 700;
  font-family: 'Tajawal', 'Cairo', sans-serif;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 24px; border-radius: 14px; border: none;
  font-family: var(--font-ui); font-size: 0.875rem; font-weight: 800; letter-spacing: 0;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--rp-red), var(--rp-purple));
  box-shadow: 0 14px 28px rgba(128,61,144,0.24);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 34px rgba(128,61,144,0.28); }

.btn-secondary {
  color: var(--rp-blue);
  background: #ffffff;
  border: 1px solid rgba(0,177,235,0.18);
  box-shadow: 0 8px 20px rgba(0,177,235,0.06);
}
.btn-secondary:hover { transform: translateY(-2px); border-color: rgba(0,177,235,0.35); box-shadow: 0 14px 24px rgba(0,177,235,0.10); }

.btn-outline {
  background: transparent; color: var(--purple);
  border: 1.5px solid var(--purple);
  padding: 10px 22px; font-size: 0.9rem;
}
.btn-outline:hover { background: var(--purple); color: #fff; }

/* ----- Navbar ----- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 12px 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

.nav-container {
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.05rem; color: var(--text-dark);
}
.nav-logo img { height: 36px; width: auto; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 16px; }
.nav-links a:not(.btn) {
  color: var(--text-body); font-size: 0.85rem; font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:not(.btn):hover { color: var(--purple); }
.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--border);
  color: var(--text-dark); font-size: 1.4rem; cursor: pointer;
  border-radius: 8px; padding: 6px 10px; line-height: 1;
  transition: background 0.2s, border-color 0.2s;
}
.nav-toggle:hover { background: #f5f0ff; border-color: var(--purple); }

/* ----- Nav Dropdown ----- */
.nav-dropdown { position: relative; }
.nav-dropdown__toggle {
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 0.85rem; font-weight: 500;
  color: var(--text-body); display: flex; align-items: center; gap: 4px;
  padding: 0; transition: color var(--transition);
}
.nav-dropdown__toggle:hover { color: var(--purple); }
.nav-dropdown__toggle svg { transition: transform 0.2s; }
.nav-dropdown:hover .nav-dropdown__toggle svg,
.nav-dropdown__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-dropdown__menu {
  position: absolute; top: calc(100% + 14px); right: 0;
  background: #fff; border-radius: 14px; padding: 8px 0;
  min-width: 230px;
  box-shadow: 0 16px 44px rgba(0,0,0,0.12);
  border: 1px solid #eaecf5;
  opacity: 0; pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.18s, transform 0.18s;
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown__menu.open {
  opacity: 1; pointer-events: auto; transform: translateY(0);
}
.nav-dropdown__menu a {
  display: block; padding: 10px 20px;
  color: #333 !important; font-size: 0.88rem !important; font-weight: 600 !important;
  text-decoration: none; transition: background 0.15s, color 0.15s !important;
  white-space: nowrap;
}
.nav-dropdown__menu a:hover { background: #f5f0ff; color: var(--purple) !important; }

/* ═══════════════════════════════════════════════════════════
   HERO SECTION — two-column layout matching restoplatform.com
   ═══════════════════════════════════════════════════════════ */
.hero-section {
  position: relative;
  overflow: hidden;
  background: transparent;
  padding: 90px 24px 70px;
}
.hero-section::before {
  content: "";
  position: absolute;
  top: -120px; right: -120px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(231,54,57,0.07), transparent 70%);
  pointer-events: none;
}
.hero-section::after {
  content: "";
  position: absolute;
  bottom: -140px; left: -140px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(0,177,235,0.06), transparent 70%);
  pointer-events: none;
}

.hero-container {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: start;
  position: relative;
  z-index: 2;
}

.hero-copy { max-width: 640px; }

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--rp-blue);
  background: rgba(0,177,235,0.08);
  border: 1px solid rgba(0,177,235,0.14);
  margin-bottom: 22px;
}
.hero-badge::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rp-red), var(--rp-purple));
  display: inline-block;
  flex: 0 0 auto;
}

/* Title */
.hero-title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--rp-text);
}
.hero-title .accent {
  background: linear-gradient(90deg, var(--rp-red), var(--rp-purple), var(--rp-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* Subtitle */
.hero-subtitle {
  margin: 0 0 30px;
  font-size: 1.125rem;
  line-height: 1.9;
  font-weight: 400;
  color: var(--rp-muted);
  max-width: 590px;
}

/* CTA row */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

/* Meta dots */
.hero-meta { display: flex; flex-wrap: wrap; gap: 20px; }
.meta-item {
  display: flex; align-items: center; gap: 10px;
  color: var(--rp-muted); font-size: 0.875rem; font-weight: 600;
}
.meta-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--rp-blue); flex: 0 0 auto;
}
.meta-dot.red    { background: var(--rp-red); }
.meta-dot.purple { background: var(--rp-purple); }

/* Trust bar */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(0,177,235,0.12);
}
.trust-stat { display: flex; flex-direction: column; gap: 4px; }
.trust-number {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 900; line-height: 1;
  background: linear-gradient(90deg, var(--rp-red), var(--rp-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text; color: transparent;
}
.trust-label {
  font-size: 0.8rem; font-weight: 600;
  color: var(--rp-muted); line-height: 1.4;
}

/* App modules title + grid */
.app-modules-title {
  margin: 22px 0 10px;
  font-size: 0.7rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.11em;
  color: var(--rp-muted);
  display: flex; align-items: center; gap: 10px;
}
.app-modules-title::after {
  content: ""; flex: 1; height: 1px;
  background: rgba(0,177,235,0.14);
}

.app-modules {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

/* Hero app-cards (scoped to .app-modules to avoid conflict with apps-section) */
.app-modules .app-card {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 16px; border-radius: 18px;
  background: #ffffff;
  border: 1.5px solid rgba(17,24,39,0.07);
  box-shadow: 0 4px 14px rgba(15,23,42,0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  text-decoration: none; color: inherit;
}
.app-modules .app-card:hover { transform: translateY(-2px); }
.app-modules .app-card.accent-red:hover    { border-color: rgba(231,54,57,0.30);  box-shadow: 0 14px 32px rgba(231,54,57,0.11); }
.app-modules .app-card.accent-purple:hover { border-color: rgba(128,61,144,0.30); box-shadow: 0 14px 32px rgba(128,61,144,0.11); }
.app-modules .app-card.accent-blue:hover   { border-color: rgba(0,177,235,0.30);  box-shadow: 0 14px 32px rgba(0,177,235,0.11); }
.app-modules .app-card.accent-teal:hover   { border-color: rgba(0,170,160,0.30);  box-shadow: 0 14px 32px rgba(0,170,160,0.11); }
.app-modules .app-card.accent-orange:hover { border-color: rgba(217,119,6,0.30);  box-shadow: 0 14px 32px rgba(217,119,6,0.11); }
.app-modules .app-card.accent-green:hover  { border-color: rgba(22,163,74,0.30);  box-shadow: 0 14px 32px rgba(22,163,74,0.11); }
.app-modules .app-card.accent-indigo:hover { border-color: rgba(99,102,241,0.30); box-shadow: 0 14px 32px rgba(99,102,241,0.11); }
.app-modules .app-card.accent-rose:hover   { border-color: rgba(244,63,94,0.30);  box-shadow: 0 14px 32px rgba(244,63,94,0.11); }
.app-modules > .app-card:last-child:nth-child(odd) { grid-column: span 2; }

.app-card-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center; flex: 0 0 auto;
}
.app-card-icon svg {
  width: 22px; height: 22px; display: block; fill: none;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.app-card-icon.red    { background: rgba(231,54,57,0.10);  } .app-card-icon.red    svg { stroke: var(--rp-red); }
.app-card-icon.purple { background: rgba(128,61,144,0.10); } .app-card-icon.purple svg { stroke: var(--rp-purple); }
.app-card-icon.blue   { background: rgba(0,177,235,0.10);  } .app-card-icon.blue   svg { stroke: var(--rp-blue); }
.app-card-icon.teal   { background: rgba(0,170,160,0.10);  } .app-card-icon.teal   svg { stroke: #00aaa0; }
.app-card-icon.orange { background: rgba(255,140,0,0.10);  } .app-card-icon.orange svg { stroke: #d97706; }
.app-card-icon.green  { background: rgba(34,197,94,0.10);  } .app-card-icon.green  svg { stroke: #16a34a; }
.app-card-icon.indigo { background: rgba(99,102,241,0.10); } .app-card-icon.indigo svg { stroke: #6366f1; }
.app-card-icon.rose   { background: rgba(244,63,94,0.10);  } .app-card-icon.rose   svg { stroke: #f43f5e; }

.app-card-body { min-width: 0; }
.app-card-name { margin: 0 0 3px; font-size: 0.88rem; font-weight: 800; color: var(--rp-text); line-height: 1.2; }
.app-card-who  { margin: 0 0 4px; font-size: 0.72rem; font-weight: 700; color: var(--rp-blue); text-transform: uppercase; letter-spacing: 0.06em; }
.app-modules .app-card.accent-red    .app-card-who { color: var(--rp-red); }
.app-modules .app-card.accent-purple .app-card-who { color: var(--rp-purple); }
.app-modules .app-card.accent-teal   .app-card-who { color: #00aaa0; }
.app-modules .app-card.accent-orange .app-card-who { color: #d97706; }
.app-modules .app-card.accent-green  .app-card-who { color: #16a34a; }
.app-modules .app-card.accent-indigo .app-card-who { color: #6366f1; }
.app-modules .app-card.accent-rose   .app-card-who { color: #f43f5e; }
.app-card-desc { margin: 0; font-size: 0.76rem; line-height: 1.5; color: var(--rp-muted); }

/* ── Right visual column ── */
.hero-visual  { position: relative; }

.visual-shell {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid var(--rp-border);
  border-radius: var(--rp-radius);
  box-shadow: var(--rp-shadow);
  padding: 22px;
}

/* Hero image */
.visual-img-wrap {
  position: relative; width: 100%;
  aspect-ratio: 1008 / 1049; height: auto;
  border-radius: 18px; overflow: hidden;
  margin-bottom: 18px; background: #eef5fb;
}
.visual-img-wrap img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  transform: scale(1.00); transition: transform 8s ease;
}
.visual-img-wrap:hover img { transform: scale(0.97); }
.visual-img-wrap::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(231,54,57,0.12) 0%, transparent 48%, rgba(0,177,235,0.10) 100%);
  pointer-events: none;
}

/* ── Floating overlay cards ── */
.fc-row { display: contents; }

.floating-card {
  position: absolute; z-index: 3;
  background: #ffffff;
  border: 1px solid rgba(17,24,39,0.07);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(17,24,39,0.10);
  min-width: 168px; max-width: 230px;
  overflow: hidden; cursor: pointer; outline: none;
  transition: box-shadow 0.25s ease;
}
.floating-card:hover,
.floating-card:focus-within { box-shadow: 0 20px 48px rgba(17,24,39,0.16); }
.floating-card.top    { top: -18px;  right: -16px; }
.floating-card.bottom { bottom: -20px; left: -18px; }

.fc-tab {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; position: relative;
}
.fc-tab::before {
  content: ""; position: absolute;
  top: 8px; bottom: 8px; left: 0;
  width: 3px; border-radius: 0 3px 3px 0;
}
.floating-card.top    .fc-tab::before { background: linear-gradient(180deg, var(--rp-purple), var(--rp-blue)); }
.floating-card.bottom .fc-tab::before { background: linear-gradient(180deg, var(--rp-red), var(--rp-purple)); }

.fc-tab-icon {
  width: 28px; height: 28px; border-radius: 9px;
  display: grid; place-items: center; flex: 0 0 auto;
  transition: transform 0.2s ease;
}
.floating-card:hover .fc-tab-icon { transform: scale(1.08); }
.fc-tab-icon svg { width: 14px; height: 14px; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.fc-tab-icon.ai   { background: rgba(128,61,144,0.10); } .fc-tab-icon.ai   svg { stroke: var(--rp-purple); }
.fc-tab-icon.apps { background: rgba(0,177,235,0.10);  } .fc-tab-icon.apps svg { stroke: var(--rp-blue); }

.fc-tab-label { font-size: 10.5px; font-weight: 800; color: var(--rp-muted); line-height: 1.25; flex: 1; }

.fc-caret {
  display: flex; align-items: center;
  color: rgba(17,24,39,0.25);
  transition: transform 0.25s ease, color 0.2s ease;
  flex: 0 0 auto;
}
.fc-caret svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.floating-card.top    .fc-caret svg { transform: rotate(0deg); transition: transform 0.25s ease; }
.floating-card.top:hover .fc-caret svg    { transform: rotate(180deg); }
.floating-card.bottom .fc-caret svg { transform: rotate(180deg); transition: transform 0.25s ease; }
.floating-card.bottom:hover .fc-caret svg { transform: rotate(0deg); }
.floating-card:hover .fc-caret { color: rgba(17,24,39,0.55); }

.fc-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.28s ease-in-out, opacity 0.22s ease;
  opacity: 0; padding: 0 14px;
}
.floating-card:hover .fc-body,
.floating-card:focus-within .fc-body { max-height: 200px; opacity: 1; }
.fc-body-inner { padding-bottom: 14px; }

.fc-divider { height: 1px; background: rgba(17,24,39,0.06); margin: 0 14px; opacity: 0; transition: opacity 0.22s ease; }
.floating-card:hover .fc-divider,
.floating-card:focus-within .fc-divider { opacity: 1; }

.fc-value { font-size: 14px; font-weight: 900; color: #111827; line-height: 1.3; margin-bottom: 8px; margin-top: 10px; }
.fc-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.fc-chip { font-size: 10.5px; font-weight: 800; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.fc-chip.red    { background: rgba(231,54,57,0.09);  color: var(--rp-red); }
.fc-chip.purple { background: rgba(128,61,144,0.09); color: var(--rp-purple); }
.fc-chip.blue   { background: rgba(0,177,235,0.09);  color: var(--rp-blue); }
.fc-chip.teal   { background: rgba(0,170,160,0.09);  color: #00aaa0; }

/* ── Dashboard card ── */
.dashboard-card {
  background: #ffffff;
  border: 1px solid rgba(128,61,144,0.10);
  border-radius: 20px; padding: 18px;
  box-shadow: 0 16px 40px rgba(17,24,39,0.06);
}
.top-bar {
  display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
  margin-bottom: 18px;
}
.brand-mini {
  display: flex; align-items: center; gap: 10px; font-weight: 800; color: #111827;
}
.brand-mini .brand-logo-img {
  height: 28px; width: auto; max-width: 120px;
  object-fit: contain; display: block; flex-shrink: 0;
}
.status-pill {
  padding: 8px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 800;
  color: var(--rp-blue); background: rgba(0,177,235,0.08);
  white-space: nowrap;
}
.pulse-dot {
  display: inline-block; width: 8px; height: 8px;
  border-radius: 50%; background: #22c55e;
  position: relative; margin-inline-end: 5px;
  vertical-align: middle; flex-shrink: 0;
}
.pulse-dot::after {
  content: ""; position: absolute; inset: -3px;
  border-radius: 50%; background: rgba(34,197,94,0.45);
  animation: pulse-ring 1.8s ease-out infinite;
}
@keyframes pulse-ring {
  0%   { transform: scale(0.85); opacity: 0.9; }
  60%  { transform: scale(1.5);  opacity: 0; }
  100% { transform: scale(0.85); opacity: 0; }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin-bottom: 16px;
}
.stat-box {
  border-radius: 16px; padding: 16px; color: #ffffff;
  min-height: 110px;
  display: flex; flex-direction: column;
  justify-content: space-between;
  position: relative; overflow: hidden;
}
.stat-box::after {
  content: ""; position: absolute; bottom: -18px; right: -14px;
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255,255,255,0.10); pointer-events: none;
}
.stat-box.red    { background: linear-gradient(135deg, var(--rp-red),    #f35c5f); }
.stat-box.purple { background: linear-gradient(135deg, var(--rp-purple),  #9b69aa); }
.stat-box.blue   { background: linear-gradient(135deg, var(--rp-blue),   #39c8ff); }

.stat-icon { line-height: 1; margin-bottom: 4px; opacity: 0.95; display: flex; }
.stat-icon svg { width: 26px; height: 26px; stroke: rgba(255,255,255,0.95); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; opacity: 0.88; font-weight: 800; }
.stat-value { font-size: 1.75rem; line-height: 1; font-weight: 900; margin: 4px 0 2px; }
.stat-sub   { font-size: 10.5px; opacity: 0.80; font-weight: 600; line-height: 1.3; }

.module-list { display: grid; gap: 10px; margin-top: 14px; }
.module-item {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 13px 14px; border-radius: 16px;
  background: #f8fafd; border: 1px solid rgba(17,24,39,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative; overflow: hidden;
}
.module-item::before {
  content: ""; position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 3px; border-radius: 3px 0 0 3px;
}
.module-item.mod-red::before    { background: var(--rp-red); }
.module-item.mod-purple::before { background: var(--rp-purple); }
.module-item.mod-blue::before   { background: var(--rp-blue); }
.module-item:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(17,24,39,0.07); }

.module-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.module-icon {
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center; flex: 0 0 auto;
}
.module-icon svg { width: 20px; height: 20px; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.module-icon.red    { background: rgba(231,54,57,0.10);  } .module-icon.red    svg { stroke: var(--rp-red); }
.module-icon.purple { background: rgba(128,61,144,0.10); } .module-icon.purple svg { stroke: var(--rp-purple); }
.module-icon.blue   { background: rgba(0,177,235,0.10);  } .module-icon.blue   svg { stroke: var(--rp-blue); }
.module-title { margin: 0; font-size: 0.92rem; line-height: 1.25; font-weight: 800; color: var(--rp-text); }
.module-text  { margin: 3px 0 0; font-size: 0.78rem; line-height: 1.55; color: var(--rp-muted); }
.module-tag {
  white-space: nowrap; font-size: 11.5px; font-weight: 800;
  padding: 6px 10px; border-radius: 999px; flex: 0 0 auto;
}
.module-tag.red    { color: var(--rp-red);    background: rgba(231,54,57,0.09);  }
.module-tag.purple { color: var(--rp-purple); background: rgba(128,61,144,0.09); }
.module-tag.blue   { color: var(--rp-blue);   background: rgba(0,177,235,0.09);  }

/* ── Entrance animations ── */
@keyframes rp-rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-badge        { animation: rp-rise 0.65s cubic-bezier(0.22,1,0.36,1)   0ms both; }
.hero-title        { animation: rp-rise 0.65s cubic-bezier(0.22,1,0.36,1)  80ms both; }
.hero-subtitle     { animation: rp-rise 0.65s cubic-bezier(0.22,1,0.36,1) 160ms both; }
.hero-actions      { animation: rp-rise 0.65s cubic-bezier(0.22,1,0.36,1) 240ms both; }
.hero-meta         { animation: rp-rise 0.65s cubic-bezier(0.22,1,0.36,1) 320ms both; }
.trust-bar         { animation: rp-rise 0.65s cubic-bezier(0.22,1,0.36,1) 400ms both; }
.app-modules-title { animation: rp-rise 0.65s cubic-bezier(0.22,1,0.36,1) 480ms both; }
.app-modules       { animation: rp-rise 0.65s cubic-bezier(0.22,1,0.36,1) 540ms both; }
.visual-shell      { animation: rp-rise 0.70s cubic-bezier(0.22,1,0.36,1)  80ms both; }
@media (prefers-reduced-motion: reduce) {
  .hero-badge, .hero-title, .hero-subtitle, .hero-actions, .hero-meta,
  .trust-bar, .app-modules-title, .app-modules, .visual-shell {
    animation: none !important; opacity: 1 !important; transform: none !important;
  }
}

/* ── Hero responsive breakpoints ── */
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; gap: 36px; }
  .hero-copy      { max-width: 100%; }
  .hero-visual    { max-width: 720px; margin-inline: auto; }
  .hero-section   { padding: 80px 28px 64px; }
  .app-modules    { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hero-section { padding: 72px 22px 56px; }
  .stats-grid   { grid-template-columns: repeat(2, 1fr); }
  .stats-grid .stat-box:last-child { grid-column: span 2; }
  .trust-bar    { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 640px) {
  .hero-section   { padding: 64px 16px 48px; }
  .hero-title     { font-size: clamp(2rem, 9vw, 2.8rem); }
  .hero-subtitle  { font-size: 0.97rem; }
  .hero-actions   { flex-direction: column; align-items: stretch; }
  .stats-grid     { grid-template-columns: 1fr; }
  .stats-grid .stat-box:last-child { grid-column: span 1; }
  .fc-row         { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
  .floating-card  { position: static; min-width: 0; max-width: 100%; }
  .floating-card .fc-body    { max-height: 200px !important; opacity: 1 !important; }
  .floating-card .fc-divider { opacity: 1 !important; }
  .floating-card .fc-caret   { display: none; }
  .app-modules    { grid-template-columns: 1fr; }
  .trust-bar      { grid-template-columns: repeat(2, 1fr); }
  .module-item    { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (max-width: 480px) {
  .hero-section   { padding: 56px 14px 44px; }
  .hero-title     { font-size: clamp(1.75rem, 10vw, 2.4rem); }
  .trust-number   { font-size: clamp(1.3rem, 6vw, 1.7rem); }
  .stat-value     { font-size: 1.45rem; }
  .module-icon    { width: 36px; height: 36px; }
  .app-card-icon  { width: 40px; height: 40px; }
}

/* ----- Live Stats ----- */
.live-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.live-stat {
  background: var(--card-bg); border-radius: var(--radius-lg);
  padding: 48px 36px; text-align: center;
  box-shadow: var(--shadow-sm);
}
.live-stat strong { display: block; font-size: 3.2rem; font-weight: 900; color: var(--purple); margin-bottom: 8px; }
.live-stat.accent-blue strong { color: var(--blue); }
.live-stat.accent-purple strong { color: var(--purple); }
.live-stat span { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.live-stat p { color: var(--text-muted); font-size: 0.9rem; }

/* ═══════════════════════════════════════════════════════════
   SOCIAL FEATURES SECTION
   ═══════════════════════════════════════════════════════════ */
.social-section {
  background: transparent;
  border-top: 1px solid rgba(0,177,235,0.10);
  padding: 80px 24px 90px;
  position: relative; overflow: hidden;
}
.social-section::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(128,61,144,0.05) 0%, transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(0,177,235,0.05) 0%, transparent 50%);
  pointer-events: none;
}
.social-container { max-width: 1240px; margin: 0 auto; position: relative; z-index: 1; }
.social-header { text-align: center; margin-bottom: 52px; }
.social-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--rp-blue);
  background: rgba(0,177,235,0.08);
  border: 1px solid rgba(0,177,235,0.16);
  border-radius: 999px; padding: 7px 16px; margin-bottom: 18px;
}
.social-eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(135deg, var(--rp-red), var(--rp-blue));
  display: inline-block;
}
.social-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900; line-height: 1.15; letter-spacing: -0.03em;
  color: var(--rp-text);
}
.social-title .accent {
  background: linear-gradient(90deg, var(--rp-red), var(--rp-purple), var(--rp-blue));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.social-sub {
  margin: 0; font-size: 1.05rem; color: var(--rp-muted);
  max-width: 520px; margin-inline: auto; line-height: 1.75;
}

.social-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 1024px) { .social-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .social-grid { grid-template-columns: 1fr; } }

.sf-card {
  background: #ffffff;
  border: 1px solid rgba(17,24,39,0.07);
  border-radius: 24px; overflow: hidden;
  box-shadow: 0 8px 32px rgba(15,23,42,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex; flex-direction: column;
}
.sf-card:hover { transform: translateY(-4px); box-shadow: 0 20px 52px rgba(15,23,42,0.11); }

.sf-card-visual {
  padding: 32px 28px 24px; position: relative;
  display: flex; flex-direction: column; gap: 20px;
}
.sf-card-visual.grad-group  { background: linear-gradient(140deg, #fff5f5 0%, #fdf0ff 100%); }
.sf-card-visual.grad-invite { background: linear-gradient(140deg, #f0f9ff 0%, #f5f0ff 100%); }
.sf-card-visual.grad-qr     { background: linear-gradient(140deg, #f0fff8 0%, #f0f9ff 100%); }

.sf-icon-wrap {
  width: 56px; height: 56px; border-radius: 18px;
  display: grid; place-items: center; flex: 0 0 auto;
}
.sf-icon-wrap svg { width: 26px; height: 26px; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sf-icon-wrap.group  { background: rgba(231,54,57,0.12);  } .sf-icon-wrap.group  svg { stroke: var(--rp-red); }
.sf-icon-wrap.invite { background: rgba(128,61,144,0.12); } .sf-icon-wrap.invite svg { stroke: var(--rp-purple); }
.sf-icon-wrap.qr     { background: rgba(0,177,235,0.12);  } .sf-icon-wrap.qr     svg { stroke: var(--rp-blue); }

.sf-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 800; padding: 4px 10px;
  border-radius: 999px; width: fit-content;
}
.sf-badge.group  { background: rgba(231,54,57,0.10);  color: var(--rp-red); }
.sf-badge.invite { background: rgba(128,61,144,0.10); color: var(--rp-purple); }
.sf-badge.qr     { background: rgba(0,177,235,0.10);  color: var(--rp-blue); }

.sf-steps { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sf-step  { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--rp-muted); }
.sf-step-num {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 900; color: #fff; flex: 0 0 auto; line-height: 1;
}
.sf-step-num.red    { background: var(--rp-red); }
.sf-step-num.purple { background: var(--rp-purple); }
.sf-step-num.blue   { background: var(--rp-blue); }
.sf-step-arrow { color: rgba(17,24,39,0.18); font-size: 13px; line-height: 1; }

.sf-card-body {
  padding: 22px 28px 28px; flex: 1;
  display: flex; flex-direction: column; gap: 10px;
}
.sf-card-title {
  margin: 0; font-size: 1.15rem; font-weight: 900;
  color: var(--rp-text); line-height: 1.25;
  font-family: var(--font-display);
}
.sf-card-desc { margin: 0; font-size: 0.9rem; line-height: 1.7; color: var(--rp-muted); }
.sf-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.sf-tag { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #f3f4f6; color: var(--rp-muted); }

/* ----- Featured Services Section ----- */
.feat-services-section { background: var(--bg); }
.feat-services-header { text-align: center; margin-bottom: 56px; }
.feat-services-eyebrow {
  display: inline-block;
  background: linear-gradient(135deg, rgba(128,61,144,0.12), rgba(0,177,235,0.10));
  color: var(--rp-purple);
  font-size: 13px; font-weight: 700; letter-spacing: 0;
  padding: 6px 18px; border-radius: 999px;
  margin-bottom: 14px;
}
.feat-services-title {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 800; line-height: 1.2;
  color: var(--text-heading);
  margin: 0;
}

/* 6-card grid */
.feat-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}
@media (max-width: 900px) { .feat-services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feat-services-grid { grid-template-columns: 1fr; } }

.feat-service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 12px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feat-service-card:hover {
  box-shadow: 0 12px 32px rgba(128,61,144,0.10);
  transform: translateY(-3px);
}
.feat-service-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(128,61,144,0.10), rgba(0,177,235,0.08));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.feat-service-icon svg { width: 24px; height: 24px; stroke: var(--rp-purple); }
.feat-service-card h3 { font-size: 1rem; font-weight: 700; color: var(--text-heading); margin: 0; }
.feat-service-card ul { margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.feat-service-card ul li {
  font-size: 0.875rem; color: var(--text-body);
  padding-inline-start: 16px;
  position: relative;
}
.feat-service-card ul li::before {
  content: '–';
  position: absolute; inset-inline-start: 0;
  color: var(--rp-purple);
}
.feat-service-link {
  font-size: 0.8rem; font-weight: 700;
  color: var(--rp-purple);
  margin-top: 4px;
  transition: color 0.15s;
}
.feat-service-link:hover { color: var(--rp-blue); }

.feat-services-cta { text-align: center; margin-top: 8px; }

/* ----- Apps Section ----- */
/* Featured horizontal card */
.app-featured-card {
  display: flex; align-items: center; gap: 28px;
  background: linear-gradient(to left, rgba(0,177,235,0.05), #fff, rgba(231,54,57,0.05));
  border: 2px solid var(--rp-purple);
  border-radius: var(--radius-lg); padding: 28px 32px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.app-featured-card:hover { box-shadow: 0 8px 32px rgba(128,61,144,0.18); transform: translateY(-4px); }
.app-feat-icon { flex-shrink: 0; }
.app-feat-icon img {
  width: 96px; height: 96px; object-fit: cover;
  border-radius: 18px; display: block;
  box-shadow: 0 0 0 3px rgba(128,61,144,0.2);
}
.app-feat-body { flex: 1; min-width: 0; }
.app-feat-body h3 {
  font-size: 1.6rem; font-weight: 800; margin-bottom: 2px;
  background: linear-gradient(121deg, var(--rp-red) 0%, var(--rp-purple) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.app-feat-sub { font-size: 0.82rem; color: var(--text-muted); display: block; margin-bottom: 8px; }
.app-feat-body p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; margin: 0; }
.app-feat-stores { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
/* 4-column grid */
.apps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
.apps-grid .app-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: linear-gradient(145deg, #fff, #f8fafc, #f1f5f9);
  border: 2px solid var(--rp-purple);
  border-radius: var(--radius-lg); padding: 28px 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.apps-grid .app-card:hover { box-shadow: 0 8px 32px rgba(128,61,144,0.18); transform: translateY(-10px); }
.app-img-wrap {
  width: 80px; height: 80px; border-radius: 16px; overflow: hidden; flex-shrink: 0;
  margin-bottom: 16px; box-shadow: 0 0 0 2px rgba(128,61,144,0.2);
}
.app-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.app-card-name {
  font-size: 1.05rem; font-weight: 800; margin-bottom: 10px;
  background: linear-gradient(121deg, var(--rp-red) 0%, var(--rp-purple) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.app-card-desc { color: var(--text-muted); font-size: 0.87rem; line-height: 1.55; margin-bottom: 20px; flex: 1; }
.app-card-stores { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-top: auto; }
.store-badge { height: 36px; display: block; margin: 0 auto; transition: transform var(--transition); }
.store-badge:hover { transform: scale(1.05); }
.apps-cta { text-align: center; }
@media (max-width: 1024px) { .apps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .app-featured-card { flex-direction: column; text-align: center; } .app-feat-stores { flex-direction: row; justify-content: center; } }
@media (max-width: 480px)  { .apps-grid { grid-template-columns: 1fr 1fr; gap: 14px; } }
@media (max-width: 380px)  { .apps-grid { grid-template-columns: 1fr; } }

/* ----- Social CTA Section ----- */
.social-cta-section { background: #f5f5fb; }
.social-cta-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.social-cta-text { text-align: right; }
.social-cta-play {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--rp-purple); box-shadow: 0 6px 18px rgba(128,61,144,0.35);
  margin-bottom: 20px; transition: transform var(--transition), box-shadow var(--transition);
}
.social-cta-play:hover { transform: scale(1.1); box-shadow: 0 8px 24px rgba(128,61,144,0.45); }
.social-cta-play svg {
  width: 20px; height: 20px; fill: #fff; stroke: none;
  margin-right: -2px;
}
.social-cta-text h2 {
  font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800;
  color: var(--text-dark); line-height: 1.4; margin-bottom: 16px;
}
.social-cta-text p { color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }
.social-cta-link {
  font-size: 0.95rem; font-weight: 700;
  color: var(--rp-purple); border-bottom: 2px solid var(--rp-purple);
  padding-bottom: 2px; transition: color var(--transition), border-color var(--transition);
}
.social-cta-link:hover { color: var(--rp-blue); border-color: var(--rp-blue); }
.social-cta-img { display: flex; align-items: center; justify-content: center; }
.social-cta-img img { max-width: 100%; height: auto; }
@media (max-width: 768px) {
  .social-cta-grid { grid-template-columns: 1fr; gap: 32px; }
  .social-cta-img { order: -1; }
  .social-cta-img img { max-width: 280px; }
}
/* Scroll-entrance animations */
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(48px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-48px); }
  to   { opacity: 1; transform: translateX(0); }
}
.anim-fade-right,
.anim-fade-left {
  opacity: 0;
  transition: none;
}
.anim-fade-right.is-visible {
  animation: fadeInRight 0.7s cubic-bezier(0.22,1,0.36,1) both;
}
.anim-fade-left.is-visible {
  animation: fadeInLeft 0.7s cubic-bezier(0.22,1,0.36,1) both;
}
.anim-delay-500 { animation-delay: 0.5s !important; }
@media (prefers-reduced-motion: reduce) {
  .anim-fade-right, .anim-fade-left { opacity: 1 !important; animation: none !important; }
}

/* ----- Workflow Section ----- */
@keyframes fadeFromUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim-fade-up { opacity: 0; }
.anim-fade-up.is-visible { animation: fadeFromUp 0.65s cubic-bezier(0.22,1,0.36,1) both; }
@media (prefers-reduced-motion: reduce) { .anim-fade-up { opacity: 1 !important; animation: none !important; } }
.wf-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.wf-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 24px;
  text-align: center; box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
}
.wf-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.wf-icon {
  width: 72px; height: 72px; border-radius: 20px;
  background: color-mix(in srgb, var(--wc, var(--rp-purple)) 15%, transparent);
  border: 2px solid color-mix(in srgb, var(--wc, var(--rp-purple)) 30%, transparent);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  transition: background var(--transition), transform var(--transition);
}
.wf-card:hover .wf-icon {
  background: color-mix(in srgb, var(--wc, var(--rp-purple)) 25%, transparent);
  transform: scale(1.08);
}
.wf-icon svg { width: 32px; height: 32px; stroke: var(--wc, var(--rp-purple)); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wf-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.wf-body h3 a { color: var(--text-dark); transition: color var(--transition); }
.wf-body h3 a:hover { color: var(--rp-purple); }
.wf-body p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 16px; }
.wf-more {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--rp-purple); color: #fff; font-size: 1.2rem; font-weight: 700;
  transition: background var(--transition), transform var(--transition);
}
.wf-more:hover { background: var(--rp-blue); transform: scale(1.1); }
@media (max-width: 900px) { .wf-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .wf-grid { grid-template-columns: 1fr; } }

/* ----- Setup Steps (Timeline) ----- */
.tl-wrap { position: relative; padding: 40px 0 0; margin-bottom: 36px; }
/* Colored bar */
.tl-bar {
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: 56px; border-radius: 10px; overflow: hidden;
}
.tl-seg {
  display: flex; align-items: center; justify-content: center;
  transition: filter 0.2s;
}
.tl-seg:hover { filter: brightness(1.1); }
.tl-seg span { color: #fff; font-weight: 700; font-size: 0.82rem; text-align: center; padding: 0 6px; }
/* Numbered badges */
.tl-badges {
  position: absolute; top: 0; right: 0; left: 0;
  display: grid; grid-template-columns: repeat(5, 1fr);
  pointer-events: none;
}
.tl-badge {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
  color: #fff; font-weight: 800; font-size: 0.9rem;
  border: 2px solid transparent; box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}
.tl-top    { align-self: start; margin-top: -8px; }
.tl-bottom { align-self: end; margin-top: 64px; }
/* Detail cards */
.tl-cards {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
  margin-top: 52px;
}
.tl-card {
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(from var(--c) r g b / 0.15);
  border-top: 3px solid var(--c);
  border-radius: var(--radius-md); padding: 20px 16px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition);
}
.tl-card:hover { border-color: var(--c); }
.tl-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--c); margin-bottom: 8px; }
.tl-card p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; margin: 0; }
.tl-cta { text-align: center; margin-top: 32px; --c: #e73639; }
.setup-btn {
  display: inline-block;
  background: var(--c);
  color: #fff; font-size: 0.95rem; font-weight: 700;
  padding: 12px 28px; border-radius: 999px;
  box-shadow: 0 4px 16px rgba(231,54,57,0.35);
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
}
.setup-btn:hover { opacity: 0.92; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(231,54,57,0.45); }
@media (max-width: 900px) {
  .tl-bar { grid-template-columns: 1fr; height: auto; border-radius: var(--radius-md); }
  .tl-seg { height: 44px; }
  .tl-badges { display: none; }
  .tl-wrap { padding-top: 0; }
  .tl-cards { grid-template-columns: repeat(2, 1fr); margin-top: 20px; }
}
@media (max-width: 480px) { .tl-cards { grid-template-columns: 1fr; } }

/* ----- Clients (ourclients plugin replica) ----- */
.rp-clients {
  --rp-red:    #E73639;
  --rp-violet: #73299A;
  --rp-blue:   #2C51E0;
  background: transparent; padding: 0;
}
.rp-head { text-align: center; margin-bottom: 28px; }
.rp-title {
  margin: 0 0 8px;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 700;
  background: linear-gradient(121deg, var(--rp-red) 27%, var(--rp-violet) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rp-sub { margin: 0; color: var(--text-muted); font-size: 14px; }
.rp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.rp-card-wrapper { position: relative; display: flex; flex-direction: column; }
.rp-order-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 18px; margin-top: 10px;
  background: var(--rp-red);
  color: #fff !important; font-size: 12px; font-weight: 700;
  border-radius: 999px; text-decoration: none;
  box-shadow: 0 3px 10px rgba(231,54,57,0.2);
  transition: all 0.3s ease; white-space: nowrap; align-self: center;
}
.rp-order-btn:hover { background: #c82d30; transform: translateY(-2px); }
.rp-card {
  position: relative; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start;
  min-height: 200px; background: var(--card-bg);
  border-radius: var(--radius-lg); padding: 20px 16px;
  text-decoration: none; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform .2s ease, box-shadow .2s ease;
}
.rp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.rp-logo-wrap {
  width: 140px; height: 100px;
  display: grid; place-items: center;
  border-radius: 14px; background: #ffffff;
  overflow: hidden; margin-bottom: 12px;
}
.rp-logo { max-width: 100%; max-height: 100%; object-fit: contain; }
.rp-logo-fallback {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  font-weight: 800; font-size: 20px; color: #fff;
  background: linear-gradient(135deg, var(--rp-red), var(--rp-violet)); user-select: none;
}
.rp-name { color: var(--text-dark); font-weight: 700; font-size: 15px; text-align: center; margin-bottom: 8px; line-height: 1.3; transition: color 0.2s ease; }
.rp-card:hover .rp-name { color: var(--purple); }
.rp-cta { font-size: 12px; padding: 6px 10px; border-radius: 999px; color: var(--purple); background: var(--badge-bg); font-weight: 600; }

/* ----- Clients Grid ----- */
.rp-clients-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.rp-clients-grid .rp-card-wrapper {
  display: flex;
  flex-direction: column;
}
@media (max-width: 1100px) { .rp-clients-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 860px)  { .rp-clients-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px)  { .rp-clients-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 380px)  { .rp-clients-grid { grid-template-columns: repeat(2, 1fr); } }

/* ----- Testimonials ----- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testi-grid--centered {
  grid-template-columns: repeat(2, minmax(0, 480px));
  justify-content: center;
}
.testi-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.testi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.testi-top {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testi-photo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
}
.testi-stars {
  color: #f5a623;
  font-size: 16px;
  letter-spacing: 1px;
}
.testi-name {
  display: block;
  font-size: 15px;
  color: var(--text-dark);
  margin-bottom: 2px;
}
.testi-date {
  font-size: 12px;
  color: var(--text-muted);
}
.testi-highlight {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-dark);
}
.testi-body {
  color: var(--text-body);
  font-size: 14px;
  line-height: 1.75;
  flex: 1;
}
.testi-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 4px;
}
@media (max-width: 600px) {
  .testi-grid--centered { grid-template-columns: 1fr; }
}

/* ----- Services Two-Column Section ----- */
.services-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.services-eyebrow { display: inline-block; font-size: 13px; font-weight: 700; color: var(--rp-purple); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.services-heading { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: var(--text-dark); margin-bottom: 16px; line-height: 1.35; }
.services-desc { color: var(--text-muted); line-height: 1.7; margin-bottom: 28px; }
.s2-feature-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 28px; }
.s2-feature-item:last-child { margin-bottom: 0; }
.s2-feature-icon { flex-shrink: 0; width: 44px; height: 44px; background: rgba(128,61,144,0.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.s2-feature-icon svg { width: 22px; height: 22px; stroke: var(--rp-purple); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.s2-feature-text h3 { font-size: 15px; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.s2-feature-text p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* ----- FAQ ----- */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.faq-item summary {
  padding: 20px 24px; font-size: 0.98rem; font-weight: 600;
  cursor: pointer; list-style: none; color: var(--text-dark);
  display: flex; justify-content: space-between; align-items: center;
  transition: background var(--transition);
}
.faq-item summary:hover { background: var(--bg-alt); }
.faq-item summary::after { content: '+'; font-size: 1.2rem; color: var(--purple); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 24px 20px; color: var(--text-muted); font-size: 0.92rem; line-height: 1.7; }

/* ----- Footer ----- */
.footer { background: #F2F5FF; border-top: 1px solid rgba(27,29,32,0.08); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.4fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { color: #34374E; font-size: 0.88rem; margin-top: 12px; line-height: 1.7; }
.footer-copy-inline { margin-top: 8px; font-size: 0.85rem; color: #E73639 !important; }
.footer-logo-link { display: inline-block; margin-bottom: 14px; }
.footer-logo { width: 130px; height: auto; object-fit: contain; }
.footer-socials { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.footer-socials a { width: 36px; height: 36px; border-radius: 50%; background: rgba(27,29,32,0.08); color: #34374E; display: flex; align-items: center; justify-content: center; transition: background 0.2s, color 0.2s; }
.footer-socials a:hover { background: var(--red); color: #fff; }
.footer-apps { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.footer-badge { display: inline-flex; align-items: center; gap: 7px; background: rgba(27,29,32,0.06); color: #34374E; border: 1px solid rgba(27,29,32,0.12); border-radius: 8px; padding: 7px 14px; font-size: 13px; font-weight: 600; transition: background 0.2s, color 0.2s; text-decoration: none; }
.footer-badge:hover { background: rgba(27,29,32,0.12); color: #16171A; }
.footer-links h4 { font-size: 0.88rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; color: #16171A; }
.footer-links a { display: block; color: #34374E; font-size: 0.88rem; padding: 5px 0; transition: color var(--transition); line-height: 1.5; }
.footer-links a:hover { color: #16171A; }
.footer-post-link { display: block; color: #34374E; font-size: 0.84rem; padding: 7px 0; line-height: 1.5; border-bottom: 1px solid rgba(27,29,32,0.08); transition: color 0.2s; text-decoration: none; }
.footer-post-link:hover { color: #16171A; }
.footer-post-date { display: block; font-size: 11px; color: var(--red); margin-bottom: 3px; }
.footer-bottom { background: rgba(27,29,32,0.09); margin-top: 0; padding: 15px 0; text-align: center; color: #34374E; font-size: 0.85rem; }
.footer-bottom a { color: var(--blue); }

/* ----- WhatsApp Float ----- */
.wa-float {
  position: fixed;
  bottom: 100px;
  right: 28px;
  z-index: 9999;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.6);
}
.wa-float__tooltip {
  position: absolute;
  right: 68px;
  background: #1a1a1a;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(6px);
  transition: opacity 0.2s, transform 0.2s;
}
.wa-float__tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: #1a1a1a;
}
.wa-float:hover .wa-float__tooltip {
  opacity: 1;
  transform: translateX(0);
}
/* pulse ring */
.wa-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  animation: waPulse 2s ease-out infinite;
  z-index: -1;
}
@keyframes waPulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  70%  { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ----- Scroll animations ----- */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ----- Responsive ----- */

/* Alternate section background (no dedicated color yet) */
.section-alt { background: var(--bg-alt); }

/* Navbar active link */
.nav-links a.active { color: var(--purple); font-weight: 700; }

/* ─────────────────────────────────────────────────────────────────────────
   Demo Page
   ───────────────────────────────────────────────────────────────────────── */

/* Hero extras */
.demo-hero { padding-bottom: 60px; }
.demo-hero__badge {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 16px;
  border-radius: 50px;
  margin-bottom: 18px;
}
.demo-hero__sub {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  margin-top: 14px;
  font-weight: 400;
}

/* ── Steps section ──────────────────────────────────────────────────────── */
.demo-steps { padding: 80px 0 60px; }

.demo-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 80px;
}
.demo-step--rev { direction: ltr; }
.demo-step--rev .demo-step__body { direction: rtl; }

.demo-step__img-wrap {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  background: var(--card-bg);
}
.demo-step__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.demo-step__num {
  font-size: 3.5rem;
  font-weight: 900;
  font-family: 'Inter', monospace;
  color: var(--purple);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.04em;
}
.demo-step__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.35;
}
.demo-step__body > p {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 16px;
}
.demo-step__list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.demo-step__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-body);
}
.demo-step__list li::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--purple);
  flex-shrink: 0;
}
.demo-step__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Credentials box */
.demo-creds {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 24px;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.demo-creds__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.demo-creds__label {
  font-size: 0.88rem;
  color: #777;
  font-weight: 500;
}
.demo-creds__val {
  font-family: 'Inter', monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--purple);
  background: var(--badge-bg);
  padding: 4px 14px;
  border-radius: 8px;
  letter-spacing: 0.04em;
}

/* Restaurant highlight badge */
.demo-highlight {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #f0eeff 0%, #ede0f4 100%);
  border: 1px solid rgba(115,41,154,0.18);
  border-radius: 14px;
  padding: 14px 20px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--purple);
  margin-top: 16px;
}

/* ── QR Section ─────────────────────────────────────────────────────────── */
.demo-qr {
  padding: 70px 0 80px;
  background: var(--bg-alt, #f8f9fc);
}
.demo-qr__sub {
  text-align: center;
  color: var(--text-body);
  font-size: 0.97rem;
  max-width: 560px;
  margin: 0 auto 44px;
  line-height: 1.7;
}
.demo-qr__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 640px;
  margin: 0 auto;
}
.demo-qr__card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.demo-qr__card:hover {
  box-shadow: 0 8px 28px rgba(115,41,154,0.12);
  transform: translateY(-3px);
}
.demo-qr__card img {
  width: 100%;
  max-width: 120px;
  height: auto;
  display: block;
}
.demo-qr__card span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-body);
}

/* ── CTA Section ────────────────────────────────────────────────────────── */
.demo-cta-section { padding: 70px 0 100px; }
.demo-cta-box {
  background: linear-gradient(135deg, var(--purple) 0%, #2C51E0 100%);
  border-radius: 24px;
  padding: 60px 48px;
  text-align: center;
  color: #fff;
}
.demo-cta-box h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
  margin-bottom: 12px;
}
.demo-cta-box p {
  font-size: 1rem;
  opacity: 0.85;
  margin-bottom: 32px;
}
.demo-cta-box__btns {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.demo-cta-box .btn-primary {
  background: #fff;
  color: var(--purple);
}
.demo-cta-box .btn-primary:hover { background: #f0eeff; }
.demo-cta-box .btn-outline {
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}
.demo-cta-box .btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

/* ── Demo page responsive ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  .demo-step, .demo-step--rev {
    grid-template-columns: 1fr;
    direction: rtl;
    gap: 28px;
    margin-bottom: 56px;
  }
  .demo-step--rev .demo-step__img-wrap { order: -1; }
  .demo-cta-box { padding: 44px 28px; }
}
@media (max-width: 600px) {
  .demo-qr__grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .demo-qr__card { padding: 14px 10px 10px; }
  .demo-step__num { font-size: 2.5rem; }
  .demo-step__title { font-size: 1.25rem; }
  .demo-cta-box { border-radius: 18px; padding: 36px 20px; }
}


@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .live-stats-grid { grid-template-columns: 1fr 1fr; }
  .section-header h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
}

/* ── 768px (tablet portrait) ── */
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .section-header { margin-bottom: 36px; }
  .container { padding: 0 18px; }

  /* Navbar mobile */
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 100%; right: 0; left: 0;
    background: rgba(255,255,255,0.98); padding: 20px 24px;
    gap: 14px; border-bottom: 1px solid var(--border);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown__toggle { width: 100%; font-size: 0.95rem; justify-content: space-between; }
  .nav-dropdown__menu {
    position: static; box-shadow: none; border: none;
    background: #f8f5ff; border-radius: 10px; padding: 6px 0;
    margin-top: 6px; opacity: 1; pointer-events: auto; transform: none;
    display: none;
  }
  .nav-dropdown__menu.open { display: block; }
  .nav-dropdown__menu a { padding: 9px 16px; font-size: 0.85rem !important; }

  /* Stats */
  .live-stats-grid { grid-template-columns: 1fr; }
  .live-stat { padding: 36px 28px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer { padding: 48px 0 0; }

  /* Services */
  .services-two-col { grid-template-columns: 1fr; gap: 32px; }

  /* Visual shell dashboard — prevent horizontal overflow */
  .visual-shell { padding: 16px; overflow: hidden; }
  .stats-grid { gap: 10px; }
  .stat-value { font-size: 1.3rem; }
  .dashboard-card { padding: 14px; }
  .top-bar { gap: 8px; }

  /* Buttons */
  .btn { min-height: 48px; padding: 0 20px; font-size: 0.85rem; }

  /* Page hero (shared across service pages) */
  .page-hero { padding: 78px 0 44px; }
  .page-hero__title { font-size: clamp(1.5rem, 5vw, 2.2rem); }
}

/* ── 640px (large phone landscape) ── */
@media (max-width: 640px) {
  .section { padding: 48px 0; }
  .container { padding: 0 16px; }

  /* Live stats — 1-col */
  .live-stats-grid { grid-template-columns: 1fr; }

  /* Trust bar — 2-col */
  .trust-bar { grid-template-columns: repeat(2, 1fr); }

  /* Featured service cards title */
  .feat-services-title { font-size: 1.5rem; }

  /* Workflow cards text */
  .wf-body h3 { font-size: 0.95rem; }

  /* Apps featured card */
  .app-featured-card { flex-direction: column; text-align: center; align-items: center; }
  .app-feat-stores { flex-direction: row; justify-content: center; }
  .app-feat-body h3 { font-size: 1.3rem; }

  /* FAQ summary text */
  .faq-item summary { font-size: 0.9rem; padding: 16px 18px; }
  .faq-item p { padding: 0 18px 16px; font-size: 0.88rem; }

  /* Footer */
  .footer-badge { font-size: 12px; padding: 6px 10px; }

  /* Page hero */
  .page-hero { padding: 70px 0 38px; }
  .page-hero__title { font-size: clamp(1.35rem, 6.5vw, 2rem); }
}

/* ── 480px (most phones) ── */
@media (max-width: 480px) {
  .section { padding: 40px 0; }
  .container { padding: 0 14px; }

  /* Footer single column */
  .footer-grid { grid-template-columns: 1fr; }
  .footer { padding: 40px 0 0; }

  /* Trust bar — still 2-col, numbers smaller */
  .trust-bar { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 24px; }

  /* Section headings */
  .section-header h2 { font-size: 1.45rem; }
  .section-header p { font-size: 0.9rem; }

  /* Live stat numbers */
  .live-stat strong { font-size: 2.4rem; }

  /* Buttons stack */
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Social features header */
  .social-title { font-size: 1.6rem; }
  .social-sub { font-size: 0.9rem; }

  /* Workflow */
  .wf-card { padding: 22px 18px; }

  /* Services two-col image */
  .services-features-col img,
  .services-col-img { max-width: 100%; height: auto; }

  /* Clients grid min card size */
  .rp-logo-wrap { width: 100px; height: 70px; }
  .rp-name { font-size: 13px; }

  /* Page hero */
  .page-hero { padding: 60px 0 32px; }
  .page-hero__title { font-size: clamp(1.2rem, 7.5vw, 1.8rem); }
}

/* ── 360px (small phones) ── */
@media (max-width: 360px) {
  .container { padding: 0 12px; }
  .trust-bar { grid-template-columns: 1fr; }
  .trust-stat { flex-direction: row; align-items: center; gap: 10px; }
  .hero-actions { gap: 10px; }
  .nav-logo span { display: none; }
  .footer-apps { flex-direction: column; }
  .footer-badge { width: 100%; justify-content: center; }
}

/* ==========================================================
   BLOG — Listing & Article Pages
   ========================================================== */

/* --- Blog Hero --- */
.blog-hero {
  padding: 100px 0 60px;
  background: linear-gradient(135deg, #f8f4ff 0%, #eef2ff 100%);
  text-align: center;
}
.blog-hero__inner { max-width: 680px; margin: 0 auto; }
.blog-hero__badge {
  display: inline-block;
  background: rgba(115,41,154,0.1);
  color: var(--purple);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}
.blog-hero__title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.25;
}
.blog-hero__sub {
  font-size: 1.05rem;
  color: #5a5f7a;
  line-height: 1.7;
}

/* --- Blog Listing Section --- */
.blog-listing { padding: 64px 0 80px; }

/* --- Blog Grid --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.blog-grid--3 { grid-template-columns: repeat(3, 1fr); }

/* --- Post Card --- */
.post-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(27,29,32,0.08);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
  position: relative;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(27,29,32,0.14);
}
/* Stretched link — makes the entire card clickable via the title anchor */
.post-card__title a::after {
  content: '';
  position: absolute;
  inset: 0;
}
/* Ensure btn and other interactive elements stay above the stretched link */
.post-card__btn,
.post-card__thumb {
  position: relative;
  z-index: 1;
}
.post-card__thumb {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #eef2ff;
}
.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}
.post-card:hover .post-card__thumb img { transform: scale(1.05); }

.post-card__body {
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-card__date {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 8px;
  display: block;
}
.post-card__title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.5;
  margin-bottom: 10px;
  flex: 1;
}
.post-card__title a { color: inherit; text-decoration: none; }
.post-card__title a:hover { color: var(--purple); }

.post-card__excerpt {
  font-size: 0.875rem;
  color: #5a5f7a;
  line-height: 1.65;
  margin-bottom: 16px;
}
.post-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--red);
  text-decoration: none;
  padding: 7px 0;
  border-top: 1px solid rgba(27,29,32,0.07);
  transition: color 0.2s;
  margin-top: auto;
}
.post-card__btn:hover { color: var(--purple); }

.post-card--sm .post-card__title { font-size: 0.9rem; }

/* --- Article Hero --- */
.article-hero {
  position: relative;
  min-height: 420px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding-bottom: 56px;
}
.article-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,12,26,0.82) 0%, rgba(10,12,26,0.35) 60%, rgba(10,12,26,0.1) 100%);
}
.article-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.article-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  text-decoration: none;
  margin-bottom: 20px;
  transition: color 0.2s;
}
.article-back-link:hover { color: #fff; }
.article-back-link svg { transform: rotate(180deg); }

.article-hero__date {
  display: block;
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.article-hero__title {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.35;
}

/* --- Article Content --- */
.article-content { padding: 60px 0 80px; }
.article-layout { max-width: 760px; margin: 0 auto 60px; }

.article-intro {
  font-size: 1.1rem;
  line-height: 1.85;
  color: #34374e;
  margin-bottom: 36px;
}

/* Full WP article body */
.article-wp-content {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #2d2f3e;
}
.article-wp-content p {
  margin-bottom: 1.4em;
}
.article-wp-content h2,
.article-wp-content h3,
.article-wp-content h4 {
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  color: #1a1a2e;
  margin: 2em 0 0.75em;
  line-height: 1.4;
}
.article-wp-content h2 { font-size: 1.55rem; }
.article-wp-content h3 { font-size: 1.3rem; }
.article-wp-content h4 { font-size: 1.1rem; }
.article-wp-content ul,
.article-wp-content ol {
  padding-right: 1.5em;
  margin-bottom: 1.4em;
}
.article-wp-content li { margin-bottom: 0.5em; }
.article-wp-content strong { font-weight: 700; color: #1a1a2e; }
.article-wp-content em { font-style: italic; }
.article-wp-content a { color: var(--purple); text-decoration: underline; }
.article-wp-content a:hover { color: var(--red); }
.article-wp-content blockquote {
  border-right: 4px solid var(--purple);
  padding: 16px 20px;
  margin: 1.5em 0;
  background: #f8f5ff;
  border-radius: 0 8px 8px 0;
  color: #4a4a6a;
  font-style: italic;
}
.article-wp-content figure,
.article-wp-content .wp-block-image {
  margin: 2em 0;
  text-align: center;
}
.article-wp-content figure img,
.article-wp-content .wp-block-image img {
  max-width: 100%;
  border-radius: 12px;
  height: auto;
}
.article-wp-content figcaption {
  font-size: 0.85rem;
  color: #888;
  margin-top: 8px;
}
.article-wp-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.95rem;
}
.article-wp-content th,
.article-wp-content td {
  border: 1px solid #e0e0e0;
  padding: 10px 14px;
  text-align: right;
}
.article-wp-content th {
  background: #f3f0ff;
  font-weight: 700;
}
/* Hide leftover Elementor empty wrappers */
.article-wp-content .elementor-widget-container:empty { display: none; }

/* ═══════════════════════════════════════════════════
   Static Pages (generated by generate-pages.js)
   ═══════════════════════════════════════════════════ */
.page-hero {
  padding: 100px 0 60px;
  background: linear-gradient(135deg, var(--purple) 0%, #2C51E0 100%);
  text-align: center;
}
.page-hero__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.3;
}
.page-content {
  padding: 60px 0 100px;
}
.page-body {
  max-width: 820px;
  margin: 0 auto;
}
/* Reuse article content styles for page body */
.page-body.wp-content { font-size: 1.05rem; line-height: 1.9; color: #2d2f3e; }
.page-body.wp-content p { margin-bottom: 1.4em; }
.page-body.wp-content h2,
.page-body.wp-content h3,
.page-body.wp-content h4 {
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  color: #1a1a2e;
  margin: 2em 0 0.75em;
  line-height: 1.4;
}
.page-body.wp-content h2 { font-size: 1.55rem; }
.page-body.wp-content h3 { font-size: 1.3rem; }
.page-body.wp-content h4 { font-size: 1.1rem; }
.page-body.wp-content ul,
.page-body.wp-content ol { padding-right: 1.5em; margin-bottom: 1.4em; }
.page-body.wp-content li { margin-bottom: 0.5em; }
.page-body.wp-content strong { font-weight: 700; color: #1a1a2e; }
.page-body.wp-content a { color: var(--purple); text-decoration: underline; }
.page-body.wp-content a:hover { color: var(--red); }
.page-body.wp-content blockquote {
  border-right: 4px solid var(--purple);
  padding: 16px 20px;
  margin: 1.5em 0;
  background: #f8f5ff;
  border-radius: 0 8px 8px 0;
  color: #4a4a6a;
}
.page-body.wp-content figure,
.page-body.wp-content img { max-width: 100%; border-radius: 12px; height: auto; }
.page-body.wp-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
}
.page-body.wp-content th,
.page-body.wp-content td {
  border: 1px solid #e0e0e0;
  padding: 10px 14px;
  text-align: right;
}
.page-body.wp-content th { background: #f3f0ff; font-weight: 700; }
.page-body.wp-content .elementor-widget-container:empty { display: none; }


.related-posts { border-top: 1px solid rgba(27,29,32,0.08); padding-top: 48px; }
.related-posts__title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 28px;
}

/* --- Responsive Blog --- */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .blog-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .blog-grid, .blog-grid--3 { grid-template-columns: 1fr; gap: 20px; }
  .blog-hero { padding: 80px 0 44px; }
  .article-hero { min-height: 300px; }
  .article-hero__title { font-size: 1.3rem; }
  .article-cta-box { padding: 20px; }
  .article-content { padding: 44px 0 60px; }
  .article-wp-content h2 { font-size: 1.3rem; }
  .article-wp-content h3 { font-size: 1.1rem; }
}
@media (max-width: 480px) {
  .blog-hero__title { font-size: clamp(1.5rem, 7vw, 2rem); }
  .article-hero { min-height: 240px; padding-bottom: 36px; }
  .article-hero__title { font-size: clamp(1.1rem, 6vw, 1.4rem); }
  .article-content { padding: 36px 0 48px; }
  .article-intro { font-size: 1rem; }
  .article-wp-content { font-size: 0.97rem; }
  .article-wp-content h2 { font-size: 1.2rem; }
  .article-wp-content h3 { font-size: 1.05rem; }
  .article-wp-content table { font-size: 0.85rem; }
  .article-wp-content th, .article-wp-content td { padding: 8px 10px; }
  .related-posts__title { font-size: 1.2rem; }
}

/* ═══════════════════════════════════════════════════
   Partner Form Page
   ═══════════════════════════════════════════════════ */

/* Hero tweaks */
.pf-hero { padding-bottom: 80px; }
.pf-hero__badge {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,0.3);
}
.pf-hero__sub {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  margin-top: 12px;
}

/* Layout */
.pf-section { padding: 70px 0 100px; background: #f8f9ff; }
.pf-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  align-items: start;
}

/* Benefits Sidebar */
.pf-benefits {
  background: #fff;
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 2px 20px rgba(44,81,224,0.07);
  position: sticky;
  top: 90px;
}
.pf-benefits__title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 28px;
}
.pf-benefits__list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.pf-benefits__list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.pf-benefit-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f0eeff;
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pf-benefits__list li strong {
  font-weight: 700;
  color: var(--text-dark);
  display: block;
  margin-bottom: 3px;
}
.pf-benefits__list li p {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

.pf-contact-alt {
  border-top: 1px solid #eee;
  padding-top: 24px;
  text-align: center;
}
.pf-contact-alt p {
  font-size: 0.875rem;
  color: #888;
  margin-bottom: 12px;
}
.pf-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.pf-wa-btn:hover { background: #1ebe5d; transform: translateY(-2px); }

/* Form Card */
.pf-card {
  background: #fff;
  border-radius: 20px;
  padding: 44px 40px;
  box-shadow: 0 4px 32px rgba(44,81,224,0.09);
}

.pf-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.pf-form__group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.pf-form__group--full { margin-bottom: 20px; }

.pf-form__group label {
  font-size: 0.875rem;
  font-weight: 700;
  color: #34374e;
}
.pf-req { color: var(--red); }

.pf-form__group input,
.pf-form__group select,
.pf-form__group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e2e5f0;
  border-radius: 10px;
  font-family: 'Cairo', sans-serif;
  font-size: 0.95rem;
  color: #1a1a2e;
  background: #fafbff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  box-sizing: border-box;
}
.pf-form__group input:focus,
.pf-form__group select:focus,
.pf-form__group textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(115,41,154,0.1);
  background: #fff;
}
.pf-form__group input::placeholder,
.pf-form__group textarea::placeholder { color: #aaa; }
.pf-form__group textarea { resize: vertical; min-height: 110px; }

.pf-form__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.pf-form__privacy {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #888;
  margin: 0;
}
.pf-form__privacy svg { flex-shrink: 0; color: var(--purple); }

.pf-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  font-size: 1rem;
  font-weight: 800;
  border-radius: 12px;
  white-space: nowrap;
  flex-direction: row-reverse; /* arrow on left in RTL */
}
.pf-submit-btn svg { transform: rotate(180deg); }
.pf-submit-btn:disabled { opacity: 0.7; cursor: not-allowed; }

.pf-msg {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 20px;
}
.pf-msg--success { background: #edfdf5; color: #1a6e48; border: 1px solid #a3e9c5; }
.pf-msg--error   { background: #fff0f0; color: #b71c1c; border: 1px solid #fca5a5; }

/* Responsive */
@media (max-width: 900px) {
  .pf-layout { grid-template-columns: 1fr; }
  .pf-benefits { position: static; }
  .pf-section { padding: 56px 0 80px; }
}
@media (max-width: 600px) {
  .pf-form__row { grid-template-columns: 1fr; }
  .pf-card { padding: 28px 20px; }
  .pf-form__footer { flex-direction: column; align-items: stretch; }
  .pf-submit-btn { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
  .pf-section { padding: 40px 0 60px; }
  .pf-benefits { padding: 24px 20px; }
  .pf-card { padding: 22px 16px; }
  .pf-hero__sub { font-size: 0.95rem; }
  .pf-benefits__title { font-size: 1.05rem; }
  .pf-benefit-icon { width: 34px; height: 34px; border-radius: 8px; }
}
