/* ========== RESET & BASE ========== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --purple: #5a2599;
  --purple-deep: #6f2dbd;
  --purple-card: #6127a5;
  --purple-num: #ddc0ff;
  --purple-title: #552390;
  --purple-arrow: #5d269f;
  --black: #000000;
  --text: #1e1e1e;
  --text-light: #444444;
  --gray: #616161;
  --card-bg: #f5f5f5;
  --divider: #d6d6d6;
  --white: #ffffff;
  --font: 'Inter', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

.section-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 80px;
}

/* ========== ANIMATIONS ========== */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.nav-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 85px;
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 54px;
  width: auto;
}

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

.nav-links a {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-light);
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--purple);
}

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

.btn-login {
  font-size: 20px;
  font-weight: 500;
  color: var(--black);
  transition: color var(--transition);
}

.btn-login:hover {
  color: var(--purple);
}

.btn-signin {
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  background: var(--purple);
  padding: 9px 27px;
  border-radius: 11px;
  transition: background var(--transition), transform var(--transition);
}

.btn-signin:hover {
  background: var(--purple-deep);
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: var(--transition);
}

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

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

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

/* ========== HERO ========== */
.hero {
  position: relative;
  padding: 160px 120px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--white);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/images/hero-gradient.png') no-repeat center center;
  background-size: cover;
  pointer-events: none;
  z-index: 0;
}

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

.hero-content {
  max-width: 1080px;
}

.hero-content h1 {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--black);
  margin-bottom: 24px;
}

.hero-content .highlight {
  color: var(--purple);
}

.hero-subtitle {
  font-size: 24px;
  font-weight: 500;
  color: var(--text);
  max-width: 860px;
  margin: 0 auto 32px;
  line-height: 1.5;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  background: var(--purple-deep);
  background-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.2) 100%);
  color: var(--white);
  font-size: 22px;
  font-weight: 600;
  padding: 18px 36px;
  border-radius: 11px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(111, 45, 189, 0.35);
}

.btn-cta svg {
  transition: transform var(--transition);
}

.btn-cta:hover svg {
  transform: translateX(4px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--purple);
  border: 2px solid var(--purple);
  padding: 16px 32px;
  border-radius: 11px;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.btn-secondary:hover {
  background: var(--purple);
  color: var(--white);
  transform: translateY(-2px);
}

.hero-notice {
  background: rgba(90, 37, 153, 0.08);
  border: 1px solid rgba(90, 37, 153, 0.2);
  border-radius: 12px;
  padding: 16px 32px;
  margin-bottom: 32px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.hero-notice p {
  font-size: 16px;
  font-weight: 500;
  color: var(--purple-title);
  line-height: 1.5;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.btn-hero {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-deep) 100%);
  color: var(--white);
  font-size: 18px;
  font-weight: 600;
  padding: 16px 36px;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(90, 37, 153, 0.3);
  overflow: hidden;
}

.btn-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  transition: opacity 0.3s ease;
}

.btn-hero:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 32px rgba(90, 37, 153, 0.45);
}

.btn-hero:hover::before {
  opacity: 0;
}

.btn-hero svg {
  transition: transform 0.3s ease;
}

.btn-hero:hover svg {
  transform: translateX(5px);
}

/* Trust Bar (Frame 44) */
.trust-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 120px;
  padding: 20px 0;
  background: rgba(254, 254, 254, 0.9);
}

.trust-logo.ministry-logo {
  height: 55px;
}

.trust-logo.worldbank-logo {
  height: 40px;
}

/* ========== HOW IT WORKS ========== */
.how-it-works {
  padding: 80px 120px;
  background: linear-gradient(180deg, #6f2dbd 0%, #5a1fa0 100%);
}

.how-it-works .section-container {
  max-width: 1580px;
  padding: 0;
}

.how-it-works .section-title {
  font-size: 64px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
  color: #fde9ff;
  padding: 0;
}

.section-title {
  font-size: 48px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
  color: var(--black);
}

.steps-grid {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 32px;
}

.step-card {
  padding: 50px 30px;
  background: var(--purple-card);
  border: 1px solid #fff6ff;
  border-radius: 12px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 52px;
  box-shadow:
    0 9px 16.6px rgba(0,0,0,0.1),
    0 35px 30.6px rgba(0,0,0,0.09),
    0 78px 41.1px rgba(0,0,0,0.05),
    0 139px 49px rgba(0,0,0,0.01);
  transition: transform var(--transition);
  cursor: default;
}

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

.step-number {
  font-size: 64px;
  font-weight: 800;
  color: var(--purple-num);
  text-align: center;
  width: 100%;
}

.step-text {
  font-size: 24px;
  font-weight: 500;
  color: var(--white);
  line-height: 1.4;
  text-align: center;
  width: 100%;
}

.step-divider {
  display: flex;
  align-items: center;
}

/* ========== ABOUT THE INITIATIVE ========== */
.about {
  padding: 80px 120px;
  background: var(--card-bg);
}

.about .section-title {
  color: var(--black);
}

.about-text {
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.7;
  text-align: center;
  max-width: 960px;
  margin: 0 auto 48px;
}

.partners-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 18px;
  font-weight: 600;
  color: var(--purple-title);
}

.partner-sep {
  color: var(--divider);
}

/* ========== FEATURES ========== */
.features {
  padding: 80px 100px;
  background: var(--white);
}

.features .section-container {
  max-width: 1580px;
  padding: 0;
}

.features .section-title {
  color: var(--black);
}

.features-grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 12px;
}

.feature-card {
  background: var(--card-bg);
  padding: 50px 20px;
  border-radius: 12px;
  text-align: center;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 43px;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: default;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(90, 37, 153, 0.12);
}

.feature-icon {
  width: 150px;
  height: 146px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.feature-card h3 {
  font-size: 32px;
  font-weight: 700;
  color: var(--purple-title);
  text-align: center;
  line-height: 1.3;
}

.feature-card p {
  font-size: 24px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
  text-align: center;
}

.features-microcopy {
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  color: var(--gray);
  margin-top: 32px;
}

/* ========== MODULES ========== */
.modules {
  padding: 80px 120px;
  background: var(--card-bg);
}

.modules .section-title {
  font-size: 64px;
  font-weight: 700;
  color: var(--black);
}

.modules .section-container {
  max-width: 1580px;
  padding: 0;
}

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

.module-card {
  background: var(--white);
  border: 1px solid #e0d0f0;
  border-radius: 12px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: default;
  box-shadow: 0 2px 12px rgba(90, 37, 153, 0.06);
}

.module-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(90, 37, 153, 0.12);
}

.module-number {
  font-size: 36px;
  font-weight: 800;
  color: var(--purple);
}

.module-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.3;
}

.module-card p {
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.5;
}

/* ========== FAQ ========== */
.faq {
  padding: 80px 200px;
  background: var(--card-bg);
}

.faq .section-title {
  color: var(--black);
}

.faq-list {
  max-width: 1128px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--divider);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 20px;
  font-weight: 500;
  color: var(--black);
  text-align: left;
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--purple);
}

.faq-arrow {
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform var(--transition);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 0 20px;
  font-size: 18px;
  font-weight: 400;
  color: var(--gray);
  line-height: 1.7;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--white);
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 112px;
  padding: 60px 120px;
}

.footer-cta {
  flex-shrink: 0;
  max-width: 361px;
}

.footer-cta h2 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--black);
}

.footer-cta .highlight {
  color: var(--purple);
}

.footer-cta p {
  font-size: 20px;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 43px;
  line-height: 1.5;
}

.footer-links {
  flex: 1;
}

.footer-columns {
  display: flex;
  gap: 32px;
}

.footer-divider {
  width: 1px;
  height: 100px;
  
  background: var(--divider);
  align-self: center;
}

.footer-col h4 {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 43px;
  color: var(--black);
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--purple);
}

.footer-bottom {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 129px;
  padding: 20px 10px;
  background: var(--card-bg);
  border-top: 1px solid var(--divider);
}

.footer-bottom p {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray);
}

.footer-statement {
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 32px;
}

.footer-bottom .lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.lang-btn {
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background var(--transition), color var(--transition);
}

.lang-btn:hover {
  color: var(--purple);
}

.lang-btn.active {
  background: var(--purple);
  color: var(--white);
  font-weight: 600;
}

/* ========== RTL SUPPORT ========== */
html[dir="rtl"] {
  font-family: 'Inter', sans-serif;
}

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

html[dir="rtl"] .faq-arrow {
  margin-left: 0;
  margin-right: 16px;
}

html[dir="rtl"] .footer-columns {
  direction: rtl;
}

html[dir="rtl"] .btn-cta svg {
  transform: scaleX(-1);
}

html[dir="rtl"] .btn-cta:hover svg {
  transform: scaleX(-1) translateX(4px);
}

.footer-bottom .social-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-bottom .social-icons a {
  color: var(--text);
  font-size: 16px;
  transition: color var(--transition);
}

.footer-bottom .social-icons a:hover {
  color: var(--purple);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
  .hero {
    padding: 140px 40px 0;
  }

  .hero-content h1 {
    font-size: 48px;
  }

  .how-it-works,
  .features,
  .about,
  .modules,
  .footer-top {
    padding-left: 40px;
    padding-right: 40px;
  }

  .faq {
    padding: 80px 40px;
  }

  .features-grid {
    flex-wrap: wrap;
  }

  .feature-card {
    flex: 1 1 calc(50% - 12px);
    min-width: 280px;
  }

  .nav-links {
    gap: 32px;
  }

  .nav-links a,
  .btn-login,
  .btn-signin {
    font-size: 16px;
  }

  .footer-top {
    gap: 60px;
  }
}

@media (max-width: 960px) {
  .steps-grid {
    flex-direction: column;
  }

  .step-divider {
    transform: rotate(90deg);
  }

  .step-card {
    width: 100%;
    max-width: 360px;
    height: auto;
  }

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

  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 48px;
  }

  .footer-cta {
    max-width: 100%;
  }

  .footer-columns {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-actions {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 24px;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease;
  }

  .nav-links.mobile-open a {
    font-size: 16px;
    color: var(--black);
  }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .hero {
    padding: 120px 24px 0;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .btn-cta {
    font-size: 18px;
    padding: 14px 28px;
    gap: 16px;
  }

  .trust-bar {
    gap: 40px;
    flex-wrap: wrap;
    padding: 16px 24px;
  }

  .trust-logo.ministry-logo { height: 40px; }
  .trust-logo.worldbank-logo { height: 28px; }

  .how-it-works,
  .modules {
    padding: 60px 24px;
  }

  .how-it-works .section-title,
  .modules .section-title {
    font-size: 36px;
  }

  .features,
  .faq,
  .about {
    padding: 60px 24px;
  }

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

  .hero-buttons {
    flex-direction: column;
    gap: 16px;
  }

  .hero-notice {
    padding: 12px 20px;
  }

  .btn-secondary {
    font-size: 16px;
    padding: 14px 28px;
  }

  .feature-card {
    flex: 1 1 100%;
    max-width: 400px;
  }

  .features-grid {
    flex-wrap: wrap;
    justify-content: center;
  }

  .section-title {
    font-size: 28px;
  }

  .footer-top {
    padding: 40px 24px;
  }

  .footer-columns {
    flex-direction: column;
    gap: 24px;
    text-align: left;
  }

  .footer-divider {
    width: 100%;
    height: 1px;
  }

  .footer-col h4 {
    font-size: 20px;
    margin-bottom: 16px;
  }

  .footer-col a {
    font-size: 16px;
  }

  .footer-cta h2 {
    font-size: 28px;
  }

  .footer-cta p {
    font-size: 16px;
    margin-bottom: 24px;
  }

  .faq-question {
    font-size: 16px;
  }

  .nav-container {
    padding: 0 24px;
  }

  .footer-bottom {
    gap: 24px;
    flex-wrap: wrap;
    padding: 16px 24px;
  }

  .hero {
    padding-bottom: 60px;
  }
}
