/* Home Page Styles */

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

body, html {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* ===== Header ===== */
.header {
  background: #fff;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  border-bottom: 1px solid #e5e7eb;
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: #1a1a2e;
  letter-spacing: -0.5px;
}

.nav-buttons {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-signin {
  color: #555;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-signin:hover {
  color: #1a1a2e;
}

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 100px 0 110px;
  text-align: center;
}

.hero-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
}

.hero p {
  font-size: 1.15rem;
  margin-bottom: 36px;
  opacity: 0.92;
  line-height: 1.7;
}

.hero-trust {
  margin-top: 28px;
  font-size: 0.9rem;
  opacity: 0.75;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* ===== Stats Strip ===== */
.stats-strip {
  background: #1a1a2e;
  padding: 28px 0;
}

.stats-content {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 0 24px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  color: white;
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: #a5b4fc;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  opacity: 0.7;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.15);
}

/* ===== Shared Section Styles ===== */
.section-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  text-align: center;
  color: #666;
  font-size: 1.05rem;
  margin-bottom: 48px;
}

/* ===== Features ("What You Can Do") ===== */
.features-section {
  padding: 80px 0;
  background: #fff;
}

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

.feature-card {
  background: #fff;
  padding: 32px 24px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  transition: box-shadow 0.25s, transform 0.25s;
}

.feature-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: white;
}

.icon-blue { background: #3b82f6; }
.icon-green { background: #22c55e; }
.icon-orange { background: #f59e0b; }
.icon-purple { background: #8b5cf6; }
.icon-teal { background: #14b8a6; }
.icon-red { background: #ef4444; }

.feature-card h4 {
  color: #1a1a2e;
  margin-bottom: 8px;
  font-size: 1.1rem;
  font-weight: 700;
}

.feature-card p {
  color: #666;
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ===== How It Works ===== */
.how-it-works-section {
  padding: 80px 0;
  background: #f8f9fb;
}

.steps-container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
}

.step {
  text-align: center;
  flex: 1;
  padding: 0 20px;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.step h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.step p {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.6;
}

.step-connector {
  width: 60px;
  height: 2px;
  background: repeating-linear-gradient(90deg, #c4b5fd 0, #c4b5fd 6px, transparent 6px, transparent 12px);
  margin-top: 28px;
  flex-shrink: 0;
}

/* ===== Benefits ("Why Businesses Choose StockMate") ===== */
.benefits-section {
  padding: 80px 0;
  background: #fff;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.benefit-card {
  background: #f8f9fb;
  padding: 36px 28px;
  border-radius: 12px;
  border-left: 4px solid #667eea;
  transition: box-shadow 0.25s;
}

.benefit-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.benefit-card:nth-child(2) {
  border-left-color: #22c55e;
}

.benefit-card:nth-child(3) {
  border-left-color: #f59e0b;
}

.benefit-icon {
  color: #667eea;
  margin-bottom: 16px;
}

.benefit-card:nth-child(2) .benefit-icon {
  color: #22c55e;
}

.benefit-card:nth-child(3) .benefit-icon {
  color: #f59e0b;
}

.benefit-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.benefit-card p {
  color: #666;
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ===== CTA + Footer ===== */
.cta-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 80px 0 48px;
  text-align: center;
  color: white;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px;
}

.cta-section h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.cta-section > .cta-content > p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 36px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.footer-contacts {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-contacts a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-contacts a:hover {
  color: white;
}

.footer-dot {
  width: 4px;
  height: 4px;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
}

.footer-copy {
  font-size: 0.8rem;
  opacity: 0.5;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.9rem;
}

.btn-primary {
  background: #28a745;
  color: white;
}

.btn-primary:hover {
  background: #22963e;
  box-shadow: 0 4px 12px rgba(40,167,69,0.3);
}

.btn-cta {
  background: #28a745;
  color: white;
  padding: 16px 36px;
  font-size: 1.05rem;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

.btn-cta:hover {
  background: #22963e;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  transform: translateY(-1px);
}

.btn-whatsapp {
  background: #25D366;
  color: white;
  padding: 16px 36px;
  font-size: 1.05rem;
  border-radius: 8px;
}

.btn-whatsapp:hover {
  background: #20bd5a;
  box-shadow: 0 4px 14px rgba(37,211,102,0.3);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
  padding: 12px 28px;
}

.btn-outline:hover {
  border-color: white;
  background: rgba(255,255,255,0.1);
}

/* ===== Welcome Section (logged in users) ===== */
.welcome-section {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.welcome-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.welcome-section h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  font-weight: 800;
}

.welcome-section p {
  font-size: 1.15rem;
  margin-bottom: 36px;
  opacity: 0.9;
}

.demo-notice {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  color: #856404;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  text-align: center;
}

.demo-notice strong {
  color: #b45309;
}

/* ===== Demo Credentials (kept for compatibility) ===== */
.demo-section {
  background: #f8f9fa;
  padding: 60px 0;
  border-top: 4px solid #28a745;
}

.demo-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.demo-credentials {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  margin-bottom: 40px;
  border: 2px solid #28a745;
}

.demo-credentials h3 {
  color: #28a745;
  font-size: 1.8rem;
  margin-bottom: 20px;
  text-align: center;
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.credential-card {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #007cba;
}

.credential-card h4 {
  color: #333;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.credential-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 8px;
  background: white;
  border-radius: 4px;
  border: 1px solid #dee2e6;
}

.credential-item strong {
  color: #495057;
}

.credential-value {
  font-family: 'Courier New', monospace;
  background: #e9ecef;
  padding: 2px 6px;
  border-radius: 3px;
  user-select: all;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero {
    padding: 60px 0 70px;
  }

  .hero h1 {
    font-size: 1.9rem;
    line-height: 1.2;
  }

  .hero p {
    font-size: 1rem;
  }

  .nav {
    padding: 0 16px;
  }

  .nav-buttons {
    gap: 14px;
  }

  .stats-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 16px;
  }

  .stat-divider {
    display: none;
  }

  .stat-item {
    min-width: 0;
  }

  .stat-number {
    font-size: 1.2rem;
  }

  .features-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .steps-container {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .step {
    padding: 0 16px;
    margin-bottom: 8px;
  }

  .step-connector {
    width: 2px;
    height: 32px;
    background: repeating-linear-gradient(180deg, #c4b5fd 0, #c4b5fd 6px, transparent 6px, transparent 12px);
    margin: 0;
  }

  .features-section,
  .how-it-works-section,
  .benefits-section {
    padding: 56px 0;
  }

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

  .section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 32px;
  }

  .cta-section h2 {
    font-size: 1.7rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-cta,
  .btn-whatsapp {
    width: 100%;
    max-width: 320px;
  }

  .footer-contacts {
    flex-direction: column;
    gap: 6px;
  }

  .footer-dot {
    display: none;
  }

  .credentials-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 48px 0 56px;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .stats-content {
    gap: 16px;
  }

  .stat-number {
    font-size: 1.1rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }

  .feature-card {
    padding: 24px 20px;
  }

  .benefit-card {
    padding: 28px 20px;
  }

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

  .btn-cta,
  .btn-whatsapp {
    padding: 14px 24px;
    font-size: 0.95rem;
  }
}
