:root {
  --primary-orange: #ff6f04;
  --secondary-orange: #ffecdd;
  --dark-bg: #3c3c3c;
  --black: #191919;
  --white: #ffffff;
  --light-gray: #e4e4e7;
  --accent-gray: #a1a1aa;
  --success-green: #007241;
}

body {
  font-family: "Inter", sans-serif;
  background: linear-gradient(
      0deg,
      rgba(255, 220, 165, 0.2) 0%,
      rgba(255, 220, 165, 0.2) 100%
    ),
    white;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* Mobile First - Base Styles */
.container {
  width: 100%;
  max-width: 390px;
  margin: 0 auto;
  padding: 0 20px; /* Added side margins for mobile */
}

/* Trusted Section */
.trusted-section {
  text-align: center;
  margin: 30px 0;
}

.trusted-text {
  font-size: 16px;
  font-weight: 400;
}

.trusted-number {
  font-weight: 800;
}

/* How It Works Section */
.section-title {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  margin: 30px 0;
}

.works-container {
  background: var(--dark-bg);
  padding: 30px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 40px;
  text-align: center; /* Center content on mobile */
}

.steps-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
  order: 1; /* Text comes first on mobile */
}

.step-title {
  color: var(--primary-orange);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-description {
  color: var(--white);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
}

.works-image {
  order: 2; /* Image comes after text on mobile */
  width: 100%;
  max-width: 250px;
  margin: 0 auto;
  margin-bottom: -30px;
  display: block;
}

/* CTA Section */
.cta-section {
  background: var(--black);
  padding: 40px 20px;
  margin: 40px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cta-content {
  order: 1; /* Content first on mobile */
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cta-title {
  color: var(--primary-orange);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 0;
}

.cta-subtitle {
  color: var(--white);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 0;
}

.cta-image-container {
  order: 2; /* Image after content on mobile */
  text-align: center;
}

.download-badge {
  max-width: 300px;
  margin: 0 auto;
  margin-bottom: -140px;
}

.download-badge img {
  width: 100%;
  height: auto;
}

/* Features Section */
.features-title-container {
  background: var(--dark-bg);
  padding: 25px 20px;
  margin: 40px 0 30px 0;
  text-align: center;
}

.features-title {
  color: #fff8ed;
  font-size: 22px;
  font-weight: 700;
}

.features-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 30px 0;
}

.feature-card {
  background: var(--secondary-orange);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  /* flex-direction: column; */
  gap: 15px;
}

.feature-content {
  flex: 1;
}

.feature-title {
  color: var(--primary-orange);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-description {
  color: var(--black);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
}

.feature-image {
  text-align: center;
}

.feature-image img {
  max-width: 40px;
  height: auto;
}

/* Security Section */
.security-section {
  padding: 40px 10px;
  text-align: center;
}

.security-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 25px;
}

.security-content {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  text-align: left;
}

.security-highlight {
  color: var(--primary-orange);
  font-weight: 700;
}

/* Testimonials Section */
.testimonials-section {
  padding: 40px 0;
}

.testimonials-title {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--dark-bg);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 400px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--secondary-orange);
  box-shadow: -4px 8px 15px rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  padding: 20px;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.user-avatar {
  width: 50px;
  height: 50px;
  background: #d9d9d9;
  border-radius: 50%;
  flex-shrink: 0;
}

.user-info {
  flex: 1;
}

.username {
  color: var(--dark-bg);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.date {
  color: #acacac;
  font-size: 12px;
  font-weight: 400;
}

.review-label {
  color: var(--success-green);
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 8px;
}

.review-text {
  color: var(--dark-bg);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

/* App Preview Section */
.app-preview {
  text-align: center;
  padding: 40px 0;
}

.app-preview-title {
  color: var(--dark-bg);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
}

.app-preview-subtitle {
  color: var(--black);
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 30px;
  line-height: 1.4;
}

.app-screens {
  position: relative;
  height: 300px;
  margin: 0 auto;
  max-width: 300px;
}

.app-screen {
  position: absolute;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.screen-main {
  width: 200px;
  height: 300px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.screen-left {
  width: 140px;
  height: 200px;
  left: 10%;
  top: 50px;
  z-index: 2;
  opacity: 0.9;
}

.screen-right {
  width: 140px;
  height: 200px;
  right: 10%;
  top: 50px;
  z-index: 1;
  opacity: 0.8;
}

/* Footer */
.footer {
  background: var(--black);
  padding: 40px 20px 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  max-width: 400px;
  margin: 0 auto;
}

.footer-section h3 {
  color: var(--white);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
}

.footer-links {
  color: var(--light-gray);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
}

.footer-bottom {
  max-width: 400px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid #333;
  text-align: center;
}

.copyright {
  color: var(--accent-gray);
  font-size: 12px;
  font-weight: 400;
  margin-bottom: 20px;
}

.social-icons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.social-icon {
  width: 36px;
  height: 36px;
  background: var(--secondary-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ad Section */
.ad-section {
  background: rgba(60, 60, 60, 0.03);
  border-radius: 12px;
  padding: 25px 20px;
  margin: 40px 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-banner {
  width: 100%;
  max-width: 300px;
  height: auto;
  margin-bottom: 15px;
  border-radius: 8px;
  text-align: center;
}

.ad-text {
  background: var(--dark-bg);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  padding: 15px;
  border-radius: 8px;
}

/* Tablet Styles */
@media (min-width: 768px) {
  .container {
    max-width: 768px;
    padding: 0 30px; /* Increased side margins for tablet */
  }

  .section-title {
    font-size: 32px;
  }

  /* Works Container - Tablet */
  .works-container {
    flex-direction: row;
    border-radius: 12px;
    align-items: center;
    gap: 40px;
    padding: 40px 30px;
    text-align: left; /* Left align on tablet/desktop */
  }

  .steps-container {
    order: 2; /* Text on right */
    flex: 1;
  }

  .works-image {
    order: 1; /* Image on left */
    flex: 0 0 40%;
    max-width: 300px;
    margin: 0; /* Remove auto margin for proper alignment */
    margin-bottom: -60px;
  }

  /* CTA Section - Tablet */
  .cta-section {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 50px 40px;
    text-align: left;
  }

  .cta-content {
    order: 2; /* Content on right */
    flex: 1;
  }

  .cta-image-container {
    order: 1; /* Image on left */
    flex: 0 0 45%;
    text-align: left;
  }

  .download-badge {
    margin: 0;
    max-width: 350px;
    margin-bottom: -100px;
  }

  .features-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }

  .feature-card {
    height: 100%;
  }

  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    max-width: 700px;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .cta-title {
    padding-top: 50px;
    font-size: 28px;
  }

  .cta-subtitle {
    font-size: 18px;
  }
}

/* Desktop Styles */
@media (min-width: 1024px) {
  .container {
    max-width: 1200px;
    padding: 0 40px; /* Increased side margins for desktop */
  }

  /* Typography Scaling */
  .section-title {
    font-size: 42px;
    margin: 50px 0;
  }

  .trusted-text {
    font-size: 20px;
  }

  /* How It Works - Desktop */
  .works-container {
    max-width: 1100px;
    margin: 0 auto 60px;
    padding: 60px 50px;
    border-radius: 20px;
    gap: 60px;
    align-items: flex-start; /* Align items to top */
  }

  .steps-container {
    gap: 35px;
  }

  .step-title {
    font-size: 24px;
  }

  .step-description {
    font-size: 18px;
    line-height: 1.5;
  }

  .works-image {
    flex: 0 0 35%;
    max-width: 380px;
    align-self: center; /* Center image vertically */
  }

  /* CTA Section - Desktop */
  .cta-section {
    max-width: 1100px;
    margin: 60px auto;
    padding: 70px 60px;
    border-radius: 24px;
    gap: 10px;
    align-items: center;
  }

  .cta-content {
    flex: 1;
  }

  .cta-image-container {
    flex: 0 0 30%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
  }

  .download-badge {
    max-width: 350px;
    margin: 0;
    margin-bottom: -80px;
  }

  .cta-title {
    margin-top: 70px;
    font-size: 36px;
  }

  .cta-subtitle {
    font-size: 20px;
    max-width: none;
  }

  /* Features */
  .features-title-container {
    max-width: 800px;
    border-radius: 12px;
    margin: 60px auto 40px;
    padding: 35px 40px;
  }

  .features-title {
    font-size: 32px;
  }

  .features-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto 60px;
  }

  .feature-card {
    padding: 30px 25px;
    border-radius: 16px;
  }

  .feature-title {
    font-size: 22px;
  }

  .feature-description {
    font-size: 16px;
  }

  /* Security */
  .security-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 0;
  }

  .security-title {
    font-size: 32px;
  }

  .security-content {
    font-size: 17px;
    line-height: 1.7;
  }

  /* Testimonials */
  .testimonials-section {
    padding: 60px 0;
  }

  .testimonials-title {
    font-size: 32px;
    margin-bottom: 50px;
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
  }

  .testimonial-card {
    padding: 30px 25px;
    border-radius: 20px;
  }

  .user-avatar {
    width: 60px;
    height: 60px;
  }

  .username {
    font-size: 20px;
  }

  .review-text {
    font-size: 15px;
  }

  /* App Preview */
  .app-preview {
    padding: 60px 0;
  }

  .app-preview-title {
    font-size: 32px;
  }

  .app-preview-subtitle {
    font-size: 18px;
  }

  .app-screens {
    max-width: 600px;
    height: 400px;
  }

  .screen-main {
    width: 280px;
    height: 420px;
  }

  .screen-left,
  .screen-right {
    width: 200px;
    height: 300px;
  }

  /* Footer */
  .footer {
    padding: 60px 40px 30px;
  }

  .footer-content {
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    max-width: 1100px;
  }

  .footer-bottom {
    max-width: 1100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    margin-top: 50px;
  }

  .copyright {
    margin-bottom: 0;
  }

  /* Ad Section */
  .ad-section {
    max-width: 900px;
    margin: 60px auto;
    padding: 40px;
  }

  .ad-banner {
    max-width: 500px;
  }

  .ad-text {
    font-size: 24px;
    padding: 20px;
  }
}

/* Large Desktop */
@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
    padding: 0 60px; /* Even larger margins for big screens */
  }

  .section-title {
    font-size: 48px;
  }

  .works-container {
    max-width: 1300px;
  }

  .cta-section {
    max-width: 1300px;
  }

  .features-container {
    max-width: 1300px;
  }
}
