:root {
  --primary-color: #1A237E;
  --secondary-color: #283593;
  --accent-color: #5C6BC0;
  --accent-alt-color: #FF4081;
  --light-color: #E8EAF6;
  --white-color: #FFFFFF;
  --dark-color: #121858;
  --grey-color: #F5F5F5;
  --gradient: linear-gradient(135deg, #1A237E, #3949AB);
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  --border-radius: 6px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Open Sans', 'Helvetica', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: var(--light-color);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header Styles */
.header {
  background-color: var(--primary-color);
  color: var(--white-color);
  box-shadow: var(--shadow);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--white-color);
}

.logo img {
  height: 38px;
  margin-right: 0.8rem;
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.main-nav {
  display: flex;
}

.main-nav ul {
  display: flex;
  list-style: none;
}

.main-nav li {
  margin-left: 1.5rem;
}

.main-nav a {
  color: var(--light-color);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-alt-color);
  transition: width 0.3s;
}

.main-nav a:hover {
  color: var(--white-color);
}

.main-nav a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white-color);
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-nav {
  display: none;
}

/* Hero Section */
.hero {
  background-image: var(--gradient);
  color: var(--white-color);
  padding: 8rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1.2rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.btn-wrapper {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  display: inline-block;
  background-color: var(--accent-alt-color);
  color: var(--white-color);
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 15px rgba(0, 0, 0, 0.25);
  background-color: #ff6ba3;
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
}

/* Features Section */
.features {
  padding: 5rem 0;
  background-color: var(--white-color);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--accent-alt-color);
}

.section-description {
  max-width: 700px;
  margin: 0 auto;
  color: #666;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  background-color: var(--grey-color);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background-color: var(--accent-alt-color);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
}

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.feature-card p {
  color: #666;
  font-size: 0.95rem;
}

/* How It Works Section */
.how-it-works {
  padding: 5rem 0;
  background-color: var(--light-color);
}

.steps-container {
  position: relative;
  max-width: 900px;
  margin: 3rem auto 0;
  padding: 0 1rem;
}

.steps-container::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background-color: var(--accent-color);
}

.step {
  position: relative;
  margin-bottom: 3rem;
  display: flex;
}

.step:last-child {
  margin-bottom: 0;
}

.step:nth-child(odd) {
  justify-content: flex-start;
}

.step:nth-child(even) {
  justify-content: flex-end;
}

.step-content {
  width: calc(50% - 30px);
  padding: 1.5rem;
  background-color: var(--white-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  position: relative;
}

.step-number {
  position: absolute;
  top: 0;
  width: 40px;
  height: 40px;
  background-color: var(--accent-alt-color);
  color: var(--white-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  z-index: 2;
}

.step:nth-child(odd) .step-number {
  right: -50px;
}

.step:nth-child(even) .step-number {
  left: -50px;
}

.step-content h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

/* Stats Section */
.stats {
  background-image: var(--gradient);
  padding: 4rem 0;
  color: var(--white-color);
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.stat-item {
  padding: 1rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--accent-alt-color);
}

.stat-text {
  font-size: 1rem;
  opacity: 0.9;
}

/* FAQ Section */
.faq {
  padding: 5rem 0;
  background-color: var(--white-color);
}

.faq-container {
  max-width: 800px;
  margin: 3rem auto 0;
}

.faq-item {
  margin-bottom: 1rem;
  border: 1px solid #e0e0e0;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.faq-question {
  padding: 1.2rem;
  background-color: var(--grey-color);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--primary-color);
}

.faq-toggle {
  width: 24px;
  height: 24px;
  background-color: var(--accent-color);
  color: var(--white-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.faq-answer {
  padding: 0 1.2rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 1.2rem;
  max-height: 300px;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

/* CTA Section */
.cta {
  padding: 4rem 0;
  background-color: var(--primary-color);
  color: var(--white-color);
  text-align: center;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.cta p {
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Footer */
.footer {
  background-color: var(--dark-color);
  color: var(--white-color);
  padding: 4rem 0 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-col h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
  position: relative;
  padding-bottom: 0.8rem;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent-alt-color);
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1.2rem;
}

.footer-logo img {
  height: 40px;
  margin-right: 0.8rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--accent-alt-color);
}

.footer-text {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  font-size: 0.95rem;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media screen and (max-width: 992px) {
  .steps-container::before {
    left: 30px;
  }
  
  .step {
    justify-content: flex-start;
    padding-left: 60px;
  }
  
  .step-content {
    width: 100%;
  }
  
  .step-number {
    left: 10px !important;
    right: auto !important;
  }
}

@media screen and (max-width: 768px) {
  html {
    font-size: 15px;
  }
  
  .hero h1 {
    font-size: 2.3rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .main-nav {
    display: none;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  }
  
  .mobile-nav.show {
    display: block;
  }
  
  .mobile-nav ul {
    list-style: none;
  }
  
  .mobile-nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .mobile-nav li:last-child {
    border-bottom: none;
  }
  
  .mobile-nav a {
    display: block;
    padding: 1rem 2rem;
    color: var(--light-color);
    text-decoration: none;
    transition: background-color 0.3s;
  }
  
  .mobile-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white-color);
  }
  
  .btn-wrapper {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    text-align: center;
    margin-bottom: 0.5rem;
  }
}

@media screen and (max-width: 576px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background-color: var(--light-color);
}

::-webkit-scrollbar-thumb {
  background-color: var(--accent-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--primary-color);
}
