@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@500;600;700;800&family=Manrope:wght@400;500;600;700;800&family=Poppins:wght@500;600;700;800&display=swap');

/* ==========================================================================
   FlowAgent — Divine Dark Obsidian & Neon Violet Design System
   ========================================================================== */
:root {
  color-scheme: dark;
  --divine-bg: #0E0D14;
  --divine-overlay: #0B0A0F;
  --divine-panel: #121119;
  --divine-surface: #15141C;
  --divine-surface-field: #18171F;
  --divine-surface-raised: #1A1922;
  --divine-border-tile: #17161C;
  --divine-border-faint: #191722;
  --divine-border-control: #1F1D29;
  --divine-border-subtle: #25222F;
  --divine-border-card: #2A2638;
  --divine-border: #363242;
  --divine-accent: #783CB5;
  --divine-accent-hover: #8B4DD4;
  --divine-highlight: #C084FC;
  --divine-icon-accent: #AB69EF;
  --divine-heading: #D1A4FF;
  --divine-gold: #ECB96A;
  --divine-gold-dim: rgba(236, 185, 106, 0.45);
  --divine-green: #22C55E;
  --divine-text: #E4E4E7;
  --divine-white: #FFFFFF;
  --divine-muted: #8B8D98;

  /* Compatibility mappings for shared elements */
  --bg: var(--divine-bg);
  --surface: var(--divine-surface);
  --surface-strong: var(--divine-surface-raised);
  --text: var(--divine-text);
  --text-secondary: var(--divine-muted);
  --muted: var(--divine-muted);
  --line: var(--divine-border-control);
  --line-strong: var(--divine-border-card);
  --accent: var(--divine-accent);
  --accent-light: var(--divine-highlight);
  --radius: 24px;
  --radius-sm: 14px;
  --radius-pill: 9999px;
  --header-height: 78px;
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  background: var(--divine-bg) !important;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0 !important;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  background: var(--divine-bg) !important;
  color: var(--divine-text) !important;
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

body::before,
.hero-glow,
.final-cta-bg {
  display: none !important;
}

h1, h2, h3, h4, .brand-text, input, select, textarea, button, .btn {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

h1, h2, h3, h4 {
  color: var(--divine-white);
  margin-top: 0;
  letter-spacing: -0.03em;
}

p {
  color: var(--divine-muted);
  font-size: 16px;
  line-height: 1.75;
}

a {
  color: var(--divine-highlight);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #E9D5FF;
}

:focus-visible {
  outline: 2px solid rgba(192, 132, 252, 0.85) !important;
  outline-offset: 3px !important;
}

.container {
  width: min(1240px, calc(100% - 48px)) !important;
  max-width: 1240px !important;
  margin-left: auto;
  margin-right: auto;
}

main {
  min-height: 65vh;
  padding-top: 0 !important;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -120px;
  background: var(--divine-accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 9999px;
  z-index: 200;
  font-weight: 700;
}

.skip-link:focus {
  top: 16px;
}

/* ==========================================================================
   HEADER & GLASS NAVIGATION
   ========================================================================== */
.site-header,
.site-header.scrolled {
  position: sticky !important;
  top: 0;
  z-index: 80;
  height: auto !important;
  min-height: var(--header-height);
  background: rgba(14, 13, 20, 0.72) !important;
  backdrop-filter: blur(18px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(150%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35) !important;
}

.header-inner {
  min-height: var(--header-height);
  height: auto !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand img.flowagent-brand-logo {
  width: 44px !important;
  height: 44px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(192, 132, 252, 0.28) !important;
  box-shadow: 0 0 22px rgba(120, 60, 181, 0.42) !important;
  object-fit: cover !important;
  background: #0B0A0F;
}

.brand-text {
  font-size: 20px !important;
  font-weight: 800 !important;
  letter-spacing: -0.04em !important;
  color: #FFFFFF !important;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px !important;
  margin-left: auto;
}

.nav-links a:not(.btn) {
  color: #A1A1AA !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  padding: 6px 2px;
  position: relative;
}

.nav-links a:not(.btn):hover {
  color: #FFFFFF !important;
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  background: rgba(255, 255, 255, 0.06) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 12px !important;
  padding: 8px 14px;
  font-size: 20px;
  cursor: pointer;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #E4E4E7;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.lang-toggle:hover {
  background: rgba(192, 132, 252, 0.16);
  border-color: rgba(192, 132, 252, 0.45);
  color: #FFFFFF;
}

/* ==========================================================================
   DIVINE GLOW PILL CTAS & BUTTONS
   ========================================================================== */
.btn,
.btn-primary,
.btn-secondary,
.nav-links .btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 9999px !important;
  padding: 13px 26px;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-decoration: none !important;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease-spring), background-color 0.2s ease, box-shadow 0.3s ease, border-color 0.2s ease;
  isolation: isolate;
}

.btn-primary,
.nav-links .btn-primary {
  background: linear-gradient(135deg, #8B4DD4 0%, #783CB5 100%) !important;
  color: #FFFFFF !important;
  border-color: rgba(192, 132, 252, 0.35) !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35), 0 0 28px rgba(120, 60, 181, 0.52) !important;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: -14px;
  z-index: -1;
  border-radius: 9999px;
  background: radial-gradient(ellipse at center, rgba(168, 85, 247, 0.42) 0%, rgba(120, 60, 181, 0.18) 45%, transparent 72%);
  opacity: 0.85;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.35s var(--ease-spring);
}

.btn-primary:hover,
.nav-links .btn-primary:hover {
  background: linear-gradient(135deg, #9D5CE6 0%, #8B4DD4 100%) !important;
  color: #FFFFFF !important;
  transform: translateY(-2px) scale(1.03) !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.45), 0 0 38px rgba(192, 132, 252, 0.68) !important;
}

.btn-primary:hover::before {
  opacity: 1;
  transform: scale(1.08);
}

.btn-primary:active {
  transform: scale(0.96) !important;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(192, 132, 252, 0.45) !important;
  color: #FFFFFF !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}

.btn-gold {
  background: linear-gradient(135deg, #F5CA7B 0%, #E0A34D 100%) !important;
  color: #140E05 !important;
  border-color: rgba(255, 232, 185, 0.6) !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.55), 0 0 28px rgba(236, 185, 106, 0.45) !important;
}

.btn-gold:hover {
  background: linear-gradient(135deg, #FAD893 0%, #ECB96A 100%) !important;
  color: #140E05 !important;
  transform: translateY(-2px) scale(1.03) !important;
  box-shadow: 0 0 38px rgba(236, 185, 106, 0.65) !important;
}

.btn-sm {
  padding: 10px 18px !important;
  font-size: 13px !important;
}

/* ==========================================================================
   HERO STAGE (Multi-layered Backdrop + Rays + Particle Canvas)
   ========================================================================== */
.divine-hero {
  position: relative;
  padding: 78px 0 64px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero-backdrop-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: grayscale(35%) saturate(1.3) contrast(1.1);
  -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 58%, transparent 100%);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(14, 13, 20, 0.72) 0%,
    rgba(18, 17, 25, 0.88) 45%,
    rgba(14, 13, 20, 1) 100%
  );
}

.hero-orb {
  position: absolute;
  left: 50%;
  top: -8%;
  width: min(760px, 85vw);
  height: 420px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(168, 85, 247, 0.34) 0%, rgba(120, 60, 181, 0.14) 45%, transparent 72%);
  filter: blur(68px);
  mix-blend-mode: screen;
  animation: orbPulse 9s ease-in-out infinite alternate;
}

.hero-rays {
  position: absolute;
  inset: -20% 0 auto 0;
  height: 540px;
  background: repeating-conic-gradient(
    from 180deg at 50% 0%,
    rgba(192, 132, 252, 0.08) 0deg 6deg,
    transparent 6deg 22deg
  );
  mix-blend-mode: soft-light;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 72%);
  opacity: 0.75;
}

.divine-particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-center {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}

.eyebrow,
.divine-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(120, 60, 181, 0.14);
  border: 1px solid rgba(192, 132, 252, 0.28);
  color: #D1A4FF !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 22px;
  box-shadow: 0 0 20px rgba(120, 60, 181, 0.2);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: #C084FC;
  box-shadow: 0 0 12px #C084FC;
  animation: pulseDot 2s infinite;
}

.divine-hero h1 {
  font-size: clamp(38px, 5.6vw, 68px) !important;
  font-weight: 800 !important;
  line-height: 1.07 !important;
  letter-spacing: -0.035em !important;
  color: #FFFFFF !important;
  margin: 0 0 22px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

.divine-hero h1 span,
.gradient-text {
  background: linear-gradient(135deg, #F3E8FF 0%, #C084FC 45%, #8B4DD4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #C084FC;
  filter: drop-shadow(0 0 28px rgba(192, 132, 252, 0.35));
}

.divine-hero .hero-text {
  font-size: clamp(16px, 1.8vw, 19px) !important;
  font-weight: 500;
  color: #A1A1AA !important;
  max-width: 680px;
  margin: 0 auto 30px;
  line-height: 1.65;
}

.marketing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 26px 0 16px;
}

.small-note, small {
  font-size: 13px !important;
  color: var(--divine-muted) !important;
}

/* Subtle secondary hero visual */
.hero-visual-stage {
  margin: 34px auto 0;
  max-width: 980px;
  position: relative;
}

.hero-showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 38px;
}

/* ==========================================================================
   3D PERSPECTIVE TILT CARDS (Hero Showcase + Service Cards)
   ========================================================================== */
.tilt-card {
  perspective: 1000px;
}

.tilt-card-inner {
  position: relative;
  height: 100%;
  border-radius: 18px;
  background: var(--divine-panel);
  border: 1px solid var(--divine-border-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.6s var(--ease-spring), border-color 0.25s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.tilt-card:hover .tilt-card-inner {
  border-color: rgba(192, 132, 252, 0.55);
  box-shadow: 0 22px 44px -14px rgba(120, 60, 181, 0.48), 0 0 0 1px rgba(192, 132, 252, 0.2);
}

.tilt-glare {
  pointer-events: none;
  position: absolute;
  left: var(--glare-x, -50%);
  top: var(--glare-y, -50%);
  width: 200%;
  height: 200%;
  opacity: 0;
  background: radial-gradient(circle, rgba(235, 235, 235, 0.14) 3%, rgba(0, 0, 0, 0) 60%);
  transition: top 0.45s ease-out, left 0.45s ease-out, opacity 0.35s ease;
  z-index: 4;
}

.tilt-card:hover .tilt-glare {
  opacity: 1;
}

.showcase-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0B0A0F;
  border-bottom: 1px solid var(--divine-border-faint);
}

.showcase-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-spring);
}

.tilt-card:hover .showcase-thumb img {
  transform: scale(1.06);
}

.showcase-chip {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(11, 10, 15, 0.84);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #E4E4E7;
  font-size: 11px;
  font-weight: 700;
  z-index: 3;
}

.showcase-chip.gold {
  border-color: rgba(236, 185, 106, 0.55);
  color: #ECB96A;
}

.showcase-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.showcase-body h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  transition: color 0.2s ease;
}

.tilt-card:hover .showcase-body h3 {
  color: var(--divine-highlight);
}

.showcase-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--divine-muted);
}

.showcase-price {
  color: #D1A4FF;
}

/* ==========================================================================
   NEON STATS STRIP
   ========================================================================== */
.divine-stats {
  padding: 42px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: radial-gradient(ellipse at 50% 50%, rgba(120, 60, 181, 0.08), transparent 70%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  text-align: center;
}

.stat-item {
  padding: 16px 12px;
}

.stat-value {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #FFFFFF 0%, #AB69EF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--divine-muted);
}

/* ==========================================================================
   SECTIONS & TOP-RIM LIT BENTO GRID
   ========================================================================== */
.section {
  position: relative;
  padding: 84px 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  background: transparent !important;
}

.section-header-center {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}

.section-header-center h2,
.section h2 {
  font-size: clamp(28px, 3.8vw, 44px) !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  color: #E4E4E7 !important;
  margin-bottom: 14px;
}

.section-header-center p {
  color: var(--divine-muted);
  font-size: 17px;
  margin: 0 auto;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.bento-card {
  position: relative;
  border-radius: 28px;
  background: var(--divine-panel);
  border: 1px solid var(--divine-border-tile);
  padding: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.25s ease, transform 0.35s var(--ease-spring), box-shadow 0.35s ease;
}

.bento-card::before {
  content: '';
  pointer-events: none;
  position: absolute;
  left: 0;
  right: 0;
  top: -28px;
  height: 145px;
  background: radial-gradient(46% 46% at 50% 0%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
  filter: blur(22px);
  mix-blend-mode: overlay;
}

.bento-card:hover {
  border-color: var(--divine-border-card);
  transform: translateY(-3px);
  box-shadow: 0 24px 48px -18px rgba(120, 60, 181, 0.3);
}

.bento-span-7 { grid-column: span 7; }
.bento-span-5 { grid-column: span 5; }
.bento-span-6 { grid-column: span 6; }
.bento-span-4 { grid-column: span 4; }
.bento-span-12 { grid-column: span 12; }

.bento-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(120, 60, 181, 0.18);
  border: 1px solid rgba(192, 132, 252, 0.28);
  display: grid;
  place-items: center;
  font-size: 20px;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(120, 60, 181, 0.25);
}

.bento-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #FFFFFF;
}

.bento-card p {
  font-size: 15px;
  margin: 0;
}

.bento-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.bento-tag {
  padding: 5px 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 600;
  color: #D4D4D8;
}

/* ==========================================================================
   SERVICES CARDS & IMAGE RENDERING (Tests compatible!)
   ========================================================================== */
.marketing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 28px 0 0;
}

.services-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.marketing-grid .service-card,
.marketing-grid .service-card:nth-child(even),
.marketing-grid .blog-card,
.marketing-grid .blog-card:nth-child(even),
.card,
.card:nth-child(even),
.glass-card,
.glass-card:nth-child(even) {
  position: relative;
  border-radius: 22px !important;
  background: var(--divine-panel) !important;
  border: 1px solid var(--divine-border-control) !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.42) !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.35s var(--ease-spring), border-color 0.25s ease, box-shadow 0.3s ease;
}

.marketing-grid .service-card {
  padding: 0 0 26px !important;
}

.marketing-grid .service-card > :not(.service-art) {
  margin-left: 26px;
  margin-right: 26px;
}

.marketing-grid .service-card:hover,
.marketing-grid .blog-card:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(192, 132, 252, 0.45) !important;
  box-shadow: 0 20px 44px -14px rgba(120, 60, 181, 0.42) !important;
}

.service-art {
  margin: 0 !important;
  border-bottom: 1px solid var(--divine-border-faint) !important;
  background: #0B0A0F !important;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.service-art img,
.brand-hero-art img,
.approval-art img,
.service-detail-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-card h3 a {
  color: #FFFFFF !important;
}

.service-card:hover h3 a {
  color: var(--divine-highlight) !important;
}

.text-link {
  color: var(--divine-highlight) !important;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.text-link:hover {
  color: #F3E8FF !important;
}

/* ==========================================================================
   PRICING & PACKS SECTION (Featuring Gold Glow Flagship Pack)
   ========================================================================== */
.packs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
  margin-top: 32px;
}

.package-card,
.package-card:nth-child(even) {
  position: relative;
  border-radius: 26px !important;
  background: var(--divine-panel) !important;
  border: 1px solid var(--divine-border-card) !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45) !important;
  padding: 32px 28px !important;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.35s var(--ease-spring), border-color 0.25s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.package-card::before {
  content: '';
  pointer-events: none;
  position: absolute;
  inset: 0 0 auto 0;
  height: 120px;
  background: radial-gradient(60% 60% at 50% 0%, rgba(192, 132, 252, 0.12), transparent);
}

.package-card:hover {
  transform: translateY(-5px);
  border-color: rgba(192, 132, 252, 0.5) !important;
  box-shadow: 0 24px 48px -16px rgba(120, 60, 181, 0.4) !important;
}

/* Featured 1500 DH Pack — Divine Gold & Violet Halo */
.package-card.featured {
  background: linear-gradient(180deg, #171422 0%, #121119 100%) !important;
  border: 1px solid rgba(236, 185, 106, 0.55) !important;
  box-shadow: 0 0 36px -8px rgba(236, 185, 106, 0.42), inset 0 1px 1px rgba(255, 255, 255, 0.12) !important;
}

.package-card.featured::before {
  background: radial-gradient(70% 70% at 50% 0%, rgba(236, 185, 106, 0.22), transparent);
}

.package-card.featured:hover {
  border-color: rgba(236, 185, 106, 0.85) !important;
  box-shadow: 0 0 46px -6px rgba(236, 185, 106, 0.62) !important;
}

.pack-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(192, 132, 252, 0.14);
  color: #D1A4FF;
  border: 1px solid rgba(192, 132, 252, 0.3);
}

.package-card.featured .pack-badge {
  background: linear-gradient(135deg, rgba(236, 185, 106, 0.24), rgba(192, 132, 252, 0.18));
  color: #F5CA7B;
  border-color: rgba(236, 185, 106, 0.55);
}

.package-card h3 {
  font-size: 24px !important;
  font-weight: 800 !important;
  margin: 4px 0 0;
}

.marketing-price {
  font-size: 36px !important;
  font-weight: 800 !important;
  line-height: 1.1;
  color: #FFFFFF !important;
  margin: 4px 0;
  letter-spacing: -0.03em;
}

.package-card.featured .marketing-price {
  background: linear-gradient(135deg, #FFF3D1 0%, #ECB96A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gift-callout {
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(236, 185, 106, 0.12), rgba(120, 60, 181, 0.14));
  border: 1px dashed rgba(236, 185, 106, 0.5);
  color: #F5CA7B;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.package-card ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 8px 0 18px;
  display: grid;
  gap: 11px;
}

.package-card li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  line-height: 1.5;
  color: #D4D4D8;
}

.package-card li::before {
  content: '✦';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--divine-highlight);
  font-size: 13px;
}

.package-card.featured li::before {
  color: var(--divine-gold);
}

.pack-actions {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.pack-actions .btn {
  width: 100%;
}

/* ==========================================================================
   TESTIMONIALS & VERIFIED DEPLOYMENTS
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.testimonial-card,
.testimonial-card:nth-child(even) {
  position: relative;
  border-radius: 24px !important;
  background: var(--divine-panel) !important;
  border: 1px solid var(--divine-border-control) !important;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.42) !important;
  padding: 28px !important;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.35s var(--ease-spring), border-color 0.25s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(192, 132, 252, 0.45) !important;
  box-shadow: 0 20px 40px -16px rgba(120, 60, 181, 0.38) !important;
}

.testimonial-stars {
  color: var(--divine-gold);
  font-size: 14px;
  letter-spacing: 2px;
}

.testimonial-quote {
  font-size: 15px !important;
  line-height: 1.7;
  color: #E4E4E7 !important;
  margin: 0;
}

.testimonial-meta {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #783CB5, #4C1D95);
  border: 1px solid rgba(192, 132, 252, 0.4);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 14px;
  display: grid;
  place-items: center;
}

.testimonial-author strong {
  display: block;
  font-size: 14px;
  color: #FFFFFF;
}

.testimonial-author span {
  display: block;
  font-size: 12px;
  color: var(--divine-muted);
}

.metric-pill {
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ADE80;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

/* ==========================================================================
   INTERACTIVE WHATSAPP DEMO PHONE
   ========================================================================== */
.marketing-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 20px;
}

.demo-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.demo-options button {
  padding: 10px 18px;
  border-radius: 9999px;
  background: var(--divine-surface);
  color: #D4D4D8;
  border: 1px solid var(--divine-border-card);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.demo-options button:hover {
  border-color: var(--divine-highlight);
  color: #FFFFFF;
}

.demo-options button[aria-pressed="true"] {
  background: linear-gradient(135deg, #8B4DD4, #783CB5);
  border-color: rgba(192, 132, 252, 0.5);
  color: #FFFFFF;
  box-shadow: 0 0 22px rgba(120, 60, 181, 0.45);
}

.demo-phone {
  background: var(--divine-surface) !important;
  border: 1px solid var(--divine-border-card) !important;
  border-radius: 28px !important;
  padding: 26px !important;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.55), 0 0 40px rgba(120, 60, 181, 0.16) !important;
}

.bubble {
  padding: 13px 16px !important;
  border-radius: 16px !important;
  margin: 12px 0 !important;
  max-width: 86%;
  font-size: 14px;
  line-height: 1.55;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.bubble.customer {
  background: #1F1D29 !important;
  color: #E4E4E7 !important;
  margin-right: auto !important;
  border-bottom-left-radius: 4px !important;
}

.bubble.assistant {
  background: linear-gradient(135deg, rgba(120, 60, 181, 0.45), rgba(88, 28, 135, 0.55)) !important;
  border-color: rgba(192, 132, 252, 0.35) !important;
  color: #FFFFFF !important;
  margin-left: auto !important;
  border-bottom-right-radius: 4px !important;
}

/* ==========================================================================
   STEPS, TOOL STRIP, FAQ, BLOG & FORMS
   ========================================================================== */
.marketing-steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.marketing-steps li {
  padding: 24px;
  border-radius: 20px;
  background: var(--divine-panel);
  border: 1px solid var(--divine-border-control);
  border-top: 2px solid var(--divine-accent);
}

.marketing-steps strong {
  display: block;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--divine-highlight);
  margin-bottom: 10px;
}

.marketing-steps p {
  margin: 0;
  font-size: 14px;
}

.tool-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.tool-strip span {
  padding: 10px 18px;
  border-radius: 9999px;
  background: var(--divine-surface);
  border: 1px solid var(--divine-border-card);
  color: #E4E4E7;
  font-size: 13px;
  font-weight: 700;
}

.section details {
  background: var(--divine-panel);
  border: 1px solid var(--divine-border-control) !important;
  border-radius: 16px;
  padding: 18px 22px !important;
  margin-bottom: 12px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.section details[open] {
  border-color: rgba(192, 132, 252, 0.42) !important;
  background: var(--divine-surface);
}

.section summary {
  font-weight: 700;
  font-size: 16px;
  color: #FFFFFF;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section summary::after {
  content: '+';
  color: var(--divine-highlight);
  font-size: 20px;
  font-weight: 400;
}

.section details[open] summary::after {
  content: '−';
}

.section details p {
  margin: 14px 0 0;
  font-size: 15px;
}

.marketing-hero {
  position: relative;
  padding: 74px 0 56px !important;
  background: radial-gradient(ellipse at 50% 0%, rgba(120, 60, 181, 0.2), transparent 68%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.marketing-hero h1 {
  font-size: clamp(34px, 5vw, 58px) !important;
  font-weight: 800 !important;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.marketing-contact {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 40px;
  margin-top: 24px;
}

.marketing-contact form {
  padding: 32px;
  display: grid;
  gap: 18px;
}

.marketing-contact label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #E4E4E7 !important;
}

.marketing-contact input,
.marketing-contact select,
.marketing-contact textarea,
.blog-filters input,
.blog-filters select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px !important;
  background: var(--divine-surface-field) !important;
  border: 1px solid var(--divine-border-card) !important;
  color: #FFFFFF !important;
  font-size: 14px;
}

.marketing-contact input:focus,
.marketing-contact select:focus,
.marketing-contact textarea:focus {
  border-color: var(--divine-highlight) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(192, 132, 252, 0.22);
}

.marketing-contact .consent {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.marketing-contact .consent input {
  width: auto !important;
}

.enquiry-selection {
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(120, 60, 181, 0.16);
  border: 1px solid rgba(192, 132, 252, 0.35);
  color: #E9D5FF;
  margin: 0;
}

.seo-breadcrumbs {
  padding: 20px 0 8px;
  font-size: 13px;
  color: var(--divine-muted);
}

.article-body {
  max-width: 780px;
}

.article-body h2 {
  font-size: 28px !important;
  margin-top: 38px;
}

.blog-filters {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: end;
}

.blog-filters label {
  display: grid;
  gap: 8px;
  min-width: 220px;
  font-size: 13px;
  font-weight: 700;
  color: #E4E4E7;
}

.blog-card[hidden] {
  display: none !important;
}

/* Final CTA Banner */
.final-banner {
  position: relative;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(120, 60, 181, 0.22) 0%, #121119 65%);
  border: 1px solid rgba(192, 132, 252, 0.28);
  padding: 56px 40px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.final-banner::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -80px;
  width: 480px;
  height: 220px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(192, 132, 252, 0.26), transparent 70%);
  filter: blur(48px);
  pointer-events: none;
}

/* ==========================================================================
   FOOTER (Gradient 1px Hairline + Blurred Radial Purple Orb)
   ========================================================================== */
.site-footer,
#siteFooter {
  position: relative !important;
  overflow: hidden;
  background: #0B0A0F !important;
  border-top: none !important;
  color: var(--divine-muted) !important;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(120, 60, 181, 0.65), transparent);
}

.site-footer::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 560px;
  height: 240px;
  transform: translate(-50%, -50%);
  background: rgba(120, 60, 181, 0.16);
  filter: blur(105px);
  border-radius: 50%;
  pointer-events: none;
}

.marketing-footer {
  position: relative;
  z-index: 1;
  padding: 54px 0 !important;
  display: grid;
  gap: 24px;
}

.marketing-footer strong {
  font-size: 22px;
  color: #FFFFFF;
}

.marketing-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.marketing-footer a {
  color: var(--divine-muted) !important;
  font-size: 14px;
  font-weight: 600;
}

.marketing-footer a:hover {
  color: #FFFFFF !important;
}

/* ==========================================================================
   SCROLL REVEAL ANIMATION & KEYFRAMES
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease-spring), transform 0.65s var(--ease-spring);
}

[data-reveal="visible"] {
  opacity: 1;
  transform: translateY(0);
}

@keyframes orbPulse {
  0% { opacity: 0.72; transform: translateX(-50%) scale(0.96); }
  100% { opacity: 1; transform: translateX(-50%) scale(1.06); }
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.6; }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .packs-grid,
  .testimonials-grid,
  .marketing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .bento-span-7,
  .bento-span-5,
  .bento-span-6,
  .bento-span-4 {
    grid-column: span 12;
  }
}

@media (max-width: 820px) {
  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .nav-links {
    display: none !important;
    width: 100%;
    flex-direction: column;
    align-items: flex-start !important;
    padding: 16px 0;
    gap: 14px !important;
  }
  .nav-links.is-open {
    display: flex !important;
  }
  .header-inner {
    flex-wrap: wrap;
    padding: 12px 0;
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .packs-grid,
  .testimonials-grid,
  .marketing-grid,
  .services-grid,
  .marketing-steps,
  .marketing-demo,
  .marketing-contact {
    grid-template-columns: 1fr !important;
  }
  .divine-hero {
    padding: 48px 0 42px;
  }
  .section {
    padding: 54px 0 !important;
  }
  .final-banner {
    padding: 36px 22px;
  }
}

@media (max-width: 520px) {
  .hero-showcase-grid {
    grid-template-columns: 1fr;
  }
  .container {
    width: calc(100% - 32px) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================================
   CLEAR OFFER SUMMARY CHIPS, PIPELINE BAR & PACK METRICS MATRIX
   ========================================================================== */
.hero-offer-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 28px;
  max-width: 860px;
}

.offer-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 16px;
  background: rgba(18, 17, 25, 0.85);
  border: 1px solid rgba(192, 132, 252, 0.26);
  backdrop-filter: blur(12px);
  color: #E4E4E7;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s var(--ease-spring), border-color 0.2s ease, box-shadow 0.25s ease;
}

.offer-chip strong {
  padding: 4px 10px;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(192, 132, 252, 0.24), rgba(120, 60, 181, 0.34));
  color: #F3E8FF;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.offer-chip:first-child strong {
  background: linear-gradient(135deg, rgba(236, 185, 106, 0.28), rgba(192, 132, 252, 0.22));
  color: #F5CA7B;
}

.offer-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(192, 132, 252, 0.55);
  box-shadow: 0 10px 26px rgba(120, 60, 181, 0.3);
  color: #FFFFFF;
}

.offer-pipeline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 30px;
  padding: 14px 20px;
  border-radius: 20px;
  background: rgba(18, 17, 25, 0.8);
  border: 1px solid var(--divine-border-card);
}

.pipeline-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
}

.pipe-num {
  color: var(--divine-highlight);
  font-weight: 800;
  font-size: 11px;
}

.pipe-arrow {
  color: var(--divine-muted);
  font-weight: 700;
}

.pack-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 4px 0;
}

.pm-box {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pm-box strong {
  font-size: 18px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.1;
}

.pm-box span {
  font-size: 11px;
  font-weight: 600;
  color: var(--divine-muted);
}

.pm-box.gold {
  background: rgba(236, 185, 106, 0.1);
  border-color: rgba(236, 185, 106, 0.35);
}

.pm-box.gold strong {
  color: #F5CA7B;
}

/* ==========================================================================
   NATIVE ARABIC RTL MODE SUPPORT (html[dir="rtl"])
   ========================================================================== */
html[dir="rtl"],
html[dir="rtl"] body,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] p,
html[dir="rtl"] a,
html[dir="rtl"] button,
html[dir="rtl"] input,
html[dir="rtl"] select,
html[dir="rtl"] textarea,
html[dir="rtl"] .btn {
  font-family: 'Cairo', 'Manrope', sans-serif !important;
  letter-spacing: 0 !important;
}

html[dir="rtl"] .nav-links {
  margin-left: 0;
  margin-right: auto;
}

html[dir="rtl"] .mobile-toggle {
  margin-left: 0;
  margin-right: auto;
}

html[dir="rtl"] .showcase-body {
  text-align: right;
}

html[dir="rtl"] .showcase-chip {
  left: auto;
  right: 10px;
}

html[dir="rtl"] .package-card li {
  padding-left: 0;
  padding-right: 24px;
}

html[dir="rtl"] .package-card li::before {
  left: auto;
  right: 0;
}

html[dir="rtl"] .pipe-arrow {
  transform: scaleX(-1);
  display: inline-block;
}

html[dir="rtl"] .stat-value {
  direction: ltr;
  unicode-bidi: isolate;
}

html[dir="rtl"] .bubble.customer {
  margin-right: 0 !important;
  margin-left: auto !important;
  border-bottom-left-radius: 16px !important;
  border-bottom-right-radius: 4px !important;
}

html[dir="rtl"] .bubble.assistant {
  margin-left: 0 !important;
  margin-right: auto !important;
  border-bottom-right-radius: 16px !important;
  border-bottom-left-radius: 4px !important;
}

html[dir="rtl"] .testimonial-author,
html[dir="rtl"] .bento-card,
html[dir="rtl"] .marketing-steps li,
html[dir="rtl"] .service-card {
  text-align: right;
}

@media (max-width: 720px) {
  .offer-chip {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
  }
  html[dir="rtl"] .offer-chip {
    text-align: right;
  }
  .pipe-arrow {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
