:root {
  --bg: #070a12;
  --panel: #0d1220;
  --text: #f0f4ff;
  --muted: rgba(240, 244, 255, 0.68);
  --line: rgba(240, 244, 255, 0.08);

  --ink: #0d1220;
  --paper: #ffffff;

  --accent: #d4883f;
  --accent-bright: #e69d5c;
  --accent2: #4d9ef7;
  --accent2-dim: #3a7fc4;

  --shadow: 0 24px 64px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.2);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.18);
  --radius: 20px;

  --max: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Light theme */
[data-theme="light"] {
  --bg: #f7f8fb;
  --panel: #ffffff;
  --text: #0e1220;
  --muted: #5c627a;
  --line: rgba(14, 18, 32, 0.12);
  --ink: #ffffff;
  --paper: #0e1220;

  --shadow: 0 24px 64px rgba(14, 18, 32, 0.12), 0 8px 24px rgba(14, 18, 32, 0.08);
  --shadow-sm: 0 8px 24px rgba(14, 18, 32, 0.08);
}

/* Arabic font */
html[lang="ar"] {
  --font: "Cairo", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: radial-gradient(1400px 700px at 25% 15%, rgba(77, 158, 247, 0.12), transparent 65%),
    radial-gradient(1000px 600px at 75% 25%, rgba(212, 136, 63, 0.1), transparent 60%),
    linear-gradient(180deg, #050709 0%, #070a12 35%, #0a0e18 65%, #070a12 100%);
  background-attachment: fixed;
  transition: background 0.3s ease, color 0.3s ease;
}

[data-theme="light"] body {
  background: radial-gradient(1400px 700px at 25% 15%, rgba(77, 158, 247, 0.08), transparent 65%),
    radial-gradient(1000px 600px at 75% 25%, rgba(212, 136, 63, 0.06), transparent 60%),
    linear-gradient(180deg, #fafbfc 0%, #f7f8fb 35%, #f2f4f8 65%, #f7f8fb 100%);
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all .2s ease;
}

.container {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

/* Enhanced progress bar animation */
.top-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent-bright));
  background-size: 200% 100%;
  animation: progressShimmer 3s ease infinite;
  z-index: 9999;
  box-shadow: 0 0 12px rgba(212, 136, 63, 0.4);
  transition: width 0.1s ease;
}

@keyframes progressShimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Enhanced nav with slide-down animation */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px) saturate(180%);
  background: rgba(7, 10, 18, 0.75);
  border-bottom: 1px solid rgba(240, 244, 255, 0.06);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease;
  animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

[data-theme="light"] .nav {
  background: rgba(247, 248, 251, 0.85);
  border-bottom: 1px solid rgba(14, 18, 32, 0.12);
  box-shadow: 0 4px 16px rgba(14, 18, 32, 0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

/* Enhanced brand animation */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  animation: fadeInLeft 0.8s ease-out;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-bright) 50%, var(--accent2) 100%);
  color: #0d1220;
  font-weight: 900;
  font-size: 20px;
  box-shadow: 0 8px 24px rgba(212, 136, 63, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
  overflow: hidden;
}

/* Added shine effect on brand mark */
.brand__mark::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
  transform: rotate(45deg);
  animation: brandShine 3s ease-in-out infinite;
}

@keyframes brandShine {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) rotate(45deg);
  }
}

.brand__mark:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 32px rgba(212, 136, 63, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.brand__mark--small {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  font-size: 16px;
}

.brand__name {
  font-weight: 800;
  letter-spacing: .08em;
  font-size: 17px;
}

/* Enhanced nav links with staggered animation */
.nav__links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav__links a {
  color: var(--muted);
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 15px;
  position: relative;
  animation: fadeInDown 0.6s ease-out backwards;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav__links a:nth-child(1) {
  animation-delay: 0.1s;
}
.nav__links a:nth-child(2) {
  animation-delay: 0.2s;
}
.nav__links a:nth-child(3) {
  animation-delay: 0.3s;
}
.nav__links a:nth-child(4) {
  animation-delay: 0.4s;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav__links a::before {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0;
  transform: scaleX(0);
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav__links a:hover {
  color: var(--text);
  background: rgba(240, 244, 255, 0.04);
  transform: translateY(-2px);
}

[data-theme="light"] .nav__links a:hover {
  background: rgba(14, 18, 32, 0.04);
}

.nav__links a:hover::before {
  opacity: 1;
  transform: scaleX(1);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  animation: fadeInRight 0.8s ease-out;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Enhanced theme and language toggles */
.theme-toggle,
.lang-toggle {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(240, 244, 255, 0.12);
  background: rgba(240, 244, 255, 0.03);
  border-radius: 14px;
  cursor: pointer;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  display: grid;
  place-items: center;
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
  position: relative;
  overflow: hidden;
}

.theme-toggle::before,
.lang-toggle::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(212, 136, 63, 0.2), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.theme-toggle:hover::before,
.lang-toggle:hover::before {
  opacity: 1;
}

[data-theme="light"] .theme-toggle,
[data-theme="light"] .lang-toggle {
  border-color: rgba(14, 18, 32, 0.12);
  background: rgba(14, 18, 32, 0.03);
}

.theme-toggle:hover,
.lang-toggle:hover {
  background: rgba(240, 244, 255, 0.06);
  border-color: rgba(240, 244, 255, 0.18);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .theme-toggle:hover,
[data-theme="light"] .lang-toggle:hover {
  background: rgba(14, 18, 32, 0.06);
  border-color: rgba(14, 18, 32, 0.18);
}

.theme-toggle:active,
.lang-toggle:active {
  transform: translateY(0) scale(0.95);
}

/* Icon rotation animation */
.sun-icon,
.moon-icon {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle:hover .sun-icon,
.theme-toggle:hover .moon-icon {
  transform: rotate(180deg) scale(1.1);
}

.sun-icon {
  display: none;
}
.moon-icon {
  display: block;
}

[data-theme="light"] .sun-icon {
  display: block;
}
[data-theme="light"] .moon-icon {
  display: none;
}

/* تحسين زر البرجر مع أنيميشن احترافي */
.burger {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(240, 244, 255, 0.12);
  background: rgba(240, 244, 255, 0.03);
  border-radius: 14px;
  cursor: pointer;
  transition: all .2s ease;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .burger {
  border-color: rgba(14, 18, 32, 0.12);
  background: rgba(14, 18, 32, 0.03);
}

.burger:hover {
  background: rgba(240, 244, 255, 0.06);
  border-color: rgba(240, 244, 255, 0.18);
  transform: scale(1.05);
}

[data-theme="light"] .burger:hover {
  background: rgba(14, 18, 32, 0.06);
  border-color: rgba(14, 18, 32, 0.18);
}

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  margin: 3px 0;
  border-radius: 999px;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

/* أنيميشن تحويل البرجر إلى X عند الفتح */
.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Enhanced button with ripple and glow effects */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  transition: all .2s ease;
  user-select: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transform: translate(-50%, -50%);
  transition: width .4s ease, height .4s ease;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:active {
  transform: translateY(1px);
}

.btn svg {
  transition: transform 0.3s ease;
}

.btn:hover svg {
  transform: scale(1.1);
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-bright) 100%);
  color: #0d1220;
  box-shadow: 0 12px 32px rgba(212, 136, 63, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  position: relative;
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 12px 32px rgba(212, 136, 63, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  }
  50% {
    box-shadow: 0 12px 40px rgba(212, 136, 63, 0.4), 0 0 20px rgba(212, 136, 63, 0.3), 0 0 0 1px
      rgba(255, 255, 255, 0.15) inset;
  }
}

.btn--primary:hover {
  box-shadow: 0 16px 40px rgba(212, 136, 63, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
  transform: translateY(-2px);
  animation: none;
}

.btn--soft {
  background: rgba(240, 244, 255, 0.06);
  border-color: rgba(240, 244, 255, 0.12);
  color: var(--text);
}

[data-theme="light"] .btn--soft {
  background: rgba(14, 18, 32, 0.04);
  border-color: rgba(14, 18, 32, 0.12);
}

.btn--soft:hover {
  background: rgba(240, 244, 255, 0.1);
  border-color: rgba(240, 244, 255, 0.18);
}

[data-theme="light"] .btn--soft:hover {
  background: rgba(14, 18, 32, 0.08);
  border-color: rgba(14, 18, 32, 0.18);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(240, 244, 255, 0.16);
  color: var(--text);
}

[data-theme="light"] .btn--ghost {
  border-color: rgba(14, 18, 32, 0.16);
}

.btn--ghost:hover {
  background: rgba(240, 244, 255, 0.06);
  border-color: rgba(240, 244, 255, 0.22);
}

[data-theme="light"] .btn--ghost:hover {
  background: rgba(14, 18, 32, 0.06);
  border-color: rgba(14, 18, 32, 0.22);
}

.btn--full {
  width: 100%;
}

/* Enhanced hero section with fade-in animations */
.hero {
  position: relative;
  padding: 100px 0 60px;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}

.hero__content > * {
  animation: fadeInUp 0.8s ease-out backwards;
}

.hero__content > *:nth-child(1) {
  animation-delay: 0.2s;
}
.hero__content > *:nth-child(2) {
  animation-delay: 0.4s;
}
.hero__content > *:nth-child(3) {
  animation-delay: 0.6s;
}
.hero__content > *:nth-child(4) {
  animation-delay: 0.8s;
}
.hero__content > *:nth-child(5) {
  animation-delay: 1s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced pill with bounce animation */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid rgba(240, 244, 255, 0.14);
  background: rgba(240, 244, 255, 0.04);
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

[data-theme="light"] .pill {
  border-color: rgba(14, 18, 32, 0.14);
  background: rgba(14, 18, 32, 0.03);
}

/* Enhanced dot pulse animation */
.pill .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 0 7px rgba(212, 136, 63, 0.1);
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 7px rgba(212, 136, 63, 0.1);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(212, 136, 63, 0.05);
  }
}

h1 {
  margin: 24px 0 16px;
  font-size: clamp(38px, 4.5vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 900;
}

/* Enhanced gradient text animation */
.grad {
  background: linear-gradient(105deg, var(--text) 0%, rgba(240, 244, 255, 0.75) 45%, var(--accent-bright) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  animation: gradient-shift 4s ease infinite;
}

@keyframes gradient-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

[data-theme="light"] .grad {
  background: linear-gradient(105deg, var(--text) 0%, rgba(14, 18, 32, 0.75) 45%, var(--accent) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
}

.lead {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  max-width: 58ch;
}

.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

/* Enhanced trust items with hover animation */
.trust {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.trust__item {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(240, 244, 255, 0.12);
  background: rgba(240, 244, 255, 0.03);
  backdrop-filter: blur(8px);
  min-width: 160px;
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
}

.trust__item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 136, 63, 0.1), transparent);
  transition: left 0.5s ease;
}

.trust__item:hover::before {
  left: 100%;
}

[data-theme="light"] .trust__item {
  border-color: rgba(14, 18, 32, 0.12);
  background: rgba(255, 255, 0.6);
}

.trust__item:hover {
  background: rgba(240, 244, 255, 0.05);
  border-color: rgba(240, 244, 255, 0.18);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .trust__item:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(14, 18, 32, 0.18);
}

.trust__icon {
  color: var(--accent-bright);
  margin-bottom: 8px;
  opacity: 0.9;
  transition: transform 0.3s ease;
}

.trust__item:hover .trust__icon {
  transform: scale(1.15) rotate(5deg);
}

.trust__num {
  display: block;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: .01em;
  margin-top: 2px;
  transition: color 0.3s ease;
}

.trust__item:hover .trust__num {
  color: var(--accent-bright);
}

.trust__label {
  display: block;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  margin-top: 4px;
}

.hero__visual {
  position: relative;
  min-height: 400px;
  animation: fadeInRight 1s ease-out 0.6s backwards;
}

/* Enhanced orb floating animations */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.75;
  animation: float 8s ease-in-out infinite;
}

.orb--a {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle at 35% 35%, rgba(77, 158, 247, 0.4), transparent 65%);
  top: -30px;
  right: 50px;
  animation-delay: 0s;
}

.orb--b {
  width: 340px;
  height: 340px;
  background: radial-gradient(circle at 35% 35%, rgba(212, 136, 63, 0.35), transparent 68%);
  bottom: -50px;
  left: 20px;
  animation-delay: -2s;
}

.orb--c {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle at 35% 35%, rgba(77, 158, 247, 0.3), transparent 65%);
  top: 50%;
  right: 10%;
  animation-delay: -4s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(20px, -20px) scale(1.05);
  }
  66% {
    transform: translate(-15px, 15px) scale(0.95);
  }
}

/* Enhanced 3D card with advanced animations */
.card3d {
  position: absolute;
  bottom: -40px;
  right: 10%;
  width: min(440px, 100%);
  height: 280px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(240, 244, 255, 0.12) 0%, rgba(240, 244, 255, 0.04) 100%);
  border: 1px solid rgba(240, 244, 255, 0.16);
  box-shadow: var(--shadow);
  padding: 22px;
  transform: perspective(1000px) rotateY(-14deg) rotateX(7deg);
  transition: transform .4s ease;
  overflow: hidden;
}

[data-theme="light"] .card3d {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
  border-color: rgba(14, 18, 32, 0.16);
}

.card3d:hover {
  transform: perspective(1000px) rotateY(-10deg) rotateX(5deg) translateY(-8px);
}

.card3d__shine {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
  transform: rotate(45deg);
  animation: shine 6s ease-in-out infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) rotate(45deg);
  }
}

.card3d__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

.chip {
  width: 60px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-bright) 50%, var(--accent2) 100%);
  opacity: 0.95;
  box-shadow: 0 4px 16px rgba(212, 136, 63, 0.3);
}

.mini {
  font-weight: 800;
  letter-spacing: .14em;
  color: rgba(240, 244, 255, 0.9);
  font-size: 15px;
}

[data-theme="light"] .mini {
  color: rgba(14, 18, 32, 0.9);
}

.card3d__mid {
  position: relative;
  z-index: 1;
}

.card3d__mid .line {
  height: 12px;
  border-radius: 999px;
  background: rgba(240, 244, 255, 0.1);
  margin: 14px 0;
}

[data-theme="light"] .card3d__mid .line {
  background: rgba(14, 18, 32, 0.08);
}

.line--short {
  width: 68%;
}

.card3d__bottom {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.badge {
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid rgba(240, 244, 255, 0.14);
  background: rgba(7, 10, 18, 0.45);
  backdrop-filter: blur(8px);
  color: rgba(240, 244, 255, 0.9);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .03em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .badge {
  border-color: rgba(14, 18, 32, 0.14);
  background: rgba(255, 255, 255, 0.7);
  color: rgba(14, 18, 32, 0.9);
}

.hero__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 100px;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 10, 18, 0.8) 50%, rgba(7, 10, 18, 1) 100%);
  pointer-events: none;
}

[data-theme="light"] .hero__fade {
  background: linear-gradient(180deg, transparent 0%, rgba(247, 248, 251, 0.8) 50%, rgba(247, 248, 251, 1) 100%);
}

/* SECTIONS */
.section {
  padding: 90px 0;
}

.section--alt {
  background: linear-gradient(180deg, rgba(240, 244, 255, 0.02) 0%, rgba(240, 244, 255, 0.01) 50%, transparent 100%);
  border-top: 1px solid rgba(240, 244, 255, 0.06);
  border-bottom: 1px solid rgba(240, 244, 255, 0.06);
}

[data-theme="light"] .section--alt {
  background: linear-gradient(180deg, rgba(14, 18, 32, 0.02) 0%, rgba(14, 18, 32, 0.01) 50%, transparent 100%);
  border-top: 1px solid rgba(14, 18, 32, 0.08);
  border-bottom: 1px solid rgba(14, 18, 32, 0.08);
}

.section__label {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(212, 136, 63, 0.12);
  border: 1px solid rgba(212, 136, 63, 0.2);
  color: var(--accent-bright);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section__head {
  margin-bottom: 48px;
}

.section__head h2 {
  margin: 12px 0 12px;
  font-size: clamp(32px, 3.5vw, 44px);
  letter-spacing: -.025em;
  font-weight: 900;
}

.section__head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 17px;
  max-width: 65ch;
}

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.svc {
  border-radius: var(--radius);
  background: rgba(240, 244, 255, 0.03);
  border: 1px solid rgba(240, 244, 255, 0.12);
  padding: 26px;
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .svc {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(14, 18, 32, 0.12);
}

.svc::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(212, 136, 63, 0.08),
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.svc:hover::before {
  opacity: 1;
}

.svc:hover {
  transform: translateY(-6px);
  background: rgba(240, 244, 255, 0.05);
  border-color: rgba(240, 244, 255, 0.18);
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .svc:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(14, 18, 32, 0.18);
}

.svc__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(212, 136, 63, 0.14), rgba(77, 158, 247, 0.1));
  border: 1px solid rgba(212, 136, 63, 0.22);
  margin-bottom: 16px;
  color: var(--accent-bright);
  transition: all .3s ease;
}

.svc:hover .svc__icon {
  background: linear-gradient(135deg, rgba(212, 136, 63, 0.2), rgba(77, 158, 247, 0.14));
  border-color: rgba(212, 136, 63, 0.3);
  transform: scale(1.05);
}

.svc h3 {
  margin: 10px 0 10px;
  font-size: 22px;
  font-weight: 800;
}

.svc p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
}

.svc__link {
  color: var(--text);
  font-weight: 800;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .2s ease;
}

.svc__link:hover {
  color: var(--accent-bright);
  gap: 10px;
}

.grid2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.whyCard {
  border-radius: var(--radius);
  background: rgba(240, 244, 255, 0.03);
  border: 1px solid rgba(240, 244, 255, 0.12);
  padding: 26px;
  transition: all .3s ease;
}

[data-theme="light"] .whyCard {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(14, 18, 32, 0.12);
}

.whyCard:hover {
  background: rgba(240, 244, 255, 0.05);
  border-color: rgba(240, 244, 255, 0.18);
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .whyCard:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(14, 18, 32, 0.18);
}

.whyCard__icon {
  color: var(--accent-bright);
  margin-bottom: 14px;
  opacity: 0.9;
}

.whyCard h3 {
  margin: 0 0 10px;
  font-size: 21px;
  font-weight: 800;
}

.whyCard p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step {
  border-radius: var(--radius);
  background: rgba(240, 244, 255, 0.03);
  border: 1px solid rgba(240, 244, 255, 0.12);
  padding: 26px;
  display: flex;
  gap: 18px;
  transition: all .3s ease;
}

[data-theme="light"] .step {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(14, 18, 32, 0.12);
}

.step:hover {
  background: rgba(240, 244, 255, 0.05);
  border-color: rgba(240, 244, 255, 0.18);
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .step:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(14, 18, 32, 0.18);
}

.step__num {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(77, 158, 247, 0.14), rgba(212, 136, 63, 0.1));
  border: 1px solid rgba(77, 158, 247, 0.22);
  font-weight: 900;
  font-size: 20px;
  flex-shrink: 0;
}

.step__body h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
}

.step__body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
}

/* CONTACT */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.contact__info {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(240, 244, 255, 0.12);
  background: rgba(240, 244, 255, 0.03);
  position: sticky;
  top: 100px;
}

[data-theme="light"] .contact__info {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(14, 18, 32, 0.12);
}

.contact__info h2 {
  margin: 12px 0 10px;
  font-size: 36px;
  font-weight: 900;
}

.contact__info p {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 16px;
}

.contact__buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0 16px;
}

.note {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(212, 136, 63, 0.18);
  background: rgba(212, 136, 63, 0.06);
  color: rgba(240, 244, 255, 0.85);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  line-height: 1.6;
}

[data-theme="light"] .note {
  color: rgba(14, 18, 32, 0.85);
}

.note svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent-bright);
}

.form {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(240, 244, 255, 0.12);
  background: rgba(240, 244, 255, 0.03);
}

[data-theme="light"] .form {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(14, 18, 32, 0.12);
}

.form label {
  display: block;
  font-weight: 700;
  font-size: 15px;
  margin: 16px 0 10px;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(240, 244, 255, 0.14);
  background: rgba(7, 10, 18, 0.45);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: all .2s ease;
  font-family: var(--font);
}

[data-theme="light"] .form input,
[data-theme="light"] .form select,
[data-theme="light"] .form textarea {
  border-color: rgba(14, 18, 32, 0.14);
  background: rgba(255, 255, 255, 0.8);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(212, 136, 63, 0.12);
  background: rgba(7, 10, 18, 0.55);
}

[data-theme="light"] .form input:focus,
[data-theme="light"] .form select:focus,
[data-theme="light"] .form textarea:focus {
  background: rgba(255, 255, 255, 1);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form__hint {
  margin: 14px 0 0;
  color: rgba(240, 244, 255, 0.55);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.5;
}

[data-theme="light"] .form__hint {
  color: rgba(14, 18, 32, 0.55);
}

/* FOOTER */
.footer {
  padding: 36px 0;
  border-top: 1px solid rgba(240, 244, 255, 0.08);
  background: rgba(7, 10, 18, 0.6);
}

[data-theme="light"] .footer {
  border-top-color: rgba(14, 18, 32, 0.08);
  background: rgba(247, 248, 251, 0.6);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(240, 244, 255, 0.7);
}

[data-theme="light"] .footer__inner {
  color: rgba(14, 18, 32, 0.7);
}

.footer__left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer__brand {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .06em;
}

.footer__copy {
  font-size: 13px;
  color: rgba(240, 244, 255, 0.55);
}

[data-theme="light"] .footer__copy {
  color: rgba(14, 18, 32, 0.55);
}

.footer__right {
  display: flex;
  gap: 24px;
  align-items: center;
}

.footer__right a {
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .2s ease;
}

.footer__right a:hover {
  color: var(--accent-bright);
}

/* RIPPLE EFFECT */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: ripple-animation 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(2.5);
    opacity: 0;
  }
}

/* REVEAL ANIMATION */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

.reveal-fade {
  opacity: 0;
  transition: opacity .8s ease;
}

.reveal-fade.is-visible {
  opacity: 1;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .container {
    width: calc(100% - 32px);
  }

  .hero {
    padding: 60px 0 40px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero__visual {
    min-height: 300px;
  }

  .card3d {
    position: relative;
    inset: auto;
    width: 100%;
    transform: none;
    margin-top: 20px;
  }

  .card3d:hover {
    transform: translateY(-4px);
  }

  .grid3 {
    grid-template-columns: 1fr;
  }

  .grid2 {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .contact {
    grid-template-columns: 1fr;
  }

  .contact__info {
    position: static;
  }

  /* تحسين قائمة التنقل للموبايل مع أنيميشن */
  .nav__links {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 78px;
    background: rgba(7, 10, 18, 0.96);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(240, 244, 255, 0.12);
    border-radius: 20px;
    padding: 16px;
    display: none;
    flex-direction: column;
    gap: 6px;
    box-shadow: var(--shadow);
    z-index: 999;
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  [data-theme="light"] .nav__links {
    background: rgba(247, 248, 251, 0.96);
    border-color: rgba(14, 18, 32, 0.12);
  }

  .nav__links.is-open {
    display: flex;
    animation: slideInMenu 0.3s ease forwards;
  }

  @keyframes slideInMenu {
    from {
      opacity: 0;
      transform: translateY(-10px) scale(0.95);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .nav__links a {
    width: 100%;
    text-align: center;
    padding: 12px 16px;
  }

  .nav__links a::before {
    display: none;
  }

  .burger {
    display: flex;
  }

  .nav__actions .btn--ghost {
    display: none;
  }

  .form__row {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 60px 0;
  }

  h1 {
    font-size: clamp(32px, 8vw, 48px);
  }

  .footer__inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer__right {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 24px);
  }

  .hero {
    padding: 50px 0 30px;
  }

  h1 {
    font-size: 32px;
    margin: 20px 0 14px;
  }

  .lead {
    font-size: 16px;
  }

  .trust {
    gap: 10px;
  }

  .trust__item {
    min-width: 140px;
    padding: 14px 16px;
  }

  .hero__cta {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .hero__cta .btn {
    width: 100%;
  }

  .section {
    padding: 50px 0;
  }

  .section__head h2 {
    font-size: 28px;
  }

  .section__head p {
    font-size: 16px;
  }

  .svc,
  .whyCard,
  .step {
    padding: 20px;
  }

  .contact__info,
  .form {
    padding: 20px;
  }

  .contact__info h2 {
    font-size: 28px;
  }

  .orb--a,
  .orb--b,
  .orb--c {
    width: 150px;
    height: 150px;
    filter: blur(60px);
  }
}

@media (max-width: 400px) {
  .container {
    width: calc(100% - 20px);
  }

  h1 {
    font-size: 28px;
  }

  .nav__inner {
    padding: 12px 0;
  }

  .brand__name {
    font-size: 15px;
  }

  .theme-toggle,
  .lang-toggle {
    width: 40px;
    height: 40px;
  }

  .burger {
    width: 40px;
    height: 40px;
  }

  .btn {
    font-size: 14px;
    padding: 11px 18px;
  }
}
