:root {
  --bg: #f6fbff;
  --bg-soft: #eef7ff;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --text: #12304a;
  --text-dark: #0f2740;
  --muted: #5f7d96;
  --primary: #4f9dff;
  --primary-dark: #2f7fe8;
  --border: rgba(79, 157, 255, 0.16);
  --shadow: 0 20px 50px rgba(80, 140, 200, 0.14);
  --shadow-lg: 0 30px 80px rgba(79, 157, 255, 0.18);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1180px;
  --transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Tajawal', sans-serif;
  background:
    radial-gradient(circle at 0% 0%, rgba(79, 157, 255, 0.12), transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(125, 211, 252, 0.15), transparent 35%),
    linear-gradient(135deg, #f9fdff 0%, #eef2f9 100%);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.lang-hidden {
  display: none !important;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

/* Header Modern */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(79, 157, 255, 0.1);
  transition: var(--transition);
}
.site-header.header-scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(0,0,0,0.02);
}
.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary), #7ec4ff);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 20px rgba(79, 157, 255, 0.28);
  transition: transform 0.2s ease;
}
.brand-mark:hover { transform: scale(1.02); }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.3px;
}
.brand-subtitle {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lang-toggle {
  min-width: 70px;
  height: 46px;
  border: 1px solid rgba(79,157,255,0.2);
  border-radius: 40px;
  background: rgba(255,255,255,0.6);
  color: var(--text-dark);
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  transition: var(--transition);
}
.lang-toggle:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.site-nav a {
  padding: 10px 18px;
  border-radius: 40px;
  color: var(--muted);
  font-weight: 600;
  transition: var(--transition);
}
.site-nav a:hover, .site-nav a.active {
  color: var(--text-dark);
  background: rgba(79, 157, 255, 0.12);
}
.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 16px;
  background: rgba(79, 157, 255, 0.1);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 4px;
  transition: 0.2s;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 100px;
  font-weight: 700;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: linear-gradient(95deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 12px 24px rgba(79, 157, 255, 0.28);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 32px rgba(79, 157, 255, 0.35);
}
.btn-secondary {
  border: 1px solid rgba(79, 157, 255, 0.3);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-dark);
}
.btn-secondary:hover {
  background: rgba(79, 157, 255, 0.1);
  border-color: var(--primary);
}
.btn-store svg {
  margin-right: 4px;
}

/* Hero & Cards */
.landing-hero {
  padding: 88px 0 48px;
}
.landing-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.landing-copy h1 {
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.08;
  margin: 20px 0 24px;
  background: linear-gradient(135deg, #0a2b44, #1f6392);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.section-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 40px;
  background: rgba(79, 157, 255, 0.12);
  color: #2c73c7;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}
.orb-card {
  position: relative;
  padding: 36px;
  border-radius: 42px;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(79,157,255,0.2);
  box-shadow: var(--shadow-lg);
}
.floating-chip {
  position: absolute;
  padding: 10px 20px;
  border-radius: 100px;
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(79,157,255,0.3);
  font-weight: 700;
  font-size: 14px;
  backdrop-filter: blur(4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.05);
}
.chip-one { top: 10px; right: -10px; }
.chip-two { left: -20px; bottom: 80px; }
.chip-three { right: -5px; bottom: 20px; }

/* Grids & Cards Modern */
.story-grid, .modern-feature-grid, .split-showcase, .offer-band, .identity-strip {
  display: grid;
  gap: 28px;
}
.story-grid, .modern-feature-grid, .split-showcase { grid-template-columns: repeat(2,1fr); }
.offer-band, .identity-strip { grid-template-columns: repeat(4,1fr); }
.story-panel, .modern-feature, .showcase-side, .offer-tile, .identity-item, .app-card {
  padding: 32px;
  border-radius: 32px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(79,157,255,0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.story-panel:hover, .modern-feature:hover, .app-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(79, 157, 255, 0.12);
  background: rgba(255,255,255,0.96);
}
.modern-feature-icon {
  width: 56px;
  height: 56px;
  background: rgba(79,157,255,0.12);
  border-radius: 24px;
  display: grid;
  place-items: center;
  font-size: 28px;
  margin-bottom: 20px;
}
.apps-grid-modern {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 28px;
}
.app-badge {
  background: rgba(56,189,248,0.18);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 20px;
}
.app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Footer */
.site-footer {
  padding: 48px 0 24px;
  background: rgba(255,255,255,0.78);
  border-top: 1px solid rgba(79,157,255,0.12);
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}
.footer-bottom {
  text-align: center;
  padding-top: 32px;
  margin-top: 24px;
  border-top: 1px solid rgba(79,157,255,0.1);
  color: var(--muted);
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.9, 0.4, 1.1), transform 0.8s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}
.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }

/* RTL Support */
html[dir="rtl"] body {
  text-align: right;
  font-family: 'Tajawal', 'Inter', sans-serif;
}
html[dir="rtl"] .brand { flex-direction: row-reverse; }
html[dir="rtl"] .btn-store svg { margin-left: 4px; margin-right: 0; }

/* Responsive */
@media (max-width: 1024px) {
  .offer-band, .identity-strip, .apps-grid-modern { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 880px) {
  .landing-hero-grid, .story-grid, .modern-feature-grid, .split-showcase, .footer-grid {
    grid-template-columns: 1fr;
  }
  .site-nav {
    position: absolute;
    top: 82px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    border-radius: 28px;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(79,157,255,0.2);
  }
  .site-nav.open { display: flex; }
  .menu-toggle { display: flex; }
  .floating-chip { position: relative; display: inline-flex; margin: 8px 8px 0 0; left: auto; right: auto; bottom: auto; top: auto; }
  .landing-visual { min-height: auto; }
}
@media (max-width: 640px) {
  .offer-band, .identity-strip, .apps-grid-modern { grid-template-columns: 1fr; }
  .story-panel, .showcase-side, .orb-card { padding: 24px; }
  .btn { width: 100%; justify-content: center; }
  .hero-actions { flex-direction: column; }
}
