/* ========================================
   Crédito Facilitado - Light Theme Styles
   For Landing Page and Upload Page Only
   ======================================== */

:root {
  /* Light Theme Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f4f8;

  /* Accent Colors - Blue & Green */
  --accent-primary: #2563eb;
  --accent-primary-light: #3b82f6;
  --accent-secondary: #10b981;
  --accent-secondary-light: #34d399;

  /* Text Colors */
  --text-primary: #1a1a2e;
  --text-secondary: #4a5568;
  --text-muted: #9ca3af;

  /* Status Colors */
  --status-success: #10b981;
  --status-warning: #f59e0b;
  --status-error: #ef4444;
  --status-pending: #3b82f6;

  /* Borders & Shadows */
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.15);

  /* Spacing */
  --container-max: 1200px;
  --section-padding: 80px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ========================================
   Reset & Base Styles
   ======================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-primary-light);
}

img {
  max-width: 100%;
  height: auto;
}

/* ========================================
   Typography
   ======================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

/* ========================================
   Layout Components
   ======================================== */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-padding) 0;
}

/* ========================================
   Header
   ======================================== */

.header {
  background: rgba(255, 255, 255, 0.95);
  padding: 20px 0;
  position: relative;
  z-index: 1000;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-links a:hover {
  color: var(--accent-primary);
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  background:
    radial-gradient(ellipse at top right, rgba(37, 99, 235, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.875rem;
  color: var(--accent-primary);
  font-weight: 600;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease;
}

.hero h1 {
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease 0.1s backwards;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  animation: fadeInUp 0.6s ease 0.2s backwards;
}

/* ========================================
   Benefits Section
   ======================================== */

.benefits {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.benefit-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.benefit-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
}

.benefit-card h3 {
  color: var(--text-primary);
  margin-bottom: 12px;
}

.benefit-card p {
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ========================================
   Simulation Table
   ======================================== */

.simulation {
  background: var(--bg-primary);
}

.simulation-header {
  text-align: center;
  margin-bottom: 48px;
}

.simulation-header h2 span {
  color: var(--accent-primary);
}

.table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.simulation-table {
  width: 100%;
  border-collapse: collapse;
}

.simulation-table thead {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
}

.simulation-table th {
  padding: 20px 24px;
  text-align: left;
  font-weight: 600;
  color: var(--accent-primary);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.simulation-table td {
  padding: 20px 24px;
  border-top: 1px solid var(--border-color);
}

.simulation-table tbody tr {
  transition: background var(--transition-fast);
}

.simulation-table tbody tr:hover {
  background: var(--bg-secondary);
}

.loan-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-secondary);
}

.installments {
  color: var(--text-secondary);
}

.monthly-value {
  font-weight: 600;
  color: var(--text-primary);
}

/* ========================================
   CTA Section
   ======================================== */

.cta-section {
  background:
    radial-gradient(ellipse at center, rgba(37, 99, 235, 0.05) 0%, transparent 70%),
    var(--bg-secondary);
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 1.125rem;
  margin-bottom: 32px;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary) 0%, #1d4ed8 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.4);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--border-color);
  color: var(--text-primary);
}

.btn-secondary:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.btn-success {
  background: linear-gradient(135deg, var(--accent-secondary) 0%, #059669 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
  color: #fff;
}

.btn-large {
  padding: 20px 48px;
  font-size: 1.125rem;
}

/* ========================================
   Footer
   ======================================== */

.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  text-align: center;
}

.footer p {
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ========================================
   Upload Page Styles
   ======================================== */

.upload-container {
  min-height: 100vh;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.upload-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 48px;
  max-width: 600px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}

/* Progress Steps */
.progress-container {
  margin-bottom: 40px;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 20px;
}

.progress-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border-color);
  z-index: 0;
}

.progress-line {
  position: absolute;
  top: 20px;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  z-index: 1;
  transition: width var(--transition-normal);
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: all var(--transition-normal);
}

.step.active .step-number {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-primary-light) 100%);
  border-color: var(--accent-primary);
  color: #fff;
}

.step.completed .step-number {
  background: var(--accent-secondary);
  border-color: var(--accent-secondary);
  color: #fff;
}

.step-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: center;
  max-width: 60px;
}

.step.active .step-label,
.step.completed .step-label {
  color: var(--text-secondary);
}

/* Upload Area */
.upload-step {
  display: none;
}

.upload-step.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.step-title {
  text-align: center;
  margin-bottom: 8px;
}

.step-description {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.upload-area {
  border: 2px dashed var(--border-color);
  border-radius: 16px;
  padding: 48px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  background: var(--bg-secondary);
}

.upload-area:hover {
  border-color: var(--accent-primary);
  background: rgba(37, 99, 235, 0.02);
}

.upload-area.dragover {
  border-color: var(--accent-secondary);
  background: rgba(16, 185, 129, 0.05);
}

.upload-area.has-file {
  border-style: solid;
  border-color: var(--accent-secondary);
  background: rgba(16, 185, 129, 0.02);
}

.upload-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.upload-area input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-preview {
  display: none;
  max-width: 100%;
  max-height: 300px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.upload-preview.visible {
  display: block;
}

.upload-filename {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Quality Indicator */
.quality-indicator {
  margin-top: 20px;
  padding: 16px;
  border-radius: 12px;
  display: none;
}

.quality-indicator.visible {
  display: flex;
  align-items: center;
  gap: 12px;
  animation: fadeIn 0.3s ease;
}

.quality-indicator.success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.quality-indicator.warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.quality-indicator.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.quality-icon {
  font-size: 24px;
}

.quality-message {
  flex: 1;
}

.quality-message strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.quality-message span {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Navigation Buttons */
.step-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  gap: 16px;
}

.step-navigation .btn {
  flex: 1;
}

/* ========================================
   Animations
   ======================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {

  /* Desfixar o header no mobile */
  .header {
    position: relative !important;
    top: 0 !important;
  }

  .header-content {
    flex-direction: column;
    gap: 16px;
    padding: 16px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    width: 100%;
  }

  .nav-links li {
    flex-shrink: 0;
  }

  .nav-links a {
    font-size: 0.875rem;
    padding: 8px 12px;
    white-space: nowrap;
  }

  .nav-cta {
    padding: 8px 16px !important;
    font-size: 0.875rem !important;
  }

  .hero {
    padding-top: 40px;
    min-height: auto;
  }

  .section {
    padding: 60px 0;
  }

  .simulation-table th,
  .simulation-table td {
    padding: 16px;
  }

  .upload-card {
    padding: 32px 24px;
  }

  .step-label {
    display: none;
  }

  /* Trust bar ajuste */
  .trust-bar {
    position: relative !important;
  }
}

@media (max-width: 480px) {
  .btn-large {
    padding: 16px 32px;
    width: 100%;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }
}