/* ============================================
   SIMPLEPAY — LAYOUT
   Grid, secciones, responsive, espaciado
   ============================================ */

/* ---------- HERO ---------- */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 48px;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.hero-content {
  flex: 1;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,107,107,0.12);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 20px 0;
}

.hero-title .cobalt {
  color: var(--primary);
}

.hero-title .coral {
  color: var(--primary);
}

.hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 32px 0;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.hero-note {
  font-size: 13px;
  color: var(--text-muted);
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Floating shapes behind mockup */
.hero-visual::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, rgba(220,38,38,0.1), rgba(255,107,107,0.1));
  border-radius: 50%;
  filter: blur(60px);
  animation: float 8s ease-in-out infinite;
}

.hero-visual::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, rgba(255,107,107,0.15), rgba(220,38,38,0.05));
  border-radius: 50%;
  filter: blur(40px);
  animation: float 6s ease-in-out infinite reverse;
  top: -20px;
  right: 20px;
}

/* Mockup card */
.mockup {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  width: 380px;
  border: 1px solid var(--border);
  position: relative;
  z-index: 2;
}

.mockup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.mockup-title {
  font-weight: 700;
  font-size: 14px;
}

.mockup-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--bg);
  padding: 16px;
  border-radius: var(--radius-md);
  text-align: center;
}

.stat-value {
  font-size: 24px;
  font-weight: 800;
}

.stat-value.cobalt {
  color: var(--primary);
}

.stat-value.coral {
  color: var(--primary);
}

.stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.mockup-wallet {
  background: linear-gradient(135deg, rgba(220,38,38,0.08), rgba(255,107,107,0.08));
  padding: 16px;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px dashed var(--border);
}

/* ---------- FLOW MOCKUP (Hero animation) ---------- */
.flow-mockup {
  min-height: 260px;
  display: flex;
  flex-direction: column;
}

.flow-steps {
  position: relative;
  flex: 1;
  min-height: 160px;
}

.flow-step {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.flow-step.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.flow-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.flow-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.flow-text strong {
  color: var(--primary);
}

.flow-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-top: 16px;
}

.flow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.3s ease;
}

.flow-dot.active {
  background: var(--primary);
}

/* ---------- FEATURES ---------- */
.features {
  background: var(--surface);
  padding: 80px 48px;
}

.features-header {
  text-align: center;
  margin-bottom: 60px;
}

.features-title {
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 16px 0;
}

.features-subtitle {
  color: var(--text-secondary);
  font-size: 18px;
  margin: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.feature-desc {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

/* ---------- CTA SECTION ---------- */
.cta-section {
  padding: 100px 48px;
  text-align: center;
  background: var(--bg);
}

.cta-title {
  font-size: 40px;
  font-weight: 800;
  margin: 0 0 16px 0;
}

.cta-desc {
  color: var(--text-secondary);
  font-size: 18px;
  margin: 0 0 40px 0;
}

.cta-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 20px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 60px 24px;
    gap: 40px;
  }
  
  .hero-title {
    font-size: 32px;
  }
  
  .hero-desc {
    max-width: 100%;
    font-size: 16px;
  }
  
  .hero-cta {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .hero-visual {
    order: -1;
  }
  
  .mockup {
    width: 100%;
    max-width: 340px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .features {
    padding: 60px 24px;
  }
  
  .trust-items {
    gap: 24px;
  }
  
  .trust-item {
    font-size: 14px;
  }
  
  .cta-section {
    padding: 60px 24px;
  }
  
  .cta-title {
    font-size: 28px;
  }
  
  .navbar {
    padding: 16px 24px;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    gap: 20px;
    z-index: 99;
  }

  .nav-links.mobile-open {
    display: flex;
  }
  
  .container {
    padding: 0 24px;
  }
}
