:root {
  --ocean-50: #e8f4fc;
  --ocean-100: #c5e4f7;
  --ocean-500: #1565a8;
  --ocean-600: #0f4f87;
  --ocean-700: #0a3a66;
  --coral-500: #e85555;
  --text: #111827;
  --text-secondary: #4b5563;
  --text-light: #6b7280;
  --border: #e5e7eb;
  --surface: #ffffff;
  --bg: #f9fafb;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(15, 79, 135, 0.08);
  --shadow-sm: 0 2px 8px rgba(15, 79, 135, 0.06);
  --max-width: 1120px;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body[dir="rtl"] {
  font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
}

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

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

.container {
  width: min(100% - 40px, var(--max-width));
  margin-inline: auto;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
  color: var(--ocean-700);
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s;
}

.nav a:hover {
  color: var(--ocean-500);
}

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

.lang-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg);
}

.lang-btn {
  border: none;
  background: transparent;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.15s;
}

.lang-btn[data-lang="ar"] {
  font-family: "IBM Plex Sans Arabic", sans-serif;
}

.lang-btn.active {
  background: var(--ocean-500);
  color: #fff;
}

.menu-btn {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--ocean-700);
  padding: 0;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.menu-btn:hover {
  background: var(--ocean-50);
  border-color: var(--ocean-500);
  color: var(--ocean-500);
}

.menu-btn svg {
  width: 20px;
  height: 20px;
}

/* Hero */
.hero {
  padding: 72px 0 56px;
  background: linear-gradient(180deg, var(--ocean-50) 0%, var(--surface) 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(21, 101, 168, 0.1);
  color: var(--ocean-600);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ocean-700);
  margin-bottom: 18px;
}

.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 32px;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.store-buttons--center {
  justify-content: center;
}

.store-badge {
  display: inline-block;
  transition: transform 0.15s ease, opacity 0.15s ease;
  line-height: 0;
}

.store-badge:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.store-badge-img {
  width: 160px;
  height: 53px;
  object-fit: contain;
  display: block;
}

.hero-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  color: var(--text-light);
}

.hero-contact a {
  color: var(--ocean-500);
  font-weight: 500;
}

.hero-contact a:hover {
  text-decoration: underline;
}

.phone-ltr {
  direction: ltr;
  unicode-bidi: embed;
  display: inline-block;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: min(280px, 100%);
  border-radius: 32px;
  border: 6px solid var(--ocean-700);
  background: var(--ocean-700);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.phone-frame img {
  width: 100%;
  border-radius: 26px;
}

.floating-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--ocean-600);
}

.floating-card.top {
  top: 12%;
  inset-inline-start: -8%;
}

.floating-card.bottom {
  bottom: 14%;
  inset-inline-end: -6%;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
  color: var(--ocean-700);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 17px;
}

/* Screenshots */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.screenshot-card {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: var(--surface);
  transition: transform 0.2s;
}

.screenshot-card:hover {
  transform: translateY(-4px);
}

.screenshot-card img {
  width: 100%;
  aspect-ratio: 9/19.5;
  object-fit: cover;
  object-position: top;
}

.screenshot-caption {
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--ocean-50);
  color: var(--ocean-500);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
  color: var(--ocean-700);
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Download CTA */
.cta-box {
  background: linear-gradient(135deg, var(--ocean-600) 0%, var(--ocean-700) 100%);
  border-radius: 24px;
  padding: 56px 48px;
  text-align: center;
  color: #fff;
}

.cta-box h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 12px;
}

.cta-box p {
  opacity: 0.9;
  margin-bottom: 28px;
  font-size: 17px;
}

/* Contact strip */
.contact-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s, transform 0.15s;
}

.contact-item:hover {
  border-color: var(--ocean-500);
  background: var(--ocean-50);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.contact-item:active {
  transform: translateY(0);
}

.contact-item svg {
  width: 28px;
  height: 28px;
  color: var(--ocean-500);
  margin: 0 auto 12px;
}

.contact-item h3 {
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--ocean-700);
}

.contact-item-value {
  font-size: 14px;
  color: var(--text-secondary);
}

.contact-item:hover .contact-item-value {
  color: var(--ocean-600);
}

.contact-hours-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
  padding: 18px 24px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--ocean-50) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  text-align: start;
}

.contact-hours-banner-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ocean-500);
}

.contact-hours-banner-icon svg {
  width: 20px;
  height: 20px;
}

.contact-hours-banner-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-hours-banner-text strong {
  font-size: 14px;
  color: var(--ocean-700);
}

.contact-hours-banner-text span {
  font-size: 14px;
  color: var(--text-secondary);
}

.contact-form-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  padding: 14px 28px;
  background: var(--ocean-500);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  transition: background 0.15s;
}

.contact-form-link:hover {
  background: var(--ocean-600);
}

.contact-form-wrap {
  text-align: center;
}

/* Social */
.social-section {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.social-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.15s;
}

.social-link:hover {
  border-color: var(--ocean-500);
  color: var(--ocean-500);
  background: var(--ocean-50);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

/* Footer */
.footer {
  background: var(--ocean-700);
  color: rgba(255, 255, 255, 0.85);
  padding: 32px 0;
  font-size: 14px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer a {
  color: rgba(255, 255, 255, 0.9);
}

.footer a:hover {
  text-decoration: underline;
}

.footer-links {
  display: flex;
  gap: 24px;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 200;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav-panel {
  position: absolute;
  top: 0;
  inset-inline-end: 0;
  width: min(300px, 85vw);
  height: 100%;
  background: var(--surface);
  padding: 24px;
  box-shadow: var(--shadow);
}

.mobile-nav-panel a {
  display: block;
  padding: 14px 0;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.mobile-nav-close {
  border: none;
  background: var(--bg);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 20px;
  font-size: 18px;
}

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

  .hero p {
    margin-inline: auto;
  }

  .store-buttons,
  .hero-contact {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .floating-card {
    display: none;
  }

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

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

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

@media (max-width: 720px) {
  .nav {
    display: none;
  }

  .menu-btn {
    display: flex;
  }

  .screenshots-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .contact-strip {
    grid-template-columns: 1fr;
  }

  .cta-box {
    padding: 40px 24px;
  }

  .social-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* Fixed WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease;
  overflow: hidden;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

.whatsapp-float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 720px) {
  .whatsapp-float {
    bottom: 18px;
    left: 18px;
    width: 54px;
    height: 54px;
  }
}
