/* ============================================================
   Mousa Tech — Stylesheet v3 "Alive Edition"
   Deep Navy + Mint/Cyan/Azure flowing gradient
   Bilingual EN / AR-RTL · motion-rich but respectful
   ============================================================ */

:root {
  --navy-950: #04101f;
  --navy-900: #071a33;
  --navy-800: #0b2a4e;
  --navy-700: #123c6d;
  --mint: #00d9a6;
  --cyan: #00c2e8;
  --azure: #4e8cff;
  --ink: #0f1f38;
  --slate: #4b5f7d;
  --slate-light: #8ca0bc;
  --bg: #f5f9fc;
  --white: #ffffff;
  --border: #e3ecf5;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 3px 14px rgba(7, 26, 51, .07);
  --shadow-md: 0 14px 38px rgba(7, 26, 51, .12);
  --shadow-lg: 0 28px 70px rgba(7, 26, 51, .2);
  --shadow-glow: 0 12px 34px rgba(0, 194, 232, .35);
  --grad: linear-gradient(115deg, var(--mint), var(--cyan) 50%, var(--azure));
  --grad-soft: linear-gradient(115deg, rgba(0,217,166,.14), rgba(0,194,232,.14) 50%, rgba(78,140,255,.14));
  --grad-dark: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  --font: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-ar: "Cairo", "Inter", system-ui, sans-serif;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="ar"] body { font-family: var(--font-ar); letter-spacing: 0; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
.container { width: min(1200px, 92%); margin-inline: auto; }
section { padding: 100px 0; position: relative; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.22; color: var(--navy-900); font-weight: 800; letter-spacing: -.02em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { letter-spacing: 0; font-weight: 900; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.65rem); }
h3 { font-size: 1.28rem; }
p { color: var(--slate); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .8rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
  color: #0090c8; margin-bottom: 14px;
}
html[lang="ar"] .eyebrow { letter-spacing: .02em; }
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--grad); border-radius: 3px; }
.section-head { max-width: 700px; margin-bottom: 58px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head p { margin-top: 14px; font-size: 1.06rem; }

/* animated gradient headline text */
.grad-text {
  background: linear-gradient(115deg, var(--mint), var(--cyan) 30%, var(--azure) 55%, var(--mint));
  background-size: 220% 220%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradFlow 6s ease-in-out infinite;
}
@keyframes gradFlow { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* animated underline under section titles */
.title-bar { display: block; width: 0; height: 4px; border-radius: 4px; background: var(--grad); margin-top: 16px; transition: width .8s cubic-bezier(.22,1,.36,1) .2s; }
.section-head.center .title-bar { margin-inline: auto; }
.section-head.visible .title-bar, .reveal.visible .title-bar { width: 72px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 30px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 800; font-size: .98rem; transition: transform .28s ease, box-shadow .28s ease;
  white-space: nowrap; will-change: transform;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--grad); color: #04263f; box-shadow: var(--shadow-glow); }
.btn-primary::after {
  content: ""; position: absolute; top: 0; inset-inline-start: -80%;
  width: 50%; height: 100%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  transition: inset-inline-start .55s ease;
}
.btn-primary:hover::after { inset-inline-start: 130%; }
.btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 18px 42px rgba(0,194,232,.5); }
.btn-outline { border-color: rgba(255,255,255,.45); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,.12); transform: translateY(-3px); }
.btn-dark { background: var(--navy-900); color: var(--white); }
.btn-dark:hover { background: var(--navy-800); transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--grad); transform: scaleX(0); transform-origin: 0 50%; transition: transform .1s linear; box-shadow: 0 0 12px rgba(0,194,232,.8); }
html[dir="rtl"] .progress span { transform-origin: 100% 50%; }

/* ---------- Navbar ---------- */
.navbar { position: fixed; inset: 0 0 auto 0; z-index: 100; padding: 16px 0; transition: .3s ease; }
.navbar.scrolled {
  padding: 9px 0; background: rgba(255,255,255,.88);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}
.nav-inner { display: flex; align-items: center; gap: 16px; }

/* Logo — alive */
.logo { display: flex; align-items: center; gap: 11px; margin-inline-end: auto; }
.logo-badge { position: relative; flex: none; }
.logo-badge::after {
  content: ""; position: absolute; inset: -4px; border-radius: 17px;
  border: 2px solid rgba(0,194,232,.55); animation: ringPulse 2.6s ease-out infinite;
}
@keyframes ringPulse { 0% { transform: scale(.9); opacity: .9; } 70%,100% { transform: scale(1.28); opacity: 0; } }
.logo-svg { width: 46px; height: 46px; display: block; filter: drop-shadow(0 6px 16px rgba(0,194,232,.5)); transition: transform .35s ease; }
.logo:hover .logo-svg { transform: rotate(-8deg) scale(1.08); }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-name { font-weight: 900; font-size: 1.22rem; color: var(--white); letter-spacing: -.01em; transition: color .3s; }
.logo-name b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[lang="ar"] .logo-name { font-size: 1.3rem; }
.logo-sub { font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.navbar.scrolled .logo-name { color: var(--navy-900); }
.navbar.scrolled .logo-sub { color: var(--slate-light); }
html[lang="en"] .wm-ar, html[lang="ar"] .wm-en,
html[lang="en"] .mq-ar, html[lang="ar"] .mq-en { display: none; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-weight: 700; font-size: .93rem; color: rgba(255,255,255,.85); position: relative; transition: color .25s; }
.nav-links a::after {
  content: ""; position: absolute; inset-inline-start: 0; bottom: -6px; width: 0; height: 2.5px;
  background: var(--grad); border-radius: 3px; transition: width .28s;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.navbar.scrolled .nav-links a { color: var(--slate); }
.navbar.scrolled .nav-links a.active, .navbar.scrolled .nav-links a:hover { color: var(--navy-900); }
.nav-cta .btn { padding: 10px 22px; font-size: .88rem; }

/* Language toggle */
.lang-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.1); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--white); font-weight: 800; font-size: .86rem; transition: .28s ease;
}
.lang-toggle svg { width: 17px; height: 17px; }
.lang-toggle:hover { transform: translateY(-2px); border-color: var(--cyan); box-shadow: 0 8px 22px rgba(0,194,232,.4); }
.navbar.scrolled .lang-toggle { background: var(--grad-soft); border-color: rgba(0,194,232,.4); color: var(--navy-900); }

.hamburger { display: none; background: none; border: 0; width: 42px; height: 42px; flex: none; z-index: 110; }
.hamburger span { display: block; width: 24px; height: 2.5px; margin: 5px auto; background: var(--white); border-radius: 3px; transition: .3s; }
.navbar.scrolled .hamburger span, .navbar.open .hamburger span { background: var(--navy-900); }
.navbar.open .hamburger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.navbar.open .hamburger span:nth-child(2) { opacity: 0; }
.navbar.open .hamburger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: 205px 0 130px; color: var(--white);
  background:
    radial-gradient(1000px 560px at 85% -10%, rgba(0,217,166,.16), transparent 60%),
    radial-gradient(820px 520px at -8% 105%, rgba(78,140,255,.2), transparent 55%),
    var(--grad-dark);
  overflow: hidden;
}
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; pointer-events: none; animation: drift 14s ease-in-out infinite alternate; }
.blob-1 { width: 440px; height: 440px; background: rgba(0,217,166,.5); top: -150px; inset-inline-end: 5%; }
.blob-2 { width: 380px; height: 380px; background: rgba(78,140,255,.55); bottom: -170px; inset-inline-start: -5%; animation-delay: -6s; }
@keyframes drift { to { transform: translate(45px, 35px) scale(1.14); } }

/* rising particles */
.particles { position: absolute; inset: 0; pointer-events: none; }
.particles i {
  position: absolute; bottom: -12px; width: 6px; height: 6px; border-radius: 50%;
  background: radial-gradient(circle, rgba(103,232,249,.9), rgba(103,232,249,0) 70%);
  animation: rise linear infinite;
}
.particles i:nth-child(1) { inset-inline-start: 8%;  animation-duration: 11s; animation-delay: 0s; }
.particles i:nth-child(2) { inset-inline-start: 20%; animation-duration: 14s; animation-delay: 2s; width: 4px; height: 4px; }
.particles i:nth-child(3) { inset-inline-start: 34%; animation-duration: 12s; animation-delay: 4s; }
.particles i:nth-child(4) { inset-inline-start: 52%; animation-duration: 15s; animation-delay: 1s; width: 5px; height: 5px; }
.particles i:nth-child(5) { inset-inline-start: 66%; animation-duration: 10s; animation-delay: 3s; }
.particles i:nth-child(6) { inset-inline-start: 79%; animation-duration: 13s; animation-delay: 5s; width: 4px; height: 4px; }
.particles i:nth-child(7) { inset-inline-start: 90%; animation-duration: 12s; animation-delay: 2.5s; }
@keyframes rise {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  12% { opacity: .9; }
  88% { opacity: .6; }
  100% { transform: translateY(-78vh) scale(.4); opacity: 0; }
}

/* ECG heartbeat line */
.ecg { position: absolute; bottom: 26px; inset-inline: 0; width: 100%; height: 54px; opacity: .5; pointer-events: none; }

.hero-grid-bg {
  position: absolute; inset: 0; opacity: .13; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.4) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.4) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, #000 40%, transparent 100%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px; margin-bottom: 24px;
  border: 1px solid rgba(103,232,249,.4); border-radius: 999px;
  background: rgba(0,194,232,.12); color: var(--mint); font-size: .83rem; font-weight: 700;
  animation: badgeGlow 3s ease-in-out infinite;
}
@keyframes badgeGlow { 50% { box-shadow: 0 0 26px rgba(0,217,166,.35); border-color: rgba(0,217,166,.6); } }
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(0,217,166,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(0,217,166,0); } 100% { box-shadow: 0 0 0 0 rgba(0,217,166,0); } }
.hero h1 { color: var(--white); }
.hero p.lead { margin: 22px 0 36px; font-size: 1.13rem; color: rgba(224,236,248,.85); max-width: 550px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-stats { display: flex; gap: 46px; margin-top: 58px; flex-wrap: wrap; }
.hero-stats .stat { position: relative; padding-inline-start: 16px; }
.hero-stats .stat::before { content: ""; position: absolute; inset-inline-start: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: var(--grad); }
.hero-stats .num { font-size: 2rem; font-weight: 900; color: var(--white); }
.hero-stats .num em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats .lbl { font-size: .84rem; color: rgba(224,236,248,.65); }

/* Hero dashboard */
.hero-visual { position: relative; perspective: 1000px; }
.hero-card {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: 26px; box-shadow: var(--shadow-lg);
  transition: transform .2s ease; transform-style: preserve-3d;
  animation: cardBreathe 6s ease-in-out infinite;
}
@keyframes cardBreathe { 50% { box-shadow: 0 34px 80px rgba(7,26,51,.32), 0 0 44px rgba(0,194,232,.14); } }
.hero-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.hero-card-head .dots { display: flex; gap: 6px; }
.hero-card-head .dots i { width: 10px; height: 10px; border-radius: 50%; }
.hero-card-head .dots i:nth-child(1) { background: #f87171; }
.hero-card-head .dots i:nth-child(2) { background: #fbbf24; }
.hero-card-head .dots i:nth-child(3) { background: #34d399; }
.hero-card-head .title { font-size: .8rem; color: rgba(255,255,255,.65); font-weight: 700; }
.mock-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 16px; margin-bottom: 10px; background: rgba(255,255,255,.07); border-radius: var(--radius-sm); font-size: .85rem; transition: background .25s, transform .25s; }
.mock-row:hover { background: rgba(255,255,255,.12); transform: translateX(4px); }
html[dir="rtl"] .mock-row:hover { transform: translateX(-4px); }
.mock-row .who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.avatar { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-weight: 800; font-size: .76rem; color: #04263f; }
.mock-row .who small { display: block; color: rgba(255,255,255,.55); font-size: .71rem; }
.chip { flex: none; padding: 4px 12px; border-radius: 999px; font-size: .7rem; font-weight: 800; }
.chip.ok { background: rgba(0,217,166,.18); color: #5ff0c8; }
.chip.warn { background: rgba(251,191,36,.18); color: #fcd34d; }
.chip.info { background: rgba(0,194,232,.2); color: #6fe3ff; }
.float-chip {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 18px;
  background: var(--white); border-radius: 13px; box-shadow: var(--shadow-md);
  font-size: .81rem; font-weight: 800; color: var(--navy-900); animation: floaty 5s ease-in-out infinite;
}
.float-chip .ic { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--grad-soft); color: #0090c8; }
.float-chip .ic svg { width: 19px; height: 19px; }
.float-chip small { display: block; font-weight: 600; color: var(--slate); }
.fc-1 { top: -24px; inset-inline-end: -14px; }
.fc-2 { bottom: -22px; inset-inline-start: -18px; animation-delay: 2.2s; }
@keyframes floaty { 50% { transform: translateY(-11px); } }

/* ---------- Marquee ticker ---------- */
.marquee { background: var(--navy-950); border-block: 1px solid rgba(255,255,255,.08); padding: 18px 0; overflow: hidden; position: relative; }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none;
}
.marquee::before { inset-inline-start: 0; background: linear-gradient(to right, var(--navy-950), transparent); }
.marquee::after { inset-inline-end: 0; background: linear-gradient(to left, var(--navy-950), transparent); }
html[dir="rtl"] .marquee::before { background: linear-gradient(to left, var(--navy-950), transparent); }
html[dir="rtl"] .marquee::after { background: linear-gradient(to right, var(--navy-950), transparent); }
.mq-track { display: flex; align-items: center; gap: 44px; width: max-content; animation: mqScroll 30s linear infinite; }
.marquee:hover .mq-track { animation-play-state: paused; }
html[dir="rtl"] .mq-track { animation-name: mqScrollR; }
@keyframes mqScroll { to { transform: translateX(-50%); } }
@keyframes mqScrollR { to { transform: translateX(50%); } }
.mq-item { font-weight: 800; font-size: .95rem; color: rgba(224,236,248,.85); white-space: nowrap; }
.mq-x { width: 15px; height: 15px; flex: none; color: var(--mint); opacity: .8; }

/* ---------- Cards & 3D tilt ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px 30px; transition: box-shadow .32s ease, border-color .32s ease;
  position: relative; overflow: hidden; transform-style: preserve-3d; will-change: transform;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--grad); opacity: 0; transition: .3s;
}
.card::after {
  content: ""; position: absolute; top: -60px; inset-inline-end: -60px; width: 150px; height: 150px;
  border-radius: 50%; background: var(--grad-soft); filter: blur(6px); opacity: 0; transition: .35s;
}
.card:hover { box-shadow: var(--shadow-md); border-color: rgba(0,194,232,.35); }
.card:hover::before { opacity: 1; }
.card:hover::after { opacity: 1; }
.card .icon {
  position: relative; z-index: 1;
  width: 60px; height: 60px; border-radius: 16px; margin-bottom: 22px;
  display: grid; place-items: center; background: var(--grad-soft); color: #0090c8;
  transition: .32s;
}
.card:hover .icon { background: var(--grad); color: #04263f; transform: scale(1.06) rotate(-4deg); box-shadow: var(--shadow-glow); }
.card .icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 10px; position: relative; z-index: 1; }
.card p { font-size: .95rem; position: relative; z-index: 1; }
.card .more { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; font-weight: 800; font-size: .9rem; color: #0090c8; position: relative; z-index: 1; }
html[dir="rtl"] .card .more svg { transform: scaleX(-1); }
.card .more svg { width: 16px; height: 16px; transition: transform .25s; }
html[dir="ltr"] .card:hover .more svg { transform: translateX(5px); }
html[dir="rtl"] .card:hover .more svg { transform: scaleX(-1) translateX(5px); }

/* ---------- Feature band ---------- */
.band {
  background:
    radial-gradient(900px 480px at 12% 0%, rgba(0,217,166,.18), transparent 60%),
    radial-gradient(700px 400px at 95% 100%, rgba(78,140,255,.22), transparent 55%),
    var(--grad-dark);
  border-radius: 28px; color: var(--white); padding: 66px; position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg), inset 0 0 80px rgba(0,194,232,.06);
}
.band::after {
  content: ""; position: absolute; inset-inline-end: -90px; bottom: -90px; width: 330px; height: 330px;
  border-radius: 50%; border: 46px solid rgba(0,194,232,.1); animation: ringSpin 22s linear infinite;
}
@keyframes ringSpin { to { transform: rotate(360deg); } }
.med-pattern::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath d='M24 20h8v4h4v8h-4v4h-8v-4h-4v-8h4z' fill='%23ffffff'/%3E%3C/svg%3E");
  background-size: 56px 56px;
}
.band h2 { color: var(--white); position: relative; z-index: 1; }
.band p { color: rgba(224,236,248,.82); position: relative; z-index: 1; }
.band-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; position: relative; z-index: 1; }
.band-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 32px; position: relative; z-index: 1; }
.band-tags span {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: 999px; font-size: .79rem; font-weight: 700;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: var(--mint);
  transition: .25s;
}
.band-tags span:hover { background: rgba(0,217,166,.16); border-color: rgba(0,217,166,.5); transform: translateY(-2px); }
.band-tags svg { width: 14px; height: 14px; }
.benefit-list { display: grid; gap: 17px; }
.benefit-list li { display: flex; gap: 14px; align-items: flex-start; }
.benefit-list .tick {
  flex: none; width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); color: #04263f; margin-top: 2px; box-shadow: 0 5px 14px rgba(0,194,232,.4);
}
.benefit-list .tick svg { width: 14px; height: 14px; }
.benefit-list strong { display: block; color: var(--white); font-size: .98rem; }
.benefit-list small { color: rgba(224,236,248,.68); }

/* ---------- Steps with connector ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 48px; inset-inline: 60px; height: 2px;
  background-image: repeating-linear-gradient(90deg, rgba(0,194,232,.55) 0 8px, transparent 8px 16px);
  animation: dashMove 1.2s linear infinite;
}
@keyframes dashMove { to { background-position: 16px 0; } }
.step { position: relative; padding: 32px 24px; background: var(--bg); border-radius: var(--radius); border: 1px solid var(--border); transition: .3s; }
.step:hover { background: var(--white); box-shadow: var(--shadow-md); transform: translateY(-6px); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-size: 2.2rem; font-weight: 900; background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent; display: block; margin-bottom: 12px;
}
.step h3 { font-size: 1.08rem; margin-bottom: 8px; }
.step p { font-size: .9rem; }

/* ---------- CTA strip ---------- */
.cta-strip {
  background:
    radial-gradient(700px 380px at 85% 120%, rgba(0,217,166,.2), transparent 60%),
    radial-gradient(600px 340px at 10% -20%, rgba(78,140,255,.22), transparent 55%),
    var(--navy-950);
  color: var(--white); text-align: center; padding: 90px 0; position: relative; overflow: hidden;
}
.cta-strip::before {
  content: ""; position: absolute; inset: 0; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath d='M24 20h8v4h4v8h-4v4h-8v-4h-4v-8h4z' fill='%23ffffff'/%3E%3C/svg%3E");
  background-size: 56px 56px;
}
.cta-strip h2 { color: var(--white); position: relative; }
.cta-strip p { color: rgba(224,236,248,.78); max-width: 580px; margin: 14px auto 36px; position: relative; }
.cta-strip .hero-actions { position: relative; }

/* ---------- Page hero ---------- */
.page-hero {
  padding: 180px 0 96px; color: var(--white); text-align: center;
  background:
    radial-gradient(900px 480px at 50% -20%, rgba(0,217,166,.2), transparent 60%),
    radial-gradient(700px 400px at 90% 110%, rgba(78,140,255,.2), transparent 55%),
    var(--grad-dark);
  position: relative; overflow: hidden;
}
.page-hero h1 { color: var(--white); max-width: 840px; margin-inline: auto; position: relative; z-index: 1; }
.page-hero p { color: rgba(224,236,248,.85); max-width: 660px; margin: 18px auto 0; font-size: 1.08rem; position: relative; z-index: 1; }
.breadcrumb { display: inline-flex; gap: 8px; font-size: .84rem; color: var(--mint); margin-bottom: 18px; font-weight: 700; position: relative; z-index: 1; }
.breadcrumb a { color: rgba(255,255,255,.6); }
.breadcrumb a:hover { color: var(--white); }

/* Medical pills */
.med-pills { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 40px; position: relative; z-index: 1; }
.med-pill {
  display: inline-flex; align-items: center; gap: 11px; padding: 13px 20px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--white); font-weight: 700; font-size: .88rem; transition: .28s;
}
.med-pill svg { width: 21px; height: 21px; color: var(--mint); }
.med-pill:hover { transform: translateY(-4px); background: rgba(0,194,232,.16); border-color: rgba(0,217,166,.5); box-shadow: 0 12px 26px rgba(0,194,232,.3); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 46px; }
.tab-btn {
  padding: 12px 26px; border-radius: 999px; border: 1.5px solid var(--border);
  background: var(--white); font-weight: 800; font-size: .92rem; color: var(--slate); transition: .25s;
}
.tab-btn:hover { border-color: var(--cyan); color: var(--navy-900); transform: translateY(-2px); }
.tab-btn.active { background: var(--grad); border-color: transparent; color: #04263f; box-shadow: var(--shadow-glow); }
.tab-panel { display: none; animation: fadeUp .45s ease; }
.tab-panel.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Accordions ---------- */
.acc-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; transition: box-shadow .3s, border-color .3s; }
.acc-item.open { box-shadow: var(--shadow-md); border-color: rgba(0,194,232,.45); }
.acc-head { width: 100%; display: flex; align-items: center; gap: 16px; padding: 22px 26px; background: none; border: 0; text-align: start; transition: background .25s; }
.acc-head:hover { background: rgba(0,194,232,.04); }
.acc-head .acc-ic { flex: none; width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: var(--grad-soft); color: #0090c8; transition: .3s; }
.acc-head .acc-ic svg { width: 23px; height: 23px; }
.acc-item.open .acc-ic { background: var(--grad); color: #04263f; box-shadow: var(--shadow-glow); }
.acc-head h3 { flex: 1; font-size: 1.08rem; }
.acc-head .chev { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--slate); transition: .3s; }
.acc-item.open .chev { transform: rotate(180deg); background: var(--navy-900); color: var(--white); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .45s cubic-bezier(.22,1,.36,1); }
.acc-body-inner { padding: 0 26px 28px; padding-inline-start: 90px; color: var(--slate); font-size: .95rem; }
.acc-body-inner ul { margin-top: 12px; display: grid; gap: 8px; }
.acc-body-inner ul li { display: flex; gap: 10px; align-items: flex-start; }
.acc-body-inner ul li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 9px; border-radius: 50%; background: var(--cyan); }

/* ---------- Industries ---------- */
.ind-card { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 310px; display: flex; align-items: flex-end; padding: 30px; color: var(--white); }
.ind-card .bg { position: absolute; inset: 0; background: linear-gradient(to top, rgba(4,16,31,.94), rgba(4,16,31,.35) 55%, rgba(7,26,51,.55)); transition: opacity .4s ease; }
.ind-card:hover .bg { opacity: .8; }
.ind-card .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(4,16,31,.9), rgba(4,16,31,.1) 62%); }
.ind-card .body { position: relative; z-index: 1; }
.ind-card .body h3 { color: var(--white); margin-bottom: 8px; }
.ind-card .body p { color: rgba(224,236,248,.82); font-size: .92rem; }
.ind-card .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ind-card .tags span { font-size: .72rem; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: start; }
.contact-info-card { display: flex; gap: 16px; padding: 22px; background: var(--bg); border-radius: var(--radius); border: 1px solid var(--border); margin-bottom: 16px; transition: .3s; }
.contact-info-card:hover { background: var(--white); box-shadow: var(--shadow-md); transform: translateX(6px); }
html[dir="rtl"] .contact-info-card:hover { transform: translateX(-6px); }
.contact-info-card .ic { flex: none; width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: var(--grad); color: #04263f; box-shadow: 0 6px 16px rgba(0,194,232,.35); }
.contact-info-card .ic svg { width: 22px; height: 22px; }
.contact-info-card h4 { font-size: 1rem; }
.contact-info-card p { font-size: .92rem; }
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: 22px; padding: 42px; box-shadow: var(--shadow-md); transition: box-shadow .3s, transform .3s; }
.form-card:hover { box-shadow: var(--shadow-lg); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .86rem; font-weight: 800; color: var(--navy-900); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .95rem; color: var(--ink); background: var(--bg); transition: .25s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--cyan); background: var(--white); box-shadow: 0 0 0 4px rgba(0,194,232,.15);
}
.form-note { font-size: .82rem; color: var(--slate-light); margin-top: 14px; }
.form-success {
  display: none; margin-top: 18px; padding: 14px 18px; border-radius: var(--radius-sm);
  background: rgba(0,217,166,.13); border: 1px solid rgba(0,217,166,.45); color: #047857; font-weight: 700; font-size: .92rem;
}
.form-success.show { display: block; animation: fadeUp .4s ease; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); color: rgba(224,236,248,.72); padding: 74px 0 0; font-size: .92rem; position: relative; overflow: hidden; }
.footer::before {
  content: "MOUSA TECH"; position: absolute; bottom: -28px; inset-inline-start: 50%; transform: translateX(-50%);
  font-size: clamp(70px, 14vw, 150px); font-weight: 900; letter-spacing: .04em; white-space: nowrap;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,0));
  -webkit-background-clip: text; background-clip: text; color: transparent; pointer-events: none; direction: ltr;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 44px; padding-bottom: 52px; position: relative; z-index: 1; }
.footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 18px; }
.footer ul li { margin-bottom: 10px; }
.footer a:hover { color: var(--mint); }
.footer-desc { max-width: 310px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .84rem; color: rgba(224,236,248,.5); position: relative; z-index: 1; }

/* ---------- Floating buttons ---------- */
.wa-float { position: fixed; bottom: 22px; inset-inline-start: 22px; z-index: 90; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #22c55e; color: #fff; box-shadow: 0 10px 26px rgba(34,197,94,.45); transition: .28s; }
.wa-float::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(34,197,94,.55); animation: ringPulse 2.4s ease-out infinite; }
.wa-float svg { width: 27px; height: 27px; position: relative; }
.wa-float:hover { transform: translateY(-4px) scale(1.06); }
.to-top {
  position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: var(--navy-900); color: var(--white); box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none; transform: translateY(14px); transition: .3s;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--grad); color: #04263f; }
.to-top svg { width: 19px; height: 19px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; } .reveal.d4 { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .title-bar { width: 72px !important; }
  html { scroll-behavior: auto; }
}

.bg-soft { background: var(--bg); }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-inner, .band-grid, .contact-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .band { padding: 46px 32px; }
}
@media (max-width: 720px) {
  section { padding: 70px 0; }
  .grid-3, .grid-2, .steps, .form-row { grid-template-columns: 1fr; }
  .hero { padding: 160px 0 100px; }
  .ecg { display: none; }
  .hamburger { display: block; }
  .nav-links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 28px;
    background: var(--white); transform: translateX(100%); transition: transform .35s ease;
  }
  html[dir="rtl"] .nav-links { transform: translateX(-100%); }
  .navbar.open .nav-links { transform: none; box-shadow: var(--shadow-lg); }
  .nav-links a { color: var(--navy-900) !important; font-size: 1.2rem; }
  .nav-cta { display: none; }
  .lang-toggle { padding: 8px 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .float-chip { display: none; }
  .acc-body-inner { padding-inline-start: 26px; }
  .band { border-radius: 22px; }
  .logo-sub { display: none; }
}


/* ---------- v3.1 additions ---------- */
.fc-swing { display: block; animation: sway 3.6s ease-in-out infinite; }
@keyframes sway { 50% { transform: translateX(-12px); } }
.phone-intl { display: flex; gap: 10px; }
.phone-intl select {
  flex: none; width: 122px; padding: 13px 8px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-family: inherit; font-size: .9rem; font-weight: 700;
  color: var(--ink); background: var(--bg); transition: .25s; cursor: pointer;
}
.phone-intl select:focus { outline: none; border-color: var(--cyan); background: var(--white); box-shadow: 0 0 0 4px rgba(0,194,232,.15); }
.phone-intl input { flex: 1; }
.ind-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.55) brightness(.8); transition: filter .5s ease, transform .6s ease; }
.ind-card:hover .ind-img { filter: saturate(1.1) brightness(.92); transform: scale(1.07); }
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.shot { position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-md); background: var(--navy-900); transition: box-shadow .3s ease; }
.shot img { width: 100%; height: 340px; object-fit: cover; display: block; transition: transform .6s ease; }
.shot:hover { box-shadow: var(--shadow-lg), 0 0 0 3px rgba(0,194,232,.4); }
.shot:hover img { transform: scale(1.05); }
.shot figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: 40px 20px 16px; display: flex; align-items: center; gap: 9px; background: linear-gradient(to top, rgba(4,16,31,.92), transparent); color: var(--white); font-weight: 800; font-size: .92rem; }
.shot figcaption svg { width: 17px; height: 17px; color: var(--mint); flex: none; }
@media (max-width: 860px) { .showcase { grid-template-columns: 1fr; } .shot img { height: 260px; } }
@media (max-width: 480px) { .phone-intl select { width: 100px; font-size: .82rem; } }
