/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 16px;
  font-weight: 400;
  background: linear-gradient(160deg, #071e0f 0%, #0a3215 50%, #07140a 100%);
  color: #E6EDF6;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

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

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 150ms ease;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, #22C55E, #3ce470);
  color: #04150a;
  box-shadow: 0 12px 24px rgba(34, 197, 94, 0.35);
}

.btn--primary:hover,
.btn--primary:focus {
  background: linear-gradient(135deg, #3ce470, #2fb95a);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(60, 228, 112, 0.35);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(34, 197, 94, 0.25);
}

.btn--primary:focus-visible {
  outline: 3px solid #22C55E;
  outline-offset: 3px;
}

.btn--small {
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
}

.btn--large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  background: rgba(4, 32, 13, 0.65);
  border-bottom: 1px solid rgba(34, 197, 94, 0.15);
  transition: background-color 200ms ease, backdrop-filter 200ms ease, transform 200ms ease;
  backdrop-filter: blur(6px);
}

.header.scrolled {
  background-color: rgba(7, 48, 20, 0.85);
  border-bottom-color: rgba(34, 197, 94, 0.3);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header__brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: #E6EDF6;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Hero Section */
.hero {
  position: relative;
  padding-top: 8rem;
  padding-bottom: 6rem;
  background: linear-gradient(160deg, rgba(6, 61, 24, 0.95) 0%, rgba(5, 43, 18, 0.95) 55%, rgba(3, 28, 12, 0.95) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1400px;
  height: 100%;
  background: radial-gradient(circle at 50% 0%, rgba(46, 204, 113, 0.25) 0%, rgba(46, 204, 113, 0.1) 25%, transparent 55%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0.08) 2px,
      transparent 2px,
      transparent 80px
    ),
    repeating-linear-gradient(
      to right,
      rgba(255, 255, 255, 0.03),
      rgba(255, 255, 255, 0.03) 2px,
      transparent 2px,
      transparent 80px
    );
  opacity: 0.15;
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.hero__container {
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero__title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: #E6EDF6;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.hero__subtitle {
  font-size: 1.25rem;
  line-height: 1.5;
  color: rgba(202, 231, 210, 0.85);
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero__bullets {
  list-style: none;
  display: grid;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto 3rem;
  text-align: left;
}

.hero__bullet {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  color: #E6EDF6;
}

.hero__bullet-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0.5rem;
  border-radius: 50%;
  border: 1px solid rgba(34, 197, 94, 0.4);
  background: rgba(8, 54, 21, 0.6);
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.35);
}

.hero__cta-wrapper {
  margin-bottom: 3rem;
}

.hero__trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  max-width: 700px;
  margin: 0 auto 1.5rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(34, 197, 94, 0.2);
  border-bottom: 1px solid rgba(34, 197, 94, 0.2);
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.08) 0%, rgba(34, 197, 94, 0.02) 100%);
}

.trust-stat {
  text-align: center;
}

.trust-stat__value {
  font-size: 2rem;
  font-weight: 700;
  color: #22C55E;
  margin-bottom: 0.25rem;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.trust-stat__label {
  font-size: 0.875rem;
  color: rgba(202, 231, 210, 0.75);
}

.hero__disclaimer {
  font-size: 0.75rem;
  color: rgba(202, 231, 210, 0.6);
  font-style: italic;
}

/* How It Works Section */
.how-it-works {
  padding: 6rem 0;
  background-color: rgba(6, 34, 15, 0.6);
  border-top: 1px solid rgba(34, 197, 94, 0.12);
  border-bottom: 1px solid rgba(34, 197, 94, 0.12);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: #d3f7df;
  letter-spacing: 0.05em;
}

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

.step {
  position: relative;
  text-align: center;
  padding: 2rem 1.5rem;
  background-color: rgba(6, 43, 18, 0.75);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 12px;
  transition: all 200ms ease;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

.step:hover {
  border-color: rgba(60, 228, 112, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.3);
}

.step__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.step__number {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #22C55E;
  color: #04210b;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.875rem;
}

.step__title {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  color: #E6EDF6;
}

/* Why Section */
.why {
  margin-bottom: 4rem;
  padding: 3rem;
  background-color: rgba(6, 43, 18, 0.7);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 12px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.25);
}

.why__title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  color: #e7fbe9;
}

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

.why__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 1rem;
  color: #e0f6e6;
}

.why__icon {
  flex-shrink: 0;
  margin-top: 0.125rem;
}

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.testimonial {
  padding: 2rem;
  background: linear-gradient(160deg, rgba(6, 43, 18, 0.85) 0%, rgba(3, 24, 9, 0.9) 100%);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25);
}

.testimonial__text {
  font-size: 1rem;
  font-style: italic;
  color: #e7fbe9;
  line-height: 1.5;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial__avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #22C55E, #c9ff9b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #05310f;
}

.testimonial__name {
  font-weight: 500;
  color: rgba(210, 239, 219, 0.75);
  font-size: 0.9375rem;
}

/* How It Works CTA */
.how-it-works__cta {
  text-align: center;
  margin-bottom: 2rem;
}

.how-it-works__disclaimer {
  text-align: center;
  font-size: 0.875rem;
  color: rgba(202, 231, 210, 0.7);
  max-width: 600px;
  margin: 0 auto;
}

/* Footer */
.footer {
  padding: 3rem 0;
  background-color: rgba(5, 30, 13, 0.85);
  border-top: 1px solid rgba(34, 197, 94, 0.25);
}

.footer__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer__copyright {
  font-size: 0.875rem;
  color: rgba(210, 239, 219, 0.8);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.footer__link {
  color: rgba(210, 239, 219, 0.8);
  text-decoration: none;
  transition: color 150ms ease;
}

.footer__link:hover,
.footer__link:focus {
  color: #5af88e;
  text-decoration: underline;
}

.footer__link:focus-visible {
  outline: 2px solid #5af88e;
  outline-offset: 2px;
  border-radius: 2px;
}

.footer__separator {
  color: rgba(34, 197, 94, 0.25);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .hero {
    padding-top: 6rem;
    padding-bottom: 4rem;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__subtitle {
    font-size: 1.125rem;
  }

  .hero__trust {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .why {
    padding: 2rem 1.5rem;
  }

  .why__grid {
    grid-template-columns: 1fr;
  }

  .testimonials {
    grid-template-columns: 1fr;
  }

  .footer__container {
    gap: 1rem;
  }

  .footer__links {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer__separator {
    display: none;
  }

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

  .header__brand {
    font-size: 1.125rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hero__title {
    font-size: 2.25rem;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Focus visible improvements */
a:focus-visible,
button:focus-visible {
  outline: 3px solid #5af88e;
  outline-offset: 3px;
}

/* Animations */
@media (prefers-reduced-motion: no-preference) {
  .hero__content > * {
    animation: fadeInUp 600ms ease backwards;
  }

  .hero__title {
    animation-delay: 100ms;
  }

  .hero__subtitle {
    animation-delay: 200ms;
  }

  .hero__bullets {
    animation-delay: 300ms;
  }

  .hero__cta-wrapper {
    animation-delay: 400ms;
  }

  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
