:root{
  --primary:#2563eb;
  --secondary:#60a5fa;
  --dark:#0f172a;
  --gray:#64748b;
  --light:#f1f5f9;
  --white:#ffffff;
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:'Inter', sans-serif;
}

body{
  background: radial-gradient(circle at top, #eaf2ff, #ffffff);
  color:var(--dark);
  overflow-x:hidden;
}

.navbar{
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 14px 8%;
  background: #fff;

  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo-img{
  height: 65px;
  width: auto;
  display: block;
}

.nav-links{
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li{
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  cursor: pointer;
  transition: 0.3s;
  padding: 6px 0;
}

.nav-links li:hover{
  color: var(--primary);
}

.nav-buttons{
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-login{
  background: transparent;
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.4);

  padding: 9px 18px;
  border-radius: 10px;

  font-weight: 600;
  font-size: 13px;

  cursor: pointer;
  transition: 0.3s;
}

.btn-login:hover{
  background: var(--primary);
  color: #fff;
}

/* PRIMARY BUTTON */
.btn-primary{
  background: var(--primary);
  color: #fff;

  padding: 9px 18px;
  border-radius: 10px;

  border: none;
  font-weight: 600;
  font-size: 13px;

  cursor: pointer;
  transition: 0.3s;
}

.btn-primary:hover{
  background: #1d4ed8;
}

@media (max-width: 992px){
  .nav-links{
    gap: 18px;
  }
}

@media (max-width: 768px){
  .navbar{
    flex-wrap: wrap;
    gap: 10px;
  }

  .nav-links{
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 10px;
  }

  .nav-buttons{
    margin-left: auto;
  }
}

.hero{
  text-align:center;
  padding:80px 20px 40px;
  position:relative;
}

.badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;

  background: transparent;
  color: var(--primary);

  padding: 8px 14px;
  border-radius: 50px;

  font-size: 12px;
  font-weight: 600;

  border: 1px solid rgba(37, 99, 235, 0.35);
  position: relative;

  transition: all 0.3s ease;
}

.badge:hover{
  background: rgba(37, 99, 235, 0.08);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.badge::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50px;
  padding: 1px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.6;
}

.hero h1{
  font-size:60px;
  margin-top:20px;
  line-height:1.1;
}

.hero h1 span{
  color:var(--primary);
}

.hero p{
  max-width:650px;
  margin:20px auto;
  color:var(--gray);
  font-size:15px;
  line-height:1.6;
}

.actions{
  display:flex;
  justify-content:center;
  gap:15px;
  margin-top:25px;
}

.btn-primary{
  background:var(--primary);
  color:white;
  padding:12px 22px;
  border-radius:12px;
  border:none;
  font-weight:600;
}

.btn-primary:hover{
  background: #ffffff; 
  color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.btn-outline{
  background:white;
  border:1px solid #dbeafe;
  padding:12px 22px;
  border-radius:12px;
  font-weight:600;
}

.section{
  padding:80px 8%;
}

.section-title{
  text-align:center;
  font-size:30px;
  font-weight:700;
  margin-bottom:40px;
}

.why-section{
  padding: 90px 20px;
  background: var(--light);
  font-family: 'Inter', sans-serif;
}

.section-header{
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2{
  font-size: 36px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.section-header p{
  color: var(--gray);
  font-size: 16px;
}

.why-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.why-card{
  background: var(--white);
  border-radius: 18px;
  padding: 32px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition: all 0.3s ease;
  position: relative;
}

.why-card:hover{
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 18px 45px rgba(37, 99, 235, 0.15);
}

.why-card h3{
  font-size: 18px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 12px;
}

.why-card p{
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
}

@media (max-width: 992px){
  .why-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px){
  .why-grid{
    grid-template-columns: 1fr;
  }

  .section-header h2{
    font-size: 28px;
  }
}

.features-section{
  padding: 90px 20px;
  background: var(--light);
  font-family: 'Inter', sans-serif;
}

.section-header{
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2{
  font-size: 36px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.section-header p{
  color: var(--gray);
  font-size: 16px;
}

.features-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card{
  background: var(--white);
  border-radius: 16px;
  padding: 28px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card:hover{
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.12);
}

.feature-card::before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: 0.4s ease;
}

.feature-card:hover::before{
  width: 100%;
}

.feature-card h3{
  font-size: 18px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 10px;
}

.feature-card p{
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
}

@media (max-width: 992px){
  .features-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px){
  .features-grid{
    grid-template-columns: 1fr;
  }

  .section-header h2{
    font-size: 28px;
  }
}

.how-section{
  padding: 90px 20px;
  background: var(--white);
  font-family: 'Inter', sans-serif;
}

.section-header{
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2{
  font-size: 36px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.section-header p{
  color: var(--gray);
  font-size: 16px;
}

.steps-flow{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  position: relative;
}

.steps-flow::before{
  content: "";
  position: absolute;
  top: 40px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  z-index: 0;
}

.step-card{
  flex: 1;
  background: var(--light);
  padding: 30px;
  border-radius: 18px;
  text-align: center;
  position: relative;
  z-index: 1;

  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.step-card:hover{
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.12);
}

.step-number{
  width: 50px;
  height: 50px;
  margin: 0 auto 15px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--primary);
  color: #fff;
  font-weight: 700;
  border-radius: 50%;
  font-size: 16px;

  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
}

.step-card h4{
  font-size: 18px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 10px;
}

.step-card p{
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
}

@media (max-width: 992px){
  .steps-flow{
    flex-direction: column;
  }

  .steps-flow::before{
    display: none;
  }

  .step-card{
    width: 100%;
  }
}

/* CARDS */
.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:20px;
}

.card{
  background:white;
  padding:25px;
  border-radius:16px;
  box-shadow:0 10px 30px rgba(15,23,42,0.06);
  transition:0.3s;
}

.card:hover{
  transform:translateY(-5px);
}

.card h3{
  color:var(--primary);
  margin-bottom:10px;
  font-size:16px;
}

.card p{
  font-size:13px;
  color:var(--gray);
  line-height:1.6;
}

/* STEPS */
.steps{
  display:flex;
  gap:20px;
  flex-wrap:wrap;
  justify-content:center;
}

.step{
  flex:1;
  min-width:220px;
  text-align:center;
  padding:20px;
}

.step-number{
  width:40px;
  height:40px;
  background:var(--primary);
  color:white;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 auto 10px;
  font-weight:700;
}

/* FOOTER */
.footer{
  background: linear-gradient(180deg, #0b1220 0%, #070b14 100%);
  color: white;
  padding: 70px 8% 30px;
  margin-top: 60px;
  font-family: 'Inter', sans-serif;
  position: relative;
  overflow: hidden;
}

.footer::before{
  content: "";
  position: absolute;
  top: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: var(--primary);
  filter: blur(120px);
  opacity: 0.15;
}

.footer-container{
  position: relative;
}

.footer-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}

.footer-col h3{
  font-size: 20px;
  margin-bottom: 12px;
  color: #ffffff;
}

.footer-col h4{
  font-size: 15px;
  margin-bottom: 14px;
  color: #ffffff;
}

.footer-col p{
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.7;
}

.footer-col ul{
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li{
  margin-bottom: 10px;
}

.footer-col a{
  text-decoration: none;
  color: #94a3b8;
  font-size: 13px;
  transition: all 0.3s ease;
  position: relative;
}

.footer-col a:hover{
  color: var(--secondary);
  padding-left: 6px;
}

.footer-bottom{
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}

.footer-bottom p{
  font-size: 12px;
  color: #64748b;
}

.footer-logo{
  margin-bottom: 15px;
}

.footer-logo img{
  height: 42px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1); /* makes logo white for dark footer */
  transition: 0.3s ease;
}

/* optional hover effect */
.footer-logo img:hover{
  transform: scale(1.05);
  filter: brightness(1) invert(0);
}

.bottom{
  text-align:center;
  margin-top:30px;
  font-size:12px;
  color:#94a3b8;
  border-top:1px solid #1f2937;
  padding-top:20px;
}

/* MOBILE */
@media(max-width:768px){
  .hero h1{font-size:36px;}
  nav ul{display:none;}
}

.back-to-top{
  position: fixed;
  right: 25px;
  bottom: 25px;
  width: 50px;
  height: 50px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(135deg, #2563eb, #60a5fa);
  color: #fff;
  border-radius: 14px;

  font-size: 18px;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);

  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);

  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top:hover{
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.45);
}

/* show state */
.back-to-top.show{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ================= GLOBAL MOBILE FIX ================= */
@media (max-width: 1024px){

  .section{
    padding: 70px 6%;
  }

  .hero h1{
    font-size: 42px;
  }

  .why-grid,
  .features-grid{
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-flow{
    gap: 20px;
  }
}

/* ================= TABLET FIX ================= */
@media (max-width: 768px){

  /* NAVBAR FIX */
  .navbar{
    flex-wrap: wrap;
    padding: 12px 5%;
  }

  .nav-links{
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
  }

  .nav-buttons{
    width: 100%;
    justify-content: center;
    margin-top: 10px;
  }

  /* HERO FIX */
  .hero{
    padding: 70px 15px 40px;
  }

  .hero h1{
    font-size: 32px;
  }

  .hero p{
    font-size: 14px;
  }

  .actions{
    flex-direction: column;
    align-items: center;
  }

  /* GRID FIX (MOST IMPORTANT) */
  .grid,
  .why-grid,
  .features-grid{
    grid-template-columns: 1fr;
  }

  /* STEPS FLOW FIX */
  .steps-flow{
    flex-direction: column;
  }

  .steps-flow::before{
    display: none;
  }

  .step-card{
    width: 100%;
  }

  /* SECTION HEADER FIX */
  .section-header h2{
    font-size: 28px;
  }
}

/* ================= MOBILE FIX ================= */
@media (max-width: 480px){

  .hero h1{
    font-size: 26px;
  }

  .hero p{
    font-size: 13px;
  }

  .btn-primary,
  .btn-login,
  .btn-outline{
    width: 100%;
    text-align: center;
  }

  .nav-links li{
    font-size: 13px;
  }

  .section{
    padding: 60px 5%;
  }

  .card,
  .feature-card,
  .why-card{
    padding: 18px;
  }

  .section-title{
    font-size: 24px;
  }
}