/* CSS Variables */
:root {
  --primary: #2563eb;
  --accent: #22c55e;
  --bg: #ffffff;
  --card: #f8fafc;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --white: #ffffff;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --gradient: linear-gradient(135deg, var(--primary), #1d4ed8);
  --glass: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(226, 232, 240, 0.8);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(1.75rem, 5vw, 3.5rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
  margin-bottom: 2rem;
}

h3 {
  font-size: clamp(1.125rem, 3vw, 1.5rem);
}

p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
  min-height: 44px;
}

.btn:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

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

.btn-full {
  width: 100%;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  min-height: 70px;
}

.nav-brand {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  font-size: 0.9rem;
}

.nav-links a:hover {
  color: var(--primary);
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Hero Section */
.hero {
  padding: 6rem 0 3rem;
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  text-align: center;
}

.hero-text {
  max-width: 600px;
  margin: 0 auto;
}

.hero-subhead {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin-bottom: 2rem;
  color: var(--text-muted);
}

.trust-indicators {
  margin-top: 2rem;
}

.trust-badges {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 2rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  backdrop-filter: blur(10px);
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  order: -1;
}

.image-skeleton {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 250px;
  background: linear-gradient(90deg, var(--card) 25%, rgba(255, 255, 255, 0.1) 50%, var(--card) 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
  border-radius: 1rem;
}

.image-skeleton.hidden {
  display: none;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

#hero-img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
}

/* Features Section */
.features {
  padding: 3rem 0;
  background: var(--card);
}

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

.feature-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--white);
}

.feature-card h3 {
  color: var(--text);
  margin-bottom: 0.5rem;
}

/* How It Works */
.how-it-works {
  padding: 3rem 0;
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 3.5rem;
  height: 3.5rem;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 auto 1rem;
}

.step h3 {
  color: var(--text);
  margin-bottom: 0.5rem;
}

/* Testimonials */
.testimonials {
  padding: 3rem 0;
  background: var(--card);
}

.testimonials-carousel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonials-track {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  transition: transform 0.3s ease;
}

.testimonial {
  width: 100%;
  padding: 0.5rem;
}

.testimonial-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-quote {
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 1rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex-grow: 1;
}

.testimonial-author {
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
  margin-top: auto;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.carousel-btn {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text);
}

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

/* FAQ Section */
.faq {
  padding: 3rem 0;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

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

.faq-item details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  overflow: hidden;
}

.faq-item summary {
  padding: 1rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  transition: transform 0.2s ease;
}

.faq-item details[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1rem 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Final CTA */
.final-cta {
  padding: 3rem 0;
  background: var(--card);
  text-align: center;
}

.final-cta h2 {
  color: var(--text);
  margin-bottom: 1rem;
}

.final-cta p {
  font-size: 1rem;
  margin-bottom: 2rem;
}

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

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand .brand-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.link-group h4 {
  color: var(--text);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.link-group a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
  font-size: 0.9rem;
}

.link-group a:hover {
  color: var(--text);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  text-align: center;
}

.affiliate-disclosure {
  font-size: 0.8rem;
  margin-top: 1rem;
  color: var(--text-muted);
}

/* Sticky CTA */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  z-index: 1000;
  display: block;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.sticky-cta.show {
  transform: translateY(0);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 1rem;
  z-index: 1001;
  box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
}

.cookie-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 1rem;
  text-align: center;
}

.cookie-content p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.cookie-content a {
  color: var(--primary);
  text-decoration: none;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.btn-accept {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  min-height: 44px;
  flex: 1;
  min-width: 120px;
  transition: all 0.2s ease;
}

.btn-accept:hover {
  background: #16a34a;
}

.btn-decline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  min-height: 44px;
  flex: 1;
  min-width: 120px;
  transition: all 0.2s ease;
}

.btn-decline:hover {
  background: var(--glass);
  color: var(--text);
}

/* Responsive Design - Mobile First Approach */
/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .container {
    padding: 0 1.5rem;
  }

  .trust-badges {
    gap: 1rem;
  }

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

  .feature-card {
    padding: 2rem;
  }

  .image-skeleton {
    height: 300px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }

  .nav-links {
    gap: 2rem;
  }

  .nav-links a {
    font-size: 1rem;
  }

  .hero {
    padding: 8rem 0 4rem;
  }

  .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    text-align: left;
  }

  .hero-text {
    margin: 0;
  }

  .hero-image {
    order: 0;
  }

  .trust-badges {
    justify-content: flex-start;
  }

  .features {
    padding: 4rem 0;
  }

  .how-it-works {
    padding: 4rem 0;
  }

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

  .step-number {
    width: 4rem;
    height: 4rem;
    font-size: 1.5rem;
  }

  .testimonials {
    padding: 4rem 0;
  }

  .testimonials-track {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .testimonial {
    padding: 0;
  }

  .testimonial-card {
    padding: 2rem;
  }

  .testimonial-quote {
    font-size: 1rem;
  }

  .testimonial-author {
    font-size: 1rem;
  }

  .carousel-controls {
    display: none; /* Hide carousel controls on tablet and up since we show grid */
  }

  .final-cta {
    padding: 4rem 0;
  }

  .final-cta p {
    font-size: 1.125rem;
  }

  .footer {
    padding: 3rem 0 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .footer-links {
    flex-direction: row;
    gap: 3rem;
  }

  .cookie-content {
    flex-direction: row;
    text-align: left;
    gap: 2rem;
  }

  .cookie-content p {
    flex: 1;
    margin-right: 1rem;
  }

  .cookie-actions {
    flex-shrink: 0;
    width: auto;
    justify-content: flex-end;
  }

  .btn-accept,
  .btn-decline {
    flex: none;
    min-width: 100px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  h2 {
    margin-bottom: 3rem;
  }

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

  .testimonials-track {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .testimonial-quote {
    font-size: 1.125rem;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    padding: 0 2rem;
  }
}

/* Mobile-specific navigation improvements */
@media (max-width: 767px) {
  .mobile-menu-toggle {
    display: block;
  }

  .nav-links a:not(.btn) {
    display: none;
  }

  .nav-links .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --text: #ffffff;
    --text-muted: #cccccc;
    --border: #ffffff;
  }
}

/* Additional mobile improvements for cookie banner */
@media (max-width: 480px) {
  .cookie-banner {
    padding: 0.75rem;
  }

  .cookie-content {
    gap: 0.75rem;
  }

  .cookie-content p {
    font-size: 0.85rem;
  }

  .cookie-actions {
    gap: 0.5rem;
  }

  .btn-accept,
  .btn-decline {
    padding: 0.625rem 1rem;
    font-size: 0.85rem;
  }
}
