@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@500;600;700;800;900&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

@font-face {
  font-family: Jakarta;
  src: url('media/PlusJakartaSans-Variable.ttf') format('truetype');
}
@font-face {
  font-family: Noto;
  src: url('media/NotoSansArabic-Variable.ttf') format('truetype');
}

:root {
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --purple: #4f46e5;
  --purple-glow: rgba(79, 70, 229, 0.22);
  --purple-soft: #eef2ff;
  --line: #e2e8f0;
  --paper: #f8fafc;
  --surface: #ffffff;
  --green: #059669;
  --green-soft: #ecfdf5;
  --amber: #d97706;
  --amber-soft: #fffbeb;
  --teal: #0e7c86;
  --teal-soft: #e3f4f5;
  --rose: #be3a76;
  --rose-soft: #fdebf3;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.14);

  /* Live Preview Variables for Palette Switcher */
  --preview-accent: #4f46e5;
  --preview-accent-soft: #eef2ff;
  --preview-navy: #0f172a;
  --preview-ink: #0f172a;
  --preview-surface: #ffffff;
  --preview-line: #e2e8f0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 95px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', Jakarta, system-ui, -apple-system, sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
html[lang=ar] body {
  font-family: 'Cairo', Noto, system-ui, -apple-system, sans-serif;
  line-height: 1.85;
}

a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #f59e0b; outline-offset: 4px; }

/* Buttons & Badges */
a.button, button.button {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-md);
  min-height: 54px;
  font-weight: 750;
  font-size: 16px;
  line-height: 1.4;
  cursor: pointer;
  border: none;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}
a.button:hover, button.button:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
a.button:active, button.button:active { transform: translateY(0); }
.primary { background: var(--purple); color: white; box-shadow: 0 8px 24px var(--purple-glow); }
.primary:hover { background: #4338ca; }
.secondary { border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); }
.secondary:hover { background: #fcfcff; border-color: #cbd5e1; }
.play-store-btn { background: #0f172a; color: #fff; box-shadow: 0 10px 28px rgba(15,23,42,0.25); }
.play-store-btn:hover { background: #1e293b; }
.web-app-btn { background: var(--purple); color: #fff; box-shadow: 0 10px 28px var(--purple-glow); }
.web-app-btn:hover { background: #4338ca; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  background: var(--purple-soft);
  color: var(--purple);
  width: fit-content;
  border: 1px solid rgba(79, 70, 229, 0.18);
}

/* Layout */
.wrap { max-width: 1200px; margin: auto; padding: 0 28px; }

/* Sticky Header */
.site-nav {
  position: sticky;
  top: 0;
  background: rgba(248, 250, 252, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}
.nav-inner { display: flex; align-items: center; gap: 24px; min-height: 82px; }
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 850;
  font-size: 20px;
  text-decoration: none;
  white-space: nowrap;
}
.brand img { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 4px 12px rgba(79,70,229,0.22); }
.brand-tag { font-size: 11px; padding: 3px 8px; border-radius: 6px; background: #e0e7ff; color: #3730a3; font-weight: 800; margin-inline-start: 4px; }
.nav-links { display: flex; align-items: center; gap: 22px; margin-inline-start: auto; font-size: 15px; font-weight: 750; }
.nav-links a { text-decoration: none; color: var(--ink-soft); transition: color 120ms; }
.nav-links a:hover { color: var(--purple); }
.nav-cta-group { display: flex; align-items: center; gap: 10px; margin-inline-start: 16px; }
.nav-btn { min-height: 44px !important; padding: 8px 18px !important; font-size: 14px !important; border-radius: 10px !important; }

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
  padding-block: 70px 60px;
  min-height: 680px;
}
.eyebrow { font-size: 14px; letter-spacing: 0.5px; font-weight: 850; color: var(--purple); margin-bottom: 14px; display: inline-flex; align-items: center; gap: 8px; }
h1 { font-size: clamp(38px, 4.8vw, 60px); line-height: 1.25; letter-spacing: -1.2px; margin: 18px 0; }
html[lang=ar] h1 { letter-spacing: -0.5px; line-height: 1.45; font-size: clamp(34px, 4.2vw, 52px); font-weight: 900; }
.lead { font-size: 19px; color: var(--ink-soft); max-width: 620px; line-height: 1.85; margin-bottom: 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.micro { font-size: 13.5px; color: var(--muted); margin-top: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 600; }
.micro-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }

/* Hero Visual & Mockup */
.hero-visual { position: relative; padding: 12px 24px; text-align: center; }
.hero-visual:before {
  content: '';
  position: absolute;
  inset: 10% -8% 8%;
  background: radial-gradient(circle, rgba(79,70,229,0.18) 0%, rgba(238,242,255,0.7) 65%, transparent 100%);
  border-radius: 50%;
  z-index: -1;
}
.hero-phone-wrap { position: relative; display: inline-block; max-width: 320px; }
.hero-visual img {
  width: 100%;
  max-width: 310px;
  height: auto;
  display: block;
  margin: auto;
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.22);
  transform: rotate(-2deg);
  transition: transform 300ms ease;
}
html[dir=rtl] .hero-visual img { transform: rotate(2deg); }
.hero-visual:hover img { transform: rotate(0) scale(1.02); }

/* Floating Badges on Hero */
.floating-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  z-index: 2;
  animation: floatSlow 5s ease-in-out infinite alternate;
}
.floating-badge.badge-top { top: 8%; inset-inline-start: -18px; }
.floating-badge.badge-bottom { bottom: 10%; inset-inline-end: -18px; animation-delay: -2.5s; }
.badge-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px rgba(5,150,105,0.6); }
@keyframes floatSlow { 0% { transform: translateY(0); } 100% { transform: translateY(-8px); } }

/* Trust Strip */
.proof {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 22px;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink-soft);
}
.proof-item { display: flex; align-items: center; gap: 8px; }
.proof-icon { color: var(--purple); font-size: 17px; }

/* Common Section */
.section { padding-block: 84px; }
.section-alt { background: #f1f5f9; }
.section-head { max-width: 720px; margin-bottom: 46px; }
.section-head.center { text-align: center; margin-inline: auto; }
h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.4; letter-spacing: -0.6px; margin: 12px 0 16px; }
html[lang=ar] h2 { letter-spacing: -0.3px; line-height: 1.45; font-size: clamp(26px, 3vw, 38px); font-weight: 900; }
h3 { font-size: 22px; line-height: 1.5; margin: 0 0 12px; font-weight: 800; }
p { margin: 10px 0; }

/* Interactive Theme Palette Showcase */
.palette-showcase {
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 50px 42px;
  margin-block: 30px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}
.palette-showcase h2 { color: #fff; margin-top: 6px; }
.palette-showcase p.lead-soft { color: #cbd5e1; font-size: 16.5px; line-height: 1.85; margin-bottom: 24px; }
.palette-swatches-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}
.palette-pill-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  padding: 12px 10px;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 160ms ease;
  font-size: 13.5px;
  font-weight: 800;
  text-align: center;
  font-family: inherit;
}
.palette-pill-btn:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.35); transform: translateY(-2px); }
.palette-pill-btn.active {
  background: rgba(255, 255, 255, 0.22);
  border-color: #fff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}
.palette-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: block;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  border: 2px solid rgba(255,255,255,0.5);
}
.palette-mode-toggles { display: flex; gap: 10px; margin-top: 18px; }
.palette-mode-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 10px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background 140ms;
  font-family: inherit;
}
.palette-mode-btn.active { background: #fff; color: #0f172a; }

/* Mini Interactive Card Preview */
.interactive-roster-preview {
  background: var(--preview-surface);
  color: var(--preview-ink);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  transition: background 250ms ease, color 250ms ease;
  border: 1px solid rgba(255,255,255,0.1);
}
.preview-hero-banner {
  background: var(--preview-navy);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 16px;
}
.preview-hero-title { font-size: 16px; font-weight: 850; margin-bottom: 2px; }
.preview-hero-sub { font-size: 12px; opacity: 0.85; }
.preview-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
  text-align: center;
}
.preview-stat-box {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 8px 4px;
}
.preview-stat-box span { font-size: 11px; opacity: 0.85; display: block; font-weight: 600; }
.preview-stat-box strong { font-size: 16px; display: block; color: #fff; font-weight: 850; }
.preview-progress-bar {
  height: 6px;
  background: rgba(255,255,255,0.2);
  border-radius: 99px;
  margin-top: 12px;
  overflow: hidden;
}
.preview-progress-fill { height: 100%; width: 78%; background: #34d399; border-radius: 99px; }
.preview-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-top: 12px;
}
.preview-day-cell {
  background: #f1f5f9;
  border-radius: 8px;
  min-height: 48px;
  padding: 4px;
  font-size: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  transition: all 200ms ease;
  font-weight: 750;
}
.preview-day-cell.filled {
  background: var(--preview-accent) !important;
  color: #fff !important;
}
.preview-day-cell .chip { font-size: 10px; font-weight: 850; padding: 1px 4px; border-radius: 4px; }

/* iOS Section */
.ios-section {
  background: linear-gradient(135deg, #f0f7ff 0%, #e6efff 100%);
  border: 1.5px solid #d4e2fa;
  border-radius: var(--radius-xl);
  padding: 50px 42px;
  margin-block: 40px;
}
.ios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.ios-card {
  background: var(--surface);
  border: 1px solid #dce6f8;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 140ms ease;
}
.ios-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.ios-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #e9f2ff;
  color: #2563eb;
  display: grid;
  place-items: center;
  font-size: 26px;
}
.ios-card h3 { font-size: 19px; margin: 0; color: #1e3a8a; font-weight: 850; }
.ios-card p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.75; margin: 0; }
.ios-success-bar {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-md);
  padding: 16px 22px;
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
  color: #065f46;
  font-weight: 800;
  flex-wrap: wrap;
}

/* Feature Rows & Showcases */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding-block: 55px;
  border-top: 1px solid var(--line);
}
.feature-row:nth-of-type(even) .feature-image { order: 2; }
.feature-image {
  background: #f1f5f9;
  border-radius: var(--radius-xl);
  text-align: center;
  padding: 38px 24px;
  position: relative;
}
.feature-image img {
  width: 100%;
  max-width: 275px;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  display: block;
  margin: auto;
  transition: transform 250ms ease;
}
.feature-image:hover img { transform: scale(1.02); }
.feature-text h3 { font-size: 26px; line-height: 1.4; margin-bottom: 14px; font-weight: 850; }
.feature-text p { font-size: 16.5px; color: var(--ink-soft); line-height: 1.85; }
.feature-text ul { padding-inline-start: 22px; color: var(--ink-soft); margin: 18px 0; }
.feature-text li { margin-block: 10px; font-size: 15.5px; }
.app-link {
  color: var(--purple);
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 15.5px;
}
.app-link:hover { text-decoration: underline; }

/* Interactive Quick Calculator on Homepage */
.quick-calc-box {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 40px 34px;
  margin-block: 20px;
  box-shadow: var(--shadow-sm);
}
.quick-calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
  margin-top: 24px;
}
.quick-calc-inputs { display: flex; flex-direction: column; gap: 16px; }
.calc-field-group { display: flex; flex-direction: column; gap: 6px; }
.calc-field-group label { font-size: 14px; font-weight: 800; color: var(--ink-soft); }
.calc-field-group select, .calc-field-group input {
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  background: #f8fafc;
  color: var(--ink);
}
.quick-calc-result {
  background: var(--purple-soft);
  border: 1.5px solid #d4d0f7;
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
}
.calc-result-number { font-size: 42px; font-weight: 900; color: var(--purple); line-height: 1.1; margin: 8px 0; }
.calc-result-text { font-size: 14.5px; color: var(--ink-soft); line-height: 1.7; font-weight: 600; }

/* Video Tour Section */
.video-section {
  background: #0f172a;
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 50px 40px;
  margin-block: 40px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}
.video-section h2 { color: #fff; }
.video-section p { color: #cbd5e1; font-size: 16.5px; line-height: 1.8; }
.video-wrapper {
  background: #1e293b;
  border-radius: var(--radius-lg);
  padding: 16px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.12);
}
.video-wrapper video {
  width: 100%;
  max-width: 280px;
  border-radius: 14px;
  display: block;
  margin: auto;
}

/* Steps 1-2-3 */
.step-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 32px;
}
.step-list li {
  background: var(--surface);
  padding: 24px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  border-top: 3.5px solid var(--purple);
}
.step-number { font-family: 'Plus Jakarta Sans', Jakarta, sans-serif; color: var(--purple); font-size: 16px; font-weight: 850; margin-bottom: 8px; display: block; }
.step-list h3 { font-size: 19px; margin: 0 0 8px; font-weight: 850; }
.step-list p { font-size: 14.5px; color: var(--muted); margin: 0; line-height: 1.75; }

/* FAQ */
.faq-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  margin-top: 20px;
}
.faq-layout details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.faq-layout summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 17.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}
.faq-layout summary::-webkit-details-marker { display: none; }
.faq-layout summary::after { content: '+'; font-size: 24px; color: var(--purple); font-weight: 700; }
.faq-layout details[open] summary::after { content: '−'; }
.faq-layout details p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.85; margin-top: 12px; }

/* Final CTA */
.final-cta {
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
  border: 1.5px solid #c7d2fe;
  text-align: center;
  border-radius: var(--radius-xl);
  padding: 60px 30px;
  margin-block: 40px 70px;
}
.final-cta h2 { font-size: 34px; margin-bottom: 12px; font-weight: 900; }
.final-cta p { font-size: 17.5px; color: var(--ink-soft); max-width: 560px; margin: 0 auto 28px; }
.final-cta .actions { justify-content: center; }

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding-block: 36px 90px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  font-size: 14px;
  color: var(--muted);
  flex-wrap: wrap;
  font-weight: 600;
}
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--purple); }

/* Sticky Mobile CTA Bar */
.mobile-cta { display: none; }

/* Responsive adjustments */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-block: 40px 30px; min-height: 0; }
  .hero-visual { max-width: 360px; margin: auto; }
  .floating-badge.badge-top { inset-inline-start: -6px; }
  .floating-badge.badge-bottom { inset-inline-end: -6px; }
  .palette-showcase { grid-template-columns: 1fr; padding: 34px 22px; gap: 32px; }
  .palette-swatches-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-row { grid-template-columns: 1fr; gap: 32px; padding-block: 36px; }
  .feature-row:nth-of-type(even) .feature-image { order: 0; }
  .ios-grid { grid-template-columns: 1fr; }
  .quick-calc-grid { grid-template-columns: 1fr; }
  .video-section { grid-template-columns: 1fr; padding: 34px 22px; }
  .faq-layout { grid-template-columns: 1fr; gap: 20px; }
  .step-list { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .wrap { padding-inline: 18px; }
  .nav-inner { min-height: 70px; gap: 12px; }
  .brand { font-size: 17px; }
  .brand img { width: 36px; height: 36px; }
  .nav-links .desktop-link { display: none; }
  .proof { flex-wrap: wrap; font-size: 13px; justify-content: center; }
  .mobile-cta {
    position: fixed;
    bottom: 0;
    inset-inline: 0;
    display: flex;
    gap: 8px;
    background: rgba(248, 250, 252, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    z-index: 60;
    box-shadow: 0 -4px 18px rgba(0,0,0,0.06);
  }
  .mobile-cta .button { flex: 1; font-size: 14px; padding: 10px 8px; min-height: 48px; }
  .footer { padding-bottom: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-visual img, .floating-badge { transform: none; animation: none; }
}
