/* ============================================================
   X TECH MASTER — DESIGN SYSTEM v3.0
   Brand: Navy #0A192F | Silver #C0C0C0 | Blue #1B6CA8
   Fonts: Barlow + Cairo (headings) | Inter (body) | JetBrains Mono
   ============================================================ */

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

/* ── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  --navy:         #0A192F;
  --navy-dark:    #060f1e;
  --navy-2:       #0d2240;
  --navy-3:       #081528;
  --silver:       #C0C0C0;
  --white:        #FFFFFF;
  --blue:         #1B6CA8;
  --blue-2:       #1557a0;
  --blue-light:   #2d8fd6;
  --blue-pale:    #7db8e8;
  --softgray:     #E8EDF2;
  --divider:      #D0D5DD;

  --text-primary:   rgba(255,255,255,0.96);
  --text-secondary: rgba(255,255,255,0.62);
  --text-muted:     rgba(255,255,255,0.40);
  --text-dim:       rgba(255,255,255,0.22);

  --border:         rgba(192,192,192,0.09);
  --border-2:       rgba(192,192,192,0.16);
  --border-blue:    rgba(27,108,168,0.32);

  --glow-blue:   rgba(27,108,168,0.18);
  --shadow-sm:   0 2px 12px rgba(0,0,0,0.35);
  --shadow-md:   0 8px 32px rgba(0,0,0,0.45);
  --shadow-lg:   0 24px 64px rgba(0,0,0,0.55);
  --shadow-blue: 0 12px 40px rgba(27,108,168,0.35);

  --section-pad: clamp(72px, 9vw, 120px);
  --page-pad:    clamp(24px, 5.5vw, 80px);

  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  28px;

  --t-fast:   0.18s ease;
  --t-normal: 0.28s ease;
  --t-slow:   0.45s ease;
}

/* ── RESET & BASE ───────────────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--navy);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.7;
}

img  { max-width: 100%; display: block; }
a    { text-decoration: none; }
ul   { list-style: none; }

/* ── SCROLLBAR ──────────────────────────────────────────────── */
::-webkit-scrollbar       { width: 5px; }
::-webkit-scrollbar-track { background: var(--navy-dark); }
::-webkit-scrollbar-thumb { background: rgba(27,108,168,0.5); border-radius: 4px; }

/* ── INFINITY GRID BACKGROUND ──────────────────────────────── */
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(192,192,192,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(192,192,192,0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

.bg-infinity {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='130'%20height='130'%20viewBox='0%200%20130%20130'%3E%0A%20%20%3Cpath%20d='M28%2016%20L65%2065%20L28%20114'%20stroke='white'%20stroke-width='6.5'%20stroke-linecap='round'%20stroke-linejoin='round'%20fill='none'%20opacity='0.055'/%3E%0A%20%20%3Cpath%20d='M102%2016%20L65%2065%20L102%20114'%20stroke='white'%20stroke-width='6.5'%20stroke-linecap='round'%20stroke-linejoin='round'%20fill='none'%20opacity='0.055'/%3E%0A%20%20%3Cpath%20d='M65,65%20C63,47%2049,38%2037,44%20C22,53%2022,77%2037,86%20C49,92%2063,83%2065,65%20C67,47%2081,38%2093,44%20C108,53%20108,77%2093,86%20C81,92%2067,83%2065,65'%20stroke='white'%20stroke-width='5'%20fill='none'%20stroke-linecap='round'%20opacity='0.055'/%3E%0A%3C/svg%3E");
  background-size: 130px 130px;
  pointer-events: none;
}

/* ── NAV ────────────────────────────────────────────────────── */
.xtm-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 var(--page-pad);
  height: 70px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(6,15,30,0.72);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-bottom: 1px solid rgba(255,255,255,0.045);
  transition: background .3s, box-shadow .3s;
}

.xtm-nav.scrolled {
  background: rgba(6,15,30,0.97);
  box-shadow: 0 4px 40px rgba(0,0,0,0.5);
  border-bottom-color: rgba(255,255,255,0.07);
}

.nav-logo {
  display: flex; align-items: center; gap: 11px;
  text-decoration: none; flex-shrink: 0;
}

.nav-logo-svg { width: 38px; height: 38px; flex-shrink: 0; }

.nav-brand {
  font-family: 'Barlow', sans-serif;
  font-weight: 700; font-size: 16.5px;
  color: var(--white);
  letter-spacing: -0.025em; line-height: 1.1;
}

.nav-brand em  { font-style: normal; color: var(--silver); font-weight: 800; }
.nav-brand sub {
  display: block;
  font-size: 9px; font-family: 'Inter', sans-serif;
  font-weight: 500; letter-spacing: 0.11em;
  color: var(--text-dim); text-transform: uppercase;
  margin-top: 2px;
}

.nav-menu {
  display: flex; align-items: center; gap: 2px;
}

.nav-menu a {
  font-size: 12.5px; font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 13px; border-radius: 6px;
  letter-spacing: 0.02em;
  transition: all var(--t-fast);
  white-space: nowrap;
}

.nav-menu a:hover  { color: var(--white); background: rgba(255,255,255,0.06); }
.nav-menu a.active { color: var(--white); background: rgba(27,108,168,0.16); }

.nav-cta {
  background: var(--blue) !important;
  color: var(--white) !important;
  padding: 8px 20px !important; border-radius: 7px;
  font-weight: 600 !important; font-size: 13px !important;
  box-shadow: 0 4px 18px rgba(27,108,168,0.28);
  transition: all var(--t-normal) !important;
}

.nav-cta:hover {
  background: var(--blue-light) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 8px 24px rgba(27,108,168,0.45) !important;
}

/* Mobile nav toggle */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 6px; border-radius: 6px;
  background: none; border: none;
}

.nav-hamburger span {
  width: 22px; height: 2px;
  background: var(--silver); border-radius: 2px;
  transition: all .25s;
}

/* ── TYPOGRAPHY ─────────────────────────────────────────────── */
.h1 {
  font-family: 'Barlow', sans-serif; font-weight: 900;
  font-size: clamp(52px, 6.5vw, 94px);
  line-height: 0.92; letter-spacing: -0.036em;
}

.h2 {
  font-family: 'Barlow', sans-serif; font-weight: 700;
  font-size: clamp(34px, 3.8vw, 52px);
  letter-spacing: -0.022em; line-height: 1.08;
}

.h3 {
  font-family: 'Barlow', sans-serif; font-weight: 700;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -0.01em; line-height: 1.2;
}

.lead {
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--text-secondary); line-height: 1.82; max-width: 560px;
}

.tag {
  font-size: 10.5px; font-weight: 600;
  color: var(--blue-pale);
  letter-spacing: 0.13em; text-transform: uppercase;
}

.section-bar {
  width: 36px; height: 2.5px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  border-radius: 2px; margin: 10px 0 20px;
}

.gradient-text {
  background: linear-gradient(135deg, #fff 0%, #C0C0C0 45%, var(--blue-pale) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--r-sm);
  font-weight: 600; font-size: 14px;
  font-family: 'Inter', sans-serif;
  border: none; cursor: pointer;
  transition: all var(--t-normal);
  position: relative; overflow: hidden; white-space: nowrap;
}

.btn-primary {
  background: var(--blue); color: white;
  box-shadow: 0 4px 20px rgba(27,108,168,0.32);
}

.btn-primary:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}

.btn-primary::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.09) 0%, transparent 60%);
  pointer-events: none;
}

.btn-ghost {
  background: transparent;
  color: var(--silver);
  border: 1px solid rgba(192,192,192,0.22);
}

.btn-ghost:hover {
  border-color: rgba(192,192,192,0.55);
  color: white; background: rgba(192,192,192,0.04);
}

.btn-sm  { padding: 9px 20px; font-size: 13px; }
.btn-lg  { padding: 16px 38px; font-size: 16px; }

/* ── SECTION PATTERNS ───────────────────────────────────────── */
.section      { padding: var(--section-pad) var(--page-pad); position: relative; }
.section-dark { background: var(--navy-3); }
.section-mid  { background: var(--navy-2); }
.section-alt  { background: var(--navy-dark); }
.section-blue { background: var(--blue); }

.section-header { text-align: center; margin-bottom: clamp(48px, 6vw, 80px); }
.section-header .h2   { margin-top: 8px; }
.section-header .lead { margin: 16px auto 0; text-align: center; }

/* ── CARDS ──────────────────────────────────────────────────── */
.card {
  background: rgba(10,25,47,0.65);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 40px);
  transition: all var(--t-normal);
  position: relative; overflow: hidden;
}

.card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(27,108,168,0.08) 0%, transparent 55%);
  opacity: 0; transition: opacity var(--t-normal);
}

.card:hover {
  border-color: rgba(27,108,168,0.38);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.45), 0 0 0 1px rgba(27,108,168,0.1);
}

.card:hover::before { opacity: 1; }

.card-icon {
  width: 52px; height: 52px;
  border-radius: var(--r-sm);
  background: rgba(27,108,168,0.12);
  border: 1px solid rgba(27,108,168,0.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  transition: all var(--t-normal);
}

.card:hover .card-icon { background: rgba(27,108,168,0.22); border-color: rgba(27,108,168,0.42); }

.card-icon svg {
  width: 22px; height: 22px;
  stroke: var(--blue-pale); fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}

/* ── PILLS & BADGES ─────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: 100px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
}

.pill-blue   { background: rgba(27,108,168,0.14); color: var(--blue-pale); border: 1px solid rgba(27,108,168,0.26); }
.pill-silver { background: rgba(192,192,192,0.09); color: var(--silver);   border: 1px solid rgba(192,192,192,0.18); }
.pill-green  { background: rgba(46,125,50,0.14);   color: #4ade80;         border: 1px solid rgba(46,125,50,0.25); }

.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%; background: var(--blue);
  animation: blink 2s infinite;
}

@keyframes blink {
  0%,100% { opacity:1; transform:scale(1); }
  50%     { opacity:.4; transform:scale(1.5); }
}

/* ── STATS ──────────────────────────────────────────────────── */
.stats-row {
  display: flex; gap: clamp(32px, 5vw, 64px);
  padding-top: 36px; margin-top: 36px;
  border-top: 1px solid var(--border);
}

.stat-num {
  font-family: 'Barlow', sans-serif; font-weight: 900;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1; color: var(--white);
}

.stat-num .accent { color: var(--blue-pale); }
.stat-lbl { font-size: 10.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.09em; margin-top: 6px; }

/* ── MARQUEE ────────────────────────────────────────────────── */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  background: rgba(8,21,40,0.6);
}

.marquee-track {
  display: flex; gap: 0;
  animation: marquee 28s linear infinite;
  width: max-content;
}

.marquee-wrap:hover .marquee-track { animation-play-state: paused; }

.marquee-item {
  display: flex; align-items: center; gap: 22px;
  padding: 0 30px;
  font-family: 'Barlow', sans-serif; font-weight: 700;
  font-size: 12.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-muted);
  white-space: nowrap; flex-shrink: 0;
  transition: color .2s;
}

.marquee-item:hover { color: var(--silver); }

.marquee-sep {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--blue); flex-shrink: 0;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── CODE BLOCK ─────────────────────────────────────────────── */
.code-block {
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(192,192,192,0.08);
  border-radius: var(--r-md);
  padding: 24px; font-family: 'JetBrains Mono', monospace;
  font-size: 13px; color: #a8b5c8; line-height: 1.8; overflow-x: auto;
}

.code-block .kw  { color: var(--blue-pale); }
.code-block .str { color: #98d982; }
.code-block .cm  { color: #4a6a8a; }

/* ── SCROLL ANIMATIONS ──────────────────────────────────────── */
.fade-up    { opacity:0; transform:translateY(36px);  transition:opacity .7s ease,transform .7s ease; }
.fade-left  { opacity:0; transform:translateX(-36px); transition:opacity .7s ease,transform .7s ease; }
.fade-right { opacity:0; transform:translateX(36px);  transition:opacity .7s ease,transform .7s ease; }
.scale-in   { opacity:0; transform:scale(0.92);       transition:opacity .6s ease,transform .6s ease; }

.fade-up.in, .fade-left.in, .fade-right.in, .scale-in.in {
  opacity:1; transform:none;
}

.delay-1 { transition-delay:.10s; }
.delay-2 { transition-delay:.20s; }
.delay-3 { transition-delay:.30s; }
.delay-4 { transition-delay:.42s; }
.delay-5 { transition-delay:.54s; }
.delay-6 { transition-delay:.66s; }

/* ── PAGE HERO (inner pages) ────────────────────────────────── */
.page-hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 100px var(--page-pad) 80px;
  position: relative; overflow: hidden;
}

.ph-bg { position: absolute; inset: 0; }

.ph-glow {
  position: absolute; border-radius: 50%;
  filter: blur(100px); pointer-events: none;
}

.ph-content { position: relative; z-index: 2; max-width: 760px; }

.ph-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(27,108,168,0.12);
  border: 1px solid rgba(27,108,168,0.28);
  border-radius: 100px; padding: 5px 16px; margin-bottom: 30px;
  font-size: 11px; font-weight: 600;
  color: var(--blue-pale); letter-spacing: 0.11em; text-transform: uppercase;
}

.ph-dot { width:6px; height:6px; border-radius:50%; background:var(--blue); animation:blink 2s infinite; }

.ph-title {
  font-family: 'Barlow', sans-serif; font-weight: 900;
  font-size: clamp(48px, 6.2vw, 84px);
  line-height: 0.94; letter-spacing: -0.033em; margin-bottom: 26px;
}

.ph-title .accent { color: var(--blue-pale); }
.ph-title .silver { color: var(--silver); }

.ph-desc {
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--text-secondary); line-height: 1.82;
  max-width: 560px; margin-bottom: 42px;
}

.ph-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

/* ── GRID LAYOUTS ───────────────────────────────────────────── */
.grid-2     { display:grid; grid-template-columns:repeat(2,1fr); gap:24px; }
.grid-3     { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.grid-4     { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.grid-split { display:grid; grid-template-columns:1fr 1fr; gap:clamp(40px,7vw,100px); align-items:center; }

/* ── DIVIDER ────────────────────────────────────────────────── */
.divider { width:100%; height:1px; background:var(--border); margin:60px 0; }

/* ── PROCESS STEP ───────────────────────────────────────────── */
.step-num {
  font-family: 'Barlow', sans-serif; font-weight: 900;
  font-size: 11px; letter-spacing: .1em; color: var(--blue-pale);
  text-transform: uppercase; margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}

.step-num::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ── TECH STACK TAG ─────────────────────────────────────────── */
.stack-tag {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; border-radius: 7px;
  background: rgba(10,25,47,0.7);
  border: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px; color: var(--text-secondary);
  transition: all var(--t-fast);
}

.stack-tag:hover {
  border-color: var(--border-blue); color: var(--blue-pale);
  background: rgba(27,108,168,0.08);
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.xtm-footer {
  background: var(--navy-dark);
  padding: clamp(64px, 9vw, 100px) var(--page-pad) 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  position: relative; overflow: hidden;
}

.xtm-footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue) 40%, var(--blue-light) 60%, transparent);
  opacity: .65;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.3fr;
  gap: clamp(40px, 5vw, 80px);
  padding-bottom: 60px;
}

.footer-logo-wrap { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.footer-logo-svg  { width: 38px; height: 38px; }

.footer-brand     { font-family: 'Barlow', sans-serif; font-weight: 700; font-size: 18px; }
.footer-brand em  { color: var(--silver); font-style: normal; font-weight: 800; }
.footer-brand sub { display:block; font-size:9px; font-family:'Inter',sans-serif; font-weight:500; letter-spacing:.11em; color:var(--text-dim); text-transform:uppercase; margin-top:2px; }

.footer-tagline { font-size:11px; color:var(--text-dim); letter-spacing:.1em; text-transform:uppercase; margin-bottom:18px; }
.footer-desc    { font-size:13px; color:var(--text-muted); line-height:1.85; max-width:280px; }

.footer-socials { display:flex; gap:10px; margin-top:26px; }

.fsoc {
  width:36px; height:36px; border-radius:8px;
  border:1px solid var(--border-2);
  display:flex; align-items:center; justify-content:center;
  color:var(--text-muted);
  transition:all var(--t-normal);
}

.fsoc:hover { border-color:var(--blue); color:var(--blue-pale); background:rgba(27,108,168,0.1); }
.fsoc svg   { width:15px; height:15px; stroke:currentColor; fill:none; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }

.footer-col h4 {
  font-family:'Barlow',sans-serif; font-weight:700;
  font-size:11px; text-transform:uppercase; letter-spacing:.1em;
  color:rgba(255,255,255,0.5); margin-bottom:18px;
}

.footer-col a {
  display:block; font-size:13px;
  color:var(--text-muted); margin-bottom:11px;
  transition:color var(--t-fast);
}

.footer-col a:hover { color:var(--white); }

.footer-bottom {
  border-top:1px solid var(--border);
  padding:24px 0;
  display:flex; justify-content:space-between; align-items:center;
  flex-wrap:wrap; gap:12px;
}

.footer-copy { font-size:12px; color:var(--text-dim); }
.footer-bottom-logo { display:flex; align-items:center; gap:9px; }

/* ── KEYFRAMES ──────────────────────────────────────────────── */
@keyframes spin-cw  { to { transform: rotate(360deg); } }
@keyframes spin-ccw { to { transform: rotate(-360deg); } }
@keyframes float    { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-14px)} }
@keyframes pulse-ring {
  0%   { transform:scale(1);   opacity:.6; }
  100% { transform:scale(1.6); opacity:0;  }
}

/* ── MEDIA QUERIES ──────────────────────────────────────────── */
@media (max-width:1100px) {
  .grid-3 { grid-template-columns:repeat(2,1fr); }
  .grid-4 { grid-template-columns:repeat(2,1fr); }
  .footer-inner { grid-template-columns:1fr 1fr; }
}

@media (max-width:768px) {
  .xtm-nav { padding:0 20px; }
  .nav-menu { display:none; }
  .nav-hamburger { display:flex; }

  .page-hero { padding-top:90px; }

  .grid-2, .grid-3, .grid-split { grid-template-columns:1fr; }
  .stats-row { gap:28px; flex-wrap:wrap; }
  .footer-inner { grid-template-columns:1fr; gap:32px; }

  .btn-lg { padding:14px 28px; font-size:15px; }
}

@media (max-width:480px) {
  .grid-4 { grid-template-columns:1fr; }
  .ph-title { font-size:42px; }
  .h2 { font-size:30px; }
}

/* ── NAV LOGO IMAGE ─────────────────────────────────────────── */
.nav-logo-img {
  width: 48px; height: 48px;
  border-radius: 0;
  object-fit: contain;
  flex-shrink: 0;
}

/* ── LANGUAGE TOGGLE ────────────────────────────────────────── */
.lang-toggle {
  display: flex; align-items: center;
  background: rgba(192,192,192,0.07);
  border: 1px solid rgba(192,192,192,0.16);
  border-radius: 7px; overflow: hidden;
  flex-shrink: 0; margin-left: 10px;
}

.lang-btn {
  padding: 5px 11px;
  font-size: 11px; font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .2s;
  letter-spacing: .06em; text-transform: uppercase;
  border: none; background: none;
  font-family: 'Inter', sans-serif;
  line-height: 1;
}

.lang-btn:hover  { color: var(--white); }
.lang-btn.active { background: var(--blue); color: white; }

/* ── RTL / ARABIC SUPPORT ───────────────────────────────────── */
html.lang-ar,
html[dir="rtl"] {
  font-family: 'Cairo', sans-serif;
}

html[dir="rtl"] body { font-family: 'Cairo', sans-serif; }

html[dir="rtl"] .xtm-nav     { direction: rtl; }
html[dir="rtl"] .nav-menu    { flex-direction: row-reverse; }
html[dir="rtl"] .lang-toggle { margin-left: 0; margin-right: 10px; }

html[dir="rtl"] .section-bar { margin-right: 0; }
html[dir="rtl"] .section-header .section-bar { margin: 10px auto 0; }

html[dir="rtl"] .ph-content  { text-align: right; }
html[dir="rtl"] .ph-actions  { flex-direction: row-reverse; justify-content: flex-end; }

html[dir="rtl"] .grid-split  { direction: rtl; }
html[dir="rtl"] .stats-row   { flex-direction: row-reverse; }

html[dir="rtl"] .footer-inner { direction: rtl; text-align: right; }
html[dir="rtl"] .footer-bottom { flex-direction: row-reverse; }
html[dir="rtl"] .footer-logo-wrap { flex-direction: row-reverse; }

html[dir="rtl"] .h1,
html[dir="rtl"] .h2,
html[dir="rtl"] .h3,
html[dir="rtl"] .ph-title {
  font-family: 'Cairo', sans-serif;
  letter-spacing: 0;
}

html[dir="rtl"] .tag,
html[dir="rtl"] .pill,
html[dir="rtl"] .ph-eyebrow {
  font-family: 'Cairo', sans-serif;
  letter-spacing: 0;
}

html[dir="rtl"] .btn      { font-family: 'Cairo', sans-serif; letter-spacing: 0; }
html[dir="rtl"] .nav-menu a { font-family: 'Cairo', sans-serif; letter-spacing: 0; }
html[dir="rtl"] .nav-brand  { font-family: 'Cairo', sans-serif; text-align: right; }

html[dir="rtl"] .marquee-track { animation-direction: reverse; }

html[dir="rtl"] .card { text-align: right; }
html[dir="rtl"] .card-icon { margin-right: 0; }

html[dir="rtl"] .footer-col { text-align: right; }
html[dir="rtl"] .footer-desc { text-align: right; }

html[dir="rtl"] .why-item { flex-direction: row-reverse; text-align: right; }
html[dir="rtl"] .why-list  { text-align: right; }

html[dir="rtl"] .steps-tl  { direction: rtl; }
html[dir="rtl"] .step-r    { flex-direction: row-reverse; }
html[dir="rtl"] .step-r:not(:last-child)::after { left: auto; right: 18px; }

html[dir="rtl"] .info-item { flex-direction: row-reverse; text-align: right; }
html[dir="rtl"] .info-items { direction: rtl; }

html[dir="rtl"] .form-label   { font-family: 'Cairo', sans-serif; letter-spacing: 0; }
html[dir="rtl"] .form-input,
html[dir="rtl"] .form-select,
html[dir="rtl"] .form-textarea { direction: rtl; font-family: 'Cairo', sans-serif; text-align: right; }
html[dir="rtl"] .form-row { direction: rtl; }
html[dir="rtl"] .services-checkboxes { direction: rtl; }
html[dir="rtl"] .svc-check { flex-direction: row-reverse; }

/* hero logo image */
.hero-logo-img {
  width: clamp(280px, 30vw, 420px);
  height: clamp(280px, 30vw, 420px);
  border-radius: 0;
  object-fit: contain;
  filter:
    drop-shadow(0 0 40px rgba(27,108,168,0.45))
    drop-shadow(0 0 80px rgba(27,108,168,0.2));
  animation: float 5s ease-in-out infinite;
  position: relative; z-index: 2;
}

.hero-visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.hero-logo-orb {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}

/* Floating info cards on hero */
.hc {
  position: absolute;
  background: rgba(9,22,44,0.92);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  backdrop-filter: blur(12px);
  white-space: nowrap;
  transition: border-color .3s;
  z-index: 3;
}
.hc:hover { border-color: var(--border-blue); }
.hc-title { font-family:'Barlow',sans-serif; font-weight:700; font-size:13px; margin-bottom:3px; }
.hc-sub   { font-size:11px; color:var(--text-muted); }

.hc-1 { top:-20px;  left:-60px;  animation:float 5s ease-in-out infinite; }
.hc-2 { top:30px;   right:-70px; animation:float 6s ease-in-out infinite 1s; }
.hc-3 { bottom:40px; left:-55px; animation:float 4.5s ease-in-out infinite .5s; }
.hc-4 { bottom:-10px; right:-65px; animation:float 5.5s ease-in-out infinite 1.5s; }

/* Visual section improvements */
.browser-mock {
  background: rgba(6,14,28,0.95);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.browser-bar {
  background: rgba(16,32,56,0.95);
  border-bottom: 1px solid var(--border);
  padding: 10px 14px;
  display: flex; align-items: center; gap: 8px;
}
.browser-dot { width:9px; height:9px; border-radius:50%; }
.browser-url {
  flex:1; background:rgba(10,25,47,0.6); border:1px solid var(--border);
  border-radius:5px; padding:4px 10px;
  font-family:'JetBrains Mono',monospace; font-size:11px; color:var(--text-muted);
}
.browser-body { padding:0; overflow:hidden; }

.metrics-row { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; padding:14px; }
.metric-box { background:rgba(10,25,47,0.7); border:1px solid var(--border); border-radius:9px; padding:12px; text-align:center; }
.metric-num { font-family:'Barlow',sans-serif; font-weight:900; font-size:22px; color:var(--white); }
.metric-lbl { font-size:10px; color:var(--text-muted); text-transform:uppercase; letter-spacing:.07em; margin-top:3px; }
