/* ============================================
   QAWAM LANDING PAGE — STYLES
   Premium SaaS landing page
   ============================================ */

/* --- Design Tokens --- */
:root {
  --color-primary: #0D7377;
  --color-primary-light: #11999E;
  --color-primary-dark: #095052;
  --color-accent: #C5922E;
  --color-accent-light: #E0B44F;
  --color-accent-dark: #9A7223;
  --color-green: #1A6B3C;
  --color-green-light: #27AE60;

  --color-bg: #FAFBFC;
  --color-bg-alt: #F1F4F8;
  --color-surface: #FFFFFF;
  --color-text: #1A1D26;
  --color-text-secondary: #5A6275;
  --color-text-muted: #8B93A7;
  --color-border: #E2E8F0;

  --gradient-primary: linear-gradient(135deg, #0D7377 0%, #11999E 50%, #27AE60 100%);
  --gradient-accent: linear-gradient(135deg, #C5922E 0%, #E0B44F 100%);
  --gradient-hero: linear-gradient(165deg, #05282A 0%, #0D4B4E 40%, #0D7377 100%);
  --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.4) 100%);
  --gradient-download: linear-gradient(135deg, #0D7377 0%, #095052 50%, #0D3B3D 100%);

  --shadow-sm: 0 1px 3px rgba(13, 115, 119, 0.06);
  --shadow-md: 0 4px 16px rgba(13, 115, 119, 0.08);
  --shadow-lg: 0 12px 40px rgba(13, 115, 119, 0.12);
  --shadow-xl: 0 20px 60px rgba(13, 115, 119, 0.16);
  --shadow-glow: 0 0 60px rgba(13, 115, 119, 0.25);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-family-ar: 'Cairo', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  position: relative;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

/* --- Utility --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: 16px;
}

.section__subtitle {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  background: rgba(13, 115, 119, 0.08);
  color: var(--color-primary);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.badge--light {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  font-family: var(--font-family);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(13, 115, 119, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(13, 115, 119, 0.4);
}

.btn--secondary {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-border);
}

.btn--secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 10px 22px;
  font-size: 0.85rem;
}

.btn--store {
  background: var(--color-surface);
  color: var(--color-text);
  padding: 16px 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  gap: 12px;
  font-size: 0.9rem;
}

.btn--store:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn--store .store-icon {
  width: 28px;
  height: 28px;
}

.btn--store .store-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.btn--store .store-label small {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

.btn--store .store-label strong {
  font-weight: 700;
}

/* --- Background Glows --- */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.4;
}

.bg-glow--1 {
  width: 600px;
  height: 600px;
  background: rgba(13, 115, 119, 0.15);
  top: -200px;
  right: -200px;
  animation: float 20s ease-in-out infinite;
}

.bg-glow--2 {
  width: 500px;
  height: 500px;
  background: rgba(197, 146, 46, 0.1);
  bottom: 20%;
  left: -150px;
  animation: float 25s ease-in-out infinite reverse;
}

.bg-glow--3 {
  width: 400px;
  height: 400px;
  background: rgba(39, 174, 96, 0.08);
  top: 50%;
  right: -100px;
  animation: float 22s ease-in-out infinite 5s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -30px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(20px, 10px) scale(1.02); }
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition-base);
  background: transparent;
}

.navbar--scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  padding: 10px 0;
  box-shadow: var(--shadow-sm);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  z-index: 10;
}

.navbar__logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.navbar__name {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar__links li a {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.navbar__links li a:hover {
  color: var(--color-primary);
  background: rgba(13, 115, 119, 0.06);
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar__cta {
  white-space: nowrap;
}

/* --- Language Switcher --- */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-family);
  color: var(--color-text-secondary);
  background: rgba(13, 115, 119, 0.06);
  border: 1px solid rgba(13, 115, 119, 0.1);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.lang-switcher:hover {
  background: rgba(13, 115, 119, 0.12);
  border-color: rgba(13, 115, 119, 0.2);
  color: var(--color-primary);
}

.lang-switcher__icon {
  display: flex;
  align-items: center;
  line-height: 0;
}

.lang-switcher__icon svg {
  width: 16px;
  height: 16px;
}

.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 10;
}

.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.navbar__hamburger--active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar__hamburger--active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.navbar__hamburger--active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Mobile Menu --- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.mobile-menu--open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.mobile-menu__links li a {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-text);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.mobile-menu__links li a:hover {
  color: var(--color-primary);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(197, 146, 46, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(17, 153, 158, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 60px 24px;
  position: relative;
  z-index: 1;
}

.hero__content {
  animation: fadeInUp 0.8s ease-out;
}

.hero .badge {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero__title .highlight {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero__actions .btn--primary {
  background: var(--gradient-accent);
  box-shadow: 0 4px 20px rgba(197, 146, 46, 0.3);
}

.hero__actions .btn--primary:hover {
  box-shadow: 0 8px 30px rgba(197, 146, 46, 0.45);
}

.hero__actions .btn--secondary {
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.9);
}

.hero__actions .btn--secondary:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.hero__stats {
  display: flex;
  gap: 40px;
}

.hero__stat {
  text-align: left;
}

.hero__stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-accent-light);
  line-height: 1.2;
}

.hero__stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* Hero Visual */
.hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero__logo-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__logo-glow {
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 146, 46, 0.2) 0%, rgba(13, 115, 119, 0.15) 40%, transparent 70%);
  animation: pulse-glow 4s ease-in-out infinite;
}

.hero__logo {
  width: 320px;
  height: 320px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.3));
  animation: logo-float 6s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 1; }
}

@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.hero__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
}

.hero__wave svg {
  width: 100%;
  height: 120px;
}

/* --- Features Section --- */
.features {
  background: var(--color-bg);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--gradient-card);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(13, 115, 119, 0.15);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(13, 115, 119, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: all var(--transition-base);
}

.feature-card:hover .feature-card__icon {
  background: rgba(13, 115, 119, 0.1);
  transform: scale(1.08);
}

.feature-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 10px;
}

.feature-card__desc {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* --- How It Works --- */
.how-it-works {
  background: var(--color-bg-alt);
}

.how-it-works__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.how-it-works__steps::before {
  content: '';
  position: absolute;
  top: 60px;
  left: 16.67%;
  right: 16.67%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-primary), var(--color-accent), transparent);
  opacity: 0.2;
}

.step-card {
  text-align: center;
  position: relative;
  padding: 0 16px;
}

.step-card__number {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 30px rgba(13, 115, 119, 0.25);
  transition: all var(--transition-base);
}

.step-card:hover .step-card__number {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(13, 115, 119, 0.35);
}

.step-card__icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.step-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
}

.step-card__desc {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* --- Preview Section --- */
.preview {
  background: var(--color-bg);
}

.preview__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.preview-card {
  background: var(--gradient-card);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.preview-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: 0;
}

.preview-card:hover::after {
  opacity: 1;
}

.preview-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.preview-card > * {
  position: relative;
  z-index: 1;
}

.preview-card:hover .preview-card__icon,
.preview-card:hover .preview-card__title,
.preview-card:hover .preview-card__desc {
  color: #fff;
}

.preview-card__icon {
  font-size: 3rem;
  margin-bottom: 20px;
  transition: all var(--transition-base);
}

.preview-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 10px;
  transition: color var(--transition-base);
}

.preview-card__desc {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  transition: color var(--transition-base);
}

.preview-card:hover .preview-card__desc {
  color: rgba(255, 255, 255, 0.85);
}

/* --- Download Section --- */
.download {
  background: var(--color-bg-alt);
  overflow: hidden;
}

.download__inner {
  background: var(--gradient-download);
  border-radius: var(--radius-xl);
  padding: 72px 64px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.download__inner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 146, 46, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.download__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
}

.download__title .highlight {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.download__subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 32px;
}

.download__stores {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.download__features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.download__features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

.download__features li::before {
  content: '✓';
  color: var(--color-accent-light);
  font-weight: 700;
  font-size: 0.85rem;
}

.download__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.download__logo {
  width: 240px;
  height: 240px;
  object-fit: contain;
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.25));
  animation: logo-float 6s ease-in-out infinite;
}

/* --- Footer --- */
.footer {
  background: #0B1D1E;
  color: rgba(255, 255, 255, 0.7);
  padding: 72px 0 0;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.footer__name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}

.footer__desc {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.footer__social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  font-weight: 600;
}

.footer__social-link:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

.footer__columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer__col-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.footer__col-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__col-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  transition: all var(--transition-fast);
}

.footer__col-links a:hover {
  color: var(--color-accent-light);
  padding-left: 4px;
}

.footer__bottom {
  padding: 24px 0;
  text-align: center;
}

.footer__copyright {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

/* --- Legal Pages (Privacy Policy / Terms) --- */
.legal-page {
  padding-top: 100px;
  padding-bottom: 80px;
  min-height: calc(100vh - 160px);
  background: var(--color-bg);
}

.legal {
  max-width: 800px;
}

.legal__header {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-border);
}

.legal__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.2;
  margin-bottom: 12px;
}

.legal__date {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.legal__intro {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text-secondary);
  margin-bottom: 48px;
  padding: 24px;
  background: rgba(13, 115, 119, 0.04);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-primary);
}

html[dir="rtl"] .legal__intro {
  border-left: none;
  border-right: 4px solid var(--color-primary);
}

.legal__section {
  margin-bottom: 36px;
}

.legal__heading {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(13, 115, 119, 0.1);
}

.legal__section p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
}

.legal__section ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
}

.legal__section ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

html[dir="rtl"] .legal__section ul li {
  padding-left: 0;
  padding-right: 24px;
}

.legal__section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-primary);
}

html[dir="rtl"] .legal__section ul li::before {
  left: auto;
  right: 0;
}

.legal__section a {
  color: var(--color-primary);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(13, 115, 119, 0.3);
  text-underline-offset: 2px;
  transition: all var(--transition-fast);
}

.legal__section a:hover {
  color: var(--color-primary-dark);
  text-decoration-color: var(--color-primary);
}

.legal__section strong {
  color: var(--color-text);
  font-weight: 600;
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.35s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero__subtitle {
    max-width: 100%;
    margin: 0 auto 36px;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__stats {
    justify-content: center;
  }

  .hero__logo {
    width: 250px;
    height: 250px;
  }

  .hero__logo-glow {
    width: 280px;
    height: 280px;
  }

  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .preview__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .download__inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 48px 36px;
  }

  .download__stores {
    justify-content: center;
  }

  .download__features {
    justify-content: center;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer__brand {
    align-items: center;
    text-align: center;
  }

  .footer__desc {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }

  .navbar__links {
    display: none;
  }

  .navbar__actions .navbar__cta {
    display: none;
  }

  .navbar__hamburger {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: 120px 0 80px;
  }

  .hero__logo {
    width: 200px;
    height: 200px;
  }

  .hero__logo-glow {
    width: 230px;
    height: 230px;
  }

  .hero__stats {
    gap: 24px;
    flex-wrap: wrap;
  }

  .features__grid {
    grid-template-columns: 1fr;
  }

  .how-it-works__steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .how-it-works__steps::before {
    display: none;
  }

  .preview__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .download__inner {
    padding: 40px 24px;
  }

  .download__logo {
    width: 180px;
    height: 180px;
  }

  .footer__columns {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__social {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero__title {
    font-size: 1.75rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .hero__actions .btn {
    width: 100%;
    max-width: 280px;
  }

  .download__stores {
    flex-direction: column;
    align-items: center;
  }

  .btn--store {
    width: 100%;
    max-width: 280px;
  }
}

/* ============================================
   RTL (Arabic) Overrides
   ============================================ */
html[dir="rtl"] {
  font-family: var(--font-family-ar);
}

html[dir="rtl"] body {
  font-family: var(--font-family-ar);
}

html[dir="rtl"] .lang-switcher {
  font-family: var(--font-family);
}

html[dir="rtl"] .navbar__name {
  font-family: var(--font-family-ar);
  letter-spacing: 0;
}

html[dir="rtl"] .hero__stat {
  text-align: right;
}

html[dir="rtl"] .hero__subtitle {
  max-width: 520px;
}

html[dir="rtl"] .feature-card::before {
  transform-origin: right;
}

html[dir="rtl"] .footer__col-links a:hover {
  padding-left: 0;
  padding-right: 4px;
}

html[dir="rtl"] .btn--store .store-label {
  align-items: flex-end;
}

html[dir="rtl"] .footer__name {
  font-family: var(--font-family-ar);
}

html[dir="rtl"] .hero__title {
  letter-spacing: 0;
}

html[dir="rtl"] .badge {
  letter-spacing: 0;
}

@media (max-width: 768px) {
  html[dir="rtl"] .navbar__hamburger {
    order: -1;
  }

  html[dir="rtl"] .navbar__brand {
    order: 1;
  }
}

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

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
