@import url('variables.css');

body {
  font-family: var(--font-main);
  font-size: var(--text-base);
  color: var(--text-primary);
  background-color: var(--bg-primary);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: 16px;
}

.section-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 640px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--btn-radius);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gradient-brand);
  color: var(--text-primary);
  box-shadow: var(--shadow-brand);
}

.btn-primary:hover {
  box-shadow: 0 24px 70px rgba(108, 71, 255, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

.btn-outline {
  background: transparent;
  color: var(--color-brand);
  border: 1px solid var(--color-brand);
}

.btn-sm {
  padding: 8px 16px;
  font-size: var(--text-xs);
}

.btn-lg {
  padding: 16px 32px;
  font-size: var(--text-base);
}

/* Seções genéricas */
.section {
  padding: var(--section-py) 0;
}

/* Como funciona */
.how-it-works {
  background: var(--bg-card);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 48px;
  position: relative;
}

@media (min-width: 768px) {
  .steps {
    flex-direction: row;
    gap: 0;
  }

  .steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-brand), var(--color-secondary));
    opacity: 0.3;
  }
}

.step {
  flex: 1;
  text-align: center;
  padding: 0 24px;
  position: relative;
}

.step-number {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  font-weight: 800;
  background: var(--gradient-brand);
  border-radius: 50%;
  position: relative;
  z-index: 1;
}

.step h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: 12px;
}

.step p {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

/* Métricas */
.metrics {
  background: radial-gradient(ellipse at center, rgba(108, 71, 255, 0.08) 0%, transparent 70%);
}

.metrics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 480px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .metrics-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.metric-item {
  text-align: center;
  padding: 32px;
}

.metric-value {
  font-size: var(--text-2xl);
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.metric-label {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

/* Depoimentos */
.testimonials {
  overflow: hidden;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--card-radius);
  padding: var(--card-padding);
  height: auto;
}

.testimonial-text {
  font-size: var(--text-base);
  line-height: 1.7;
  margin-bottom: 24px;
  color: var(--text-muted);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-base);
  flex-shrink: 0;
}

.testimonial-avatar--purple { background: #6C47FF; }
.testimonial-avatar--cyan { background: #00D4FF; }
.testimonial-avatar--green { background: #22C55E; }

.testimonial-name {
  font-weight: 600;
  font-size: var(--text-sm);
}

.testimonial-role {
  color: var(--text-muted);
  font-size: var(--text-xs);
}

.swiper-pagination-bullet {
  background: var(--text-muted) !important;
  opacity: 0.5 !important;
}

.swiper-pagination-bullet-active {
  background: var(--color-brand) !important;
  opacity: 1 !important;
}

/* Auth pages */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background:
    radial-gradient(ellipse at top left, rgba(108, 71, 255, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
    var(--bg-primary);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--card-radius);
  padding: 40px;
  box-shadow: var(--shadow-card);
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
  font-size: var(--text-xl);
  font-weight: 800;
}

.auth-title {
  font-size: var(--text-xl);
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.auth-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--btn-radius);
  color: var(--text-primary);
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-brand);
}

.form-control.error {
  border-color: var(--color-danger);
}

.form-error {
  color: var(--color-danger);
  font-size: var(--text-xs);
  margin-top: 6px;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.form-checkbox input {
  accent-color: var(--color-brand);
}

.auth-alert {
  padding: 12px 16px;
  border-radius: var(--btn-radius);
  font-size: var(--text-sm);
  margin-bottom: 20px;
}

.auth-alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--color-danger);
}

.auth-alert-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--color-success);
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--color-brand);
  font-weight: 600;
}

.auth-card-wide {
  max-width: 520px;
}

.install-status {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--btn-radius);
  padding: 16px;
  margin-bottom: 24px;
}

.install-status-title {
  font-size: var(--text-sm);
  margin-bottom: 12px;
  font-weight: 600;
}

.install-status-row {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: 6px;
}

.install-status-ok {
  color: var(--color-success);
}

.install-status-warn {
  color: var(--color-warning);
}

.install-credentials {
  background: rgba(108, 71, 255, 0.1);
  border: 1px solid rgba(108, 71, 255, 0.3);
  border-radius: var(--btn-radius);
  padding: 16px;
  margin-bottom: 24px;
}

.install-credentials-title {
  font-weight: 600;
  margin-bottom: 12px;
}

.install-credentials-row {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: 4px;
}

.install-step {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-bottom: 8px;
}

.install-actions {
  margin-top: 12px;
}

.btn-full {
  width: 100%;
}

@media (max-width: 768px) {
  .section-title {
    font-size: var(--text-xl);
  }
}

.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  text-align: center;
}

.error-page h1 {
  font-size: var(--text-2xl);
  font-weight: 800;
  margin-bottom: 16px;
}

.error-page p {
  color: var(--text-muted);
  margin-bottom: 32px;
}
