body {
  background: #ffffff;
  color: #1e293b;
}

/* HERO */
.hero {
  position: relative;
  height: 90vh;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: 1s;
}

.hero-slide.active {
  opacity: 1;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay {
  position: absolute;
  background: rgba(0,0,0,0.4);
  width:100%;
  height:100%;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  
  text-align: center;
  color: white;

  width: 90%;
  max-width: 900px;
}

/* Improve readability on busy hero images */
.hero-content h1,
.hero-content p {
  text-shadow: 0 8px 28px rgba(2,6,23,0.75);
}

.hero-content .hero-buttons a {
  box-shadow: 0 12px 30px rgba(2,6,23,0.25);
}

@media (max-width: 768px) {
  .hero-content h1,
  .hero-content p { text-shadow: 0 6px 20px rgba(2,6,23,0.72); }
  .hero-content .hero-buttons a { box-shadow: 0 8px 18px rgba(2,6,23,0.2); }
}

.btn-primary {
  /* Green fade - primary CTA */
  background: linear-gradient(90deg, #bbf7d0 0%, #34d399 100%);
  padding: 12px 22px;
  color: #ffffff;
  border-radius: 10px;
  border: none;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(52,211,153,0.12);
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
  text-decoration: none;
}

.btn-primary:hover,
.btn-primary:focus {
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(52,211,153,0.18);
  outline: none;
}

.btn-outline {
  /* Yellow fade - secondary CTA */
  background: linear-gradient(90deg, #fff9c4 0%, #facc15 100%);
  padding: 12px 22px;
  color: #2b2b00;
  border-radius: 10px;
  border: none;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(250,204,21,0.10);
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
  text-decoration: none;
}

.btn-outline:hover,
.btn-outline:focus {
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(250,204,21,0.16);
  outline: none;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}


@media(max-width:768px){
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }
}



/* STATS */
.stats {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  text-align: center;
  padding: 50px 0;
  align-items: stretch;
}

.stat {
  flex: 1 1 0;
  padding: 22px 18px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(2,6,23,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.stat:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(2,6,23,0.12);
}

/* emoji icons in the corner */
.stat::before {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 22px;
}
.stat:nth-child(1)::before { content: "🏦"; }
.stat:nth-child(2)::before { content: "✅"; }
.stat:nth-child(3)::before { content: "⏱️"; }
.stat:nth-child(4)::before { content: "🤝"; }

.counter {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 4px 0 8px;
  line-height: 1;
}

.stat p {
  margin: 0;
  font-weight: 600;
  color: #0f172a;
  opacity: 0.95;
}

/* color accents per card */
.stat:nth-child(1) { background: linear-gradient(135deg, rgba(99,102,241,0.14), rgba(99,102,241,0.03)); }
.stat:nth-child(1) .counter { color: var(--accent); }

.stat:nth-child(2) { background: linear-gradient(135deg, rgba(212,175,55,0.12), rgba(212,175,55,0.02)); }
.stat:nth-child(2) .counter { color: var(--gold); }

.stat:nth-child(3) { background: linear-gradient(135deg, rgba(6,182,212,0.10), rgba(6,182,212,0.02)); }
.stat:nth-child(3) .counter { color: #06b6d4; }

.stat:nth-child(4) { background: linear-gradient(135deg, rgba(34,197,94,0.10), rgba(34,197,94,0.02)); }
.stat:nth-child(4) .counter { color: #22c55e; }

@media (max-width: 768px) {
  /* use block layout on small screens to avoid flex quirks and overlapping */
  .stats {
    display: block;
    gap: 14px; /* fallback spacing for supporting browsers */
    padding: 30px 0;
  }

  .stat {
    display: block;
    width: 100%;
    margin-bottom: 14px;
    flex: none; /* disable flex sizing when stacked */
    box-sizing: border-box;
  }

  .stat:last-child { margin-bottom: 0; }

  .stat::before { top: 12px; left: 12px; font-size: 20px; }
}







/* ABOUT */


/* ===== ABOUT SECTIONS PREMIUM ===== */

.about {
  padding: 100px 0;
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* IMAGE */
.img-box {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.img-box img {
  width: 100%;
  max-width: 520px; /* limit size on large screens */
  height: auto;
  object-fit: cover;
  border-radius: 20px;
  transition: transform 0.6s ease, box-shadow .3s ease;
}

/* HOVER IMAGE */
.img-box:hover img {
  transform: scale(1.05);
  box-shadow: 0 24px 60px rgba(2,6,23,0.08);
}

@media (max-width: 768px) {
  .img-box img { max-width: 100%; }
}

/* TEXT */
.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 15px;
  line-height: 1.7;
  color: #475569;
}

.about-text ul {
  margin: 20px 0;
}

.about-text li {
  margin-bottom: 10px;
  font-weight: 500;
}

/* ===== STYLE ALTERNÉ ===== */

.about-alt .about-grid {
  direction: rtl;
}

.about-alt .about-text {
  direction: ltr;
}

/* ===== ANIMATION SCROLL ===== */

.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

/* ===== GLASS EFFECT PREMIUM ===== */

.about::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(99, 102, 241, 0.15);
  filter: blur(120px);
  top: -50px;
  left: -50px;
  z-index: -1;
}

/* ===== RESPONSIVE ===== */

@media(max-width:768px){
  .about-grid {
    grid-template-columns: 1fr;
  }

  .img-box img {
    max-width: 100%;
    height: auto;
  }

  .about-alt .about-grid {
    direction: ltr;
  }
}

/* SIMULATOR */
.simulator {
  background:#f8fafc;
  padding:60px 0;
}

.sim-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
}

.result-box {
  background:white;
  padding:30px;
  border-radius:12px;
  box-shadow:0 10px 30px rgba(0,0,0,0.1);
}






/* WHY */
/* ===== WHY SECTION PREMIUM ===== */

.why-section {
  padding: 120px 0;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  position: relative;
}

/* HEADER */
.why-header {
  text-align: center;
  max-width: 700px;
  margin: auto;
  margin-bottom: 60px;
}

.why-header h2 {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.why-header p {
  color: #64748b;
  line-height: 1.7;
}

/* GRID */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

/* CARD */
.why-card {
  background: white;
  padding: 35px;
  border-radius: 20px;
  text-align: left;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* HOVER EFFECT STRIPE STYLE */
.why-card::before {
  content: "";
  position: absolute;
  width: 150%;
  height: 150%;
  background: linear-gradient(120deg, transparent, rgba(99,102,241,0.15), transparent);
  top: -100%;
  left: -100%;
  transition: 0.6s;
}

.why-card:hover::before {
  top: 0;
  left: 0;
}

.why-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

/* ICON */
.icon {
  font-size: 2rem;
  margin-bottom: 15px;
}

/* TEXT */
.why-card h3 {
  margin-bottom: 10px;
}

.why-card p {
  color: #475569;
  line-height: 1.6;
}

/* CTA */
.why-cta {
  text-align: center;
  margin-top: 50px;
}

/* GLOW BACKGROUND (Stripe style) */
.why-section::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: rgba(99,102,241,0.15);
  filter: blur(120px);
  top: -100px;
  right: -100px;
}

/* ANIMATION */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

/* MOBILE */
@media(max-width:768px){
  .why-grid {
    grid-template-columns: 1fr;
  }

  .why-header h2 {
    font-size: 2rem;
  }
}



/* TESTIMONIAL */
/* ===== TESTIMONIALS PREMIUM ===== */

.testimonials-section {
  padding: 120px 0;
  background: linear-gradient(180deg, #f8fafc, #ffffff);
  position: relative;
}

/* HEADER */
.testimonials-header {
  text-align: center;
  max-width: 700px;
  margin: auto;
  margin-bottom: 60px;
}

.testimonials-header h2 {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.testimonials-header p {
  color: #64748b;
  line-height: 1.7;
}

/* SLIDER */
.testimonial-slider {
  position: relative;
  max-width: 800px;
  margin: auto;
}

/* CARD */
.testimonial-card {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: all 0.6s ease;
  position: absolute;
  width: 100%;
}

.testimonial-card.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  position: relative;
}

/* TEXT */
.testimonial-text {
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 25px;
  color: #334155;
}

/* USER */
.testimonial-user {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonial-user img {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-user span {
  display: block;
  font-size: 0.9rem;
  color: #64748b;
}

/* DOTS */
.testimonial-dots {
  text-align: center;
  margin-top: 30px;
}

.testimonial-dots span {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #cbd5f5;
  border-radius: 50%;
  margin: 5px;
  cursor: pointer;
}

.testimonial-dots span.active {
  background: #6366f1;
}

/* GLOW BACKGROUND */
.testimonials-section::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: rgba(99,102,241,0.15);
  filter: blur(120px);
  bottom: -100px;
  left: -100px;
}

/* MOBILE */
@media(max-width:768px){
  .testimonial-card {
    padding: 25px;
  }

  .testimonials-header h2 {
    font-size: 2rem;
  }
}






/* MOBILE */
@media(max-width:768px){
  .about-grid, .sim-grid, .why-grid {
    grid-template-columns:1fr;
  }
}

/* TRUST BAR - style for homepage trust section */
.trust {
  margin: 32px 0;
  padding: 18px 22px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, rgba(99,102,241,0.08) 0%, rgba(14,165,233,0.03) 100%);
  box-shadow: 0 10px 30px rgba(2,6,23,0.06);
}

.trust::before {
  /* small bank/building SVG icon as data URI */
  content: "";
  display: inline-block;
  width: 44px;
  height: 44px;
  margin-right: 14px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236366f1'><path d='M12 2L2 7h20L12 2z'/><path d='M4 9v2h2V9H4zm4 0v2h2V9H8zm4 0v2h2V9h-2zm4 0v2h2V9h-2z'/><path d='M3 13v6h18v-6H3z' fill='%231e293b' opacity='0.15'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
}

.trust p {
  margin: 0;
  color: #0f172a; /* ensure contrast on light gradient */
  font-weight: 600;
  letter-spacing: 0.4px;
  font-size: 1rem;
  display: inline-block;
  text-align: center;
}

@media (max-width: 520px) {
  .trust {
    padding: 12px 14px;
    margin: 20px 0;
  }

  .trust::before { display: none; }

  .trust p { font-size: 0.95rem; }
}


