/* Reset and base styles */
html, body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  background: #f6f8fa;
  color: #222;
  width: 100vw;
  max-width: 100vw;
  overflow-x: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

/* Navigation */
.main-nav {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  position: sticky;
  top: 0;
  z-index: 10;
}
.main-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}
.main-nav .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
}
.main-nav .logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}
.main-nav nav a {
  margin-left: 2rem;
  color: #222;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.main-nav nav a:hover {
  color: #6366f1;
}

/* Hero Section */
.hero-section {
  background: url('https://res.cloudinary.com/dihumurul/image/upload/v1749673444/closed_bxcdr6.png') center center/cover no-repeat;
  color: #fff;
  padding: 4rem 0 3rem 0;
  text-align: center;
  position: relative;
  z-index: 1;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(60, 60, 100, 0.35); /* lighter overlay for more image visibility */
  z-index: 2;
  pointer-events: none;
}
.hero-section > .container, .hero-section h1, .hero-section p, .hero-section .cta-btn {
  position: relative;
  z-index: 3;
}
.hero-section h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.hero-section p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}
.hero-section .cta-btn {
  background: #fff;
  color: #6366f1;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0.5rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
  display: inline-block;
}
.hero-section .cta-btn:hover {
  background: #6366f1;
  color: #fff;
}

/* Section wrappers */
.features-section, .how-section, .app-section, .use-cases-section, .footer {
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 2px 16px 0 rgba(0,0,0,0.04);
  margin: 2rem auto;
  max-width: 1100px;
  padding: 2.5rem 1.5rem;
}
.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
}

/* Features & Use Cases Grid */
.features-grid, .use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.feature-card, .use-case-card {
  background: #f6f8fa;
  border-radius: 1rem;
  padding: 2rem 1.25rem;
  text-align: center;
  box-shadow: 0 1px 4px 0 rgba(0,0,0,0.03);
}
.feature-card i, .use-case-card i {
  font-size: 2rem;
  color: #6366f1;
  margin-bottom: 1rem;
}
.feature-card h3, .use-case-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.feature-card p, .use-case-card p {
  color: #444;
  font-size: 1rem;
}

/* How It Works Steps */
.steps-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}
.step-card {
  background: #f6f8fa;
  border-radius: 1rem;
  padding: 1.5rem 1rem;
  width: 260px;
  text-align: center;
  box-shadow: 0 1px 4px 0 rgba(0,0,0,0.03);
}
.step-number {
  display: inline-block;
  background: #6366f1;
  color: #fff;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  line-height: 2.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

/* App Cards */
.app-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}
.app-card {
  background: #f6f8fa;
  border-radius: 1rem;
  box-shadow: 0 1px 4px 0 rgba(0,0,0,0.03);
  padding: 2rem 1.25rem;
  width: 320px;
  max-width: 100%;
}
.app-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.app-card form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.app-card input, .app-card textarea, .app-card select {
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
}
.app-card button {
  background: #6366f1;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0.5rem;
  cursor: pointer;
  transition: background 0.2s;
}
.app-card button:hover {
  background: #4f46e5;
}

/* Footer */
.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.15rem;
}
.footer-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.footer-links, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-links a {
  color: #6366f1;
  text-decoration: none;
  font-weight: 500;
}
.footer-links a:hover {
  text-decoration: underline;
}
.footer-contact a {
  color: #222;
  text-decoration: none;
}
.footer-contact a:hover {
  color: #6366f1;
}
.footer-bottom {
  text-align: center;
  color: #888;
  font-size: 0.95rem;
  margin-top: 1.5rem;
}

/* Responsive */
@media (max-width: 900px) {
  .app-cards { flex-direction: column; align-items: center; }
  .footer-content { flex-direction: column; align-items: flex-start; }
  .auth-btn {
    display: inline-block;
    width: 100%;
    margin: 0.5rem 0;
    font-size: 1.1rem;
  }
}
@media (max-width: 600px) {
  .main-nav .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .main-nav nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-top: 0.5rem;
    gap: 0;
  }
  .main-nav .nav-links {
    display: flex;
    flex-direction: row;
    gap: 1.25rem;
    overflow-x: auto;
    justify-content: flex-start;
    width: 100%;
    padding-bottom: 0.25rem;
    margin-bottom: 0.5rem;
    scrollbar-width: none;
  }
  .main-nav .nav-links::-webkit-scrollbar {
    display: none;
  }
  .main-nav .nav-links a {
    margin: 0;
    padding: 0.5rem 0.25rem;
    font-size: 1rem;
    border-bottom: none;
    text-align: left;
    display: inline-block;
    white-space: nowrap;
  }
  .header-auth {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;
  }
  .auth-btn, #logoutBtn {
    width: 45%;
    min-width: 100px;
    max-width: 120px;
    margin: 0.1rem 0;
    font-size: 0.95rem;
    display: block;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(99,102,241,0.08);
    padding: 0.5rem 0;
    text-align: center;
    letter-spacing: 0.01em;
  }
  .features-section, .how-section, .app-section, .use-cases-section, .footer { padding: 1.25rem 0.5rem; }
  .hero-section { padding: 2.5rem 0 2rem 0; }
  .features-grid, .use-cases-grid { grid-template-columns: 1fr; }
  .steps-list { flex-direction: column; align-items: center; }
}
@media (min-width: 900px) {
  .app-cards {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
    overflow-x: auto;
  }
  .app-card {
    flex: 1 1 0;
    min-width: 260px;
    max-width: 340px;
  }
  .main-nav .container {
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem 2rem 0.5rem 2rem;
  }
  .header-top {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 0.1rem;
  }
  .header-nav {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 0.1rem;
    margin-top: 0.1rem;
  }
  .header-nav .nav-links {
      display: flex;
    flex-direction: row;
    gap: 2.5rem;
    justify-content: center;
      align-items: center;
    width: auto;
    overflow: visible;
    padding: 0;
      margin: 0;
    }
  .header-nav .nav-links a {
    font-size: 1.08rem;
    padding: 0.5rem 0.5rem;
    margin: 0;
    display: inline-block;
    border-bottom: none;
    text-align: center;
    white-space: nowrap;
    text-decoration: none;
    color: #222;
    font-weight: 500;
    transition: color 0.2s;
  }
  .header-nav .nav-links a:hover {
    color: #6366f1;
    text-decoration: none;
  }
  .header-auth {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  .auth-btn, #logoutBtn {
    margin-left: 0;
    margin-right: 0;
    width: auto;
    min-width: 120px;
    max-width: 180px;
    font-size: 1rem;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(99,102,241,0.08);
  }
}

/* Ensure auth-btn is always visible and styled on mobile */
.auth-btn {
  display: inline-block;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  background: #6366f1;
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  padding: 0.5rem 1.25rem;
  cursor: pointer;
    }
