* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #0F0F0F;
  color: #FFFFFF;
  line-height: 1.6;
}

.homepage-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 0 20px;
}

/* Header - Base styles (desktop & mobile foundation) */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background-color: #1A1A1A;
  border-bottom: 1px solid #333;
  width: 100%;
  flex-wrap: wrap;
  gap: 15px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-text {
  font-size: 28px;
  font-weight: 700;
  color: #00FF99;
  text-transform: uppercase;
  letter-spacing: 2px;
  white-space: nowrap;
}

.logo-placeholder {
  width: 40px;
  height: 40px;
  background-color: #1A1A1A;
  border-radius: 50%;
  border: 2px solid #00FF99;
  flex-shrink: 0;
}

/* Auth Button */
.auth-btn.header-btn {
  color: #00FF99;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 2px solid #00FF99;
  border-radius: 25px;
  background: linear-gradient(90deg, rgba(0, 255, 153, 0.1), rgba(0, 204, 128, 0.1));
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.auth-btn.header-btn:hover {
  background: linear-gradient(90deg, #00FF99, #00CC80);
  color: #0F0F0F;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 255, 153, 0.3);
}

.auth-btn.header-btn i {
  font-size: 18px;
}

/* Navigation Menu - Base */
.nav-menu ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: #00FF99;
}

/* Hero Section */
.hero {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px 15px;
  text-align: center;
}

.hero-content {
  max-width: 700px;
  width: 100%;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  color: #00FF99;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 18px;
  color: #888;
  margin-bottom: 30px;
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
  color: #00FF99;
  font-size: 16px;
  flex-wrap: wrap;
}

.trust-badges span i {
  margin-right: 6px;
}

.cta-btn {
  background: linear-gradient(90deg, #00FF99, #00CC80);
  color: #0F0F0F;
  padding: 12px 24px;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-btn:hover {
  background: linear-gradient(90deg, #00CC80, #00FF99);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 255, 153, 0.3);
}

/* Section Titles & General Sections */
.section-title {
  font-size: 32px;
  font-weight: 600;
  color: #00FF99;
  text-align: center;
  margin-bottom: 40px;
}

.about,
.how-it-works,
.features,
.testimonials,
.security,
.blog {
  padding: 60px 15px;
}

.about,
.security {
  background-color: #1A1A1A;
}

/* Stats, Steps, Grids */
.stats-grid,
.steps-grid,
.features-grid,
.testimonials-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.stat {
  text-align: center;
}

.stat span {
  display: block;
  font-size: 40px;
  font-weight: 700;
  color: #00FF99;
  margin-bottom: 8px;
}

.step {
  text-align: center;
}

.step i {
  font-size: 48px;
  color: #00FF99;
  margin-bottom: 15px;
}

/* Feature Cards */
.feature-card {
  text-align: center;
  padding: 20px;
  background-color: #222222;
  border-radius: 10px;
  transition: transform 0.3s ease, opacity 0.5s ease;
  opacity: 0;
}

.feature-card.visible {
  opacity: 1;
}

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

.feature-card i {
  font-size: 40px;
  color: #00FF99;
  margin-bottom: 15px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: #888;
}

/* Testimonials */
.testimonial {
  background: #222222;
  padding: 25px;
  border-radius: 10px;
  font-style: italic;
  color: #ddd;
  text-align: center;
}

.testimonial span {
  display: block;
  margin-top: 15px;
  font-style: normal;
  color: #00FF99;
  font-weight: 500;
}

/* Security */
.security ul {
  list-style: none;
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
}

.security li {
  margin: 15px 0;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.security i {
  color: #00FF99;
  font-size: 20px;
}

/* Blog Cards */
.blog-card {
  background: #222222;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
}

.blog-card h3 {
  color: #00FF99;
  margin-bottom: 12px;
}

/* Footer */
.footer {
  padding: 20px 0;
  text-align: center;
  background-color: #1A1A1A;
  border-top: 1px solid #333;
}

.footer-legal {
  font-size: 12px;
  color: #888;
}

/* ────────────────────────────────────────────────
   RESPONSIVE - MOBILE & TABLET (max-width: 768px)
───────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Header: Top row = Logo + Sign In | Bottom row = Horizontal Nav */
  .header {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 14px;
    gap: 12px;
  }

  /* Top row wrapper for Logo + Auth */
  .header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .logo {
    flex-shrink: 0;
  }

  .logo-placeholder {
    display: none; /* Remove circle completely on mobile */
  }

  .logo-text {
    font-size: 22px;
  }

  /* Sign In button on top right */
  .auth-btn.header-btn {
    font-size: 13px;
    padding: 7px 16px;
  }

  /* Nav - horizontal single line below */
  .nav-menu {
    width: 100%;
  }

  .nav-menu ul {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    padding: 8px 0;
  }

  .nav-menu a {
    font-size: 14px;
    flex: 1;
    text-align: center;
    white-space: nowrap;
  }

  /* Hero - compact */
  .hero {
    padding: 60px 15px 40px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .trust-badges {
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
  }

  .cta-btn {
    font-size: 14px;
    padding: 10px 24px;
  }

  /* Sections & grids - single column */
  .about,
  .how-it-works,
  .features,
  .testimonials,
  .security,
  .blog {
    padding: 50px 15px;
  }

  .section-title,
  .features-title {
    font-size: 28px;
  }

  .stats-grid,
  .steps-grid,
  .features-grid,
  .testimonials-grid,
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .feature-card,
  .testimonial,
  .blog-card {
    max-width: 460px;
    margin: 0 auto;
  }

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

/* Extra small screens (phones < 480px) */
@media (max-width: 480px) {
  .logo-text {
    font-size: 20px;
  }

  .auth-btn.header-btn {
    font-size: 12px;
    padding: 6px 14px;
  }

  .nav-menu ul {
    gap: 10px;
    font-size: 13px;
  }

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

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

/* Larger screens - unchanged from your original */
@media (min-width: 481px) and (max-width: 768px) {
  .header {
    padding: 10px;
  }
  .logo-text {
    font-size: 24px;
  }
  .hero-title {
    font-size: 40px;
  }
  .section-title {
    font-size: 28px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .homepage-container {
    padding: 0 25px;
  }
  .hero-title {
    font-size: 44px;
  }
  .section-title {
    font-size: 30px;
  }
}

@media (min-width: 1025px) {
  .homepage-container {
    padding: 0 30px;
    max-width: 1400px;
    margin: 0 auto;
  }
  .hero-title {
    font-size: 56px;
  }
  .section-title {
    font-size: 36px;
  }
}