/* Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-hover);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text-primary);
}

h1 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 1.875rem;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Grid System */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -1rem;
}

.col {
  flex: 1 0 100%;
  padding: 0 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: none;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--accent);
  color: white;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  color: white;
}

.btn-secondary {
  background-color: var(--secondary-500);
  color: white;
}

.btn-secondary:hover {
  background-color: var(--secondary-600);
  color: white;
}

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

.btn-outline:hover {
  background-color: var(--accent);
  color: white;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-secondary);
  box-shadow: 0 2px 10px var(--shadow);
  padding: 1rem 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
}

.logo svg {
  margin-right: 0.5rem;
}

.nav-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
  fill: var(--text-primary);
}

.nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background-color: var(--bg-secondary);
  box-shadow: -2px 0 10px var(--shadow);
  transition: right 0.3s ease;
  z-index: 1001;
  overflow-y: auto;
}

.nav.active {
  right: 0;
}

.nav-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-close svg {
  width: 24px;
  height: 24px;
  fill: var(--text-primary);
}

.nav-list {
  list-style: none;
  padding: 2rem 1rem;
}

.nav-item {
  margin-bottom: 1rem;
}

.nav-link {
  display: block;
  padding: 0.5rem 0;
  color: var(--text-primary);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--accent);
}

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-primary);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: var(--text-primary);
}

/* Sections */
section {
  padding: 3rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 4rem 0;
  background-color: var(--bg-secondary);
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

.hero-cta {
  margin-top: 2rem;
}

.hero-image {
  margin: 2rem auto 0;
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 30px var(--shadow);
}

/* Features Section */
.features {
  background-color: var(--bg-primary);
}

.feature-card {
  background-color: var(--bg-secondary);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 5px 15px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  background-color: var(--primary-100);
}

.feature-icon svg {
  width: 30px;
  height: 30px;
  fill: var(--accent);
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* How It Works Section */
.steps {
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 2rem;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.step-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* Safety Section */
.safety-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
}

.safety-feature {
  flex: 1 0 100%;
  background-color: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px var(--shadow);
}

.safety-icon {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.safety-icon svg {
  width: 24px;
  height: 24px;
  margin-right: 0.5rem;
  fill: var(--success);
}

/* Testimonials Section */
.testimonials {
  background-color: var(--bg-secondary);
}

.testimonial {
  background-color: var(--bg-primary);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 5px 15px var(--shadow);
}

.testimonial-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 1rem;
  object-fit: cover;
}

.testimonial-name {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.testimonial-location {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.testimonial-rating {
  display: flex;
  margin-bottom: 1rem;
}

.testimonial-rating svg {
  width: 16px;
  height: 16px;
  fill: #ffc107;
  margin-right: 0.25rem;
}

/* Pricing Section */
.pricing-table {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.pricing-plan {
  flex: 1 0 100%;
  background-color: var(--bg-secondary);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 5px 15px var(--shadow);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-plan:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px var(--shadow);
}

.pricing-plan.featured {
  border: 2px solid var(--accent);
  position: relative;
}

.pricing-plan.featured::before {
  content: 'Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.pricing-name {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
}

.pricing-feature {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.pricing-feature:last-child {
  border-bottom: none;
}

/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

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

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

.faq-question svg {
  width: 16px;
  height: 16px;
  fill: var(--text-primary);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  background-color: var(--bg-primary);
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 1.25rem;
  max-height: 1000px;
}

/* Reviews Section */
.reviews {
  background-color: var(--bg-primary);
}

.review-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.review-stat {
  flex: 1 0 100%;
  background-color: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 5px 15px var(--shadow);
}

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

.review-label {
  color: var(--text-secondary);
}

.review-bars {
  margin-bottom: 2rem;
}

.review-bar {
  margin-bottom: 1rem;
}

.review-bar-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.review-bar-track {
  height: 8px;
  background-color: var(--neutral-200);
  border-radius: 4px;
  overflow: hidden;
}

.review-bar-fill {
  height: 100%;
  background-color: var(--accent);
  border-radius: 4px;
}

/* About Section */
.about {
  background-color: var(--bg-secondary);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.team {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.team-member {
  flex: 1 0 100%;
  text-align: center;
}

.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  object-fit: cover;
}

.team-name {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.team-role {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

/* Footer */
footer {
  background-color: var(--bg-secondary);
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-col {
  flex: 1 0 100%;
}

.footer-title {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

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

.footer-link {
  margin-bottom: 0.75rem;
}

.footer-link a {
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

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

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-primary);
  transition: background-color 0.3s ease;
}

.social-link:hover {
  background-color: var(--accent);
}

.social-link:hover svg {
  fill: white;
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: var(--text-primary);
  transition: fill 0.3s ease;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--bg-secondary);
  border-radius: 8px;
  max-width: 90%;
  width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  box-shadow: 0 10px 30px var(--shadow);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.modal-close svg {
  width: 24px;
  height: 24px;
  fill: var(--text-primary);
}

.modal-title {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

/* Utilities */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.mb-5 {
  margin-bottom: 3rem;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mt-4 {
  margin-top: 2rem;
}

.mt-5 {
  margin-top: 3rem;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
  background-color: var(--primary-100);
  color: var(--primary-700);
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.badge-verified {
  background-color: var(--success);
  color: white;
}

.badge-new {
  background-color: var(--info);
  color: white;
}

.badge-popular {
  background-color: var(--warning);
  color: var(--neutral-900);
}

.divider {
  height: 1px;
  background-color: var(--border);
  margin: 2rem 0;
}

.card {
  background-color: var(--bg-secondary);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 5px 15px var(--shadow);
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-sm {
  width: 32px;
  height: 32px;
}

.avatar-lg {
  width: 64px;
  height: 64px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-right: 1rem;
  margin-bottom: 1rem;
}

.trust-badge svg {
  width: 20px;
  height: 20px;
  margin-right: 0.5rem;
  fill: var(--success);
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Responsive Breakpoints */
@media (min-width: 576px) {
  .col-sm-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  .col-sm-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
  
  .col-sm-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
  }
}

@media (min-width: 768px) {
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.25rem;
  }
  
  h3 {
    font-size: 1.75rem;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
  
  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
  
  .col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }
  
  .col-md-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
  }
  
  .col-md-9 {
    flex: 0 0 75%;
    max-width: 75%;
  }
  
  .safety-feature {
    flex: 0 0 calc(50% - 1.5rem);
  }
  
  .pricing-plan {
    flex: 0 0 calc(50% - 2rem);
  }
  
  .review-stat {
    flex: 0 0 calc(33.333333% - 1.5rem);
  }
  
  .footer-col {
    flex: 0 0 calc(50% - 2rem);
  }
  
  .nav-toggle {
    display: none;
  }
  
  .nav {
    position: static;
    width: auto;
    height: auto;
    background-color: transparent;
    box-shadow: none;
    overflow: visible;
  }
  
  .nav-close {
    display: none;
  }
  
  .nav-list {
    display: flex;
    padding: 0;
  }
  
  .nav-item {
    margin: 0 1rem 0 0;
  }
  
  .nav-link {
    padding: 0.5rem;
  }
}

@media (min-width: 992px) {
  .col-lg-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }
  
  .col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
  
  .col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  .col-lg-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
  }
  
  .col-lg-9 {
    flex: 0 0 75%;
    max-width: 75%;
  }
  
  .feature-card {
    margin-bottom: 0;
  }
  
  .pricing-plan {
    flex: 0 0 calc(33.333333% - 2rem);
  }
  
  .team-member {
    flex: 0 0 calc(33.333333% - 2rem);
  }
  
  .footer-col {
    flex: 0 0 calc(25% - 2rem);
  }
}

@media (min-width: 1200px) {
  .container {
    padding: 0 2rem;
  }
}