/* ============================================================
   MiraCore — Custom Styles (image-based version)
   ============================================================ */

:root {
  --bg: #F8FAFC;
  --bg-soft: #EEF2F7;
  --primary: #0B1F3A;
  --primary-soft: #1E2F4F;
  --accent: #2563EB;
  --accent-soft: #3B82F6;
  --teal: #14B8A6;
  --teal-soft: #2DD4BF;
  --text: #0B1F3A;
  --text-muted: #4A5878;
  --text-soft: #6B7A99;
  --border: #E2E8F0;
  --border-soft: #EDF1F7;
  --white: #FFFFFF;
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

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

.font-display {
  font-family: 'Manrope', sans-serif;
  letter-spacing: -0.02em;
  font-feature-settings: 'ss01';
}

[dir="rtl"] .font-display {
  font-family: 'Cairo', 'Manrope', sans-serif;
  letter-spacing: 0;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }

/* Container & layout */
.container-x {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
@media (min-width: 768px) { .container-x { padding-left: 40px; padding-right: 40px; } }

.section-y { padding-top: 80px; padding-bottom: 80px; }
@media (min-width: 1024px) { .section-y { padding-top: 120px; padding-bottom: 120px; } }

/* Typography */
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
}
[dir="rtl"] .eyebrow { letter-spacing: 0; font-family: 'Cairo', sans-serif; }

h1, .h1 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 5.5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--primary);
}
[dir="rtl"] h1, [dir="rtl"] .h1 {
  font-family: 'Cairo', sans-serif;
  letter-spacing: 0;
  line-height: 1.2;
}

h2, .h2 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--primary);
}
[dir="rtl"] h2, [dir="rtl"] .h2 {
  font-family: 'Cairo', sans-serif;
  letter-spacing: 0;
  line-height: 1.3;
}

h3, .h3 {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--primary);
}
[dir="rtl"] h3, [dir="rtl"] .h3 { font-family: 'Cairo', sans-serif; letter-spacing: 0; }

.subhead { font-size: 17px; line-height: 1.6; color: var(--text-muted); font-weight: 400; }
@media (min-width: 768px) { .subhead { font-size: 18px; } }

.body-text { font-size: 16px; line-height: 1.65; color: var(--text-muted); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
[dir="rtl"] .btn { font-family: 'Cairo', sans-serif; letter-spacing: 0; }

.btn-primary {
  background: var(--primary); color: var(--white);
  box-shadow: 0 1px 2px rgba(11, 31, 58, 0.25), 0 4px 16px rgba(11, 31, 58, 0.12);
}
.btn-primary:hover {
  background: #122847; transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(11, 31, 58, 0.32), 0 8px 28px rgba(11, 31, 58, 0.18);
}

.btn-secondary {
  background: var(--white); color: var(--primary);
  border-color: var(--border);
  box-shadow: 0 1px 2px rgba(11, 31, 58, 0.04);
}
.btn-secondary:hover {
  border-color: var(--primary); transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(11, 31, 58, 0.08);
}

.btn-light { background: var(--white); color: var(--primary); }
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18); }

.btn .arrow { transition: transform 0.25s ease; }
.btn:hover .arrow { transform: translateX(3px); }
[dir="rtl"] .btn .arrow { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(3px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 250, 252, 0.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); background: rgba(248, 250, 252, 0.94); }

.brand-logo { height: 38px; width: auto; display: block; }
.brand-logo--sm { height: 32px; }
.brand-logo--footer { height: 44px; }

.nav-link {
  position: relative;
  font-size: 14.5px; font-weight: 500;
  color: var(--text-muted);
  padding: 8px 4px;
  transition: color 0.2s ease;
}
.nav-link:hover { color: var(--primary); }
.nav-link::after {
  content: ''; position: absolute; bottom: 2px; left: 4px; right: 4px;
  height: 1.5px; background: var(--accent);
  transform: scaleX(0); transform-origin: center;
  transition: transform 0.25s ease;
}
.nav-link:hover::after { transform: scaleX(1); }

.lang-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--white);
  font-size: 13px; font-weight: 600; color: var(--text);
  cursor: pointer; transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}
.lang-toggle:hover { border-color: var(--primary); }
.lang-toggle .globe { width: 14px; height: 14px; color: var(--text-soft); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0;
  background: rgba(11, 31, 58, 0.98);
  z-index: 100;
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 8px;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px);
}
[dir="rtl"] .mobile-menu { transform: translateX(-100%); }
.mobile-menu.open { transform: translateX(0); }

.mobile-menu .nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-size: 22px; font-weight: 600;
  font-family: 'Manrope', sans-serif;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
[dir="rtl"] .mobile-menu .nav-link { font-family: 'Cairo', sans-serif; }

/* Hero */
.hero { position: relative; padding: 60px 0 80px; overflow: hidden; }
@media (min-width: 1024px) { .hero { padding: 80px 0 110px; } }

.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-bg::before {
  content: ''; position: absolute;
  top: -200px; right: -100px; width: 600px; height: 600px;
  background: radial-gradient(closest-side, rgba(20, 184, 166, 0.10), transparent);
  border-radius: 50%;
}
.hero-bg::after {
  content: ''; position: absolute;
  bottom: -150px; left: -100px; width: 500px; height: 500px;
  background: radial-gradient(closest-side, rgba(37, 99, 235, 0.08), transparent);
  border-radius: 50%;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(11, 31, 58, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 31, 58, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
  pointer-events: none; opacity: 0.6;
}

.hero-illustration {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  align-self: start;
  min-height: 280px;
}
.hero-illustration img {
  width: 100%;
  max-width: 540px;
  max-height: 380px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 48px rgba(11, 31, 58, 0.15));
}

@media (min-width: 1024px) {
  /* Desktop: image top aligns with H1 "Integration" word,
     bottom aligns with the Get a Consultation button. */
  .hero-illustration {
    padding-top: 60px;
    min-height: 0;
  }
  .hero-illustration img {
    max-width: 580px;
    max-height: 355px;
  }
}

.hero-feature { display: flex; gap: 14px; align-items: flex-start; }
.hero-feature-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.12), rgba(37, 99, 235, 0.12));
  display: flex; align-items: center; justify-content: center;
  color: var(--teal); flex-shrink: 0;
}
.hero-feature-title { font-weight: 600; font-size: 14px; color: var(--primary); margin-bottom: 4px; }
.hero-feature-text { font-size: 13px; color: var(--text-soft); line-height: 1.5; }

/* Logos strip */
.logos-strip {
  background: var(--white);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 36px 0;
}
.logos-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 28px 24px; align-items: center;
}
@media (min-width: 768px) { .logos-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) {
  .logos-grid { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
}
.logo-item {
  display: flex; align-items: center; justify-content: center;
  height: 36px; color: #94A3B8;
  transition: color 0.25s ease;
}
.logo-item:hover { color: var(--primary); }
.logo-item svg { height: 100%; width: auto; max-width: 160px; }

/* About */
.about-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 48px; align-items: center;
}
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1.15fr; gap: 80px; } }

.arch-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
@media (min-width: 768px) { .arch-card { padding: 0; } }
.arch-card img { width: 100%; height: auto; display: block; }

/* ============================================================
   Services — dark BG with animated SVG waves
   ============================================================ */
.services-section {
  background-color: #0B1F3A;
  background-image:
    radial-gradient(ellipse 70% 50% at 25% 35%, rgba(20, 60, 110, 0.5), transparent 60%),
    radial-gradient(ellipse 60% 60% at 80% 70%, rgba(15, 50, 100, 0.6), transparent 65%),
    linear-gradient(180deg, #0B1F3A 0%, #0A1A33 50%, #08172C 100%);
  position: relative;
  overflow: hidden;
  color: var(--white);
}
.services-section h2, .services-section .eyebrow { color: var(--white); }
.services-section .eyebrow { color: var(--teal-soft); }

.services-bg-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Slow horizontal drift of wave bundle — premium feel */
@keyframes wave-drift {
  0%   { transform: translateX(0); }
  50%  { transform: translateX(-60px); }
  100% { transform: translateX(0); }
}
.services-waves { animation: wave-drift 32s ease-in-out infinite; }

@keyframes streak-fade {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 1;    }
}
.services-streaks line { animation: streak-fade 4s ease-in-out infinite; }
.services-streaks line:nth-child(2) { animation-delay: 0.5s; }
.services-streaks line:nth-child(3) { animation-delay: 1.0s; }
.services-streaks line:nth-child(4) { animation-delay: 1.5s; }
.services-streaks line:nth-child(5) { animation-delay: 2.0s; }
.services-streaks line:nth-child(6) { animation-delay: 2.5s; }
.services-streaks line:nth-child(7) { animation-delay: 3.0s; }

@keyframes dot-pulse {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 1;   }
}
.services-dots-bright circle { animation: dot-pulse 5s ease-in-out infinite; }
.services-dots-bright circle:nth-child(2) { animation-delay: 1.2s; }
.services-dots-bright circle:nth-child(3) { animation-delay: 2.4s; }
.services-dots-bright circle:nth-child(4) { animation-delay: 3.6s; }

/* ============================================================
   Wave divider — light bg, animated SVG between Why and CTA
   ============================================================ */
.wave-divider {
  width: 100%;
  height: 110px;
  background: linear-gradient(180deg, var(--bg) 0%, #F4F6FA 100%);
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) { .wave-divider { height: 160px; } }

.wave-divider-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

@keyframes divider-drift {
  0%   { transform: translateX(0); }
  50%  { transform: translateX(-50px); }
  100% { transform: translateX(0); }
}
.divider-waves { animation: divider-drift 28s ease-in-out infinite; }

@keyframes divider-dot-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.2); }
}
.divider-dots circle {
  animation: divider-dot-pulse 6s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
.divider-dots circle:nth-child(2)  { animation-delay: 0.6s; }
.divider-dots circle:nth-child(3)  { animation-delay: 1.2s; }
.divider-dots circle:nth-child(4)  { animation-delay: 1.8s; }
.divider-dots circle:nth-child(5)  { animation-delay: 2.4s; }
.divider-dots circle:nth-child(6)  { animation-delay: 3.0s; }
.divider-dots circle:nth-child(7)  { animation-delay: 3.6s; }
.divider-dots circle:nth-child(8)  { animation-delay: 4.2s; }
.divider-dots circle:nth-child(9)  { animation-delay: 4.8s; }
.divider-dots circle:nth-child(10) { animation-delay: 5.4s; }
.divider-dots circle:nth-child(11) { animation-delay: 0.3s; }

/* ============================================================
   CTA — dark bg with static SVG waves
   ============================================================ */
.cta-section {
  background-color: #0B1F3A;
  background-image:
    radial-gradient(ellipse 80% 60% at 80% 50%, rgba(25, 70, 130, 0.55), transparent 65%),
    radial-gradient(ellipse 60% 70% at 25% 100%, rgba(15, 55, 110, 0.5), transparent 65%),
    linear-gradient(135deg, #0B1F3A 0%, #122847 60%, #0E2348 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
  border-radius: 24px;
}

.cta-bg-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.services-grid { display: grid; grid-template-columns: 1fr; gap: 16px; position: relative; }
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

.service-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  padding: 28px 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(12px);
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.08), transparent 60%);
  opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(20, 184, 166, 0.35);
  background: rgba(255, 255, 255, 0.06);
}
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 44px; height: 44px; border-radius: 11px;
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(20, 184, 166, 0.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal-soft);
  margin-bottom: 18px;
}
.service-card h3 { color: var(--white); font-size: 19px; margin-bottom: 10px; }
.service-card p { color: rgba(255, 255, 255, 0.68); font-size: 14.5px; line-height: 1.55; }

/* Process */
.process-grid { display: grid; grid-template-columns: 1fr; gap: 40px; position: relative; }
@media (min-width: 768px) { .process-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; } }

.process-line {
  display: none; position: absolute;
  top: 28px; left: 12.5%; right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--border) 12%, var(--border) 88%, transparent 100%);
  z-index: 0;
}
@media (min-width: 768px) { .process-line { display: block; } }

.process-step { position: relative; z-index: 1; }
.process-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--white); border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Manrope', sans-serif;
  font-size: 20px; font-weight: 700;
  color: var(--primary);
  margin-bottom: 22px;
  position: relative;
  transition: all 0.3s ease;
}
[dir="rtl"] .process-num { font-family: 'Cairo', sans-serif; }
.process-num::after {
  content: ''; position: absolute; inset: -4px;
  border-radius: 50%; border: 1px solid var(--accent);
  opacity: 0; transition: opacity 0.3s ease;
}
.process-step:hover .process-num { border-color: var(--accent); color: var(--accent); }
.process-step:hover .process-num::after { opacity: 0.3; }
.process-icon { margin-bottom: 14px; color: var(--accent); }

/* Solutions */
.solutions-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .solutions-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .solutions-grid { grid-template-columns: repeat(4, 1fr); } }

.solution-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 12px 12px 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.solution-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.12);
}

.solution-thumb {
  background: linear-gradient(135deg, #F8FAFC 0%, #EEF2F7 100%);
  border-radius: 12px;
  height: 168px;
  margin-bottom: 18px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.solution-thumb img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  /* Crisp rendering: prefer downscaling over browser interpolation tricks */
  image-rendering: -webkit-optimize-contrast;
}

.solution-card h3 { font-size: 17px; margin-bottom: 8px; padding: 0 10px; }
.solution-card p { font-size: 14px; color: var(--text-muted); padding: 0 10px; line-height: 1.5; }

.illustrative-tag {
  position: absolute; top: 10px; right: 10px;
  font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(11, 31, 58, 0.55);
  background: rgba(255, 255, 255, 0.85);
  padding: 4px 8px; border-radius: 5px;
  backdrop-filter: blur(4px);
  z-index: 1;
}
[dir="rtl"] .illustrative-tag { right: auto; left: 10px; letter-spacing: 0; }

/* Why us */
.why-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }

.why-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  display: flex; gap: 16px; align-items: flex-start;
  transition: all 0.25s ease;
}
.why-card:hover {
  border-color: var(--teal);
  background: linear-gradient(135deg, var(--white), rgba(20, 184, 166, 0.025));
}
.why-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.14), rgba(37, 99, 235, 0.10));
  display: flex; align-items: center; justify-content: center;
  color: var(--teal); flex-shrink: 0;
}
.why-card h3 { font-size: 15.5px; margin-bottom: 4px; }
.why-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }

/* (Wave divider styles defined above with SVG)
   (CTA gradient defined above with SVG) */
.cta-glow {
  position: absolute;
  top: -50%; right: -10%;
  width: 60%; height: 200%;
  background: radial-gradient(closest-side, rgba(20, 184, 166, 0.18), transparent);
  pointer-events: none;
}
[dir="rtl"] .cta-glow { right: auto; left: -10%; }

.cta-inner {
  position: relative; z-index: 1;
  padding: 56px 28px;
  display: grid; grid-template-columns: 1fr;
  gap: 24px; align-items: center;
}
@media (min-width: 768px) {
  .cta-inner {
    padding: 56px 56px;
    grid-template-columns: 1fr 1fr auto;
    gap: 40px;
  }
}
.cta-section h2 { color: var(--white); margin: 0; font-size: clamp(26px, 3vw, 36px); }
.cta-section .subhead { color: rgba(255, 255, 255, 0.78); margin: 0; }

.cta-inner--banner .cta-text { }
.cta-inner--banner .cta-description p { font-size: 15px; line-height: 1.55; }
.cta-inner--banner .cta-actions {
  display: flex; flex-direction: column; gap: 10px;
}
@media (min-width: 480px) {
  .cta-inner--banner .cta-actions { flex-direction: row; flex-wrap: wrap; }
}
@media (min-width: 768px) {
  .cta-inner--banner .cta-actions { flex-direction: row; align-items: center; flex-wrap: nowrap; }
}

.btn-cta-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.btn-cta-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-1px);
}

/* Form */
.contact-form {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 28px 24px;
  backdrop-filter: blur(16px);
}
@media (min-width: 768px) { .contact-form { padding: 32px; } }

.form-field { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}
[dir="rtl"] .form-label { letter-spacing: 0; font-family: 'Cairo', sans-serif; }

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--white);
  font-family: inherit;
  transition: all 0.2s ease;
}
.form-input::placeholder { color: rgba(255, 255, 255, 0.42); }
.form-input:focus {
  outline: none;
  border-color: var(--teal-soft);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}
textarea.form-input { resize: vertical; min-height: 110px; line-height: 1.55; }

.consent-row {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 18px; margin-bottom: 22px;
}
.consent-checkbox {
  width: 18px; height: 18px;
  border-radius: 5px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
  appearance: none; -webkit-appearance: none;
  position: relative;
  transition: all 0.2s ease;
}
.consent-checkbox:checked { background: var(--teal); border-color: var(--teal); }
.consent-checkbox:checked::after {
  content: ''; position: absolute;
  left: 5px; top: 1px;
  width: 5px; height: 10px;
  border: solid var(--primary);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.consent-text {
  font-size: 13px; color: rgba(255, 255, 255, 0.68); line-height: 1.5;
}
.consent-text a {
  color: var(--teal-soft);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.form-status {
  margin-top: 14px;
  font-size: 13.5px;
  padding: 10px 14px;
  border-radius: 8px;
  display: none;
}
.form-status.show { display: block; }
.form-status.success {
  background: rgba(20, 184, 166, 0.14);
  border: 1px solid rgba(20, 184, 166, 0.35);
  color: var(--teal-soft);
}
.form-status.error {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #FCA5A5;
}

/* Footer */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 36px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; }
}

.footer-heading {
  font-family: 'Manrope', sans-serif;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 18px;
}
[dir="rtl"] .footer-heading { font-family: 'Cairo', sans-serif; letter-spacing: 0; }

.footer-link {
  display: block;
  font-size: 14.5px;
  color: var(--text-muted);
  padding: 5px 0;
  transition: color 0.2s ease;
}
.footer-link:hover { color: var(--accent); }

.footer-meta {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 12px;
  font-size: 13px; color: var(--text-soft);
}
@media (min-width: 768px) {
  .footer-meta {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.float-slow { animation: float 6s ease-in-out infinite; }

/* Legal pages */
.legal-page { background: var(--bg); }

.legal-hero {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.legal-content {
  padding: 60px 0 100px;
  max-width: 760px;
  margin: 0 auto;
}
.legal-content h2 {
  font-size: clamp(22px, 2.5vw, 28px);
  margin-top: 48px;
  margin-bottom: 16px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 17px; margin-top: 28px; margin-bottom: 10px; }
.legal-content p { font-size: 16px; line-height: 1.7; color: var(--text-muted); margin-bottom: 14px; }
.legal-content ul { list-style: disc; padding-left: 24px; margin: 12px 0 18px; }
[dir="rtl"] .legal-content ul { padding-left: 0; padding-right: 24px; }
.legal-content li { font-size: 16px; line-height: 1.7; color: var(--text-muted); margin-bottom: 6px; }
.legal-content strong { color: var(--primary); font-weight: 600; }

.legal-meta {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  margin-top: 32px;
  font-size: 14.5px; line-height: 1.6;
  color: var(--text-muted);
}
.legal-meta strong { color: var(--primary); }

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Selection */
::selection { background: rgba(37, 99, 235, 0.18); color: var(--primary); }

/* Responsive helpers */
.desktop-nav { display: none; }
.desktop-cta { display: none; }

@media (min-width: 1024px) {
  .desktop-nav { display: flex !important; gap: 28px; align-items: center; }
  .desktop-cta { display: inline-flex !important; }
  .mobile-burger { display: none !important; }
  .hero-grid-layout { grid-template-columns: 1fr 1fr !important; gap: 64px !important; }
  .hero-features-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .logos-section-grid { grid-template-columns: auto 1fr !important; gap: 40px; }
  .logos-section-grid .logos-title-wrap { text-align: left; max-width: 180px; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero-features-grid { grid-template-columns: repeat(3, 1fr) !important; }
}

[dir="rtl"] .logos-section-grid .logos-title-wrap { text-align: right; }
