/* ============================================
   SnapCredit – Global Stylesheet
   Brand: #6A53DD (purple), Zambia-market fintech
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --primary: #6A53DD;
  --primary-dark: #5340C0;
  --primary-light: #8B74F0;
  --primary-xlight: #EDE9FB;
  --accent: #F5A623;
  --text: #1A1A2E;
  --text-muted: #6B7280;
  --bg: #FFFFFF;
  --bg-light: #F8F7FF;
  --border: #E5E3F5;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(106,83,221,0.10);
  --shadow-lg: 0 16px 48px rgba(106,83,221,0.18);
  --transition: 0.25s ease;
  --nav-h: 72px;
  --font: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Container ---------- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 88px 0; }
.bg-light { background: var(--bg-light); }
.bg-purple { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 50px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  border: 2px solid transparent; transition: var(--transition);
  white-space: nowrap; text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(106,83,221,0.35); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-white { background: #fff; color: var(--primary); border-color: #fff; }
.btn-white:hover { background: var(--primary-xlight); }
.btn-nav { background: var(--primary); color: #fff; padding: 10px 20px; font-size: 14px; }
.btn-nav:hover { background: var(--primary-dark); }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-full { width: 100%; justify-content: center; }
.btn-icon { font-size: 18px; }

/* ---------- Section Headers ---------- */
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block; background: var(--primary-xlight); color: var(--primary);
  padding: 4px 14px; border-radius: 50px; font-size: 13px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 12px;
}
.section-header h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-bottom: 12px; }
.section-header p { font-size: 17px; color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* ============================================
   NAVIGATION
   ============================================ */
.nav-wrap {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar {
  display: flex; align-items: center; gap: 12px;
  height: var(--nav-h);
}
.logo {
  font-size: 22px; font-weight: 900; color: var(--text);
  letter-spacing: -0.5px; flex-shrink: 0;
}
.logo span { color: var(--primary); }
.logo-light { color: #fff; }
.logo-light span { color: var(--primary-light); }

.nav-links {
  display: flex; align-items: center; gap: 4px;
  margin-left: auto; margin-right: 16px;
}
.nav-links li a {
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  padding: 8px 12px; border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-links li a:hover, .nav-links li a.active {
  color: var(--primary); background: var(--primary-xlight);
}
.hamburger {
  display: none; background: none; border: none; font-size: 22px;
  cursor: pointer; color: var(--text); margin-left: auto;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #0D0A1E 0%, #1A1040 60%, #2D1B6B 100%);
  min-height: 88vh; display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 70% at 70% 40%, rgba(106,83,221,0.25) 0%, transparent 70%),
              radial-gradient(ellipse 40% 50% at 20% 80%, rgba(106,83,221,0.15) 0%, transparent 60%);
}
.hero-inner {
  display: flex; flex-direction: column;
  align-items: center;
  padding-top: 80px; padding-bottom: 88px;
  position: relative; z-index: 1;
}
.hero-inner-center { align-items: center; }
.hero-text-center { text-align: center; max-width: 820px; }
.hero-actions-center { justify-content: center; }
.hero-stats-center { justify-content: center; }
.hero-badge {
  display: inline-block; background: rgba(106,83,221,0.25); color: #BDB0F8;
  padding: 5px 14px; border-radius: 50px; font-size: 13px; font-weight: 600;
  margin-bottom: 20px; border: 1px solid rgba(106,83,221,0.4);
}
.hero-text h1 {
  font-size: clamp(30px, 4.5vw, 52px); font-weight: 900; color: #fff;
  line-height: 1.2; margin-bottom: 20px; letter-spacing: -0.5px;
}
.hero-sub { font-size: 18px; color: #C4BAF8; margin-bottom: 36px; line-height: 1.7; }
.hero-sub strong { color: #F5A623; }
.hero-actions { display: flex; gap: 14px; margin-bottom: 48px; flex-wrap: wrap; }
.hero-stats { display: flex; align-items: center; gap: 0; justify-content: center; }
.stat { text-align: center; padding: 0 28px; }
.stat:first-child { padding-left: 0; }
.stat-num { display: block; font-size: 24px; font-weight: 900; color: #fff; }
.stat-label { font-size: 12px; color: #9B91D4; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.15); }

/* Phone mockup removed */

/* ============================================
   FEATURES
   ============================================ */
.features-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 24px;
}
.feature-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 24px; transition: var(--transition);
  box-shadow: var(--shadow);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.feature-icon { font-size: 36px; margin-bottom: 16px; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ============================================
   HOW IT WORKS – STEPS
   ============================================ */
.steps-grid {
  display: flex; align-items: center; gap: 0;
}
.step-card {
  flex: 1; background: #fff; border-radius: var(--radius);
  padding: 36px 28px; text-align: center;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: var(--transition);
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.step-num {
  font-size: 13px; font-weight: 800; color: var(--primary);
  letter-spacing: 0.08em; margin-bottom: 12px;
}
.step-icon { font-size: 40px; margin-bottom: 14px; }
.step-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.step-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.step-arrow {
  font-size: 28px; color: var(--primary-light); padding: 0 12px;
  flex-shrink: 0; margin-top: -30px;
}

/* ============================================
   DOWNLOAD CTA
   ============================================ */
.download { background: linear-gradient(135deg, #0D0A1E 0%, #1A1040 100%); }
.download-inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.download-text h2 { font-size: 38px; font-weight: 900; color: #fff; margin-bottom: 14px; }
.download-text p { font-size: 17px; color: #C4BAF8; margin-bottom: 28px; }
.download-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.badge-circle {
  width: 180px; height: 180px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 80px; box-shadow: 0 0 60px rgba(106,83,221,0.4);
  flex-shrink: 0;
}

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 80px 0 72px; text-align: center;
}
.page-hero .section-tag { background: rgba(255,255,255,0.2); color: #fff; margin-bottom: 14px; }
.page-hero h1 { font-size: clamp(28px, 5vw, 48px); font-weight: 900; color: #fff; margin-bottom: 12px; }
.page-hero p { font-size: 17px; color: rgba(255,255,255,0.8); }

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-inner {
  display: grid; grid-template-columns: 1fr 360px; gap: 64px; align-items: center;
}
.about-text .section-tag { margin-bottom: 10px; }
.about-text h2 { font-size: 36px; font-weight: 800; margin-bottom: 16px; }
.about-text p { font-size: 16px; color: var(--text-muted); line-height: 1.8; }
.about-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 24px; padding: 40px; text-align: center; color: #fff;
  box-shadow: var(--shadow-lg);
}
.about-card-icon { font-size: 56px; margin-bottom: 16px; }
.about-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.about-card p { font-size: 14px; color: rgba(255,255,255,0.8); }

.vision-inner { display: flex; align-items: center; gap: 48px; max-width: 860px; margin: 0 auto; }
.vision-icon { font-size: 72px; flex-shrink: 0; }
.vision-text .section-tag { margin-bottom: 10px; }
.vision-text h2 { font-size: 30px; font-weight: 800; margin-bottom: 12px; }
.vision-text p { font-size: 16px; color: var(--text-muted); line-height: 1.8; }

.advantages-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.advantage-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px 28px; position: relative; overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition);
}
.advantage-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.advantage-num {
  position: absolute; top: 20px; right: 20px;
  font-size: 48px; font-weight: 900; color: var(--primary-xlight);
  line-height: 1;
}
.advantage-icon { font-size: 40px; margin-bottom: 16px; }
.advantage-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.advantage-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ============================================
   CTA SECTION
   ============================================ */
.cta-inner { text-align: center; }
.cta-inner h2 { font-size: 36px; font-weight: 900; color: #fff; margin-bottom: 12px; }
.cta-inner p { font-size: 17px; color: rgba(255,255,255,0.8); margin-bottom: 28px; }

/* ============================================
   FAQ PAGE
   ============================================ */
.faq-container { max-width: 780px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 14px; overflow: hidden; background: #fff;
  box-shadow: 0 2px 8px rgba(106,83,221,0.06);
}
.faq-question {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px; font-size: 16px; font-weight: 600; color: var(--text);
  text-align: left; transition: var(--transition); gap: 16px;
}
.faq-question:hover { background: var(--primary-xlight); color: var(--primary); }
.faq-question[aria-expanded="true"] { background: var(--primary); color: #fff; }
.faq-icon { font-size: 22px; font-weight: 300; flex-shrink: 0; transition: var(--transition); line-height: 1; }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer {
  padding: 0 24px; max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s ease;
}
.faq-answer.open { padding: 16px 24px 22px; max-height: 500px; }
.faq-answer p { font-size: 15px; color: var(--text-muted); line-height: 1.8; margin-bottom: 8px; }
.faq-answer ul { padding-left: 20px; list-style: disc; }
.faq-answer ul li { font-size: 15px; color: var(--text-muted); line-height: 1.8; margin-bottom: 4px; }

/* ============================================
   PRIVACY PAGE
   ============================================ */
.privacy-container { max-width: 860px; margin: 0 auto; }
.privacy-intro {
  background: var(--primary-xlight); border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm); padding: 28px 32px; margin-bottom: 48px;
}
.privacy-intro p { font-size: 15px; color: var(--text); line-height: 1.8; margin-bottom: 14px; }
.privacy-intro p:last-child { margin-bottom: 0; }
.privacy-block { margin-bottom: 48px; }
.privacy-block h2 {
  font-size: 22px; font-weight: 800; color: var(--primary);
  margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.privacy-main-title {
  font-size: 32px !important; color: var(--text) !important;
  border-bottom: 3px solid var(--primary) !important;
  margin-bottom: 20px !important;
}
.privacy-block h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; margin-top: 20px; }
.privacy-block p { font-size: 15px; color: var(--text-muted); line-height: 1.8; margin-bottom: 12px; }
.privacy-block ul { padding-left: 22px; }
.privacy-block ul li { font-size: 15px; color: var(--text-muted); line-height: 1.8; margin-bottom: 8px; list-style: disc; }
.data-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 24px; margin-bottom: 16px; box-shadow: var(--shadow);
}
.data-item h3 { margin-top: 0; color: var(--text); }
.data-item p { margin-bottom: 0; }
.contact-highlight {
  background: var(--primary-xlight); border-radius: var(--radius-sm);
  padding: 20px 24px; font-size: 15px; line-height: 1.8; margin-top: 12px;
}
.contact-highlight a { color: var(--primary); font-weight: 600; }

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-lead { font-size: 17px; color: var(--text-muted); line-height: 1.8; margin-bottom: 36px; }
.contact-cards { display: flex; flex-direction: column; gap: 20px; }
.contact-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 24px; display: flex; align-items: flex-start; gap: 16px;
  box-shadow: var(--shadow); transition: var(--transition);
}
.contact-card:hover { border-color: var(--primary-light); transform: translateY(-2px); }
.contact-card-icon { font-size: 32px; flex-shrink: 0; }
.contact-card h3 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 4px; }
.contact-card p { font-size: 15px; font-weight: 600; line-height: 1.6; }
.contact-card a { color: var(--primary); }

.contact-form-wrap { background: #fff; border-radius: var(--radius); padding: 40px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.contact-form-wrap h2 { font-size: 24px; font-weight: 800; margin-bottom: 28px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 15px; font-family: var(--font); color: var(--text); background: var(--bg);
  transition: var(--transition); outline: none; resize: vertical;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(106,83,221,0.12);
}
.form-success { text-align: center; padding: 40px 20px; }
.success-icon { font-size: 52px; margin-bottom: 14px; }
.form-success h3 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.form-success p { font-size: 15px; color: var(--text-muted); }

/* ============================================
   FOOTER
   ============================================ */
.footer { background: #0D0A1E; padding-top: 64px; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.footer-brand p { font-size: 13px; color: #6B6990; margin-top: 8px; line-height: 1.6; }
.footer-disclaimer { font-size: 12px !important; color: #4A4870 !important; margin-top: 12px !important; line-height: 1.7 !important; }
.footer-links h4, .footer-contact h4 { font-size: 13px; font-weight: 700; color: #9B91D4; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a { font-size: 14px; color: #6B6990; transition: var(--transition); }
.footer-links ul li a:hover { color: var(--primary-light); }
.footer-contact p { font-size: 14px; color: #6B6990; line-height: 1.7; margin-bottom: 8px; }
.footer-contact a { color: var(--primary-light); transition: var(--transition); }
.footer-contact a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding: 20px 0; }
.footer-bottom p { font-size: 13px; color: #4A4870; text-align: center; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2,1fr); }
  .hero-inner { flex-direction: column; }
  .about-inner { grid-template-columns: 1fr; }
  .about-visual { display: none; }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .section-pad { padding: 56px 0; }
  .hamburger { display: block; }
  .nav-links {
    display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: #fff; padding: 16px; flex-direction: column; align-items: flex-start;
    border-bottom: 1px solid var(--border); gap: 2px; margin: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links li a { padding: 12px 16px; display: block; width: 100%; border-radius: var(--radius-sm); }
  .btn-nav { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .steps-grid { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); padding: 8px 0; margin-top: 0; }
  .advantages-grid { grid-template-columns: 1fr; }
  .download-inner { flex-direction: column; text-align: center; }
  .download-btns { justify-content: center; }
  .badge-circle { display: none; }
  .hero-stats { justify-content: center; flex-wrap: wrap; gap: 20px; }
  .hero-actions { justify-content: flex-start; }
  .vision-inner { flex-direction: column; text-align: center; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-text h1 { font-size: 28px; }
  .download-text h2 { font-size: 26px; }
  .contact-form-wrap { padding: 24px; }
}
