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

:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-ar: 'Cairo', 'Plus Jakarta Sans', sans-serif;

  --color-primary: #0F69FC;
  --color-primary-hover: #0b55d1;
  --color-primary-subtle: #eff6ff;
  --color-navy: #0F172A;
  --color-navy-dark: #090E1A;
  --color-emerald: #10B981;
  --color-emerald-light: #ecfdf5;
  --color-text-main: #0F172A;
  --color-text-muted: #64748B;
  --color-text-subtle: #94A3B8;
  --color-bg-page: #FFFFFF;
  --color-bg-surface: #F8FAFC;
  --color-border: #E2E8F0;
  --color-border-card: rgba(226, 232, 240, 0.8);

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.03);
  --shadow-xl: 0 20px 35px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
}

/* RTL Support */
[dir="rtl"] {
  font-family: var(--font-ar);
}
[dir="rtl"] .dropdown-menu {
  left: 0;
  right: auto;
}
[dir="rtl"] .hero-badge svg,
[dir="rtl"] .btn-store svg {
  margin-left: 10px;
  margin-right: 0;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  color: var(--color-text-main);
  background-color: var(--color-bg-page);
}

body {
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

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

/* Header & Navbar */
.navbar-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--color-border);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  color: var(--color-navy);
  letter-spacing: -0.5px;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.nav-link:hover {
  color: var(--color-primary);
}

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

/* Language Selector Dropdown */
.lang-dropdown {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-navy);
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  border-color: var(--color-primary);
  background: #ffffff;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: var(--shadow-xl);
  min-width: 170px;
  display: none;
  flex-direction: column;
  padding: 6px;
  z-index: 1000;
}

.dropdown-menu.show {
  display: flex;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-main);
  border-radius: 8px;
  transition: background 0.15s ease;
}

.dropdown-item:hover {
  background: var(--color-bg-surface);
  color: var(--color-primary);
}

.dropdown-item.active {
  background: var(--color-primary-subtle);
  color: var(--color-primary);
  font-weight: 700;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 700;
  border-radius: 999px;
  padding: 11px 22px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 105, 252, 0.35);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(15, 105, 252, 0.45);
}

/* Store Download Buttons */
.store-buttons-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--color-navy);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-md);
  transition: all 0.2s ease;
  min-width: 190px;
}

.btn-store:hover {
  background: #000000;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: #ffffff;
}

.btn-store svg {
  width: 28px;
  height: 28px;
  fill: #ffffff;
  flex-shrink: 0;
}

.btn-store-content {
  display: flex;
  flex-direction: column;
  text-align: left;
}

[dir="rtl"] .btn-store-content {
  text-align: right;
}

.btn-store-sub {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94A3B8;
  font-weight: 500;
  line-height: 1.1;
}

.btn-store-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: #FFFFFF;
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

/* Hero Section */
.hero-section {
  padding: 70px 0 90px;
  background: radial-gradient(circle at 50% 10%, rgba(15, 105, 252, 0.07) 0%, rgba(255, 255, 255, 0) 65%);
  position: relative;
}

.hero-content {
  text-align: center;
  max-width: 840px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary-subtle);
  border: 1px solid rgba(15, 105, 252, 0.2);
  color: var(--color-primary);
  font-size: 13.5px;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 54px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  color: var(--color-navy);
  margin-bottom: 20px;
}

.hero-title .text-gradient {
  background: linear-gradient(135deg, var(--color-primary) 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 19px;
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 680px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.hero-rating {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-text-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Hero Mockup Graphic */
.hero-mockup-wrapper {
  margin-top: 50px;
  position: relative;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.mockup-card-main {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  box-shadow: var(--shadow-xl);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.mockup-item {
  border: 1.5px solid var(--color-border);
  border-radius: 16px;
  padding: 20px;
  background: var(--color-bg-surface);
  position: relative;
}

.mockup-item.active {
  border-color: var(--color-navy);
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.mockup-pill-badge {
  position: absolute;
  top: -11px;
  right: 16px;
  background: var(--color-navy);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
}

[dir="rtl"] .mockup-pill-badge {
  right: auto;
  left: 16px;
}

.mockup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.mockup-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--color-navy);
}

.mockup-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-navy);
}

.mockup-sub {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* Stats Ribbon */
.stats-section {
  padding: 40px 0;
  background: var(--color-bg-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

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

.stat-item {
  padding: 12px;
}

.stat-val {
  font-size: 32px;
  font-weight: 800;
  color: var(--color-navy);
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-muted);
}

/* Core Features Section */
.features-section {
  padding: 90px 0;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--color-navy);
  letter-spacing: -1px;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--color-text-muted);
}

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

.feature-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 32px 28px;
  transition: all 0.25s ease;
  position: relative;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 105, 252, 0.3);
  box-shadow: var(--shadow-lg);
}

.feature-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--color-primary-subtle);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.feature-card-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.feature-card-desc {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* How It Works Section */
.how-section {
  padding: 90px 0;
  background: var(--color-bg-surface);
}

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

.step-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 36px 28px;
  border: 1px solid var(--color-border);
  position: relative;
}

.step-num {
  font-size: 40px;
  font-weight: 800;
  color: rgba(15, 105, 252, 0.2);
  line-height: 1;
  margin-bottom: 16px;
}

.step-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 10px;
}

.step-desc {
  font-size: 15px;
  color: var(--color-text-muted);
}

/* Family Space Spotlight */
.family-spotlight {
  padding: 90px 0;
  background: #ffffff;
}

.family-box {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  border-radius: 28px;
  padding: 60px;
  color: #ffffff;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.family-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #38bdf8;
  margin-bottom: 14px;
}

.family-title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.family-desc {
  font-size: 17px;
  color: #94A3B8;
  line-height: 1.6;
  margin-bottom: 28px;
}

.family-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.family-bullet {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15.5px;
  font-weight: 600;
  color: #E2E8F0;
}

.family-bullet svg {
  color: #38bdf8;
  flex-shrink: 0;
}

.family-badge-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(8px);
}

.family-badge-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.family-badge-item:last-child {
  border-bottom: none;
}

/* FAQ Accordion */
.faq-section {
  padding: 90px 0;
  background: var(--color-bg-surface);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-question {
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 17px;
  font-weight: 700;
  color: var(--color-navy);
  cursor: pointer;
  user-select: none;
}

.faq-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.25s ease;
  color: var(--color-text-muted);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 24px 22px;
  font-size: 15.5px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  display: block;
}

/* CTA Download Banner */
.cta-section {
  padding: 80px 0;
  background: #ffffff;
}

.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1d4ed8 100%);
  border-radius: 28px;
  padding: 60px 40px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 20px 40px rgba(15, 105, 252, 0.25);
}

.cta-title {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.cta-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto 36px;
}

.cta-actions {
  display: flex;
  justify-content: center;
}

/* Footer */
.footer {
  background: #ffffff;
  border-top: 1px solid var(--color-border);
  padding: 60px 0 30px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-brand {
  max-width: 320px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-top: 12px;
}

.footer-links-group {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-col-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-navy);
  margin-bottom: 14px;
}

.footer-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-menu a {
  font-size: 14px;
  color: var(--color-text-muted);
}

.footer-menu a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  color: var(--color-text-subtle);
  flex-wrap: wrap;
  gap: 16px;
}

/* Account Deletion Page Specifics */
.account-delete-wrap {
  padding: 60px 0 90px;
}

.delete-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 44px;
  max-width: 800px;
  margin: 0 auto;
}

.delete-header {
  text-align: center;
  margin-bottom: 36px;
}

.delete-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--color-navy);
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.delete-sub {
  font-size: 16px;
  color: var(--color-text-muted);
}

.method-block {
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 28px;
  margin-bottom: 28px;
  background: var(--color-bg-surface);
}

.method-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 10px;
}

.method-desc {
  font-size: 15px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.steps-list {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

[dir="rtl"] .steps-list {
  padding-left: 0;
  padding-right: 20px;
}

.steps-list li {
  font-size: 14.5px;
  color: var(--color-text-main);
  line-height: 1.5;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
  background: #ffffff;
}

.form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(15, 105, 252, 0.15);
}

.btn-danger {
  background: #EF4444;
  color: #ffffff;
  padding: 13px 26px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-size: 15px;
  transition: all 0.2s ease;
}

.btn-danger:hover {
  background: #DC2626;
  transform: translateY(-1px);
}

.form-alert {
  padding: 14px 18px;
  border-radius: 12px;
  margin-top: 16px;
  font-size: 14px;
  display: none;
}

.form-alert.success {
  display: block;
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.form-alert.error {
  display: block;
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

/* Responsiveness */
@media (max-width: 992px) {
  .hero-title {
    font-size: 42px;
  }
  .features-grid, .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .family-box {
    grid-template-columns: 1fr;
    padding: 40px 30px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mockup-card-main {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 24px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-xl);
    gap: 18px;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-title {
    font-size: 34px;
  }
  .hero-subtitle {
    font-size: 16px;
  }
  .features-grid, .steps-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .cta-title {
    font-size: 28px;
  }
  .btn-store {
    width: 100%;
    justify-content: center;
  }
  .store-buttons-group {
    flex-direction: column;
    width: 100%;
  }
  .delete-card {
    padding: 24px;
  }
}

