@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;600;700;800;900&display=swap');

:root {
  --deep-navy: #0F1C2E;
  --dark-navy: #1E2D4A;
  --steel: #3D5470;
  --teal: #4DBFB0;
  --teal-dim: #38A898;
  --white: #FFFFFF;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --card-bg: rgba(30,45,74,0.45);
  --card-border: rgba(255,255,255,0.07);
  /* semantic tokens (dark defaults) */
  --bg: #0F1C2E;
  --bg2: #1E2D4A;
  --text: #FFFFFF;
  --text-dim: rgba(255,255,255,0.4);
  --text-mid: rgba(255,255,255,0.7);
  --border: rgba(255,255,255,0.07);
  --border-soft: rgba(255,255,255,0.05);
  --glass-bg: rgba(15,28,46,0.75);
  --card: rgba(30,45,74,0.45);
  --niche-bg: rgba(10,17,28,0.6);
}

[data-theme="light"] {
  --deep-navy: #f0f6ff;
  --dark-navy: #e2eaf6;
  --steel: #546E7A;  /* WCAG AA: 7.2:1 contrast ratio */
  --white: #0F1C2E;
  --bg: #f0f6ff;
  --bg2: #e2eaf6;
  --text: #0a1428;
  --text-dim: rgba(0, 0, 0, 0.65);
  --text-mid: rgba(0, 0, 0, 0.85);
  --border: rgba(52, 58, 70, 0.15);
  --border-soft: rgba(15, 28, 46, 0.1);
  --glass-bg: rgba(240, 246, 255, 0.95);
  --card: rgba(255, 255, 255, 0.95);
  --card-bg: rgba(255, 255, 255, 0.95);
  --card-border: rgba(15, 28, 46, 0.15);
  --niche-bg: rgba(226, 234, 246, 0.8);
}
html{
  overflow-x: hidden;
}

/* ── THEME TOGGLE BUTTON ── */
.theme-toggle {
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .35s var(--ease);
  color: var(--text); flex-shrink: 0;
  backdrop-filter: blur(8px);
}
.theme-toggle:hover { border-color: var(--teal); color: var(--teal); transform: scale(1.1) rotate(20deg); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ── LANGUAGE TOGGLE ── */
.lang-toggle {
  height: 40px; padding: 0 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 100px;
  font-family: 'Outfit', sans-serif; font-weight: 800; font-size: .8rem;
  cursor: pointer; transition: all .35s var(--ease);
  color: var(--teal); flex-shrink: 0;
  backdrop-filter: blur(8px); letter-spacing: 1px;
}
.lang-toggle:hover { border-color: var(--teal); background: rgba(77,191,176,0.1); transform: scale(1.05); }

/* ── NAV CONTROLS GROUP ── */
.nav-controls { display: flex; align-items: center; gap: .6rem; }

/* ══════════════════════════════════════════════════════
   RTL / ARABIC
   JS sets lang="ar" on <html> (for font/CSS selectors)
   JS sets dir="rtl" on <body> only (avoids html-level scroll shift)
   body[dir="rtl"] = direction:rtl on body only = safe RTL layout
   ══════════════════════════════════════════════════════ */

/* Global RTL Overflow Kill */
body[dir="rtl"] {
  overflow-x: hidden !important;
  position: relative;
  width: 100%;
}
html[lang="ar"] {
  overflow-x: hidden !important;
}

.overflow-contain {
  width: 100%;
  overflow-x: hidden;
  position: relative;
}

@media (max-width: 768px) {
  body[dir="rtl"] * {
    max-width: 100vw;
  }
  /* Exempt these from max-width as they need to be wide for animation */
  body[dir="rtl"] .ticker-track,
  body[dir="rtl"] .pf-track,
  body[dir="rtl"] #preloader,
  body[dir="rtl"] .mobile-nav {
    max-width: none;
  }
}

/* Document Stack RTL Flip */
body[dir="rtl"] .page-2 { transform: translate(-15px, 15px) rotate(-3deg); }
body[dir="rtl"] .page-3 { transform: translate(-30px, 30px) rotate(-6deg); }
body[dir="rtl"] .doc-stack:hover .page-2 { transform: translate(-30px, -10px) rotate(-5deg); }
body[dir="rtl"] .doc-stack:hover .page-3 { transform: translate(-60px, -20px) rotate(-10deg); }
body[dir="rtl"] .doc-sign { text-align: left; }

/* Font tweaks — keyed on html[lang=ar] */
[lang="ar"] {
  font-family: 'Cairo', 'Inter', sans-serif;
  /* NO direction:rtl here — would shift <html> scroll origin */
}
[lang="ar"] .s-h2,
[lang="ar"] .hero h1,
[lang="ar"] .pc-name,
[lang="ar"] .proc-card h3,
[lang="ar"] .bc h3,
[lang="ar"] .nc h3,
[lang="ar"] .cta-strip h2 {
  font-family: 'Cairo', sans-serif;
  letter-spacing: 0;
}
[lang="ar"] .hero h1 { letter-spacing: 0; }

/* s-tag ::before line: swap the margin side */
[lang="ar"] .s-tag::before {
  margin-right: 0;
  margin-left: .6rem;
}

/* Stat box: physical border/padding swap */
body[dir="rtl"] .stat-box {
  border-left: none;
  border-right: 2px solid rgba(77,191,176,0.25);
  padding-left: 0;
  padding-right: 1.75rem;
}

/* Bento watermark number: absolutely positioned → flip side */
body[dir="rtl"] .bc-num {
  right: auto;
  left: 2rem;
}

/* Process connector line: flip position + gradient */
body[dir="rtl"] .proc-line {
  right: auto;
  left: -1rem;
  background: linear-gradient(270deg, rgba(77,191,176,0.4), transparent);
}

/* Sticky WhatsApp: move from right edge to left edge */
body[dir="rtl"] .sticky-wa {
  right: auto;
  left: 2rem;
}

/* Directional arrow SVGs: flip them to point left in RTL */
body[dir="rtl"] .btn-glow svg:last-child,
body[dir="rtl"] .btn-ghost svg:last-child,
body[dir="rtl"] .compare-item.bad svg {
  transform: scaleX(-1);
}
body[dir="rtl"] .faq-arrow {
  transform: scaleX(-1);
}
body[dir="rtl"] .faq-item[open] .faq-arrow {
  transform: scaleX(-1) rotate(90deg);
}

/* Mobile: sticky WA on narrower screens */
@media (max-width: 768px) {
  body[dir="rtl"] .sticky-wa {
    left: 1.5rem;
    right: auto;
  }
}

/* ── MOBILE CONTROLS ROW ── */
.mobile-controls-row { display: flex; gap: 2rem; align-items: center; margin-top: .5rem; }

/* ── CUSTOM SELECTION ── */
::selection { background: var(--teal); color: var(--deep-navy); }
::-moz-selection { background: var(--teal); color: var(--deep-navy); }

/* ── CUSTOM SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--deep-navy); }
::-webkit-scrollbar-thumb { background: var(--steel); border-radius: 10px; transition: background 0.3s; }
::-webkit-scrollbar-thumb:hover { background: var(--teal); }


/* ── PRELOADER ── */
#preloader {
  position:fixed; inset:0; background:var(--deep-navy);
  z-index:10000; display:flex; align-items:center; justify-content:center;
  transition:all 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}
#preloader.loaded { transform:translateY(-100%); pointer-events:none; }
.pre-content { text-align:center; }
.pre-logo img { height: 50px; width: auto; display: block; margin: 0 auto; }
.pre-bar-wrap { width:200px; height:2px; background:rgba(255,255,255,0.05); border-radius:10px; margin:0 auto; overflow:hidden; }
.pre-bar { height:100%; width:0%; background:var(--teal); border-radius:10px; animation:preBar 2s var(--ease) forwards; }
@keyframes preBar { 0%{width:0%} 100%{width:100%} }


/* ── SCROLL PROGRESS ── */
#progress-bar { position:fixed; top:0; left:0; height:3px; width:0%; background:linear-gradient(90deg,var(--teal),#88f1e4); z-index:9999; transition:width .1s linear; box-shadow:0 0 12px var(--teal); pointer-events: none; }
body[dir="rtl"] #progress-bar { left: auto; right: 0; }



/* ── ANIMATED GRADIENT BORDER on featured card ── */
.pc.featured { position:relative; z-index:1; }
.pc.featured::before { content:''; position:absolute; inset:-1.5px; border-radius:33px; z-index:-1; background:linear-gradient(135deg,var(--teal),#a8f0e8,var(--steel),var(--teal)); background-size:300% 300%; animation:gradBorder 4s ease infinite; }
@keyframes gradBorder { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }

/* ── SHIMMER on hover ── */
.bc::after, .nc::after, .hcard::after, .proc-card::after { content:''; position:absolute; top:0; left:-100%; width:50%; height:100%; background:linear-gradient(90deg,transparent,rgba(255,255,255,0.04),transparent); transition:left .7s var(--ease); pointer-events:none; z-index:5; }
.bc:hover::after, .nc:hover::after, .hcard:hover::after, .proc-card:hover::after { left:150%; }
/* RTL: shimmer travels right instead of left */
body[dir="rtl"] .bc::after, body[dir="rtl"] .nc::after, body[dir="rtl"] .hcard::after, body[dir="rtl"] .proc-card::after { left:auto; right:-100%; }
body[dir="rtl"] .bc:hover::after, body[dir="rtl"] .nc:hover::after, body[dir="rtl"] .hcard:hover::after, body[dir="rtl"] .proc-card:hover::after { right:150%; left:auto; }

/* ── ANIMATED GRADIENT TEXT ── */
.hero h1 .grad { background:linear-gradient(90deg,var(--teal) 0%,#a8f0e8 30%,var(--white) 60%,var(--teal) 100%); background-size:200% auto; -webkit-background-clip:text; -webkit-text-fill-color:transparent; animation:gradMove 4s linear infinite; }
@keyframes gradMove { to{background-position:200% center} }

/* ── COMPARISON ── */
.compare-section { background:rgba(8,14,24,0.7); }
.compare-grid { display:grid; grid-template-columns:1fr auto 1fr; gap:2rem; max-width:960px; margin:auto; }
.compare-col { border-radius:28px; padding:2.5rem; }
.compare-other { background:rgba(255,255,255,0.02); border:1px solid rgba(255,255,255,0.06); }
.compare-us { background:linear-gradient(145deg,rgba(77,191,176,0.08),rgba(30,45,74,0.6)); border:1px solid rgba(77,191,176,0.2); }
.compare-header { font-family:'Outfit',sans-serif; font-size:1.1rem; font-weight:800; margin-bottom:1.75rem; color:var(--text-dim); }
.teal-header { color:var(--white); }
.teal-header em { color:var(--teal); font-style:normal; }
.compare-vs { display:flex; align-items:center; justify-content:center; font-family:'Outfit',sans-serif; font-size:1.1rem; font-weight:900; color:rgba(255,255,255,0.12); writing-mode:vertical-rl; letter-spacing:4px; }
.compare-item { display:flex; align-items:center; gap:.75rem; padding:.8rem 0; border-bottom:1px solid var(--border-soft); font-size:.88rem; }
.compare-item:last-child { border-bottom:none; }
.compare-item.bad { color:var(--text-dim); }
.compare-item.bad svg { color:rgba(255,80,80,0.5); flex-shrink:0; transform:rotate(180deg); }
.compare-item.good { color:var(--text-mid); }
.compare-item.good svg { color:var(--teal); flex-shrink:0; }

/* ── LIVE COUNT ── */
#live-count { color:var(--teal); font-weight:800; }

@media(max-width:768px) {
  .compare-grid { grid-template-columns:1fr; }
  .compare-vs { writing-mode:horizontal-tb; padding:.5rem 0; letter-spacing:2px; }
  .sp-toast { max-width:calc(100vw - 2rem); left:1rem; bottom:6rem; }
}


*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; overflow-x:hidden; }
body { font-family:'Inter',sans-serif; background:var(--bg); color:var(--text); overflow-x:hidden; cursor:none; transition:background .4s, color .4s; }

/* ── REVEAL ANIMATIONS ── */
.reveal { opacity:0; transform:translateY(30px); transition:opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.on { opacity:1; transform:translateY(0); }

/* Remove ALL underlines */
a, a:visited, a:hover, a:focus, a:active { text-decoration:none; color:inherit; }

/* ── CURSOR ─────────────────────────────────────── */
#cursor-ring {
  width:30px; height:30px;
  border:1.5px solid rgba(77,191,176,0.6);
  border-radius:50%; position:fixed; top:0; left:0;
  pointer-events:none; z-index:9999;
  transform:translate(-50%,-50%);
  transition: width .35s var(--ease), height .35s var(--ease), background .35s;
  mix-blend-mode:difference;
}
#cursor-dot {
  width:5px; height:5px; background:var(--teal);
  border-radius:50%; position:fixed; top:0; left:0;
  pointer-events:none; z-index:9999; transform:translate(-50%,-50%);
}
body.cursor-hover #cursor-ring { width:70px; height:70px; background:rgba(77,191,176,0.08); }

/* ── KEYBOARD FOCUS STYLES ── */
:focus { outline: none; } /* Remove default browser outline */

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

/* Better focus for nav items */
.nav-links a:focus-visible, .lang-toggle:focus-visible, .theme-toggle:focus-visible {
  outline: 2px dashed var(--teal);
  outline-offset: 4px;
  border-radius: 6px;
}

/* ── PREFERS REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto; }

  /* Hide cursor trail */
  #cursor-ring, #cursor-dot { display: none; }

  /* Disable particle animation */
  canvas { animation: none !important; }
}

/* ── NAV ─────────────────────────────────────────── */
nav {
  position:fixed; top:0; left:0; width:100%; z-index:900;
  padding:1.6rem 0; transition:all .5s var(--ease);
}
nav.glass {
  background:var(--glass-bg);
  backdrop-filter:blur(24px) saturate(180%);
  padding:1rem 0;
  border-bottom:1px solid rgba(77,191,176,0.1);
  box-shadow:0 8px 32px rgba(0,0,0,0.3);
}
.nav-wrap {
  max-width:1280px; margin:auto; padding:0 2rem;
  display:flex; justify-content:space-between; align-items:center;
}
.logo img { height: 35px; width: auto; display: block; }
.nav-links { display:flex; gap:2.5rem; list-style:none; align-items:center; }
.nav-links a { font-size:0.875rem; font-weight:500; color:var(--text-dim); letter-spacing:0.3px; transition:color .3s; }
.nav-links a:hover { color:var(--teal); }
.nav-cta {
  padding:0.65rem 1.5rem;
  background:var(--teal); color:#0F1C2E !important;
  border-radius:100px; font-weight:700; font-size:0.875rem;
  transition:all .35s var(--ease);
}
.nav-cta:hover { background:var(--teal-dim); transform:scale(1.04);   }

/* Hamburger */
.hamburger { display:none; flex-direction:column; gap:5px; cursor:none; padding:4px; }
.hamburger span { display:block; width:24px; height:2px; background:var(--white); border-radius:2px; transition:all .3s; }
.hamburger.open span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity:0; }
.hamburger.open span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  display:none; position:fixed; top:0; left:0; width:100%; height:100vh;
  background:var(--glass-bg); backdrop-filter:blur(20px);
  z-index:800; flex-direction:column; align-items:center; justify-content:center; gap:2.5rem;
}
.mobile-nav.open { display:flex; }
.mobile-nav a { font-family:'Outfit',sans-serif; font-size:2rem; font-weight:700; color:var(--text-mid); transition:color .3s; }
.mobile-nav a:hover { color:var(--teal); }
/* Theme toggle row inside mobile nav */
.mobile-theme-row { display:flex; align-items:center; gap:1rem; margin-top:.5rem; }
.mobile-theme-row span { font-family:'Outfit',sans-serif; font-size:1rem; font-weight:600; color:var(--text-dim); }
.mobile-theme-row .theme-toggle { display:flex; width:48px; height:48px; font-size:1.2rem; }

/* ── HERO ─────────────────────────────────────────── */
.hero { min-height:100vh; display:flex; align-items:center; position:relative; overflow:hidden; }
#particles { position:absolute; inset:0; z-index:0; }
.grid-overlay {
  position:absolute; inset:0; z-index:1;
  background-image:linear-gradient(rgba(77,191,176,0.04) 1px,transparent 1px),linear-gradient(90deg,rgba(77,191,176,0.04) 1px,transparent 1px);
  background-size:64px 64px;
  mask-image:radial-gradient(ellipse 80% 80% at 50% 50%,black 20%,transparent 100%);
}
.hero-wrap {
  max-width:1280px; margin:auto; padding:8rem 2rem 4rem;
  position:relative; z-index:2;
  display:grid; grid-template-columns:1fr 1fr; gap:5rem; align-items:center;
}

/* Chip */
.chip {
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.4rem 1rem; margin-bottom:2rem;
  background:rgba(77,191,176,0.08);
  border:1px solid rgba(77,191,176,0.25);
  border-radius:100px;
  font-size:.78rem; font-weight:700; color:var(--teal);
  letter-spacing:1.5px; text-transform:uppercase;
}
.chip-dot { width:6px; height:6px; background:var(--teal); border-radius:50%; animation:blink 1.5s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.2} }

.hero h1 {
  font-family:'Outfit',sans-serif;
  font-size:clamp(2.8rem,5.5vw,5.5rem);
  font-weight:900; line-height:1; letter-spacing:-3px; margin-bottom:1.75rem;
}
.hero h1 .line { display:block; overflow:hidden; }
.hero h1 .line span { display:block; animation:lineUp .9s var(--ease) both; }
.hero h1 .line:nth-child(2) span { animation-delay:.08s; }
.hero h1 .line:nth-child(3) span { animation-delay:.16s; }
@keyframes lineUp { from{transform:translateY(110%)} to{transform:translateY(0)} }
.hero h1 .grad { background:linear-gradient(95deg,var(--teal) 0%,#a8f0e8 100%); -webkit-background-clip:text; -webkit-text-fill-color:transparent; }

.hero-sub { font-size:1.1rem; color:var(--text-dim); line-height:1.75; max-width:480px; margin-bottom:2.5rem; animation:fadeUp .9s .3s var(--ease) both; }
@keyframes fadeUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }

.hero-btns { display:flex; gap:1rem; flex-wrap:wrap; animation:fadeUp .9s .45s var(--ease) both; }
.btn-glow {
  display:inline-flex; align-items:center; gap:.6rem;
  padding:1rem 2rem; border-radius:100px;
  font-weight:700; font-size:.95rem;
  background:var(--teal); color:var(--deep-navy);
  transition:all .4s var(--ease);
}
.btn-glow:hover { background:var(--teal-dim); transform:translateY(-4px) scale(1.03);}
.btn-ghost {
  display:inline-flex; align-items:center; gap:.6rem;
  padding:1rem 2rem; border-radius:100px;
  font-weight:600; font-size:.95rem;
  border:1px solid rgba(255,255,255,0.12); color:var(--white);
  backdrop-filter:blur(8px); transition:all .4s var(--ease);
}
.btn-ghost:hover { border-color:var(--teal); background:rgba(77,191,176,0.07); transform:translateY(-4px); }

/* Hero Right */
.hero-right { display:flex; flex-direction:column; gap:1.25rem; animation:fadeUp .9s .2s var(--ease) both; }
.hcard {
  background:rgba(30,45,74,0.5);
  backdrop-filter:blur(16px);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:22px; padding:1.75rem 2rem;
  transition:all .5s var(--ease);
}
.hcard:hover { transform:translateY(-6px); border-color:rgba(77,191,176,0.2); background:rgba(30,45,74,0.7); }
.hcard-label { font-size:.72rem; font-weight:700; color:var(--teal); text-transform:uppercase; letter-spacing:1.5px; margin-bottom:.5rem; }
.hcard-row { display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.hcard-val { font-family:'Outfit',sans-serif; font-size:2.2rem; font-weight:900; line-height:1; }
.hcard-sub { font-size:.82rem; color:var(--text-dim); margin-top:.3rem; }
.badge-pill {
  flex-shrink:0; padding:.35rem .9rem;
  background:rgba(77,191,176,0.12); border:1px solid rgba(77,191,176,0.25);
  border-radius:100px; font-size:.72rem; font-weight:800; color:var(--teal);
  display:flex; align-items:center; gap:.4rem; white-space:nowrap;
}

/* ── TICKER ─────────────────────────────────────────── */
.ticker { padding:1.1rem 0; background:var(--teal); overflow:hidden; white-space:nowrap; direction:ltr; }
.ticker-track { display:inline-flex; gap:3.5rem; animation:ticker 22s linear infinite; direction:ltr; }
.ticker-track:hover { animation-play-state:paused; }
.ticker-item { font-family:'Outfit',sans-serif; font-weight:800; font-size:.85rem; color:var(--deep-navy); text-transform:uppercase; letter-spacing:2px; display:flex; align-items:center; gap:1rem; }
.ticker-sep { width:4px; height:4px; background:var(--deep-navy); border-radius:50%; opacity:.4; }
@keyframes ticker { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ── SHARED ─────────────────────────────────────────── */
.section { padding:7rem 0; }
.wrap { max-width:1280px; margin:auto; padding:0 2rem; }
.s-tag { display:inline-flex; align-items:center; gap:.6rem; font-size:.75rem; font-weight:700; color:var(--teal); text-transform:uppercase; letter-spacing:2px; margin-bottom:1rem; }
.s-tag::before { content:''; width:28px; height:2px; background:var(--teal); flex-shrink:0; }
.s-h2 { font-family:'Outfit',sans-serif; font-size:clamp(1.8rem,3.5vw,3.2rem); font-weight:900; letter-spacing:-2px; line-height:1.05; margin-bottom:1.25rem; }
.s-sub { font-size:1rem; color:var(--text-dim); max-width:500px; line-height:1.75; }
.reveal { opacity:0; transform:translateY(36px); transition:opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.on { opacity:1; transform:translateY(0); }

/* ── STATS ROW ─────────────────────────────────────────── */
.stats-row { display:grid; grid-template-columns:repeat(4,1fr); gap:2rem; margin-top:4rem; }
.stat-box { border-left:2px solid rgba(77,191,176,0.25); padding-left:1.75rem; }
.stat-box h3 { font-family:'Outfit',sans-serif; font-size:clamp(2rem,3vw,3rem); font-weight:900; color:var(--teal); letter-spacing:-2px; line-height:1; }
.stat-box p { color:var(--text-dim); font-size:.85rem; margin-top:.4rem; line-height:1.5; }

/* ── BENTO ─────────────────────────────────────────── */
.bento { display:grid; grid-template-columns:repeat(3,1fr); gap:1.25rem; margin-top:4rem; }
.bc {
  background:var(--card-bg); border:1px solid var(--card-border);
  border-radius:28px; padding:2.75rem 2.25rem;
  position:relative; overflow:hidden;
  transition:all .5s var(--ease);
}
.bc::after { content:''; position:absolute; top:0; left:0; right:0; height:1px; background:linear-gradient(90deg,transparent,var(--teal),transparent); opacity:0; transition:opacity .4s; }
.bc:hover { background:rgba(30,45,74,0.75); border-color:rgba(77,191,176,0.18); transform:translateY(-8px); }
.bc:hover::after { opacity:1; }
.bc.wide { grid-column:span 2; }
.bc-icon {
  width:52px; height:52px; background:rgba(77,191,176,0.1); border-radius:16px;
  display:flex; align-items:center; justify-content:center; margin-bottom:1.5rem;
  color:var(--teal); transition:all .4s var(--ease);
}
.bc:hover .bc-icon { background:var(--teal); color:var(--deep-navy); transform:scale(1.1) rotate(6deg); }
.bc h3 { font-family:'Outfit',sans-serif; font-size:1.2rem; font-weight:700; margin-bottom:.65rem; }
.bc p { color:var(--text-dim); line-height:1.7; font-size:.9rem; }
.bc-num { font-family:'Outfit',sans-serif; font-size:5rem; font-weight:900; color:rgba(77,191,176,0.07); position:absolute; bottom:1rem; right:2rem; letter-spacing:-4px; pointer-events:none; }

/* ── NICHES ─────────────────────────────────────────── */
.niches-bg { background:var(--niche-bg); }
.niches-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:1rem; margin-top:4rem; }
.nc {
  background:var(--card); border:1px solid var(--border);
  border-radius:24px; padding:2.5rem 1.5rem; text-align:center;
  position:relative; overflow:hidden;
  transition:all .5s var(--ease);
}
.nc::before { content:''; position:absolute; inset:0; background:radial-gradient(circle at 50% 0%,rgba(77,191,176,0.1),transparent 70%); opacity:0; transition:opacity .4s; }
.nc:hover::before { opacity:1; }
.nc:hover { transform:translateY(-10px) scale(1.02); border-color:rgba(77,191,176,0.2); }
.nc-icon { width:52px; height:52px; display:flex; align-items:center; justify-content:center; margin:0 auto 1.25rem; color:var(--teal); transition:transform .4s var(--ease); }
.nc:hover .nc-icon { transform:scale(1.15) rotate(-5deg); }
.nc h3 { font-family:'Outfit',sans-serif; font-weight:700; font-size:1rem; margin-bottom:.4rem; }
.nc p { font-size:.82rem; color:var(--text-dim); line-height:1.55; }

/* ── PRICING ─────────────────────────────────────────── */
.pricing-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1.5rem; margin-top:4rem; align-items:start; }
.pc {
  border-radius:32px; padding:3rem 2.5rem;
  background:var(--card-bg); border:1px solid var(--card-border);
  transition:all .5s var(--ease); position:relative; overflow:hidden;
}
.pc:hover { transform:translateY(-12px); border-color:rgba(77,191,176,0.2); }
.pc.featured {
  background:linear-gradient(145deg,rgba(77,191,176,0.12) 0%,rgba(30,45,74,0.9) 100%);
  border:1px solid rgba(77,191,176,0.3); transform:scale(1.04);
}
.pc.featured:hover { transform:scale(1.04) translateY(-12px); }
.pc-badge { display:inline-flex; align-items:center; gap:.4rem; padding:.3rem .9rem; background:var(--teal); color:var(--deep-navy); border-radius:100px; font-size:.72rem; font-weight:800; margin-bottom:1.5rem; text-transform:uppercase; letter-spacing:.5px; }
.pc-name { font-family:'Outfit',sans-serif; font-size:1.4rem; font-weight:800; margin-bottom:1.25rem; }
.pc-price { font-family:'Outfit',sans-serif; font-size:4rem; font-weight:900; letter-spacing:-3px; line-height:1; display:flex; align-items:flex-start; gap:.2rem; }
.pc-price sup { font-size:1.5rem; margin-top:.6rem; font-weight:700; }
.pc-per { font-size:.82rem; color:var(--text-dim); margin:.75rem 0 2rem; }
.pc-feats { list-style:none; margin-bottom:2.5rem; }
.pc-feats li { display:flex; align-items:center; gap:.75rem; padding:.65rem 0; border-bottom:1px solid var(--border-soft); font-size:.88rem; color:var(--text-mid); }
.check-icon { width:20px; height:20px; background:rgba(77,191,176,0.12); border-radius:50%; display:flex; align-items:center; justify-content:center; flex-shrink:0; color:var(--teal); }
.p-btn {
  display:flex; width:100%; padding:1rem; border-radius:100px; border:none;
  font-weight:700; font-size:.9rem; cursor:none; transition:all .4s var(--ease);
  align-items:center; justify-content:center; gap:.5rem;
}
.p-btn.solid { background:var(--teal); color:var(--deep-navy); }
.p-btn.solid:hover { background:var(--teal-dim); transform:translateY(-2px); }
.p-btn.outline { background:transparent; color:var(--text); border:1px solid var(--border); }
.p-btn.outline:hover { border-color:var(--teal); background:rgba(77,191,176,0.06); }

/* ── CTA STRIP ─────────────────────────────────────────── */
.cta-wrap { padding:0 2rem 6rem; }
.cta-strip {
  max-width:1280px; margin:auto;
  background:linear-gradient(135deg,rgba(77,191,176,0.1) 0%,rgba(30,45,74,0.7) 100%);
  border:1px solid rgba(77,191,176,0.18);
  border-radius:32px; padding:5rem 4rem; text-align:center; position:relative; overflow:hidden;
}
.cta-glow { position:absolute; width:600px; height:600px; background:radial-gradient(circle,rgba(77,191,176,0.1),transparent 70%); top:50%; left:50%; transform:translate(-50%,-50%); animation:pls 4s ease-in-out infinite; pointer-events:none; }
@keyframes pls { 0%,100%{transform:translate(-50%,-50%) scale(1)} 50%{transform:translate(-50%,-50%) scale(1.2)} }
.cta-strip h2 { font-family:'Outfit',sans-serif; font-size:clamp(1.6rem,3.5vw,3rem); font-weight:900; letter-spacing:-2px; position:relative; z-index:1; margin-bottom:1rem; }
.cta-strip p { color:var(--text-dim); font-size:1.05rem; position:relative; z-index:1; margin-bottom:2.5rem; }
.cta-btns { display:flex; gap:1rem; justify-content:center; flex-wrap:wrap; position:relative; z-index:1; }

/* ── FOOTER ─────────────────────────────────────────── */
footer { border-top:1px solid var(--border-soft); padding:5rem 0 2rem; background:var(--bg); }
.foot-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:4rem; margin-bottom:4rem; }
.foot-logo img { height: 65px; width: auto; display: block; }
.foot-desc { color:var(--text-dim); font-size:.88rem; line-height:1.85; }
.foot-col h4 { font-family:'Outfit',sans-serif; font-weight:700; font-size:.95rem; margin-bottom:1.5rem; }
.foot-links { list-style:none; }
.foot-links li { margin-bottom:.9rem; }
.foot-links a { font-size:.87rem; color:var(--text-dim); transition:color .3s; display:flex; align-items:center; gap:.5rem; }
.foot-links a:hover { color:var(--teal); }
.foot-bottom { border-top:1px solid var(--border-soft); padding-top:2rem; display:flex; justify-content:space-between; align-items:center; gap:1rem; flex-wrap:wrap; }
.foot-bottom p { font-size:.82rem; color:var(--text-dim); }
.foot-socials { display:flex; gap:.75rem; }
.soc { width:36px; height:36px; border:1px solid var(--border); border-radius:50%; display:flex; align-items:center; justify-content:center; color:var(--text-dim); transition:all .3s; }
.soc:hover { border-color:var(--teal); color:var(--teal); transform:translateY(-3px); }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media(max-width:1100px) {
  .hero-wrap { grid-template-columns:1fr; gap:3rem; }
  .hero-right { display:grid; grid-template-columns:repeat(3,1fr); }
  .hero h1 { font-size:clamp(2.5rem,7vw,4.5rem); }
  .bento { grid-template-columns:1fr 1fr; }
  .bc.wide { grid-column:span 2; }
  .stats-row { grid-template-columns:repeat(2,1fr); }
  .niches-grid { grid-template-columns:repeat(2,1fr); }
  .pricing-grid { grid-template-columns:1fr; max-width:520px; margin-left:auto; margin-right:auto; }
  .pc.featured { transform:none; }
  .pc.featured:hover { transform:translateY(-12px); }
  .foot-grid { grid-template-columns:1fr 1fr; gap:2.5rem; }
}
@media(max-width:768px) {
  body { cursor:auto; }
  #cursor-ring, #cursor-dot { display:none; }
  .theme-toggle { display:none; } /* hidden in navbar on mobile */
  .nav-controls { display:none; } /* hidden — appears in mobile nav instead */
  .nav-links { display:none; }
  .hamburger { display:flex; }
  .hero-wrap { padding:7rem 1.5rem 3rem; }
  .hero-right { grid-template-columns:1fr; }
  .bento { grid-template-columns:1fr; }
  .bc.wide { grid-column:span 1; }
  .stats-row { grid-template-columns:1fr 1fr; }
  .niches-grid { grid-template-columns:1fr 1fr; }
  .pricing-grid { max-width:100%; }
  .cta-strip { padding:3rem 1.5rem; }
  .cta-wrap { padding:0 1.25rem 4rem; }
  .foot-grid { grid-template-columns:1fr; gap:2rem; }
  .foot-bottom { flex-direction:column; text-align:center; }
  .wrap { padding:0 1.25rem; }
  .section { padding:5rem 0; }
}
/* ── PROCESS ── */
.process-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:2rem; margin-top:4rem; }
.proc-card {
  background:var(--card-bg); border:1px solid var(--card-border);
  border-radius:28px; padding:3rem 2.5rem; position:relative;
  transition:all .5s var(--ease);
}
.proc-card:hover { transform:translateY(-8px); border-color:rgba(77,191,176,0.2); }
.proc-num { font-family:'Outfit',sans-serif; font-size:5rem; font-weight:900; color:rgba(77,191,176,0.08); line-height:1; margin-bottom:1rem; letter-spacing:-4px; }
.proc-icon { width:56px; height:56px; background:rgba(37, 150, 190, 0.1); border-radius:16px; display:flex; align-items:center; justify-content:center; color:var(--teal); margin-bottom:1.5rem; transition:all .4s var(--ease); }
.proc-icon.blue-icon { background:rgba(37, 150, 190, 0.1); color:rgba(37, 150, 190, 1); }
.proc-card:hover .proc-icon { background:var(--teal); color:var(--deep-navy); }
.proc-card:hover .proc-icon.blue-icon { background:rgba(37, 150, 190, 1); color:var(--deep-navy); }
.proc-card h3 { font-family:'Outfit',sans-serif; font-size:1.2rem; font-weight:700; margin-bottom:.75rem; }
.proc-card p { color:var(--text-dim); font-size:.9rem; line-height:1.7; }
.proc-line { position:absolute; top:3.5rem; right:-1rem; width:2rem; height:2px; background:linear-gradient(90deg,rgba(77,191,176,0.4),transparent); z-index:10; }

/* ── TRUST BAR ── */
.trust-bar { padding:2rem 0; border-top:1px solid var(--border-soft); border-bottom:1px solid var(--border-soft); background:var(--bg); }
.trust-grid { display:flex; justify-content:space-between; align-items:center; gap:1rem; flex-wrap:wrap; }
.trust-item { display:flex; align-items:center; gap:.6rem; color:var(--text-dim); font-size:.85rem; font-weight:500; }
.trust-item svg { color:var(--teal); flex-shrink:0; }

/* ── PRICING 2-COL ── */
.pricing-2col { grid-template-columns:repeat(2,1fr); max-width:860px; margin-left:auto; margin-right:auto; }
.pricing-2col .pc.featured { transform:none; }
.pricing-2col .pc.featured:hover { transform:translateY(-12px); }
.pricing-guarantee { display:flex; align-items:center; gap:.75rem; justify-content:center; margin-top:2rem; color:var(--text-dim); font-size:.85rem; }
.pricing-guarantee svg { color:var(--teal); flex-shrink:0; }

/* ── FAQ ── */
.faq-wrap { display:grid; grid-template-columns:1fr 1.5fr; gap:6rem; align-items:start; }
.faq-list { margin-top:4rem; }
.faq-item { border-bottom:1px solid var(--border); }
.faq-item summary {
  display:flex; justify-content:space-between; align-items:center; gap:1rem;
  padding:1.5rem 0; font-weight:600; font-size:.95rem; cursor:none;
  list-style:none; color:var(--text-mid); transition:color .3s;
}
.faq-item summary::-webkit-details-marker { display:none; }
.faq-item summary:hover { color:var(--teal); }
.faq-arrow { color:var(--text-dim); flex-shrink:0; transition:transform .3s var(--ease); }
.faq-item[open] summary { color:var(--teal); }
.faq-item[open] .faq-arrow { transform:rotate(90deg); color:var(--teal); }
.faq-item p { padding-bottom:1.5rem; color:var(--text-dim); line-height:1.75; font-size:.9rem; }

/* ── STICKY WHATSAPP ── */
.sticky-wa {
  position:fixed; bottom:2rem; right:2rem; z-index:800;
  display:flex; align-items:center; gap:.6rem;
  background:var(--teal); color:var(--deep-navy);
  padding:.85rem 1.4rem; border-radius:100px;
  font-weight:700; font-size:.9rem;
  transition:all .4s var(--ease);
  animation:pulse-ring 3s infinite;
}
.sticky-wa:hover { background:var(--teal-dim); transform:scale(1.05) translateY(-3px); }
@keyframes pulse-ring {
  0%{box-shadow:0 0 0 0 rgba(77,191,176,0.5)}
  70%{box-shadow:0 0 0 18px rgba(77,191,176,0)}
  100%{box-shadow:0 0 0 0 rgba(77,191,176,0)}
}

/* ── CTA UPGRADES ── */
.cta-urgency {
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.4rem 1rem; margin-bottom:1.5rem;
  background:rgba(77,191,176,0.1); border:1px solid rgba(77,191,176,0.25);
  border-radius:100px; font-size:.78rem; font-weight:700;
  color:var(--teal); text-transform:uppercase; letter-spacing:1px;
  position:relative; z-index:1;
}
[data-theme="light"] .cta-urgency { background:rgba(77,191,176,0.15); }
.cta-micro { font-size:.82rem; color:var(--text-dim); margin-top:1.25rem; position:relative; z-index:1; }

/* ── RESPONSIVE ADDITIONS ── */
@media(max-width:1100px) {
  .process-grid { grid-template-columns:1fr; gap:1.25rem; }
  .proc-line { display:none; }
  .faq-wrap { grid-template-columns:1fr; gap:2rem; }
  .faq-list { margin-top:2rem; }
  .trust-grid { justify-content:center; gap:1.5rem; }
}
@media(max-width:768px) {
  .pricing-2col { grid-template-columns:1fr; max-width:480px; }
  .sticky-wa span { display:none; }
  .sticky-wa { padding:.9rem; border-radius:50%; }
}
@media(max-width:480px) {
  .hero h1 { font-size:2.4rem; letter-spacing:-2px; }
  .hero-btns { flex-direction:column; }
  .btn-glow, .btn-ghost { justify-content:center; }
  .stats-row { grid-template-columns:1fr; }
  .niches-grid { grid-template-columns:1fr 1fr; gap:.75rem; }
  .cta-btns { flex-direction:column; align-items:center; }
  .s-h2 { letter-spacing:-1.5px; }
}

/* ── DEVICE SHOWCASE ── */
.showcase-container { display:grid; grid-template-columns:1fr 1.2fr; gap:5rem; align-items:center; }
.showcase-selector { display:flex; flex-wrap:wrap; gap:1rem; margin-top:2.5rem; }
.show-btn { background:rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.1); color:rgba(255,255,255,0.6); padding:.8rem 1.8rem; border-radius:100px; font-weight:600; font-size:.9rem; cursor:none; transition:all .3s var(--ease); }
.show-btn:hover { background:rgba(255,255,255,0.08); color:var(--white); transform:translateY(-2px); }
.show-btn.active { background:var(--teal); border-color:var(--teal); color:var(--deep-navy); box-shadow:0 10px 30px rgba(77,191,176,0.4); }

.showcase-display { position:relative; padding:4rem 2rem; }
.laptop-frame { position:relative; width:100%; max-width:600px; margin:auto; z-index:2; perspective:1000px; }
.laptop-screen {
  background:#000; border-radius:18px 18px 0 0; border:12px solid #1a1a1a;
  aspect-ratio:16/10; overflow:hidden; position:relative;
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.8), inset 0 0 0 1px rgba(255,255,255,0.05);
  transform: rotateX(2deg); transform-origin: bottom;
}
.laptop-webcam {
  position:absolute; top:4px; left:50%; transform:translateX(-50%);
  width:6px; height:6px; background:#222; border-radius:50%; z-index:10;
  box-shadow:inset 0 0 2px rgba(255,255,255,0.2);
}
.laptop-webcam::after { content:''; position:absolute; top:2px; left:2px; width:2px; height:2px; background:rgba(0,100,255,0.3); border-radius:50%; }

.laptop-screen img { width:100%; height:100%; object-fit:cover; transition:opacity .6s var(--ease), transform .8s var(--ease); }
.screen-gloss {
  position:absolute; inset:0;
  background:linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 40%, rgba(255,255,255,0.05) 60%, transparent 100%);
  pointer-events:none; z-index:5;
}

.laptop-base {
  background:linear-gradient(to right, #222 0%, #444 50%, #222 100%);
  height:16px; width:114%; margin-left:-7%; border-radius:0 0 20px 20px;
  position:relative; z-index:1;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.laptop-base::after {
  content:''; position:absolute; top:0; left:50%; transform:translateX(-50%);
  width:22%; height:8px; background:#111; border-radius:0 0 10px 10px;
  box-shadow: inset 0 -2px 5px rgba(255,255,255,0.05);
}

/* Ground Reflection */
.laptop-frame::after {
  content:''; position:absolute; bottom:-50px; left:0; width:100%; height:40px;
  background:radial-gradient(ellipse at center, rgba(77,191,176,0.15) 0%, transparent 70%);
  filter:blur(20px); z-index:-1;
}

.phone-frame {
  position:absolute; bottom:-2%; left:-8%; width:26%; max-width:170px; z-index:10;
  background:#050505; border:8px solid #1a1a1a; border-radius:38px;
  aspect-ratio:9/19.5; overflow:hidden;
  box-shadow:0 60px 120px -20px rgba(0,0,0,0.8), inset 0 0 0 1px rgba(255,255,255,0.15);
}

/* Phone Shadow on ground */
.phone-frame::after {
  content:''; position:absolute; bottom:-100px; left:50%; transform:translateX(-50%);
  width:80%; height:20px; background:rgba(0,0,0,0.5); border-radius:50%;
  filter:blur(15px); z-index:-1; pointer-events:none;
  opacity:0.6;
}

.phone-notch {
  position:absolute; top:12px; left:50%; transform:translateX(-50%);
  width:40%; height:18px; background:#1a1a1a; border-radius:10px; z-index:15;
  display:flex; align-items:center; justify-content:center; gap:6px;
}
.phone-notch::before { content:''; width:4px; height:4px; background:#222; border-radius:50%; }
.phone-notch::after { content:''; width:20px; height:2px; background:#222; border-radius:10px; }

.phone-screen { width:100%; height:100%; overflow:hidden; position:relative; }
.phone-screen img { width:100%; height:100%; object-fit:cover; transition:opacity .6s var(--ease); }
.phone-home { position:absolute; bottom:8px; left:50%; transform:translateX(-50%); width:35%; height:4px; background:rgba(255,255,255,0.2); border-radius:10px; z-index:15; }

/* Loading State for Screens */

@media(max-width:1100px) {
  .showcase-container { grid-template-columns:1fr; text-align:center; gap:4rem; }
  .showcase-selector { justify-content:center; }
  .phone-frame { width:120px; left:50%; bottom:-10%; transform:translateX(-180%) rotate(0); }
  .floating-card { display:none; }
}

@media(max-width:768px) {
  .phone-frame { 
    display: block; 
    width: 80px; 
    left: 10%; 
    bottom: 5%; 
    border-width: 4px;
    border-radius: 20px;
  }
  .phone-notch { height: 10px; border-radius: 5px; top: 6px; }
  .laptop-base { width:100%; margin-left:0; }
  .showcase-display { padding: 4rem 1rem 2rem; }
}

/* ── PROJECT GALLERY ── */
.project-gallery {
  max-height: 0; opacity: 0; visibility: hidden;
  transition: max-height 1s var(--ease), opacity 0.8s var(--ease), visibility 0.8s;
  background: rgba(8,14,24,0.4); border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 2rem;
}
.project-gallery.open { max-height: 1000px; opacity: 1; visibility: visible; padding: 5rem 0; }

.gallery-track {
  display: flex; gap: 2.5rem; padding: 0 5rem;
  overflow-x: auto; scrollbar-width: none;
  scroll-snap-type: x mandatory;
  transition: transform 0.8s var(--ease);
}
.gallery-track::-webkit-scrollbar { display: none; }

.p-card {
  flex: 0 0 350px; border-radius: 28px; background: var(--card-bg);
  border: 1px solid var(--card-border); overflow: hidden;
  transition: all 0.5s var(--ease); cursor: pointer;
  scroll-snap-align: center;
  opacity: 0; transform: translateY(30px);
}
.project-gallery.open .p-card { opacity: 1; transform: translateY(0); }

/* Staggered Card Entry */
.project-gallery.open .p-card:nth-child(1) { transition-delay: 0.2s; }
.project-gallery.open .p-card:nth-child(2) { transition-delay: 0.3s; }
.project-gallery.open .p-card:nth-child(3) { transition-delay: 0.4s; }
.project-gallery.open .p-card:nth-child(4) { transition-delay: 0.5s; }
.project-gallery.open .p-card:nth-child(5) { transition-delay: 0.6s; }

.p-card:hover { transform: translateY(-12px) scale(1.02); border-color: var(--teal); box-shadow: 0 30px 60px rgba(0,0,0,0.5); }
.p-img { height: 200px; overflow: hidden; position: relative; }
.p-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.p-card:hover .p-img img { transform: scale(1.1); }
.p-info { padding: 1.5rem; }
.p-info h3 { font-family: 'Outfit', sans-serif; font-size: 1.1rem; margin-bottom: 0.4rem; }
.p-info span { font-size: 0.8rem; color: var(--teal); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }

/* ── MODAL ── */
.modal {
  position: fixed; inset: 0; background: rgba(8,14,24,0.9);
  backdrop-filter: blur(12px); z-index: 2000;
  display: none; align-items: center; justify-content: center; padding: 2rem;
}
.modal.open { display: flex; }
.modal-content {
  background: var(--dark-navy); border: 1px solid var(--card-border);
  border-radius: 32px; width: 100%; max-width: 800px; position: relative;
  max-height: 90vh; overflow-y: auto;
  animation: modalIn 0.5s var(--ease) both;
}
@keyframes modalIn { from{opacity:0;transform:scale(0.9)} to{opacity:1;transform:scale(1)} }
.modal-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: rgba(255,255,255,0.05); border: none; color: var(--white);
  width: 40px; height: 40px; border-radius: 50%; font-size: 1.5rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}
.modal-close:hover { background: var(--teal); color: var(--deep-navy); }
.modal-body { padding: 3.5rem; }
.modal-body h2 { font-family: 'Outfit', sans-serif; font-size: 2.2rem; margin-bottom: 1rem; color: var(--white); }
.modal-body p { color: rgba(255,255,255,0.6); line-height: 1.8; margin-bottom: 2rem; font-size: 1.05rem; }
.modal-tags { display: flex; gap: 0.75rem; flex-wrap: wrap; }

@media(max-width: 768px) {
  .gallery-track { padding: 0 1.5rem; gap: 1.25rem; }
  .p-card { flex: 0 0 280px; }
  .modal-body { padding: 2.5rem 1.5rem; }
}

/* ── TESTIMONIALS ── */
.testi-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:2rem; margin-top:2rem; }
.testi-card {
  background:var(--card-bg); border:1px solid var(--card-border);
  border-radius:28px; padding:2.5rem; position:relative;
  transition:all 0.5s var(--ease);
}
.testi-card:hover { transform:translateY(-8px); border-color:rgba(77,191,176,0.2); }
.featured-testi { background:linear-gradient(145deg,rgba(77,191,176,0.08),rgba(30,45,74,0.6)); border-color:rgba(77,191,176,0.3); }
.testi-stars { color:#FFD700; font-size:1.2rem; margin-bottom:1rem; letter-spacing:2px; }
.testi-text { font-style:italic; color:var(--text-mid); line-height:1.7; margin-bottom:2rem; font-size:0.95rem; }
.testi-author { display:flex; align-items:center; gap:1rem; }
.testi-avatar { width:44px; height:44px; border-radius:50%; background:rgba(77,191,176,0.2); color:var(--teal); display:flex; align-items:center; justify-content:center; font-weight:800; font-family:'Outfit',sans-serif; }
.testi-author strong { display:block; font-size:0.9rem; color:var(--text); }
.testi-author span { font-size:0.75rem; color:var(--text-dim); }

/* ── PORTFOLIO STRIP ── */
.portfolio-strip { padding:4rem 0; background:var(--niche-bg); overflow:hidden; border-top:1px solid var(--border-soft); border-bottom:1px solid var(--border-soft); direction:ltr; }
.pf-track { display:flex; gap:3rem; animation:ticker 40s linear infinite; width:max-content; direction:ltr; }
.pf-item { display:flex; flex-direction:column; align-items:center; gap:1rem; width:220px; flex-shrink:0; }
.pf-screen { width:100%; aspect-ratio:16/10; background:#1e2d4a; border-radius:12px; border:1px solid rgba(255,255,255,0.1); padding:1rem; display:flex; flex-direction:column; gap:0.5rem; transition:all 0.4s var(--ease); position:relative; overflow:hidden; }
.pf-item:hover .pf-screen { transform:scale(1.05) translateY(-5px); border-color:var(--teal); box-shadow:0 10px 30px rgba(77,191,176,0.2); }
.pf-bar { height:6px; width:40%; background:rgba(255,255,255,0.1); border-radius:10px; margin-bottom:0.5rem; }
.pf-line { height:4px; width:100%; background:rgba(255,255,255,0.05); border-radius:10px; }
.pf-line.short { width:60%; }
.teal-screen { border-color:rgba(77,191,176,0.2); }
.teal-screen .pf-bar { background:rgba(77,191,176,0.3); }
.dark-screen { background:#0a1118; }
.pf-item span { font-size:0.75rem; font-weight:600; color:var(--text-dim); text-transform:uppercase; letter-spacing:1px; }



@media(max-width:1100px) {
  .testi-grid { grid-template-columns:1fr 1fr; }
  .testi-card:last-child { grid-column:span 2; }
}
@media(max-width:768px) {
  .testi-grid { grid-template-columns:1fr; }
  .testi-card:last-child { grid-column:span 1; }
}

/* ── MODAL GALLERY ── */
.modal-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}
.modal-gallery img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.4s var(--ease);
  cursor: zoom-in;
}
.modal-gallery img:hover {
  transform: scale(1.04) translateY(-5px);
  border-color: var(--teal);
  box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

@media(max-width: 580px) {
  .modal-gallery {
    grid-template-columns: 1fr;
  }
}

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed; inset: 0; background: rgba(8,14,24,0.98);
  backdrop-filter: blur(20px); z-index: 3000;
  display: none; align-items: center; justify-content: center; padding: 2rem;
  cursor: zoom-out;
  animation: fadeIn 0.4s var(--ease);
}
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90%; max-height: 85vh; border-radius: 12px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.8);
  transform: scale(0.95); transition: transform 0.5s var(--ease);
}
.lightbox.open img { transform: scale(1); }
.lightbox-close {
  position: absolute; top: 2rem; right: 2rem;
  background: rgba(255,255,255,0.05); border: none; color: var(--white);
  width: 50px; height: 50px; border-radius: 50%; font-size: 2rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}
.lightbox-close:hover { background: var(--teal); color: var(--deep-navy); }

/* ── CONTRACT SECTION ── */
.contract-sec { background: rgba(15, 28, 46, 0.4); overflow: hidden; }
.contract-container { display: grid; grid-template-columns: 1.2fr 1fr; gap: 5rem; align-items: center; }
.contract-features { margin: 2rem 0; }
.cf-item { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; font-size: 0.95rem; color: var(--text-mid); }
.cf-item svg { color: var(--teal); }
.contract-btns { margin-top: 2.5rem; }

.contract-preview { position: relative; padding: 2rem; }
.doc-stack { position: relative; width: 100%; max-width: 320px; aspect-ratio: 1/1.4; margin: auto; }
.doc-page { position: absolute; inset: 0; background: var(--white); border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); transition: all 0.5s var(--ease); }
.page-1 { z-index: 3; padding: 2.5rem 2rem; color: #333; }
.page-2 { z-index: 2; transform: translate(15px, 15px) rotate(3deg); opacity: 0.6; }
.page-3 { z-index: 1; transform: translate(30px, 30px) rotate(6deg); opacity: 0.3; }

.doc-stack:hover .page-2 { transform: translate(30px, -10px) rotate(5deg); opacity: 0.8; }
.doc-stack:hover .page-3 { transform: translate(60px, -20px) rotate(10deg); opacity: 0.5; }

.doc-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2rem; border-bottom: 1px solid #eee; padding-bottom: 1rem; }

.doc-id { font-size: 0.6rem; color: #999; font-weight: 700; }
.doc-line { height: 6px; background: #f0f0f0; border-radius: 10px; margin-bottom: 0.8rem; width: 100%; }
.doc-line.short { width: 60%; }
.doc-footer { margin-top: 4rem; border-top: 1px solid #eee; padding-top: 1rem; }
.doc-sign { font-family: 'Outfit', sans-serif; font-style: italic; font-size: 0.8rem; color: var(--teal); text-align: right; }

@media(max-width: 968px) {
  .contract-container { grid-template-columns: 1fr; text-align: center; gap: 4rem; }
  .contract-features { display: flex; flex-direction: column; align-items: center; }
  .doc-stack { transform: scale(0.9); }
}

/* ── EXTRA SMALL PHONES (≤ 480px) ── */
@media (max-width: 480px) {
  /* Navigation */
  .nav-wrap { padding: 0 1rem; }

  /* Hero */
  .hero { min-height: 85vh; }
  .hero h1 {
    font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    letter-spacing: -1px;
  }
  .hero-wrap {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 5rem 1rem 2rem;
  }

  /* CTA Buttons */
  .hero-btns { flex-direction: column; }
  .btn-glow, .btn-ghost { width: 100%; justify-content: center; }

  /* Section padding */
  section { padding: 3rem 1rem; }

  /* Cards */
  .bc, .nc, .hcard, .proc-card {
    padding: 1.5rem;
    font-size: 0.9rem;
  }

  /* Comparison grid */
  .compare-grid { gap: 1rem; }
  .compare-col { padding: 1.5rem; }

  /* Pricing cards */
  .pc { padding: 1.5rem; margin-bottom: 1rem; }

  /* Testimonials */
  .testi-card { padding: 1.25rem; }
  .testi-author { margin-top: 1rem; }

  /* FAQ */
  .faq-item { padding: 0; }

  /* Footer */
  .foot-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ── VERY SMALL PHONES (≤ 360px) ── */
@media (max-width: 360px) {
  .hero h1 { font-size: 1.6rem; }
  .s-h2 { font-size: 1.6rem; }
  nav { padding: 1rem 0; }
  .nav-wrap { padding: 0 0.75rem; }
  section { padding: 2.5rem 0.75rem; }
}

/* ── NUCLEAR OVERFLOW KILL ── */
body[dir="rtl"], 
body[dir="rtl"] html, 
body[dir="rtl"] .overflow-contain {
  overflow-x: hidden !important;
  width: 100% !important;
  position: relative !important;
  max-width: 100vw !important;
}

/* Force all sections to stay inside the container in RTL */
body[dir="rtl"] section,
body[dir="rtl"] .wrap,
body[dir="rtl"] footer {
  max-width: 100% !important;
  overflow: hidden !important;
}

/* Fix for Safari/iOS RTL Scroll Origin */
@supports (-webkit-touch-callout: none) {
  body[dir="rtl"] {
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }
}
