:root {
  --primary-color: #2C7FB2;
  --secondary-color: #3498DB;
  --accent-color: #2ECC71;
  --light-color: #ECF1F1;
  --dark-color: #1D2A3C;
  --gradient-primary: linear-gradient(135deg, #2C7FB2 0%, #3498DB 100%);
  --hover-color: #2465A0;
  --background-color: #F8FAFB;
  --text-color: #2C7FB2;
  --border-color: rgba(44, 127, 178, 0.2);
  --divider-color: rgba(52, 152, 219, 0.15);
  --shadow-color: rgba(44, 127, 178, 0.15);
  --highlight-color: #F4D03F;
  --main-font: 'Merriweather', serif;
  --alt-font: 'Poppins', sans-serif;
}

/* Base styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
}

body {
  font-family: var(--alt-font);
  color: var(--text-color);
  background: linear-gradient(135deg, #F8FAFB 0%, var(--light-color) 100%);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  max-width: 100%;
  min-width: 320px;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Typography */
h1, h2, h3 {
  font-family: var(--main-font);
  font-weight: 700;
  color: var(--primary-color);
  margin: 0 0 1rem 0;
}

h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  line-height: 1.3;
}

h3 {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  line-height: 1.4;
}

p {
  margin: 0 0 1rem 0;
  font-size: clamp(1rem, 2vw, 1.125rem);
}

/* Mobile Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 4px;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(5px);
}

.hamburger .line {
  width: 22px;
  height: 2px;
  background: var(--primary-color);
  margin: 2px 0;
  transition: 0.3s;
  border-radius: 1px;
}

#menu-toggle {
  display: none;
}

#menu-toggle:checked ~ .mobile-nav {
  max-height: 400px;
  opacity: 1;
}

.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
}

.mobile-nav ul {
  padding: 2rem;
  margin: 0;
  list-style: none;
}

.mobile-nav li {
  margin: 1rem 0;
}

.mobile-nav a {
  display: block;
  padding: 0.8rem 0;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid transparent;
}

.mobile-nav a:hover {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

/* Header */
header {
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-color);
  padding: 1.5rem 0;
  position: relative;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(44, 127, 178, 0.1);
  backdrop-filter: blur(10px);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 3rem;
  width: auto;
}

/* Navigation */
.navigation ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.navigation a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: all 0.3s ease;
}

.navigation a:hover {
  color: var(--primary-color);
}

/* Grid layouts */
.grid {
  display: grid;
  max-width: 100%;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 100%;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 100%;
}

/* Feature Cards */
.feature-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  box-shadow: 0 2px 15px rgba(44, 127, 178, 0.1);
  transition: all 0.3s ease;
  text-align: center;
  backdrop-filter: blur(5px);
  max-width: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(44, 127, 178, 0.2);
  border-color: var(--accent-color);
}

.feature-icon {
  font-size: 3rem;
  margin: 0 auto 1.5rem auto;
  color: var(--primary-color);
  width: 85px;
  height: 85px;
  background: rgba(44, 127, 178, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(44, 127, 178, 0.2);
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: var(--gradient-primary);
  color: white;
  transform: scale(1.1);
}

/* Testimonials */
.testimonial {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem;
  margin: 1rem 0;
  box-shadow: 0 3px 15px rgba(44, 127, 178, 0.08);
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  max-width: 100%;
}

.testimonial:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(44, 127, 178, 0.15);
}

/* FAQ Items */
.faq-item {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  margin: 1rem 0;
  box-shadow: 0 2px 10px rgba(44, 127, 178, 0.05);
  transition: all 0.3s ease;
  padding: 1.8rem 2rem;
  backdrop-filter: blur(5px);
  max-width: 100%;
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(44, 127, 178, 0.12);
  border-color: var(--primary-color);
}

/* Form Styles */
input,
textarea {
  transition: all 0.3s ease;
  font-family: var(--alt-font);
  border: 2px solid var(--border-color);
  border-radius: 6px;
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-color);
  font-size: 1rem;
  width: 100%;
  backdrop-filter: blur(5px);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(44, 127, 178, 0.1);
  background: white;
}

/* Buttons */
.btn,
button {
  transition: all 0.3s ease;
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  font-family: var(--alt-font);
  cursor: pointer;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  box-shadow: 0 3px 15px rgba(44, 127, 178, 0.3);
}

.btn:hover,
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(44, 127, 178, 0.4);
}

/* Statistics Cards */
.stat-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.8rem;
  text-align: center;
  box-shadow: 0 3px 15px rgba(44, 127, 178, 0.1);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  max-width: 100%;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(44, 127, 178, 0.2);
}

.stat-number {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--primary-color);
  font-family: var(--main-font);
  line-height: 1;
}

.stat-text {
  font-size: 1rem;
  color: var(--text-color);
  margin-top: 0.5rem;
  font-weight: 500;
}

/* Trust Indicators */
.trust-indicator {
  background: rgba(255, 255, 255, 0.7);
  padding: 1.2rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 15px rgba(44, 127, 178, 0.08);
  transition: all 0.3s ease;
  text-align: center;
  backdrop-filter: blur(10px);
  max-width: 100%;
}

.trust-indicator:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 25px rgba(44, 127, 178, 0.15);
}

/* Footer */
footer {
  background: var(--gradient-primary);
  color: white;
  padding: 3rem 0 1rem;
}

footer img[alt="logo"] {
  filter: brightness(0) invert(1);
}

/* Pattern Background */
.pattern-bg {
  background-image: 
    linear-gradient(rgba(44, 127, 178, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 127, 178, 0.02) 1px, transparent 1px);
  background-size: 30px 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  .navigation {
    display: none;
  }
  
  .mobile-nav {
    display: block;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }
  
  .feature-icon {
    width: 70px;
    height: 70px;
    font-size: 2.5rem;
  }
  
  .feature-card,
  .testimonial,
  .faq-item {
    padding: 2rem 1.5rem;
  }
  
  .stat-card {
    padding: 1.5rem;
  }
  
  .trust-indicator {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }
  
  .feature-card,
  .testimonial,
  .faq-item {
    padding: 1.5rem 1rem;
  }
  
  .stat-card {
    padding: 1.2rem;
  }
  
  .trust-indicator {
    padding: 0.8rem;
  }
  
  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }
}

/* Focus States */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}