:root {
  --bg: #0a0f1e;
  --bg2: #111931;
  --panel: #ffffff;
  --text: #1e293b;
  --text-inv: #f1f5f9;
  --muted: #64748b;
  --muted-inv: #9fb3d1;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --violet: #7c3aed;
  --accent: #38bdf8;
  --border: #e6ecf5;
  --radius: 16px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: #f6f8fc;
  line-height: 1.6;
  overflow-x: hidden;
}
.container { max-width: 1140px; margin: 0 auto; padding: 0 22px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; }

/* ── Scroll progress ─────────────────────────────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--primary), var(--violet), var(--accent));
  z-index: 100; transition: width .1s linear;
  box-shadow: 0 0 12px rgba(56,189,248,.6);
}

/* ── Nav ─────────────────────────────────────────────── */
#nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60; padding: 16px 0;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), padding .3s var(--ease);
}
#nav.scrolled { background: rgba(10,15,30,.82); backdrop-filter: blur(14px); box-shadow: 0 8px 30px rgba(0,0,0,.35); padding: 10px 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { font-size: 21px; font-weight: 800; color: #fff; text-decoration: none; letter-spacing: -.02em; }
.logo span { background: linear-gradient(90deg, var(--accent), var(--violet)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: #c3d0e6; text-decoration: none; font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: #fff; }
#burger { display: none; background: none; border: 0; color: #fff; font-size: 24px; cursor: pointer; }
.lang-switch { display: flex; gap: 2px; background: #ffffff12; border: 1px solid #ffffff20; border-radius: 9px; padding: 3px; }
.lang-switch button { background: none; border: 0; color: #c3d0e6; font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 6px; cursor: pointer; transition: .2s; }
.lang-switch button:hover { color: #fff; }
.lang-switch button.active { background: linear-gradient(90deg, var(--primary), var(--violet)); color: #fff; }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-block; padding: 13px 24px; border-radius: 12px; text-decoration: none;
  font-weight: 600; font-size: 15px; transition: transform .18s var(--ease), box-shadow .25s, background .25s;
  will-change: transform;
}
.btn:active { transform: scale(.96); }
.btn-primary { background: linear-gradient(120deg, var(--primary), var(--violet)); color: #fff !important; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(37,99,235,.4); }
.btn-glow { position: relative; }
.btn-glow::after { content: ''; position: absolute; inset: 0; border-radius: 12px; box-shadow: 0 0 0 0 rgba(124,58,237,.5); animation: pulse 2.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(124,58,237,.45); } 70% { box-shadow: 0 0 0 16px rgba(124,58,237,0); } 100% { box-shadow: 0 0 0 0 rgba(124,58,237,0); } }
.btn-ghost { border: 1px solid #ffffff2e; color: #e2e8f0 !important; backdrop-filter: blur(4px); }
.btn-ghost:hover { border-color: #ffffff66; transform: translateY(-2px); }
.btn-ghost.dark-ghost { border-color: #cbd5e1; color: var(--text) !important; }
.btn-small { padding: 9px 18px; background: linear-gradient(120deg, var(--primary), var(--violet)); color: #fff !important; border-radius: 10px; }

/* ── Reveal on scroll ────────────────────────────────── */
.reveal { opacity: 0; transition: opacity .7s var(--ease), transform .7s var(--ease); will-change: transform, opacity; }
.reveal[data-rv="up"] { transform: translateY(38px); }
.reveal[data-rv="left"] { transform: translateX(-46px); }
.reveal[data-rv="right"] { transform: translateX(46px); }
.reveal[data-rv="scale"] { transform: scale(.9); }
.reveal.in { opacity: 1; transform: none; }
.cards .reveal.in, .steps .reveal.in, .pricing .reveal.in { transition-delay: var(--d, 0s); }

/* ── Hero ────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden; color: var(--text-inv);
  padding: 180px 0 120px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
}
.grid-fade {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(#ffffff0d 1px, transparent 1px), linear-gradient(90deg, #ffffff0d 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 60% at 60% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 60% 0%, #000 30%, transparent 75%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; will-change: transform; }
.orb-1 { width: 420px; height: 420px; background: #2563eb; top: -80px; right: -60px; }
.orb-2 { width: 360px; height: 360px; background: #7c3aed; bottom: -120px; left: -80px; opacity: .45; }
.orb-3 { width: 240px; height: 240px; background: #38bdf8; top: 40%; left: 45%; opacity: .3; }
.orb-4 { width: 500px; height: 260px; background: #7c3aed; opacity: .18; top: -60px; left: 30%; filter: blur(90px); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: #ffffff10; border: 1px solid #ffffff22; padding: 6px 14px; border-radius: 999px; font-size: 13px; color: #dbe4f3; margin-bottom: 22px; }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 10px #4ade80; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.hero h1 { font-size: 52px; font-weight: 800; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--accent), var(--violet)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { margin: 22px 0 30px; color: var(--muted-inv); font-size: 19px; max-width: 500px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-chips { display: flex; gap: 10px; margin-top: 30px; flex-wrap: wrap; }
.hero-chips span { background: #ffffff0f; border: 1px solid #ffffff1f; padding: 7px 15px; border-radius: 999px; font-size: 13px; color: #dbe4f3; }

/* ── TV mockup (3D tilt) ─────────────────────────────── */
.hero-visual { display: flex; justify-content: center; perspective: 1100px; }
.tv-wrap { position: relative; width: 100%; max-width: 440px; transform-style: preserve-3d; transition: transform .2s var(--ease); }
.tv-frame {
  width: 100%; background: #070b16; border: 1px solid #ffffff1a; border-radius: var(--radius);
  padding: 16px; box-shadow: 0 40px 80px rgba(0,0,0,.55), inset 0 1px 0 #ffffff14; transform: translateZ(0);
}
.tv-screen { aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; display: grid; place-items: center; position: relative; background: linear-gradient(135deg, #2563eb, #7c3aed); transition: background .6s var(--ease); }
.tv-screen::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 40%, #ffffff30 50%, transparent 60%); transform: translateX(-100%); animation: sheen 4.5s var(--ease) infinite; }
@keyframes sheen { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.tv-slide { font-size: 66px; filter: drop-shadow(0 8px 20px rgba(0,0,0,.4)); z-index: 1; }
.tv-slide::after { content: attr(data-label); display: block; font-size: 14px; color: #ffffffe0; text-align: center; margin-top: 6px; font-weight: 600; }
.tv-progress { height: 5px; background: #ffffff18; border-radius: 999px; margin-top: 13px; overflow: hidden; }
.tv-progress > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--violet)); transition: width .12s linear; }
.tv-status { margin-top: 11px; font-size: 13px; color: var(--muted-inv); display: flex; align-items: center; gap: 7px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot.on { background: #4ade80; box-shadow: 0 0 10px #4ade80cc; }
.float-card {
  position: absolute; background: #ffffffef; color: #0f172a; border-radius: 12px; padding: 10px 14px;
  font-size: 13px; box-shadow: 0 18px 40px rgba(0,0,0,.3); display: flex; align-items: center; gap: 6px;
  transform: translateZ(60px); animation: floaty 5s ease-in-out infinite;
}
.fc-1 { top: 8%; left: -8%; }
.fc-2 { bottom: 12%; right: -10%; animation-delay: 1.4s; }
@keyframes floaty { 50% { transform: translateZ(60px) translateY(-12px); } }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid #ffffff35; border-radius: 14px; z-index: 2; }
.scroll-hint span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; background: var(--accent); border-radius: 2px; transform: translateX(-50%); animation: scrolldot 1.8s infinite; }
@keyframes scrolldot { 0% { opacity: 0; top: 8px; } 40% { opacity: 1; } 80% { opacity: 0; top: 22px; } 100% { opacity: 0; } }

/* ── Sections ────────────────────────────────────────── */
.section { padding: 100px 0; position: relative; }
.section.alt { background: linear-gradient(180deg, #eef2fb, #f6f8fc); }
.section h2 { font-size: 36px; margin-bottom: 12px; }
.section-sub { color: var(--muted); max-width: 580px; margin-bottom: 44px; font-size: 17px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.split-col { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: 0 10px 30px rgba(15,23,42,.04); }
.split-col.problems { border-top: 3px solid #f87171; }
.split-col.solutions { border-top: 3px solid #34d399; }
.split-col h3 { font-size: 18px; margin-bottom: 16px; }
.split-item { padding: 12px 0; border-bottom: 1px dashed var(--border); }
.split-item:last-child { border-bottom: 0; }
.split-item b { font-size: 15px; }
.split-item p { color: var(--muted); font-size: 14px; margin-top: 3px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: transform .25s var(--ease), box-shadow .25s var(--ease); transform-style: preserve-3d; }
.card:hover { box-shadow: 0 22px 50px rgba(37,99,235,.14); }
.card-ico { font-size: 32px; margin-bottom: 14px; display: inline-block; transition: transform .3s var(--ease); }
.card:hover .card-ico { transform: scale(1.18) rotate(-6deg); }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }

/* ── Industries marquee ──────────────────────────────── */
.marquee { overflow: hidden; margin-top: 10px; -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: 14px; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.ind { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--border); border-radius: 999px; padding: 12px 20px; font-weight: 600; font-size: 15px; white-space: nowrap; }
.ind span:first-child { font-size: 20px; }

/* ── Stats band ──────────────────────────────────────── */
.band { position: relative; overflow: hidden; padding: 80px 0; background: linear-gradient(120deg, var(--bg), var(--bg2)); color: #fff; }
.band-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.band-item b { display: block; font-size: 46px; font-weight: 800; background: linear-gradient(100deg, var(--accent), var(--violet)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.band-item span { color: var(--muted-inv); font-size: 15px; }

/* ── Steps ───────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }
.step { position: relative; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; transition: transform .25s var(--ease); }
.step:hover { transform: translateY(-6px); }
.step-n { display: inline-grid; place-items: center; width: 44px; height: 44px; background: linear-gradient(120deg, var(--primary), var(--violet)); color: #fff; font-weight: 800; border-radius: 12px; margin-bottom: 16px; font-size: 18px; box-shadow: 0 10px 22px rgba(37,99,235,.35); }
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ── Pricing ─────────────────────────────────────────── */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; align-items: stretch; }
.price-card { position: relative; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s; }
.price-card:hover { transform: translateY(-6px); box-shadow: 0 22px 50px rgba(15,23,42,.1); }
.price-card.featured { border: 1px solid transparent; background:
  linear-gradient(var(--panel), var(--panel)) padding-box,
  linear-gradient(120deg, var(--primary), var(--violet)) border-box; box-shadow: 0 26px 60px rgba(37,99,235,.2); }
.badge-top { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: linear-gradient(120deg, var(--primary), var(--violet)); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 999px; }
.price-card h3 { font-size: 18px; margin-bottom: 10px; }
.price { font-size: 34px; font-weight: 800; margin-bottom: 18px; }
.price .per { font-size: 15px; font-weight: 500; color: var(--muted); }
.check { list-style: none; margin-bottom: 22px; flex: 1; }
.check li { padding: 8px 0 8px 28px; position: relative; color: var(--text); font-size: 15px; border-bottom: 1px solid #f1f5f9; }
.check li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: 800; }

.contact { text-align: center; }
.contact .section-sub { margin: 0 auto 30px; }
.contact-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

footer { background: var(--bg); color: var(--muted-inv); padding: 30px 0; }
.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.foot a { color: var(--accent); text-decoration: none; }

/* ── RTL (Arabic) ────────────────────────────────────── */
:root[dir="rtl"] .hero-chips, :root[dir="rtl"] .hero-cta { flex-direction: row-reverse; }
:root[dir="rtl"] .check li { padding: 8px 28px 8px 0; }
:root[dir="rtl"] .check li::before { left: auto; right: 0; }
:root[dir="rtl"] .marquee-track { animation-direction: reverse; }

/* ── Reduced motion ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .marquee-track, .tv-screen::after, .float-card, .orb { animation: none !important; }
}

/* ── Mobile ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { padding: 140px 0 90px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
  .split { grid-template-columns: 1fr; }
  .band-grid { grid-template-columns: 1fr; gap: 30px; }
  .float-card { display: none; }
  #burger { display: block; }
  .nav-links { display: none; position: absolute; top: 58px; left: 0; right: 0; flex-direction: column; background: #0a0f1ef7; backdrop-filter: blur(14px); padding: 20px 22px; gap: 16px; }
  .nav-links.open { display: flex; }
  .lang-switch { align-self: flex-start; }
}
