/* ==============================================
   FERAD INNOVATION — style.css
   Dark-first, glass-morphism, animated
============================================== */

/* ── Variables ── */
:root {
  --bg:          #080E1C;
  --surface:     #0F1829;
  --card:        #161F33;
  --card-hover:  #1C2740;
  --primary:     #6366F1;
  --primary-d:   #4F46E5;
  --secondary:   #0EA5E9;
  --accent:      #F59E0B;
  --success:     #10B981;
  --danger:      #EF4444;
  --text:        #F1F5F9;
  --muted:       #94A3B8;
  --border:      rgba(255,255,255,0.07);
  --border-lg:   rgba(255,255,255,0.13);
  --gradient:    linear-gradient(135deg, #6366F1 0%, #0EA5E9 100%);
  --gradient-r:  linear-gradient(135deg, #0EA5E9 0%, #6366F1 100%);
  --glow:        0 0 48px rgba(99,102,241,0.28);
  --shadow:      0 8px 32px rgba(0,0,0,0.45);
  --r:           12px;
  --r-lg:        20px;
  --r-xl:        28px;
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --t:           0.3s var(--ease);
  --nav-h:       72px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }

/* ── Typography ── */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-tag {
  display: inline-block;
  background: rgba(99,102,241,0.12);
  color: var(--primary);
  border: 1px solid rgba(99,102,241,0.28);
  padding: 5px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.section-header { text-align: center; max-width: 700px; margin: 0 auto 64px; }
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}
.section-subtitle { font-size: 17px; color: var(--muted); line-height: 1.75; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--r);
  font-weight: 700; font-size: 15px;
  cursor: pointer; transition: var(--t);
  border: 2px solid transparent; white-space: nowrap;
}
.btn-primary {
  background: var(--gradient); color: white;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(99,102,241,0.45); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-lg); }
.btn-ghost:hover { background: rgba(255,255,255,0.06); border-color: var(--primary); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-white { background: white; color: var(--bg); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,255,255,0.2); }
.btn-ghost-white { background: rgba(255,255,255,0.1); color: white; border-color: rgba(255,255,255,0.3); backdrop-filter: blur(8px); }
.btn-ghost-white:hover { background: rgba(255,255,255,0.18); border-color: white; }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }

/* ── Navbar ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h); transition: var(--t);
}
.navbar.scrolled {
  background: rgba(8, 14, 28, 0.93);
  backdrop-filter: blur(24px) saturate(1.8);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 32px rgba(0,0,0,0.4);
}
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; gap: 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px; margin-inline-end: auto;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px; font-weight: 800; letter-spacing: -0.02em;
}
.nav-links { display: flex; gap: 2px; align-items: center; }
.nav-links a {
  padding: 7px 14px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--muted); transition: var(--t);
}
.nav-links a:hover, .nav-links a.active-nav { color: var(--text); background: rgba(255,255,255,0.06); }
.nav-links a.active-nav { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px; transition: var(--t);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Hero ── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 24px 80px; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.gradient-orb {
  position: absolute; border-radius: 50%;
  filter: blur(100px); opacity: 0.45;
  animation: orbFloat 10s ease-in-out infinite;
}
.orb-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(99,102,241,0.7) 0%, transparent 70%);
  top: -250px; right: -150px; animation-delay: 0s;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(14,165,233,0.55) 0%, transparent 70%);
  bottom: -150px; left: -150px; animation-delay: -4s;
}
.orb-3 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(245,158,11,0.35) 0%, transparent 70%);
  top: 45%; left: 35%; animation-delay: -7s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -40px) scale(1.08); }
  66% { transform: translate(-25px, 25px) scale(0.94); }
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 80% at center, black 40%, transparent 100%);
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 920px; margin: 0 auto; text-align: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.28);
  color: var(--muted); padding: 8px 20px; border-radius: 100px;
  font-size: 13px; font-weight: 600; margin-bottom: 28px;
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}
.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(44px, 8vw, 88px);
  font-weight: 800; line-height: 1.04; letter-spacing: -0.035em;
  margin-bottom: 24px;
}
.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px); color: var(--muted);
  max-width: 620px; margin: 0 auto 40px; line-height: 1.75;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 72px; }
.hero-stats {
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap;
  background: rgba(255,255,255,0.035); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 24px 16px;
  backdrop-filter: blur(12px);
}
.stat { text-align: center; padding: 0 28px; }
.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 34px; font-weight: 800;
  letter-spacing: -0.025em; line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { font-size: 12px; color: var(--muted); margin-top: 6px; text-transform: uppercase; letter-spacing: 0.06em; }
.stat-divider { width: 1px; height: 44px; background: var(--border-lg); }
.hero-scroll-indicator {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--muted); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  animation: scrollAnim 1.8s ease-in-out infinite;
}
@keyframes scrollAnim {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  60% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ── Trusted By ── */
.trusted-by {
  padding: 48px 0; overflow: hidden;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.trusted-label {
  text-align: center; color: var(--muted); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 24px;
}
.logo-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}
.logo-track {
  display: flex; gap: 52px; width: max-content;
  animation: marquee 28s linear infinite;
}
.logo-track:hover { animation-play-state: paused; }
.client-logo {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: 17px; color: var(--muted); opacity: 0.4;
  white-space: nowrap; transition: opacity 0.3s;
  cursor: default;
}
.client-logo:hover { opacity: 0.9; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── Services ── */
.services { background: var(--surface); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  position: relative; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 32px;
  transition: var(--t); cursor: default;
}
.service-card:hover {
  border-color: rgba(99,102,241,0.5); background: var(--card-hover);
  transform: translateY(-6px); box-shadow: 0 24px 64px rgba(0,0,0,0.4), var(--glow);
}
.service-card.featured {
  border-color: rgba(99,102,241,0.45);
  background: linear-gradient(145deg, rgba(99,102,241,0.1), rgba(14,165,233,0.05), var(--card));
}
.service-badge {
  position: absolute; top: -13px; left: 24px;
  background: var(--gradient); color: white;
  padding: 4px 14px; border-radius: 100px;
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em;
}
.service-icon-wrap {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(from var(--icon-color) r g b / 0.13);
  background: color-mix(in srgb, var(--icon-color) 13%, transparent);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 18px;
  border: 1px solid color-mix(in srgb, var(--icon-color) 25%, transparent);
}
.service-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 19px; font-weight: 700; margin-bottom: 12px; }
.service-card p { color: var(--muted); font-size: 14px; line-height: 1.72; margin-bottom: 18px; }
.service-features { margin-bottom: 22px; }
.service-features li {
  font-size: 13px; color: var(--muted); padding: 5px 0 5px 18px;
  position: relative; border-bottom: 1px solid var(--border);
}
.service-features li:last-child { border-bottom: none; }
.service-features li::before { content: '→'; position: absolute; left: 0; color: var(--primary); font-size: 12px; }
.service-cta { font-size: 13px; font-weight: 700; color: var(--primary); transition: var(--t); }
.service-cta:hover { letter-spacing: 0.03em; }

/* ── Why Us ── */
.why-us { background: var(--bg); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.why-content .section-title { text-align: start; }
.why-content .section-subtitle { text-align: start; }
.contact-title { text-align: start; }

.cases-grid:has(.case-card:only-child) { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }

/* ── Language switcher ── */
.lang-switch { display: flex; gap: 2px; background: rgba(255,255,255,0.06); border-radius: 8px; padding: 3px; }
.lang-btn {
  background: none; border: none; cursor: pointer; color: var(--muted);
  font-size: 12px; font-weight: 700; letter-spacing: 0.03em;
  padding: 6px 10px; border-radius: 6px; transition: var(--t);
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active { color: #fff; background: var(--primary); }
.nav-login { margin-inline-end: 8px; }
.honeypot { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ── RTL (Arabic) ── */
body.font-ar, body.font-ar .nav-logo, body.font-ar .hero-title, body.font-ar .section-title,
body.font-ar .plan-name, body.font-ar .metric-value {
  font-family: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
}
html[dir="rtl"] .process-arrow { display: inline-block; transform: scaleX(-1); }
html[dir="rtl"] .hero-actions svg,
html[dir="rtl"] .service-cta-icon,
html[dir="rtl"] #submitBtn svg { transform: scaleX(-1); }
.differentiators { display: flex; flex-direction: column; gap: 22px; margin-top: 32px; }
.diff-item { display: flex; gap: 16px; align-items: flex-start; }
.diff-icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.2);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.diff-item h4 { font-size: 15px; font-weight: 700; margin-bottom: 5px; }
.diff-item p { font-size: 13px; color: var(--muted); line-height: 1.65; }
.why-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.metric-card {
  position: relative; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 28px 20px; text-align: center;
  transition: var(--t); overflow: hidden;
}
.metric-card::before {
  content: ''; position: absolute; inset: 0;
  background: var(--gradient); opacity: 0; transition: var(--t);
}
.metric-card:hover { border-color: var(--primary); transform: translateY(-6px); box-shadow: var(--glow); }
.metric-card:hover::before { opacity: 0.06; }
.metric-card.offset-card { margin-top: 24px; }
.metric-badge {
  display: inline-block; background: rgba(99,102,241,0.15); color: var(--primary);
  padding: 3px 10px; border-radius: 6px; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px;
}
.metric-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 38px; font-weight: 800; letter-spacing: -0.025em; margin-bottom: 6px;
}
.metric-label { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.metric-detail { font-size: 11px; color: var(--muted); }

/* ── Case Studies ── */
.case-studies { background: var(--surface); }
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 32px;
  transition: var(--t); display: flex; flex-direction: column;
}
.case-card:hover { border-color: rgba(99,102,241,0.4); transform: translateY(-6px); box-shadow: var(--shadow); }
.case-card.featured-case {
  border-color: var(--primary);
  background: linear-gradient(145deg, rgba(99,102,241,0.08), rgba(14,165,233,0.04), var(--card));
}
.case-tag {
  display: inline-block; background: rgba(99,102,241,0.12); color: var(--primary);
  padding: 4px 12px; border-radius: 6px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 14px;
}
.case-tag.featured-tag { background: var(--gradient); color: white; }
.case-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 21px; font-weight: 700; margin-bottom: 10px; }
.case-card p { font-size: 13px; color: var(--muted); line-height: 1.72; margin-bottom: 22px; flex: 1; }
.case-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px; }
.case-metric {
  text-align: center; background: rgba(255,255,255,0.03);
  border: 1px solid var(--border); border-radius: 10px; padding: 12px 6px;
}
.cm-value {
  display: block; font-family: 'Space Grotesk', sans-serif;
  font-size: 22px; font-weight: 800; letter-spacing: -0.02em;
  background: var(--gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.cm-label { display: block; font-size: 10px; color: var(--muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.05em; }
.case-link { font-size: 13px; font-weight: 700; color: var(--primary); transition: var(--t); }
.case-link:hover { color: var(--secondary); }

/* ── Process ── */
.process { background: var(--bg); }
.process-steps {
  display: flex; align-items: flex-start; gap: 0;
  margin-top: 16px; position: relative;
}
.process-arrow {
  flex-shrink: 0; font-size: 28px; color: var(--primary);
  margin-top: 38px; opacity: 0.4; padding: 0 8px;
}
.process-step {
  flex: 1; text-align: center; padding: 0 16px;
  display: flex; flex-direction: column; align-items: center;
}
.step-num {
  font-family: 'Space Grotesk', sans-serif; font-size: 52px; font-weight: 800; line-height: 1;
  background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 8px;
}
.step-icon {
  width: 64px; height: 64px; border-radius: 16px;
  background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 16px;
}
.process-step h3 { font-family: 'Space Grotesk', sans-serif; font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.process-step p { font-size: 13px; color: var(--muted); line-height: 1.7; margin-bottom: 14px; }
.step-tag {
  display: inline-block; background: rgba(99,102,241,0.12); color: var(--primary);
  padding: 4px 14px; border-radius: 100px; font-size: 12px; font-weight: 700;
}

/* ── Testimonials ── */
.testimonials { background: var(--surface); overflow: hidden; }
.testimonials-wrapper { position: relative; }
.testimonials-track {
  display: flex; transition: transform 0.55s var(--ease);
}
.testimonial-card {
  min-width: 100%; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 52px 48px; text-align: center;
}
.t-stars { color: var(--accent); font-size: 22px; letter-spacing: 3px; margin-bottom: 24px; }
.testimonial-card blockquote {
  font-size: clamp(16px, 2vw, 21px); line-height: 1.72; color: var(--text);
  font-style: italic; max-width: 720px; margin: 0 auto 32px;
  quotes: "\201C" "\201D";
}
.testimonial-card blockquote::before { content: open-quote; }
.testimonial-card blockquote::after { content: close-quote; }
.t-author { display: flex; align-items: center; justify-content: center; gap: 14px; }
.t-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--gradient); display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; color: white; flex-shrink: 0;
}
.t-author strong { display: block; font-weight: 700; }
.t-author span { font-size: 13px; color: var(--muted); }
.slider-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 32px; }
.slider-btn {
  width: 44px; height: 44px; border-radius: 50%; background: var(--card);
  border: 1px solid var(--border); color: var(--text); cursor: pointer; transition: var(--t);
  display: flex; align-items: center; justify-content: center;
}
.slider-btn:hover { background: var(--primary); border-color: var(--primary); }
.slider-dots { display: flex; gap: 8px; }
.dot {
  width: 8px; height: 8px; border-radius: 4px;
  background: var(--border-lg); border: none; cursor: pointer; transition: var(--t);
}
.dot.active { width: 28px; background: var(--primary); }

/* ── Pricing ── */
.pricing { background: var(--bg); }
.pricing-toggle { display: flex; align-items: center; gap: 12px; justify-content: center; margin-top: 24px; }
.toggle-label { font-size: 14px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.save-badge {
  background: var(--success); color: white;
  padding: 2px 9px; border-radius: 100px; font-size: 11px; font-weight: 700;
}
.toggle-switch {
  width: 50px; height: 28px; border-radius: 14px;
  background: var(--border-lg); border: none; cursor: pointer; position: relative; transition: var(--t);
}
.toggle-switch.active { background: var(--primary); }
.toggle-thumb {
  position: absolute; width: 22px; height: 22px; border-radius: 50%;
  background: white; top: 3px; left: 3px; transition: var(--t);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.toggle-switch.active .toggle-thumb { transform: translateX(22px); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; margin-top: 12px; }
.pricing-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 36px 30px;
  position: relative; transition: var(--t);
}
.pricing-card:hover { transform: translateY(-5px); border-color: rgba(99,102,241,0.4); }
.pricing-card.featured-plan {
  border-color: var(--primary); transform: scale(1.03);
  background: linear-gradient(145deg, rgba(99,102,241,0.1), rgba(14,165,233,0.05), var(--card));
}
.pricing-card.featured-plan:hover { transform: scale(1.03) translateY(-5px); }
.featured-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gradient); color: white;
  padding: 5px 18px; border-radius: 100px;
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; white-space: nowrap;
}
.plan-name { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 12px; }
.plan-price { display: flex; align-items: baseline; gap: 3px; margin-bottom: 14px; }
.price-currency { font-size: 22px; font-weight: 700; color: var(--muted); }
.price-num {
  font-family: 'Space Grotesk', sans-serif; font-size: 50px; font-weight: 800;
  letter-spacing: -0.03em; color: var(--text); transition: opacity 0.25s, transform 0.25s;
}
.price-per { font-size: 15px; color: var(--muted); }
.plan-desc { font-size: 13px; color: var(--muted); line-height: 1.65; margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.plan-features { margin-bottom: 28px; }
.plan-features li { font-size: 13px; padding: 9px 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.plan-features li:last-child { border-bottom: none; }
.plan-features li.has { color: var(--text); }
.plan-features li.has::before { content: '✓'; color: var(--success); font-weight: 800; flex-shrink: 0; }
.plan-features li.not { color: var(--muted); opacity: 0.5; }
.plan-features li.not::before { content: '✕'; color: var(--muted); font-weight: 700; flex-shrink: 0; }

/* ── CTA Banner ── */
.cta-banner { padding: 0 0 80px; background: var(--surface); }
.cta-card {
  background: var(--gradient); border-radius: var(--r-xl);
  padding: 60px 48px; display: flex; align-items: center;
  justify-content: space-between; gap: 32px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-card::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-content { position: relative; }
.cta-content h2 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(26px, 3.5vw, 38px); font-weight: 800; color: white; margin-bottom: 8px; }
.cta-content p { font-size: 17px; color: rgba(255,255,255,0.78); }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; position: relative; }

/* ── Contact ── */
.contact { background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 80px; align-items: start; }
.contact-info p { color: var(--muted); line-height: 1.75; margin-bottom: 32px; font-size: 15px; }
.contact-details { display: flex; flex-direction: column; gap: 18px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon {
  width: 44px; height: 44px; background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.2);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.contact-item strong { display: block; font-size: 13px; font-weight: 700; margin-bottom: 3px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.contact-item span { font-size: 15px; }
.contact-form {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: 11px; font-weight: 700;
  color: var(--muted); margin-bottom: 8px;
  text-transform: uppercase; letter-spacing: 0.09em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; background: rgba(255,255,255,0.04);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 16px; color: var(--text);
  font-size: 15px; font-family: 'Inter', sans-serif;
  transition: var(--t); outline: none; appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(148,163,184,0.5); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary); background: rgba(99,102,241,0.06);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.14);
}
.form-group select option { background: var(--surface); }
.form-group textarea { resize: vertical; min-height: 120px; }
.checkbox-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.check-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted); cursor: pointer;
  padding: 9px 12px; border: 1px solid var(--border);
  border-radius: 8px; transition: var(--t); user-select: none;
}
.check-label:hover { border-color: var(--primary); color: var(--text); }
.check-label input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--primary); cursor: pointer; }
.form-note { text-align: center; font-size: 12px; color: var(--muted); margin-top: 12px; }

/* ── Footer ── */
.footer { background: var(--surface); border-top: 1px solid var(--border); padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.6fr; gap: 48px; padding-bottom: 48px; }
.footer-brand p { font-size: 14px; color: var(--muted); line-height: 1.75; margin: 18px 0 24px; max-width: 280px; }
.social-links { display: flex; gap: 10px; }
.social-link {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: var(--muted); transition: var(--t);
}
.social-link:hover { background: var(--primary); border-color: var(--primary); color: white; }
.footer-col h4 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--muted); transition: var(--t); }
.footer-col a:hover { color: var(--primary); }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input {
  flex: 1; background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 14px; color: var(--text); font-size: 14px; outline: none; transition: var(--t);
}
.newsletter-form input:focus { border-color: var(--primary); }
.newsletter-form button {
  background: var(--gradient); border: none; border-radius: 8px;
  width: 44px; color: white; font-size: 20px; cursor: pointer; transition: var(--t);
}
.newsletter-form button:hover { opacity: 0.85; transform: scale(1.08); }
.footer-note { font-size: 11px; color: var(--muted); margin-top: 10px; }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 24px 0;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-bottom p { font-size: 13px; color: var(--muted); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--muted); transition: var(--t); }
.footer-links a:hover { color: var(--text); }

/* ── Back to top ── */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 900;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--gradient); color: white; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(20px); transition: var(--t);
  box-shadow: 0 4px 20px rgba(99,102,241,0.45);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(99,102,241,0.55); }

/* ── Scroll reveal ── */
[data-reveal] {
  opacity: 0; transform: translateY(36px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
[data-reveal].revealed { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .services-grid, .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 48px; }
  .why-content .section-title, .why-content .section-subtitle { text-align: center; }
  .why-visual { max-width: 520px; margin: 0 auto; }
  .process-steps { flex-wrap: wrap; justify-content: center; gap: 32px; }
  .process-arrow { display: none; }
  .process-step { max-width: 220px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  section { padding: 72px 0; }
  .nav-links {
    display: none; position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(8,14,28,0.97); backdrop-filter: blur(24px);
    padding: 20px 16px 32px; flex-direction: column; gap: 4px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; font-size: 15px; }
  .hamburger { display: flex; }
  .nav-actions .btn-primary { display: none; }
  .hero-title { font-size: clamp(36px, 10vw, 56px); }
  .hero-stats { flex-direction: column; gap: 12px; padding: 20px; }
  .stat-divider { width: 60%; height: 1px; }
  .services-grid, .cases-grid, .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.featured-plan { transform: none; }
  .pricing-card.featured-plan:hover { transform: translateY(-5px); }
  .why-visual { grid-template-columns: 1fr 1fr; }
  .metric-card.offset-card { margin-top: 0; }
  .cta-card { flex-direction: column; text-align: center; padding: 40px 24px; }
  .cta-actions { justify-content: center; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .form-row, .checkbox-group { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-brand p { max-width: 100%; }
  .testimonial-card { padding: 36px 24px; }
  .contact-form { padding: 28px 20px; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 36px; }
  .section-title { font-size: 24px; }
  .btn-lg { padding: 13px 22px; font-size: 15px; }
  .hero-badge { font-size: 12px; padding: 7px 14px; }
  .cta-content h2 { font-size: 24px; }
  .why-visual { grid-template-columns: 1fr; }
  .metric-card.offset-card { margin-top: 0; }
}

/* ══════════════════════════════════════════════
   Platform-structure update (2026-11-10)
   Sections mirror the 4 departments of the FERAD platform.
══════════════════════════════════════════════ */
.process { background: var(--surface); }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.contact-item a { font-size: 15px; color: var(--text); transition: var(--t); }
.contact-item a:hover { color: var(--primary); }

/* ── Platform: 4 departments ── */
.platform { background: var(--bg); }
.dept-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.dept-card {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 30px 24px 26px;
  transition: var(--t);
}
.dept-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--dept-color, var(--primary));
}
.dept-card:hover { border-color: color-mix(in srgb, var(--dept-color, var(--primary)) 55%, transparent); transform: translateY(-5px); box-shadow: var(--shadow); }
.dept-icon {
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center; font-size: 24px;
  background: color-mix(in srgb, var(--dept-color, var(--primary)) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--dept-color, var(--primary)) 30%, transparent);
}
.dept-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.dept-card p { font-size: 13px; color: var(--muted); line-height: 1.65; margin-bottom: 18px; }
.dept-modules { display: flex; flex-wrap: wrap; gap: 6px; }
.dept-modules li {
  font-size: 11.5px; font-weight: 600; color: var(--text);
  background: rgba(255,255,255,0.05); border: 1px solid var(--border-lg);
  border-radius: 100px; padding: 4px 10px; white-space: nowrap;
}
.platform-principles {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-top: 28px; padding: 24px 26px;
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: rgba(255,255,255,0.025);
}
.principle { display: flex; gap: 12px; align-items: flex-start; }
.principle-icon { font-size: 20px; line-height: 1.35; flex-shrink: 0; }
.principle h4 { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.principle p { font-size: 12.5px; color: var(--muted); line-height: 1.6; }

/* ── Sectors ── */
.sectors-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 44px; }
.sector-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r); padding: 22px 18px; transition: var(--t);
}
.sector-card:hover { border-color: rgba(99,102,241,0.4); transform: translateY(-4px); }
.sector-icon { font-size: 26px; margin-bottom: 10px; }
.sector-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.sector-card p { font-size: 12.5px; color: var(--muted); line-height: 1.6; }

/* ── Pricing without public figures ── */
.price-quote {
  font-family: 'Space Grotesk', sans-serif; font-size: 34px; font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.1;
  background: var(--gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.price-note { font-size: 12px; color: var(--muted); margin: -8px 0 16px; }

/* ── Footer diagnostic column ── */
.footer-diag p { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 16px; }

/* ── RTL fixes for list markers and badges ── */
html[dir="rtl"] .service-features li { padding: 5px 18px 5px 0; }
html[dir="rtl"] .service-features li::before { left: auto; right: 0; content: '←'; }
html[dir="rtl"] .service-badge { left: auto; right: 24px; }
body.font-ar .dept-card h3, body.font-ar .sector-card h3, body.font-ar .price-quote,
body.font-ar .service-card h3, body.font-ar .process-step h3 { font-family: 'Tajawal', 'Segoe UI', Tahoma, sans-serif; }

@media (max-width: 1024px) {
  .dept-grid, .platform-principles { grid-template-columns: repeat(2, 1fr); }
  .sectors-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .dept-grid, .platform-principles { grid-template-columns: 1fr; }
  .sectors-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .sectors-grid { grid-template-columns: 1fr; }
}
/* ── Visual fixes found while checking the update ── */
.nav-logo { white-space: nowrap; flex-shrink: 0; }
@media (min-width: 769px) {
  .hero-stats { flex-wrap: nowrap; }
  .hero-stats .stat { flex: 1 1 0; padding: 0 20px; }
}
/* Equal-height plan cards with the button pinned to the bottom */
.pricing-grid { align-items: stretch; }
.pricing-card { display: flex; flex-direction: column; }
.pricing-card .plan-features { flex: 1; }
/* Checkboxes: the generic .form-group label/input rules were hiding the tick */
.form-group .check-label {
  display: flex; text-transform: none; letter-spacing: normal;
  font-size: 13px; font-weight: 500; margin-bottom: 0;
}
.form-group .check-label input[type="checkbox"] {
  -webkit-appearance: checkbox; appearance: auto;
  width: 16px; height: 16px; padding: 0; margin: 0; flex-shrink: 0;
  background: none; border: none; box-shadow: none;
}
.check-label:has(input:checked) { border-color: var(--primary); color: var(--text); background: rgba(99,102,241,0.08); }
/* Phone nav: keep the hamburger on screen; Team Login moves into the menu */
.nav-login-mobile { display: none; }
@media (max-width: 768px) {
  .nav-actions .nav-login { display: none; }
  .nav-login-mobile { display: block; }
}
@media (max-width: 420px) {
  .nav-logo { font-size: 15px; gap: 8px; }
  .nav-actions { gap: 8px; }
  .lang-btn { padding: 6px 7px; }
}
/* RTL: the channel marquee must scroll the other way, and the process arrows
   follow the same breakpoint as in LTR */
html[dir="rtl"] .logo-track { animation-name: marquee-rtl; }
@keyframes marquee-rtl {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}
@media (max-width: 1024px) {
  html[dir="rtl"] .process-arrow { display: none; }
}
/* ══════════════════════════════════════════════
   Legal pages: privacy.html · terms.html · cookies.html (2026-11-10)
══════════════════════════════════════════════ */
.legal { padding: calc(var(--nav-h) + 56px) 0 80px; background: var(--bg); }
.legal-container { max-width: 820px; }
.legal-head { margin-bottom: 36px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.legal h1 {
  font-family: 'Space Grotesk', sans-serif; font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin: 14px 0 10px;
}
.legal-meta { font-size: 13px; color: var(--muted); }
.legal-intro { font-size: 16px; color: var(--text); line-height: 1.75; margin-top: 16px; }
.legal section { padding: 0; margin-bottom: 32px; }   /* override the global section padding */
.legal h2 { font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.legal h3 { font-size: 15px; font-weight: 700; margin: 18px 0 6px; }
.legal p, .legal li, .legal td { font-size: 15px; color: #CBD5E1; line-height: 1.8; }
.legal p + p { margin-top: 10px; }
.legal ul { list-style: disc; padding-inline-start: 22px; margin: 8px 0; }
.legal ul ul { list-style: circle; margin: 6px 0 2px; }
.legal li { margin: 4px 0; }
.legal a { color: #A5B4FC; text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: #C7D2FE; }
.legal strong { color: var(--text); }
.legal code { font-size: 13px; background: rgba(255,255,255,0.06); border: 1px solid var(--border-lg); border-radius: 4px; padding: 1px 6px; color: var(--text); }
.legal-table-wrap { overflow-x: auto; margin: 12px 0; }
.legal-table { width: 100%; border-collapse: collapse; }
.legal-table th, .legal-table td { border: 1px solid var(--border-lg); padding: 10px 12px; text-align: start; vertical-align: top; }
.legal-table td { font-size: 14px; line-height: 1.65; }
.legal-table th { background: rgba(255,255,255,0.04); color: var(--text); font-size: 13px; font-weight: 700; }
/* Facts still to be supplied: impossible to miss before going live */
.legal .todo {
  background: rgba(245,158,11,0.16); color: #FCD34D; font-weight: 600;
  border: 1px dashed rgba(245,158,11,0.65); border-radius: 4px; padding: 0 5px;
}
body.font-ar .legal h1, body.font-ar .legal h2 { font-family: 'Tajawal', 'Segoe UI', Tahoma, sans-serif; }
.legal-footer { padding-top: 0; }
.footer-links a[aria-current="page"] { color: var(--text); }
.form-note a { color: #A5B4FC; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 768px) {
  .legal { padding-top: calc(var(--nav-h) + 32px); }
  .legal-nav .btn-sm { padding: 8px 12px; font-size: 12px; }
}
@media (max-width: 420px) {
  .legal-nav .nav-logo { font-size: 0; gap: 0; }   /* keep the mark, drop the wordmark */
}.legal a[href^="tel:"], .legal a[href^="mailto:"] { white-space: nowrap; }
/* Static hosting (no platform behind the site): no Team Login */
body.static-host .nav-login, body.static-host .nav-login-mobile, body.static-host a[href="login"] { display: none !important; }
