/* ============================================================
   COMPONENTS — Forge·SaaS | Light Corporate
   ============================================================ */

/* ── Hero (index) ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 110px 24px 80px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-light);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-light);
  border: 1px solid rgba(0,113,227,0.15);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: dotPulse 1.5s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.hero-title {
  max-width: 800px;
  color: var(--text-primary);
}
.hero-title .line-accent {
  display: block;
  color: var(--accent);
}

.hero-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.8;
  margin: 20px auto 40px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 72px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 48px;
  box-shadow: var(--shadow-md);
}
.hero-stat { text-align: center; }
.hero-stat .value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.04em;
  display: block;
}
.hero-stat .label {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin-top: 4px;
}
.hero-divider {
  width: 1px;
  background: var(--border-light);
  margin: 4px 0;
}

/* ── Feature Bands ── */
.features-band {
  padding: 72px 0;
  background: var(--bg-primary);
}

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

.feature-item {
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  box-shadow: var(--shadow-xs);
}
.feature-item:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-icon { font-size: 1.8rem; margin-bottom: 14px; }
.feature-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.feature-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Comparison Table ── */
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}
.compare-table th {
  padding: 18px 24px;
  text-align: left;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
}
.compare-table th:last-child {
  background: var(--accent-light);
  color: var(--accent);
}
.compare-table td {
  padding: 14px 24px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-card);
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td:last-child {
  background: rgba(0,113,227,0.03);
  color: var(--text-primary);
  font-weight: 500;
}
.check { color: var(--green); font-size: 1rem; font-weight: 700; }
.cross { color: var(--red); font-size: 1rem; font-weight: 700; }

/* ── Stats / Counters ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat-cell {
  padding: 32px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-xs);
}
.stat-cell:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.04em;
  display: block;
  margin-bottom: 6px;
}
.stat-number.blue { color: var(--accent); }
.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Timeline ── */
.timeline {
  position: relative;
  padding-left: 36px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 9px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  margin-bottom: 36px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -30px; top: 6px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-light);
}
.timeline-year {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.timeline-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.timeline-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Pain Points ── */
.pain-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  box-shadow: var(--shadow-xs);
}
.pain-card:hover {
  border-color: var(--border);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.pain-icon { font-size: 1.8rem; margin-bottom: 14px; }
.pain-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.pain-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7; }

/* ── IA Feature Cards ── */
.ia-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  box-shadow: var(--shadow-xs);
}
.ia-feature-card:hover {
  border-color: var(--border);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.ia-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-light);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
}

/* ── ROI Bar ── */
.roi-bar {
  height: 6px;
  background: var(--bg-secondary);
  border-radius: 100px;
  overflow: hidden;
  margin-top: 8px;
}
.roi-fill {
  height: 100%;
  border-radius: 100px;
  background: var(--accent);
  width: 0;
  transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Stepper ── */
.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 48px;
}
.step-item { display: flex; align-items: center; }
.step-circle {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-tertiary);
  transition: var(--transition);
  flex-shrink: 0;
  z-index: 1;
}
.step-circle.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 4px var(--accent-light);
}
.step-circle.done {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}
.step-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-tertiary);
  margin-top: 6px;
  text-align: center;
  white-space: nowrap;
}
.step-connector {
  flex: 1;
  height: 2px;
  background: var(--border-light);
  min-width: 40px; max-width: 80px;
  position: relative;
  top: -10px;
}
.step-connector.done { background: var(--green); }
.step-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Form ── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.92rem;
  color: var(--text-primary);
  font-family: var(--font);
  transition: var(--transition-fast);
  outline: none;
  appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.form-input::placeholder, .form-textarea::placeholder {
  color: var(--text-muted);
}
.form-select { background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%2386868b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.form-textarea { min-height: 120px; resize: vertical; }

/* Radio/Checkbox */
.option-list { display: flex; flex-direction: column; gap: 8px; }
.option-item label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}
.option-item input { display: none; }
.option-item label:hover {
  background: var(--bg-secondary);
  border-color: var(--border);
  color: var(--text-primary);
}
.option-item input:checked + label {
  background: var(--accent-light);
  border-color: rgba(0,113,227,0.3);
  color: var(--text-primary);
}
.option-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  transition: var(--transition-fast);
  position: relative;
}
.option-item input:checked + label .option-dot {
  border-color: var(--accent);
  background: var(--accent);
}
.option-item input:checked + label .option-dot::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: #fff;
  border-radius: 50%;
}
.checkbox-dot {
  width: 18px; height: 18px;
  border-radius: 4px;
  border: 2px solid var(--border);
  flex-shrink: 0;
  transition: var(--transition-fast);
  position: relative;
}
.option-item input[type=checkbox]:checked + label .checkbox-dot {
  border-color: var(--accent);
  background: var(--accent);
}
.option-item input[type=checkbox]:checked + label .checkbox-dot::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #fff;
}

/* Progress bar */
.progress-bar {
  height: 3px;
  background: var(--border-light);
  border-radius: 2px;
  margin-bottom: 36px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Step panels */
.step-panel { display: none; }
.step-panel.active { display: block; animation: fadeSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Success */
.success-state { text-align: center; padding: 72px 32px; display: none; }
.success-state.active { display: block; animation: fadeSlideIn 0.55s ease; }
.success-icon { font-size: 3.5rem; margin-bottom: 20px; display: block; }

/* ── Process Steps ── */
.process-step { display: flex; gap: 20px; margin-bottom: 32px; }
.process-number {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.process-content .process-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

/* ── Testimonials ── */
.testimonial-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  box-shadow: var(--shadow-xs);
}
.testimonial-card:hover {
  border-color: var(--border);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.testimonial-stars { color: #ff9500; font-size: 1rem; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
}
.testimonial-name { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }
.testimonial-role { font-size: 0.78rem; color: var(--text-tertiary); }

/* ── CTA Section ── */
.cta-section {
  padding: 88px 0;
  text-align: center;
}
.cta-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
  .hero-stats { flex-direction: column; gap: 20px; padding: 24px; }
  .hero-divider { display: none; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .stepper { gap: 4px; }
  .step-connector { min-width: 20px; }
  .step-label { font-size: 0.62rem; }
  .cta-card { padding: 40px 24px; }

  /* Responsive inline grids */
  .resp-grid-2,
  .resp-grid-2-equal,
  .resp-grid-asym,
  .resp-grid-asym-rev { grid-template-columns: 1fr !important; gap: 24px !important; }
  .resp-grid-4,
  .resp-grid-3 { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 480px) {
  .resp-grid-4,
  .resp-grid-3 { grid-template-columns: 1fr !important; }
  .stats-row { grid-template-columns: 1fr; }
}
