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

:root {
  --navy: #f3f5f9;
  --navy-mid: #202952;
  --navy-card: #202952;
  --navy-border: #1e2d4a;
  --gold: #202952;
  --gold-light: #4b61f1;
  --gold-pale: #fff460;
  --gold-dim: rgba(201, 168, 76, 0.12);
  /* --text-primary: #f0ead6;   */
  --text-primary: #e9504b;
  --text-secondary: #8a9ab5;
  --text-muted: #4a5a74;
  --white: #ffffff;
  --success: #2e7d52;
  --font-ar: "Tajawal", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-ar);
  background: var(--navy);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 72px;
  background-color: #202952;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--navy-border);
}
.nav-logo {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--navy);
}
.nav-cta {
  background: white;
  color: var(--gold);
  padding: 0.55rem 1.4rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: opacity 0.2s;
  white-space: nowrap;
  height: 35px;
  display: flex;
  align-items: center;
}
.nav-cta:hover {
  opacity: 0.88;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 5% 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(201, 168, 76, 0.07) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold-dim);
  border: 1px solid rgba(201, 168, 76, 0.25);
  color: var(--gold-light);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 2rem;
  animation: fadeUp 0.6s ease both;
}
.hero-badge::before {
  content: "●";
  font-size: 0.6rem;
  color: var(--gold);
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.2;
  max-width: 900px;
  animation: fadeUp 0.7s 0.1s ease both;
}
.hero h1 span {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 1.5rem auto 2.5rem;
  animation: fadeUp 0.7s 0.2s ease both;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 0.7s 0.3s ease both;
}
.btn-primary {
  /* background: linear-gradient(135deg, var(--gold), var(--gold-light)); */
  background-color: var(--text-primary);
  color: var(--navy);
  padding: 0.85rem 2rem;
  border-radius: 10px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  /* box-shadow: 0 4px 24px rgba(201, 168, 76, 0.25); */
}
.btn-primary:hover {
  transform: translateY(-2px);
  /* box-shadow: 0 8px 32px rgba(201, 168, 76, 0.35); */
}

.btn-ghost-2 {
  background-color: white;
  color: var(--gold);
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 0.85rem 2rem;
  border-radius: 10px;
  font-size: 1rem;
  border: 1px solid var(--navy-border);
  cursor: pointer;
  text-decoration: none;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.btn-ghost:hover {
  color: var(--gold-light);
  border-color: rgba(201, 168, 76, 0.4);
}
.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 4rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 0.7s 0.4s ease both;
}
.stat {
  text-align: center;
}
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold-light);
}
.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}
.hero-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 1.5rem auto 0;
}

/* ── SECTION COMMON ── */
section {
  padding: 100px 5%;
}
.section-tag {
  display: inline-block;
  color: var(--navy);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.25;
  max-width: 720px;
}
.section-title span {
  background: linear-gradient(135deg, var(--navy), var(--white));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.solution .section-title span {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.section-sub {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-top: 0.75rem;
  max-width: 600px;
}

/* ── PROBLEMS ── */
.problems {
  background: var(--navy-mid);
}
.problems-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.problems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.problem-card {
  background: var(--navy);
  border: 1px solid var(--navy-border);
  border-radius: 14px;
  padding: 1.75rem;
  transition:
    border-color 0.3s,
    transform 0.3s;
}
.problem-card:hover {
  border-color: rgba(201, 168, 76, 0.3);
  transform: translateY(-4px);
}
.problem-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(220, 60, 60, 0.12);
  border: 1px solid rgba(220, 60, 60, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #e07070;
}
.problem-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.problem-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── SOLUTION ── */
.solution {
  max-width: 1100px;
  margin: 0 auto;
}
.solution-header {
  text-align: center;
  margin-bottom: 4rem;
}
.solution-header .section-sub {
  margin: 0.75rem auto 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: 16px;
  padding: 2rem;
  transition:
    border-color 0.3s,
    transform 0.3s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: attr(data-num);
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 4rem;
  font-weight: 900;
  color: rgb(227 235 255 / 60%);
  pointer-events: none;
  line-height: 1;
}
.feature-card:hover {
  border-color: rgba(201, 168, 76, 0.35);
  transform: translateY(-5px);
}
.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--gold-dim);
  border: 1px solid rgba(201, 168, 76, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  color: var(--gold-light);
}
.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
  max-width: 75%;
}
.feature-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── OFFER ── */
.offer {
  background: var(--navy-mid);
}
.offer-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.offer-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.offer-card {
  background: var(--navy);
  border: 1px solid var(--navy-border);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.3s;
}
.offer-card:hover {
  border-color: rgba(201, 168, 76, 0.3);
}
.offer-check {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(46, 125, 82, 0.15);
  border: 1px solid rgba(46, 125, 82, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #5ec888;
  flex-shrink: 0;
}
.offer-card h3 {
  font-size: 1rem;
  font-weight: 700;
}
.offer-card p {
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── PROOF ── */
.proof {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.proof-quote {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: 20px;
  padding: 3rem;
  margin-top: 3rem;
  position: relative;
}
.proof-quote::before {
  content: "❝";
  position: absolute;
  top: -1.2rem;
  right: 2rem;
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
  font-family: serif;
}
.proof-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}
.proof-text strong {
  color: var(--text-primary);
}
.proof-author {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.proof-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dim), rgba(201, 168, 76, 0.2));
  border: 2px solid rgba(201, 168, 76, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--gold-light);
  font-size: 0.9rem;
}
.proof-author-info {
  text-align: right;
}
.proof-name {
  font-weight: 700;
  font-size: 0.95rem;
}
.proof-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.proof-stats {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.proof-stat {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: 12px;
  padding: 1.25rem 2rem;
  text-align: center;
}
.proof-stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold-light);
}
.proof-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ── FAQ ── */
.faq {
  background: var(--navy-mid);
}
.faq-inner {
  max-width: 780px;
  margin: 0 auto;
}
.faq-title {
  text-align: center;
  margin-bottom: 3rem;
}
.faq-item {
  background-color: var(--navy);
  border-bottom: 1px solid var(--navy-border);
  border-radius: 0.25rem;
  margin-bottom: 0.5rem;
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  font-family: var(--font-ar);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: right;
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0.5rem;
}
.faq-arrow {
  color: var(--gold);
  transition: transform 0.25s;
  font-size: 1rem;
  flex-shrink: 0;
  padding: 0 0.5rem;
}
.faq-item.open .faq-arrow {
  transform: rotate(90deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.35s ease,
    padding 0.35s;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.75;
}
.faq-item.open .faq-a {
  max-height: 200px;
  padding-bottom: 1.25rem;
  padding: 0.25rem 0.5rem;
}

/* ── CLIENTS ── */
.clients {
  text-align: center;
}
.clients-inner {
  max-width: 1000px;
  margin: 0 auto;
}
.clients-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
}
.client-chip {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: 100px;
  padding: 0.55rem 1.4rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition:
    border-color 0.2s,
    color 0.2s;
}
.client-chip:hover {
  border-color: rgba(201, 168, 76, 0.3);
  color: var(--gold-light);
}

/* ── CTA ── */
.cta-section {
  text-align: center;
  padding: 120px 5%;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(201, 168, 76, 0.07) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.cta-box {
  max-width: 720px;
  margin: 0 auto;
  background: var(--navy-card);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 24px;
  padding: 4rem 3rem;
  position: relative;
}
.cta-urgency {
  background: var(--gold-dim);
  border: 1px solid rgba(201, 168, 76, 0.25);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1.5rem;
}
.cta-box h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  line-height: 1.3;
}
.cta-box p {
  color: var(--text-secondary);
  margin: 3rem 0 0;
  font-size: 0.95rem;
}

@media (width <= 767px) {
  .cta-box p {
    margin-top: 1rem;
  }
}
.cta-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}
.cta-input {
  flex: 1;
  min-width: 200px;
  padding: 0.85rem 1.2rem;
  background: var(--navy);
  border: 1px solid var(--navy-border);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-ar);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  text-align: right;
}
.cta-input:focus {
  border-color: rgba(201, 168, 76, 0.5);
}
.cta-input.input-error {
  border-color: #e67070;
}
.cta-input::placeholder {
  color: var(--text-muted);
}
.cta-box .cta-error {
  color: #e67070;
  font-size: 0.85rem;
  margin: 0.75rem 0 0;
}
.cta-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 1rem;
}
.spots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.5rem;
}
.spot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  transition: background 0.3s;
}
.spot.taken {
  background: var(--navy-border);
}
.spots-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-right: 0.5rem;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--navy-border);
  padding: 1rem 5%;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}
footer .footer-logo {
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  /* margin-bottom: 0.75rem; */
  display: block;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  align-content: center;
  gap: 0.5rem;
}

/* ── LANGUAGE TOGGLE ── */
.lang-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0.35rem 1rem;
  border-radius: 0.25rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.25s,
    border-color 0.25s,
    transform 0.2s;
  letter-spacing: 0.5px;
  font-family: "Inter", var(--font-ar);
  white-space: nowrap;
  height: 35px;
}
.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

/* ── LTR (ENGLISH) OVERRIDES ── */
[dir="ltr"] body {
  font-family: "Inter", sans-serif;
}

[dir="ltr"] .faq-q {
  text-align: left;
}

[dir="ltr"] .cta-input {
  text-align: left;
}

[dir="ltr"] .proof-author-info {
  text-align: left;
}

[dir="ltr"] .feature-card::before {
  left: auto;
  right: 20px;
}

[dir="ltr"] .faq-arrow {
  transform: rotate(180deg);
}
[dir="ltr"] .faq-item.open .faq-arrow {
  transform: rotate(270deg);
}

[dir="ltr"] .hero-badge::before {
  content: "●";
}

/* Smooth text transition on language switch */
[data-i18n] {
  transition: opacity 0.15s ease;
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  nav {
    padding: 0 4%;
  }
  .nav-links {
    display: none;
  }
  section {
    padding: 70px 4%;
  }
  .hero-stats {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(2, 1fr);
  }
  .stat {
    box-shadow: 1px 2px 15px 0px rgba(0, 0, 0, 0.055);
    padding: 1rem 2rem;
    border-radius: 10px;
  }
  .hero-divider {
    display: none;
  }
  .cta-box {
    padding: 2.5rem 1.5rem;
  }
  .lang-toggle {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
  }
}
