/* =========================================================
   MTMERA — Design Tokens
   Derived from brand logo gradient (navy -> blue -> teal -> mint)
   ========================================================= */
:root{
  /* Brand ramp */
  --navy-950:#050e1e;
  --navy-900:#0a1c38;
  --navy-800:#123055;
  --navy-700:#173f6e;
  --blue-600:#1c6fa0;
  --blue-500:#2f93c2;
  --teal-600:#158f89;
  --teal-500:#1aa39d;
  --teal-400:#2ec4b6;
  --cyan-300:#6fd6c4;
  --mint-200:#a9e8d6;

  --brand-gradient: linear-gradient(135deg, var(--navy-800) 0%, var(--blue-600) 38%, var(--teal-500) 72%, var(--cyan-300) 100%);
  --brand-gradient-soft: linear-gradient(135deg, rgba(18,48,85,0.10) 0%, rgba(47,147,194,0.10) 45%, rgba(46,196,182,0.12) 100%);
  --brand-gradient-text: linear-gradient(100deg, var(--navy-800), var(--blue-600) 45%, var(--teal-500) 100%);

  /* Surface */
  --bg:#f6f8fb;
  --bg-soft:#eef3f9;
  --surface:#ffffff;
  --surface-glass: rgba(255,255,255,0.66);
  --surface-glass-strong: rgba(255,255,255,0.86);
  --text:#0e2240;
  --text-muted:#4c5f7d;
  --text-soft:#7c8fac;
  --border:#e3e9f3;
  --border-strong:#d3ddec;
  --shadow-color: 217 60% 30%;

  /* Feedback */
  --success:#1aa37c;
  --danger:#d9455f;

  /* Type */
  --font-en: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  --font-ar: 'Cairo', 'Tahoma', sans-serif;

  /* Radius */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;

  /* Spacing scale (density: standard) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* Motion */
  --ease-out: cubic-bezier(.16,.8,.3,1);
  --ease-soft: cubic-bezier(.4,0,.2,1);
  --dur-fast: 180ms;
  --dur-base: 320ms;
  --dur-slow: 560ms;

  --header-h: 84px;
  --container: 1240px;
}

:root[data-theme="dark"]{
  --bg:#050c1a;
  --bg-soft:#081428;
  --surface:#0c1c37;
  --surface-glass: rgba(12,28,55,0.60);
  --surface-glass-strong: rgba(10,24,47,0.90);
  --text:#eef4fc;
  --text-muted:#aebedb;
  --text-soft:#7f93b7;
  --border: rgba(255,255,255,0.09);
  --border-strong: rgba(255,255,255,0.16);
  --shadow-color: 217 80% 4%;
}

/* =========================================================
   Reset & base
   ========================================================= */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-en);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background var(--dur-base) var(--ease-soft), color var(--dur-base) var(--ease-soft);
}
html[lang="ar"] body{ font-family: var(--font-ar); }

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
button{ font: inherit; color: inherit; background:none; border:none; cursor:pointer; }
input, textarea{ font: inherit; color: inherit; }
h1,h2,h3,h4,p{ margin:0; }
svg{ display:block; }

/* language visibility toggle */
[data-lang]{ display:none; }
html[lang="en"] [data-lang="en"]{ display:inline; }
html[lang="ar"] [data-lang="ar"]{ display:inline; }

/* icon mirroring in RTL */
html[dir="rtl"] .mirror-rtl{ transform: scaleX(-1); }

::selection{ background: var(--teal-400); color:#04231f; }

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

.skip-link{
  position:absolute; inset-inline-start: -999px; top:auto;
  background: var(--navy-800); color:#fff; padding: 12px 20px;
  border-radius: 0 0 10px 0; z-index: 200; font-weight:600;
}
.skip-link:focus{ inset-inline-start: 0; top:0; }

/* =========================================================
   Layout helpers
   ========================================================= */
.container{
  width:100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
@media (min-width:768px){ .container{ padding-inline: var(--space-7); } }

section{ position:relative; }
.section-pad{ padding-block: var(--space-9); }
@media (max-width: 640px){ .section-pad{ padding-block: var(--space-8); } }

.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size: 13px; font-weight:700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal-600);
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  background: var(--surface);
}
:root[data-theme="dark"] .eyebrow{ color: var(--cyan-300); }
.eyebrow .dot{ width:6px; height:6px; border-radius:50%; background: var(--teal-400); box-shadow: 0 0 0 4px rgba(46,196,182,.18); }

.section-head{
  max-width: 680px;
  margin-bottom: var(--space-7);
}
.section-head.center{ margin-inline:auto; text-align:center; }

h2.section-title{
  font-size: clamp(28px, 3.6vw, 42px);
  line-height:1.15;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-block: var(--space-3) 0;
  color: var(--text);
}
.section-desc{
  margin-top: var(--space-4);
  color: var(--text-muted);
  font-size: 17px;
  line-height:1.7;
}

.text-gradient{
  background-image: var(--brand-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn{
  position:relative;
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding: 15px 28px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 15.5px;
  cursor:pointer;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), background var(--dur-base), border-color var(--dur-base);
  white-space: nowrap;
}
.btn svg{ width:18px; height:18px; flex-shrink:0; transition: transform var(--dur-base) var(--ease-out); }
.btn:active{ transform: translateY(1px) scale(.99); }

.btn-primary{
  color:#fff;
  background-image: var(--brand-gradient);
  background-size: 160% 160%;
  background-position: 0% 50%;
  box-shadow: 0 14px 30px -12px hsl(var(--shadow-color) / 0.55);
}
.btn-primary:hover{
  background-position: 100% 50%;
  box-shadow: 0 18px 38px -10px hsl(var(--shadow-color) / 0.65);
  transform: translateY(-2px);
}
.btn-primary:hover svg{ transform: translateX(4px); }
html[dir="rtl"] .btn-primary:hover svg{ transform: translateX(-4px); }

.btn-ghost{
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
}
.btn-ghost:hover{
  border-color: var(--teal-500);
  color: var(--teal-600);
  transform: translateY(-2px);
}
:root[data-theme="dark"] .btn-ghost:hover{ color: var(--cyan-300); }

.btn-block{ width:100%; }
.btn-lg{ padding: 17px 32px; font-size:16.5px; }

/* =========================================================
   Header
   ========================================================= */
.site-header{
  position: fixed; inset-inline:0; top:0; z-index: 100;
  height: var(--header-h);
  display:flex; align-items:center;
  transition: height var(--dur-base) var(--ease-soft), background var(--dur-base), box-shadow var(--dur-base), border-color var(--dur-base);
  border-bottom: 1px solid transparent;
}
.site-header .container{ display:flex; align-items:center; justify-content:space-between; gap: var(--space-5); }

.site-header.scrolled{
  height: 68px;
  background: var(--surface-glass-strong);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 30px -18px hsl(var(--shadow-color) / .5);
}

.brand{ display:flex; align-items:center; gap:12px; cursor:pointer; }
.brand-mark{
  height:38px; width:auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(20,120,120,.28));
  transition: transform var(--dur-base) var(--ease-out);
}
.brand:hover .brand-mark{ transform: rotate(-6deg) scale(1.06); }
.brand-word{ display:flex; flex-direction:column; line-height:1.05; }
.brand-word b{
  font-size:20px; font-weight:800; letter-spacing:.01em;
  color: var(--text);
}
.brand-word b em{ font-style:normal; color: var(--teal-500); }
.brand-word span{ font-size:10.5px; letter-spacing:.16em; text-transform:uppercase; color: var(--text-soft); font-weight:600; }

.nav-links{ display:none; align-items:center; gap: var(--space-6); }
.nav-links a{
  position:relative;
  font-weight:600; font-size:15px; color: var(--text-muted);
  padding-block: 6px;
  transition: color var(--dur-fast);
}
.nav-links a::after{
  content:''; position:absolute; inset-inline:0; bottom:0; height:2px;
  background: var(--brand-gradient);
  transform: scaleX(0); transform-origin: center;
  transition: transform var(--dur-base) var(--ease-out);
  border-radius: 2px;
}
.nav-links a:hover{ color: var(--text); }
.nav-links a:hover::after{ transform: scaleX(1); }

@media (min-width: 960px){ .nav-links{ display:flex; } }

.header-actions{ display:flex; align-items:center; gap: var(--space-3); }
.icon-btn{
  width:42px; height:42px; border-radius:50%;
  display:inline-flex; align-items:center; justify-content:center;
  background: var(--surface); border:1.5px solid var(--border-strong);
  color: var(--text-muted);
  transition: all var(--dur-base) var(--ease-out);
}
.icon-btn:hover{ color: var(--teal-600); border-color: var(--teal-500); transform: translateY(-2px); }
.icon-btn svg{ width:19px; height:19px; }

.lang-btn{
  display:inline-flex; align-items:center; gap:6px;
  padding: 0 14px; height:42px; border-radius: var(--radius-full);
  background: var(--surface); border: 1.5px solid var(--border-strong);
  font-weight:700; font-size:13.5px; color: var(--text-muted);
  transition: all var(--dur-base) var(--ease-out);
}
.lang-btn:hover{ border-color: var(--teal-500); color: var(--teal-600); }
.lang-btn svg{ width:16px; height:16px; }

.theme-icon-dark{ display:none; }
:root[data-theme="dark"] .theme-icon-light{ display:none; }
:root[data-theme="dark"] .theme-icon-dark{ display:block; }

.menu-toggle{ display:inline-flex; }
@media (min-width:960px){ .menu-toggle{ display:none; } }
.menu-toggle .icon-close{ display:none; }
.menu-toggle.active .icon-menu{ display:none; }
.menu-toggle.active .icon-close{ display:block; }

/* Mobile nav panel */
.mobile-nav{
  position:fixed; inset-block:0; inset-inline-end:0;
  width: min(84vw, 360px);
  background: var(--surface-glass-strong);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-inline-start: 1px solid var(--border);
  z-index: 99;
  padding: calc(var(--header-h) + 20px) var(--space-6) var(--space-6);
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease-out);
  display:flex; flex-direction:column; gap: var(--space-6);
  overflow-y:auto;
}
html[dir="rtl"] .mobile-nav{ transform: translateX(-100%); }
.mobile-nav.open,
html[dir="rtl"] .mobile-nav.open{ transform: translateX(0); }
.mobile-nav a{
  font-size: 20px; font-weight:700; color: var(--text);
  padding-block: 10px; border-bottom: 1px solid var(--border);
}
.nav-scrim{
  position:fixed; inset:0; background: rgba(5,12,26,.45); z-index:98;
  opacity:0; pointer-events:none; transition: opacity var(--dur-base);
}
.nav-scrim.open{ opacity:1; pointer-events:auto; }

/* =========================================================
   Hero
   ========================================================= */
.hero{
  position:relative;
  padding-block: calc(var(--header-h) + 64px) 100px;
  overflow:hidden;
  isolation:isolate;
}
.hero-bg{ position:absolute; inset:0; z-index:-2; overflow:hidden; }
.hero-bg canvas{ position:absolute; inset:0; width:100%; height:100%; opacity:.55; }
.blob{
  position:absolute; border-radius:50%;
  filter: blur(70px);
  opacity:.55;
  animation: float-blob 22s ease-in-out infinite;
}
.blob-1{ width:520px; height:520px; top:-160px; inset-inline-end:-120px; background: radial-gradient(circle, var(--teal-400), transparent 70%); }
.blob-2{ width:460px; height:460px; bottom:-180px; inset-inline-start:-140px; background: radial-gradient(circle, var(--navy-700), transparent 70%); animation-duration: 28s; animation-delay: -6s; }
.blob-3{ width:360px; height:360px; top:30%; inset-inline-start:38%; background: radial-gradient(circle, var(--blue-500), transparent 70%); animation-duration: 18s; animation-delay: -3s; opacity:.35; }
@keyframes float-blob{
  0%,100%{ transform: translate(0,0) scale(1); }
  33%{ transform: translate(30px,-24px) scale(1.08); }
  66%{ transform: translate(-24px,18px) scale(.95); }
}
@media (prefers-reduced-motion: reduce){ .blob{ animation:none; } }

.hero-grid{
  position:relative; z-index:1;
  display:grid; gap: var(--space-8);
  align-items:center;
}
@media (min-width:960px){ .hero-grid{ grid-template-columns: 1.05fr .95fr; } }

.hero-eyebrow{ margin-bottom: var(--space-5); }
.hero h1{
  font-size: clamp(34px, 5.4vw, 64px);
  line-height:1.08;
  font-weight: 800;
  letter-spacing:-0.02em;
  color: var(--text);
}
.hero-sub{
  margin-top: var(--space-5);
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  line-height:1.75;
}
.hero-cta{ display:flex; flex-wrap:wrap; gap: var(--space-4); margin-top: var(--space-7); }

.hero-trust{
  margin-top: var(--space-8);
  display:flex; flex-wrap:wrap; gap: var(--space-6);
}
.hero-trust-item{ display:flex; align-items:center; gap:10px; color: var(--text-muted); font-size:14px; font-weight:600; }
.hero-trust-item svg{ width:18px; height:18px; color: var(--teal-500); flex-shrink:0; }

.hero-visual{ position:relative; display:flex; align-items:center; justify-content:center; }
.hero-orb{
  position:relative;
  width: min(420px, 84vw); aspect-ratio:1;
  display:flex; align-items:center; justify-content:center;
}
.hero-orb-ring{
  position:absolute; inset:0; border-radius:50%;
  border: 1.5px dashed var(--border-strong);
  animation: spin 40s linear infinite;
}
.hero-orb-ring.r2{ inset: 34px; animation-duration: 30s; animation-direction: reverse; border-style:solid; opacity:.5; }
@keyframes spin{ to{ transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce){ .hero-orb-ring{ animation:none; } }

.hero-orb-glow{
  position:absolute; inset: 14%;
  border-radius:50%;
  background: radial-gradient(circle at 35% 30%, rgba(111,214,196,.5), rgba(18,48,85,.05) 70%);
  filter: blur(6px);
}
.hero-orb-card{
  position:relative; z-index:2;
  width: 62%; aspect-ratio:1;
  border-radius: var(--radius-lg);
  background: var(--surface-glass-strong);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 60px -20px hsl(var(--shadow-color) / .35);
  display:flex; align-items:center; justify-content:center;
  padding: 14%;
  animation: bob 6s ease-in-out infinite;
}
@keyframes bob{ 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-14px);} }
@media (prefers-reduced-motion: reduce){ .hero-orb-card{ animation:none; } }
.hero-orb-card img{ width:100%; }

.node-chip{
  position:absolute;
  display:flex; align-items:center; gap:8px;
  background: var(--surface-glass-strong);
  border:1px solid var(--border-strong);
  padding: 9px 14px; border-radius: var(--radius-full);
  font-size:12.5px; font-weight:700; color: var(--text);
  box-shadow: 0 12px 30px -14px hsl(var(--shadow-color) / .45);
  backdrop-filter: blur(10px);
  animation: chip-float 7s ease-in-out infinite;
}
.node-chip svg{ width:15px; height:15px; color: var(--teal-500); }
.node-chip.c1{ top:6%; inset-inline-start:-6%; animation-delay: -1s; }
.node-chip.c2{ bottom:12%; inset-inline-end:-10%; animation-delay: -3.5s; }
.node-chip.c3{ top:52%; inset-inline-end:-14%; animation-delay: -5s; }
@keyframes chip-float{ 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-10px);} }
@media (prefers-reduced-motion: reduce){ .node-chip{ animation:none; } }

/* =========================================================
   Highlights strip
   ========================================================= */
.highlights{
  padding-block: var(--space-6);
  border-block: 1px solid var(--border);
  background: var(--surface);
}
.highlights-grid{
  display:grid; grid-template-columns: repeat(2,1fr); gap: var(--space-6);
}
@media (min-width:768px){ .highlights-grid{ grid-template-columns: repeat(4,1fr); } }
.highlight-item{ display:flex; align-items:center; gap:14px; }
.highlight-item .ic{
  width:46px; height:46px; border-radius: var(--radius-sm);
  display:flex; align-items:center; justify-content:center;
  background: var(--brand-gradient-soft); color: var(--teal-600); flex-shrink:0;
}
:root[data-theme="dark"] .highlight-item .ic{ color: var(--cyan-300); }
.highlight-item .ic svg{ width:22px; height:22px; }
.highlight-item b{ font-size:16px; font-weight:800; color: var(--text); }
.highlight-item small{ font-size:13px; color: var(--text-soft); }

/* =========================================================
   Clients
   ========================================================= */
.clients-grid{
  display:grid; gap: var(--space-6);
  grid-template-columns: 1fr;
}
@media (min-width:640px){ .clients-grid{ grid-template-columns: repeat(2,1fr); } }

.project-card{
  display:flex; flex-direction:column;
  background: var(--surface);
  border:1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow:hidden;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base);
}
.project-card:hover{
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 30px 60px -24px hsl(var(--shadow-color) / .45);
}
.project-preview{ aspect-ratio: 16/10; overflow:hidden; background: var(--bg-soft); }
.project-preview img{
  width:100%; height:100%; object-fit:cover; object-position: top;
  transition: transform var(--dur-slow) var(--ease-out);
}
.project-card:hover .project-preview img{ transform: scale(1.06); }

.project-body{ padding: var(--space-5); display:flex; flex-direction:column; gap:6px; }
.project-name{ font-size:18px; font-weight:800; color: var(--text); }
.project-type{ font-size:13px; font-weight:600; color: var(--teal-600); }
:root[data-theme="dark"] .project-type{ color: var(--cyan-300); }
.project-desc{ font-size:14px; color: var(--text-muted); line-height:1.6; margin-top:2px; }
.project-link{
  display:inline-flex; align-items:center; gap:8px;
  margin-top: var(--space-3);
  font-size:14px; font-weight:700; color: var(--text);
  transition: gap var(--dur-base) var(--ease-out), color var(--dur-base);
}
.project-link svg{ width:16px; height:16px; transition: transform var(--dur-base) var(--ease-out); }
.project-card:hover .project-link{ color: var(--teal-600); gap:12px; }
:root[data-theme="dark"] .project-card:hover .project-link{ color: var(--cyan-300); }

/* =========================================================
   About
   ========================================================= */
.about-grid{ display:grid; gap: var(--space-8); }
@media (min-width:960px){ .about-grid{ grid-template-columns: .95fr 1.05fr; align-items:center; } }

.about-visual{ position:relative; }
.about-card{
  border-radius: var(--radius-lg);
  overflow:hidden;
  border:1px solid var(--border);
  background: var(--brand-gradient);
  padding: 3px;
  box-shadow: 0 40px 70px -30px hsl(var(--shadow-color) / .4);
}
.about-card-inner{
  border-radius: calc(var(--radius-lg) - 3px);
  background: var(--surface);
  padding: var(--space-7);
  display:flex; flex-direction:column; align-items:center; text-align:center; gap: var(--space-4);
}
.about-card-inner img{ width: 140px; }
.about-card-inner p{ color: var(--text-muted); font-size:15px; }

.about-feature-list{ margin-top: var(--space-6); display:grid; gap: var(--space-4); }
.about-feature{
  display:flex; align-items:flex-start; gap:14px;
  padding: var(--space-4);
  border:1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base), box-shadow var(--dur-base);
}
.about-feature:hover{ transform: translateY(-3px); border-color: var(--teal-400); box-shadow: 0 20px 40px -24px hsl(var(--shadow-color) / .4); }
.about-feature .ic{
  width:38px; height:38px; border-radius:10px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  background: var(--brand-gradient); color:#fff;
}
.about-feature .ic svg{ width:18px; height:18px; }
.about-feature b{ font-weight:700; font-size:15px; margin-bottom:2px; }
.about-feature span{ color: var(--text-muted); font-size:14px; }

/* =========================================================
   Services
   ========================================================= */
.services-grid{
  display:grid; gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width:640px){ .services-grid{ grid-template-columns: repeat(2,1fr); } }
@media (min-width:1080px){ .services-grid{ grid-template-columns: repeat(3,1fr); } }

.service-card{
  position:relative;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow:hidden;
  cursor:pointer;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base);
}
.service-card::before{
  content:''; position:absolute; inset:0; opacity:0;
  background: var(--brand-gradient);
  transition: opacity var(--dur-base);
  z-index:0;
}
.service-card:hover{
  transform: translateY(-8px);
  border-color: transparent;
  box-shadow: 0 30px 60px -24px hsl(var(--shadow-color) / .45);
}
.service-card:hover::before{ opacity:1; }
.service-card > *{ position:relative; z-index:1; }

.service-card .ic{
  width:54px; height:54px; border-radius: var(--radius-md);
  display:flex; align-items:center; justify-content:center;
  background: var(--brand-gradient-soft); color: var(--teal-600);
  margin-bottom: var(--space-5);
  transition: all var(--dur-base) var(--ease-out);
}
:root[data-theme="dark"] .service-card .ic{ color: var(--cyan-300); }
.service-card:hover .ic{ background: rgba(255,255,255,.18); color:#fff; transform: rotate(-8deg) scale(1.05); }
.service-card .ic svg{ width:26px; height:26px; }

.service-card h3{ font-size:19px; font-weight:800; margin-bottom:10px; transition: color var(--dur-base); }
.service-card:hover h3{ color:#fff; }
.service-card p{ color: var(--text-muted); font-size:14.5px; line-height:1.7; transition: color var(--dur-base); }
.service-card:hover p{ color: rgba(255,255,255,.88); }

.service-card .tag-row{
  display:block; margin-top: var(--space-5);
  font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  color: var(--text-soft); transition: color var(--dur-base);
}
.service-card:hover .tag-row{ color: rgba(255,255,255,.7); }

/* =========================================================
   Why us
   ========================================================= */
.why-section{ background: var(--bg-soft); }
.why-grid{ display:grid; gap: var(--space-5); grid-template-columns: 1fr; }
@media (min-width:640px){ .why-grid{ grid-template-columns: repeat(2,1fr); } }
@media (min-width:1080px){ .why-grid{ grid-template-columns: repeat(3,1fr); } }
.why-card{
  display:flex; gap:16px; padding: var(--space-5);
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-md);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base);
}
.why-card:hover{ transform: translateY(-4px); box-shadow: 0 20px 40px -26px hsl(var(--shadow-color) / .4); }
.why-card .ic{
  width:44px; height:44px; border-radius:12px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  background: var(--brand-gradient); color:#fff;
}
.why-card .ic svg{ width:21px; height:21px; }
.why-card h4{ font-size:16px; font-weight:800; margin-bottom:4px; }
.why-card p{ font-size:14px; color: var(--text-muted); line-height:1.6; }

/* =========================================================
   Process
   ========================================================= */
.process-track{ position:relative; margin-top: var(--space-8); }
.process-line{
  position:absolute; top:28px; inset-inline: 6%;
  height:2px; background: var(--border-strong);
  display:none;
}
@media (min-width:960px){ .process-line{ display:block; } }
.process-line-fill{
  position:absolute; inset-block:0; inset-inline-start:0; width:0%;
  background: var(--brand-gradient);
}
.process-grid{
  display:grid; gap: var(--space-6);
  grid-template-columns: repeat(2,1fr);
}
@media (min-width:640px){ .process-grid{ grid-template-columns: repeat(3,1fr); } }
@media (min-width:960px){ .process-grid{ grid-template-columns: repeat(5,1fr); } }

.process-step{ position:relative; text-align:center; display:flex; flex-direction:column; align-items:center; gap: var(--space-3); }
.process-num{
  width:56px; height:56px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background: var(--surface); border:2px solid var(--border-strong);
  color: var(--teal-600); font-weight:800; font-size:15px;
  transition: all var(--dur-base) var(--ease-out);
  position:relative; z-index:1;
}
.process-step:hover .process-num{
  background: var(--brand-gradient); color:#fff; border-color:transparent;
  transform: scale(1.08);
  box-shadow: 0 14px 28px -12px hsl(var(--shadow-color) / .5);
}
.process-num svg{ width:22px; height:22px; }
.process-step h4{ font-size:15.5px; font-weight:800; }
.process-step p{ font-size:13.5px; color: var(--text-muted); line-height:1.6; max-width:180px; }

/* =========================================================
   Technology marquee
   ========================================================= */
.tech-section{ overflow:hidden; }
.marquee{
  position:relative;
  margin-top: var(--space-7);
  overflow:hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track{
  display:flex; gap: var(--space-6); width:max-content;
  animation: marquee 32s linear infinite;
}
html[dir="rtl"] .marquee-track{ animation-direction: reverse; }
.marquee:hover .marquee-track{ animation-play-state: paused; }
@keyframes marquee{ from{ transform: translateX(0);} to{ transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce){ .marquee-track{ animation:none; flex-wrap:wrap; width:100%; } }

.tech-badge{
  display:flex; align-items:center; gap:10px;
  padding: 14px 22px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border:1px solid var(--border);
  font-weight:700; font-size:14.5px; color: var(--text-muted);
  white-space:nowrap;
}
.tech-badge svg{ width:18px; height:18px; color: var(--teal-500); }

/* =========================================================
   CTA banner
   ========================================================= */
.cta-banner{
  position:relative; overflow:hidden;
  border-radius: var(--radius-lg);
  background: var(--brand-gradient);
  background-size: 200% 200%;
  animation: gradient-shift 12s ease infinite;
  padding: var(--space-8) var(--space-6);
  text-align:center;
  color:#fff;
}
@keyframes gradient-shift{ 0%,100%{ background-position: 0% 50%;} 50%{ background-position: 100% 50%;} }
@media (prefers-reduced-motion: reduce){ .cta-banner{ animation:none; } }
.cta-banner h2{ font-size: clamp(26px,3.4vw,38px); font-weight:800; }
.cta-banner p{ margin-top: var(--space-3); font-size:16.5px; opacity:.92; max-width:560px; margin-inline:auto; }
.cta-banner .hero-cta{ justify-content:center; margin-top: var(--space-6); }
.cta-banner .btn-ghost{ background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35); color:#fff; }
.cta-banner .btn-ghost:hover{ background: rgba(255,255,255,.2); color:#fff; border-color:#fff; }
.cta-banner .btn-primary{ background-image:none; background: #fff; color: var(--navy-800); box-shadow: 0 14px 30px -10px rgba(0,0,0,.35); }
.cta-banner .btn-primary:hover{ background:#fff; transform: translateY(-2px); }
.cta-blob{ position:absolute; width:340px; height:340px; border-radius:50%; background: rgba(255,255,255,.12); filter: blur(50px); }
.cta-blob.a{ top:-100px; inset-inline-start:-80px; }
.cta-blob.b{ bottom:-120px; inset-inline-end:-60px; }

/* =========================================================
   Contact
   ========================================================= */
.contact-grid{ display:grid; gap: var(--space-7); }
@media (min-width:960px){ .contact-grid{ grid-template-columns: .85fr 1.15fr; } }

.contact-info-card{
  background: var(--brand-gradient); color:#fff;
  border-radius: var(--radius-lg); padding: var(--space-7);
  display:flex; flex-direction:column; gap: var(--space-6);
  position:relative; overflow:hidden;
}
.contact-info-card h3{ font-size:22px; font-weight:800; }
.contact-info-card > p{ opacity:.88; font-size:14.5px; line-height:1.7; }
.contact-line{ display:flex; align-items:center; gap:14px; font-size:14.5px; font-weight:600; }
.contact-line .ic{
  width:40px; height:40px; border-radius:10px; flex-shrink:0;
  background: rgba(255,255,255,.16); display:flex; align-items:center; justify-content:center;
}
.contact-line .ic svg{ width:19px; height:19px; }
.contact-line a{ transition: opacity var(--dur-fast); }
.contact-line a:hover{ opacity:.8; text-decoration: underline; }
.social-row{ display:flex; gap:10px; margin-top:auto; }
.social-row a{
  width:40px; height:40px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background: rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.25);
  transition: all var(--dur-base) var(--ease-out);
}
.social-row a:hover{ background:#fff; color: var(--navy-800); transform: translateY(-3px); }
.social-row svg{ width:17px; height:17px; }

.contact-form{
  background: var(--surface); border:1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-7);
}
.form-row{ display:grid; gap: var(--space-5); grid-template-columns: 1fr; }
@media (min-width:560px){ .form-row.two{ grid-template-columns: 1fr 1fr; } }
.field{ display:flex; flex-direction:column; gap:8px; margin-top: var(--space-5); }
.form-row:first-child .field{ margin-top:0; }
.field label{ font-size:13.5px; font-weight:700; color: var(--text-muted); }
.field input, .field textarea{
  border:1.5px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 13px 16px; background: var(--bg); color: var(--text);
  transition: border-color var(--dur-base), box-shadow var(--dur-base);
}
.field input:focus, .field textarea:focus{
  outline:none; border-color: var(--teal-500);
  box-shadow: 0 0 0 4px rgba(46,196,182,.16);
}
.field textarea{ resize: vertical; min-height:120px; }
.field .error-msg{ font-size:12.5px; color: var(--danger); min-height:15px; }
.field.has-error input, .field.has-error textarea{ border-color: var(--danger); }

.form-foot{ margin-top: var(--space-6); display:flex; align-items:center; gap: var(--space-4); flex-wrap:wrap; }
.form-note{ font-size:12.5px; color: var(--text-soft); }
.form-success{
  display:none; align-items:center; gap:10px;
  margin-top: var(--space-5); padding: 14px 16px;
  background: rgba(26,163,124,.1); border:1px solid rgba(26,163,124,.35);
  border-radius: var(--radius-sm); color: var(--success); font-size:14px; font-weight:600;
}
.form-success.show{ display:flex; }
.form-success svg{ width:18px; height:18px; flex-shrink:0; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer{ background: var(--navy-950); color: rgba(255,255,255,.78); padding-block: var(--space-8) var(--space-6); }
.footer-grid{ display:grid; gap: var(--space-7); grid-template-columns: 1fr; }
@media (min-width:768px){ .footer-grid{ grid-template-columns: 1.3fr repeat(3, 1fr); } }
.footer-brand .brand-mark{ height:40px; width:auto; }
.footer-brand p{ margin-top: var(--space-4); font-size:14px; line-height:1.75; color: rgba(255,255,255,.55); max-width: 320px; }
.footer-col h5{ font-size:13px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color: rgba(255,255,255,.9); margin-bottom: var(--space-4); }
.footer-col ul{ display:flex; flex-direction:column; gap:12px; }
.footer-col a{ font-size:14.5px; color: rgba(255,255,255,.6); transition: color var(--dur-fast); }
.footer-col a:hover{ color: var(--cyan-300); }
.footer-bottom{
  margin-top: var(--space-8); padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,.1);
  display:flex; flex-wrap:wrap; gap: var(--space-4); align-items:center; justify-content:space-between;
  font-size:13px; color: rgba(255,255,255,.45);
}
.footer-social{ display:flex; gap:10px; }
.footer-social a{
  width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background: rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12);
  transition: all var(--dur-base);
}
.footer-social a:hover{ background: var(--teal-500); border-color: var(--teal-500); color:#fff; transform: translateY(-3px); }
.footer-social svg{ width:16px; height:16px; }

/* =========================================================
   Back to top
   ========================================================= */
.back-top{
  position:fixed; inset-block-end: 24px; inset-inline-end: 24px; z-index:60;
  width:48px; height:48px; border-radius:50%;
  background: var(--brand-gradient); color:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 14px 30px -10px hsl(var(--shadow-color) / .55);
  opacity:0; visibility:hidden; transform: translateY(12px);
  transition: all var(--dur-base) var(--ease-out);
}
.back-top.show{ opacity:1; visibility:visible; transform: translateY(0); }
.back-top:hover{ transform: translateY(-4px); }
.back-top svg{ width:20px; height:20px; }

/* =========================================================
   Reveal-on-scroll base state (JS/GSAP driven)
   ========================================================= */
[data-reveal]{ opacity:1; }
@media (prefers-reduced-motion: no-preference){
  [data-reveal]{ opacity:0; }
}
