/* RESET */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:Arial,sans-serif;
}

html{
  scroll-behavior:smooth;
}

body{
  background:#fff;
  overflow-x:hidden;
}

/* CONTAINER */
.container{
  width:90%;
  max-width:1200px;
  margin:auto;
}

/* =========================
   HEADER
========================= */

header{
  background:rgba(255,255,255,0.95);
  backdrop-filter:blur(10px);
  position:sticky;
  top:0;
  z-index:1000;
  border-bottom:1px solid #eee;
}

/* NAVBAR */
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:15px 0;
  position:relative;
}

.logo{
  height:20px;
}

/* NAV LINKS */
.nav-links{
  display:flex;
  align-items:center;
  gap:30px;
  margin-left:auto;
}

.nav-links a{
  text-decoration:none;
  color:#000;
  font-size:14px;
  font-weight:500;
  transition:.3s;
}

.nav-links a:hover{
  color:#3434ff;
}

/* APPLY BUTTON */
.Login{
  background:#3434ff;
  color:#fff !important;
  padding:10px 18px;
  border-radius:6px;
}

/* DROPDOWN */
.dropdown{
  position:relative;
}

.dropdown-menu{
  position:absolute;
  top:110%;
  left:0;
  background:#fff;
  min-width:220px;
  border-radius:8px;
  box-shadow:0 10px 25px rgba(0,0,0,0.08);
  padding:8px 0;
  opacity:0;
  visibility:hidden;
  transform:translateY(10px);
  transition:.3s;
  z-index:999;
}

.dropdown-menu a{
  display:block;
  padding:10px 16px;
}

.dropdown:hover .dropdown-menu{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

/* HAMBURGER */
.menu-toggle{
  display:none;
  font-size:30px;
  cursor:pointer;
}

/* =========================
   HERO
========================= */

.hero{
  background:#3434ff;
  color:#fff;
}

.hero .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:40px;
  min-height:90vh;
  padding:60px 0;
}

.hero .content{
  flex:1;
}

.hero .content h2{
  font-size:32px;
  margin-bottom:15px;
}

.hero .content p{
  font-size:64px;
  font-weight:bold;
  line-height:1.1;
  margin-bottom:20px;
}

.hero .content h6{
  font-size:18px;
  line-height:1.7;
  margin-bottom:25px;
}

.hero .btn{
  display:inline-block;
  padding:10px;
  background:#fff;
  color:#3434ff;
  text-decoration:none;
  border-radius:6px;
  margin-right:10px;
  margin-top:10px;
  width: 120px;
}

.hero .picture{
  flex:1;
  background:url('./images/imgi_4_Avant_Logos.png') no-repeat center center;
  background-size:cover;
  display:flex;
  align-items:center;
  justify-content:center;
}

.hero .picture img{
  width:100%;
  max-width:450px;
  object-fit:contain;
}

/* =========================
   SOLUTIONS
========================= */

.solutions-container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:40px;
  padding:80px 0;
}

.solutions-content,
.solutions-image{
  flex:1;
}

.solutions-content h2{
  font-size:42px;
  line-height:1.2;
}

.solutions-content span{
  color:#1f8ef1;
}

.solutions-content p{
  margin:20px 0;
  line-height:1.8;
}

.btn-outline{
  display:inline-block;
  padding:12px 24px;
  border:2px solid #1f8ef1;
  border-radius:6px;
  color:#1f8ef1;
  text-decoration:none;
  width: 300px;
}

.solutions-image{
  display:flex;
  justify-content:center;
}

.solutions-image img{
  width:100%;
  max-width:350px;
}

/* =========================
   TOOLS
========================= */

.tools{
  background:#f5f7fa;
  padding:80px 0;
}

.tools-header{
  margin-bottom:50px;
}

.tools-header h2{
  font-size:42px;
}

.tools-header span{
  color:#3434ff;
}

.tools-cards{
  display:flex;
  gap:30px;
}

.tool-card{
  background:#fff;
  padding:30px;
  border-radius:10px;
  flex:1;
}

.tool-card img{
  width:100%;
  max-width:350px;
}

.tool-card h3{
  margin:20px 0 10px;
}

.tool-card p{
  line-height:1.8;
  margin-bottom:20px;
}

/* =========================
   REVIEWS
========================= */

.reviews{
  background:#f2f2f2;
  padding:70px 0;
  overflow:hidden;
}

.reviews-container{
  display:flex;
  gap:40px;
  align-items:flex-start;
}

/* LEFT SIDE */
.reviews-summary{
  width:28%;
}

.reviews-summary h2{
  font-size:36px;
  margin-bottom:15px;
}

.reviews-summary p{
  font-size:16px;
  margin-top:10px;
  line-height:1.6;
}

.trustpilot{
  margin-top:10px;
  font-size:18px;
  font-weight:bold;
}

/* STARS */
.tp-stars{
  display:flex;
  gap:5px;
  flex-wrap:wrap;
}

.tp-stars span{
  background:#00b67a;
  color:#fff;
  padding:6px 8px;
  border-radius:2px;
  font-size:14px;
}

/* RIGHT SIDE */
.reviews-cards{
  width:72%;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
  position:relative;
}

/* CARD */
.review-card{
  background:#fff;
  padding:20px;
  border-radius:10px;
  min-width:0;
  overflow:hidden;
  word-wrap:break-word;
}

.review-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:15px;
  flex-wrap:wrap;
}

.invited{
  font-size:13px;
  color:#444;
  white-space:nowrap;
}

.review-card h4{
  font-size:24px;
  margin-bottom:10px;
  line-height:1.4;
}

.review-card p{
  font-size:16px;
  line-height:1.7;
  color:#333;
  margin-bottom:15px;
}

.author{
  font-size:14px;
  color:#666;
  line-height:1.5;
}

/* ARROWS */
.arrow{
  position:absolute;
  top:45%;
  transform:translateY(-50%);
  width:40px;
  height:40px;
  background:#fff;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow:0 2px 10px rgba(0,0,0,0.1);
}

.arrow.left{
  left:-15px;
}

.arrow.right{
  right:-15px;
}

/* FOOTER */
.reviews-footer{
  margin-top:40px;
}

.reviews-footer p{
  font-size:14px;
  line-height:1.7;
  color:#333;
}

/* =========================
   SUPPORT
========================= */

.support{
  padding:80px 20px;
  text-align:center;
  background:#e8e8e8;
}

.subtitle{
  font-size:20px;
  font-weight:700;
  margin-bottom:10px;
}

.title{
  font-size:56px;
  color:#1f5eff;
  margin-bottom:20px;
}

.description{
  margin-bottom:50px;
}

.cards{
  display:flex;
  gap:25px;
  justify-content:center;
  flex-wrap:wrap;
}

.card{
  background:#fff;
  border-radius:10px;
  padding:30px 25px;
  width:320px;
}

.icon{
  height:140px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.icon img{
  width:100%;
  max-width:200px;
}

.card p{
  margin:20px 0;
  line-height:1.8;
}

.card button{
  width:100%;
  padding:12px;
  border:2px solid #1f5eff;
  background:transparent;
  color:#1f5eff;
  border-radius:4px;
  cursor:pointer;
}

/* =========================
   APP
========================= */

.app-section{
  padding:80px 20px;
}

.app-content{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:40px;
}

.app-text,
.app-image{
  flex:1;
}

.app-image{
  display:flex;
  justify-content:center;
}

.app-image img{
  width:100%;
  max-width:320px;
}

.store-buttons{
  display:flex;
  gap:15px;
  flex-wrap:wrap;
}

.store-buttons img{
  height:45px;
}

/* =========================
   LEARN
========================= */

.learn-section{
  padding:80px 20px;
  background:#e8e8e8;
}

.learn-cards{
  display:flex;
  gap:30px;
  flex-wrap:wrap;
}

.learn-card{
  background:#fff;
  border-radius:10px;
  overflow:hidden;
  flex:1;
  min-width:280px;
}

.learn-card img{
  width:100%;
}

.image-box{
  background:#f2f3f5;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:350px;
}

.card-content{
  padding:25px;
}

.card-content p{
  line-height:1.8;
}

button{
  padding:10px 18px;
  border:2px solid #1f5eff;
  background:transparent;
  color:#1f5eff;
  border-radius:4px;
  cursor:pointer;
}

/* =========================
   FINANCE HERO
========================= */

.finance-hero{
  position:relative;
  width:100%;
  min-height:100vh;
  background:url("./images/imgi_41_Avant_Candid8_45893.png") center center no-repeat;
  background-size:cover;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:120px 20px 80px;
  overflow:hidden;
}

.finance-overlay{
  position:absolute;
  inset:0;
  background:rgba(45,85,230,0.88);
  z-index:1;
}

.finance-content{
  position:relative;
  z-index:2;
  width:100%;
  max-width:1000px;
  margin:auto;
}

.finance-content h1{
  color:#fff;
  font-size:64px;
  font-weight:700;
  line-height:1.15;
  margin-bottom:50px;
  text-transform:uppercase;
}

.finance-buttons{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:20px;
  flex-wrap:wrap;
}

.finance-btn{
  display:inline-flex;
  justify-content:center;
  align-items:center;
  min-width:280px;
  padding:18px 28px;
  background:#e5e5e5;
  color:#1d4ed8;
  text-decoration:none;
  border-radius:6px;
  font-weight:700;
}

/* =========================
   DISCLAIMER
========================= */

.finance-disclaimer{
  background:#f5f5f5;
  padding:60px 20px;
}

.disclaimer-container{
  max-width:1100px;
  margin:auto;
  line-height:1.8;
  color:#6b7280;
}

.disclaimer-container p{
  margin-bottom:16px;
}

.disclaimer-logos{
  display:flex;
  gap:20px;
  flex-wrap:wrap;
  margin-top:30px;
}

.disclaimer-logos img{
  height:40px;
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:1024px){

  .hero .container,
  .solutions-container,
  .reviews-container,
  .app-content{
    flex-direction:column;
    text-align:center;
  }

  .tools-cards,
  .learn-cards{
    flex-direction:column;
  }

  .reviews-summary,
  .reviews-cards{
    width:100%;
  }

  .solutions-content,
  .solutions-image{
    width:100%;
  }

  .reviews-cards{
    grid-template-columns:repeat(2,1fr);
  }

  .finance-content h1{
    font-size:42px;
  }
}

@media(max-width:768px){

  .menu-toggle{
    display:block;
  }

  .nav-links{
    position:absolute;
    top:70px;
    right:0;
    width:100%;
    background:#fff;
    flex-direction:column;
    align-items:flex-start;
    padding:20px;
    gap:20px;
    opacity:0;
    visibility:hidden;
    transform:translateY(-10px);
    transition:.3s;
  }

  .nav-links.active{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
  }

  .dropdown-menu{
    position:static;
    opacity:1;
    visibility:visible;
    transform:none;
    display:none;
    box-shadow:none;
  }

  .dropdown.active .dropdown-menu{
    display:block;
  }

  .hero .content h2{
    font-size:22px;
  }

  .hero .content p{
    font-size:38px;
  }

  .hero .content h6{
    font-size:15px;
  }

  .hero .btn{
    width:100%;
    text-align:center;
    margin:10px 0;
  }

  .title,
  .tools-header h2,
  .solutions-content h2,
  .finance-content h1{
    font-size:32px;
  }

  .reviews-cards{
    grid-template-columns:1fr;
  }

  .review-top{
    justify-content:center;
  }

  .finance-buttons{
    flex-direction:column;
  }

  .finance-btn{
    width:100%;
    max-width:350px;
    min-width:auto;
  }

  .arrow{
    display:none;
  }

  .finance-hero{
    min-height:auto;
    padding:90px 20px 70px;
  }
}

@media(max-width:480px){

  .container{
    width:94%;
  }

  .hero .content p{
    font-size:30px;
  }

  .hero .content h2{
    font-size:18px;
  }

  .title,
  .tools-header h2,
  .solutions-content h2,
  .finance-content h1{
    font-size:24px;
    line-height:1.3;
  }

  .tool-card,
  .card,
  .card-content{
    padding:20px;
  }

  .store-buttons{
    justify-content:center;
  }

  .store-buttons img{
    height:40px;
  }

  .finance-hero{
    padding:80px 15px 60px;
  }

  .finance-content h1{
    font-size:24px;
  }

  .finance-btn{
    font-size:13px;
    padding:15px;
  }
}



/* =========================
   PREMIUM UX LAYER (NO DESIGN CHANGE — ONLY POLISH)
========================= */

/* smoother typography rendering */
body{
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

/* consistent vertical rhythm across ALL sections */
section{
  padding:100px 0;
}

/* prevent random overflow issues */
img{
  max-width:100%;
  height:auto;
  display:block;
}

/* =========================
   PERFECT ALIGNMENT SYSTEM
========================= */

/* unify flex alignment everywhere */
.hero .container,
.solutions-container,
.reviews-container,
.app-content{
  align-items:center;
}

/* prevent uneven stretching */
.solutions-content,
.hero .content,
.app-text{
  display:flex;
  flex-direction:column;
  justify-content:center;
}

/* =========================
   PREMIUM SPACING FIX (BIG IMPACT)
========================= */

/* consistent spacing between headings & text */
h1, h2, h3{
  letter-spacing:-0.3px;
}

p{
  opacity:0.92;
}

/* fix inconsistent margins across cards */
.tool-card h3,
.card h3,
.review-card h4{
  margin-top:10px;
  line-height:1.3;
}

/* =========================
   FIX OVERLAPPING / STACK ISSUES
========================= */

.reviews,
.learn-section,
.finance-hero{
  isolation:isolate;
}

.review-card,
.tool-card,
.card{
  position:relative;
  z-index:1;
}

/* =========================
   PREMIUM HOVER SYSTEM (SUBTLE UX FEEL)
========================= */

.nav-links a,
.btn,
.btn-outline,
.finance-btn,
button{
  transition:all 0.25s cubic-bezier(.25,.8,.25,1);
}

/* hover lift (very subtle, modern UX feel) */
.tool-card:hover,
.card:hover,
.review-card:hover{
  transform:translateY(-6px);
}

/* buttons feel more “clickable” */
.btn:hover,
.btn-outline:hover,
.finance-btn:hover{
  transform:translateY(-3px) scale(1.01);
}

/* =========================
   IMAGE ALIGNMENT FIX (MOST IMPORTANT)
========================= */

.hero .picture img,
.solutions-image img,
.app-image img{
  object-fit:contain;
  max-height:100%;
}

/* ensures images never break layout */
.hero .picture,
.solutions-image,
.app-image{
  display:flex;
  align-items:center;
  justify-content:center;
}

/* =========================
   FINANCE HERO PREMIUM FIX (NO OVERLAP + PERFECT CENTER)
========================= */

.finance-hero{
  display:flex;
  align-items:center;
  justify-content:center;
}

.finance-content{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:40px;
}

/* better readable headline spacing */
.finance-content h1{
  max-width:900px;
  margin:0 auto;
  letter-spacing:-0.5px;
}

/* =========================
   RESPONSIVE ALIGNMENT POLISH
========================= */

@media(max-width:1024px){

  section{
    padding:80px 0;
  }

  .hero .container,
  .solutions-container,
  .reviews-container,
  .app-content{
    gap:50px;
  }

  .finance-content h1{
    font-size:44px;
  }
}

@media(max-width:768px){

  section{
    padding:70px 0;
  }

  /* center everything cleanly on mobile */
  .hero .content,
  .solutions-content,
  .app-text,
  .reviews-summary{
    text-align:center;
    align-items:center;
  }

  /* fix button stacking */
  .hero .btn{
    display:block;
    width:100%;
    max-width:300px;
    margin:10px auto;
  }

  /* reviews spacing fix */
  .reviews-container{
    gap:30px;
  }

  /* prevent crowding */
  .tool-card,
  .card{
    width:100%;
  }
}

@media(max-width:480px){

  section{
    padding:60px 0;
  }

  .finance-content h1{
    font-size:26px;
  }

  p{
    font-size:14px;
  }
}

/* =========================
   FINAL MICRO-POLISH (UX FEEL)
========================= */

/* subtle fade-in improvement */
section{
  animation:uxFade 0.6s ease both;
}

@keyframes uxFade{
  from{
    opacity:0;
    transform:translateY(18px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}