/* ═══════════════════════════════════════════════════════════════
   ARANTES TECNOLOGIA — SITES PARA ADVOCACIA
   landing.css — Extensões especializadas de Alto Padrão
   ═══════════════════════════════════════════════════════════════ */

/* ── Acentos Institucionais de Advocacia ── */
:root {
  --gold-accent: #D4AF37;
  --gold-light: #F3E5AB;
  --gold-border: rgba(212, 175, 55, 0.35);
  --gold-subtle: rgba(212, 175, 55, 0.12);
  --gold-glow: 0 0 30px rgba(212, 175, 55, 0.35);
  --gradient-gold: linear-gradient(135deg, #FFF6D6 0%, #D4AF37 60%, #AA820A 100%);
}

.text-gradient-gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── 1. HERO SECTION ────────────────────────────────────────── */
.section-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 130px;
  padding-bottom: 80px;
  background: var(--bg-primary);
}

#hero-bg-static {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
  transition: opacity 1.2s ease;
}

#hero-bg-static.webgl-ready {
  opacity: 0;
}

#prismatic-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: lighten;
  opacity: 0;
  transition: opacity 1.5s ease;
}

#prismatic-canvas.webgl-active {
  opacity: 0.85;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  max-width: 1040px;
}

.hero-title {
  font-family: 'Roboto Flex', var(--font-display), sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 1.08;
  color: var(--text-primary);
  font-variation-settings: 'wght' 800, 'opsz' 36;
}

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

.hero-buttons {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 20px !important;
  margin-top: 16px !important;
  flex-wrap: wrap;
}

/* ── 2. SHOWCASE VISUAL DE PROJETOS ─────────────────────────── */
.showcase-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(123, 47, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 10, 31, 0.6);
  transition: transform 0.4s var(--ease-normal), box-shadow 0.4s var(--ease-normal);
}

.showcase-frame:hover {
  transform: translateY(-6px);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7), 0 0 50px rgba(224, 64, 251, 0.35);
  border-color: rgba(224, 64, 251, 0.4);
}

.showcase-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: rgba(5, 5, 26, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.showcase-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.showcase-dot--red { background: #EF4444; }
.showcase-dot--yellow { background: #F59E0B; }
.showcase-dot--green { background: #10B981; }

.showcase-url {
  margin-left: 12px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 6px;
}

.showcase-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── 3. CARDS DO FUNIL (ESCOLHA DA NECESSIDADE) ─────────────── */
.needs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

.need-card {
  padding: 36px 30px;
  text-align: left;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--ease-normal);
  background: rgba(10, 10, 31, 0.35);
}

.need-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-spring);
}

.need-card:hover::before,
.need-card.active::before {
  transform: scaleX(1);
}

.need-card.active {
  border-color: var(--purple-main) !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), var(--glow-purple), 0 0 0 1px var(--purple-main) !important;
  background: rgba(123, 47, 255, 0.09) !important;
}

.need-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.need-card-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.25);
  line-height: 1;
}

.need-card.active .need-card-num {
  color: var(--pink-neon);
}

.need-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #FFF;
  margin-bottom: 12px;
  line-height: 1.3;
}

.need-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.need-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--purple-light);
}

.need-card.active .need-card-footer {
  color: var(--pink-neon);
}

.need-check-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: transparent;
  transition: all 0.2s ease;
}

.need-card.active .need-check-icon {
  background: var(--purple-main);
  border-color: var(--pink-neon);
  color: #FFF;
  box-shadow: 0 0 12px var(--purple-main);
}

/* ── 4. FORMULÁRIO DE QUALIFICAÇÃO (GLASS INTENSE) ──────────── */
.form-wrapper {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
}

.form-glass-box {
  padding: clamp(32px, 5vw, 56px);
}

.form-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  gap: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.form-field label .required {
  color: var(--danger);
}

.glass-input, .glass-select {
  height: 52px;
  background: rgba(10, 10, 31, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 0 16px;
  color: #FFF;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.25s ease;
  outline: none;
  box-sizing: border-box;
  width: 100%;
}

.glass-input:focus, .glass-select:focus {
  border-color: var(--purple-main);
  background: rgba(15, 15, 45, 0.75);
  box-shadow: 0 0 20px rgba(123, 47, 255, 0.35);
}

.glass-input.is-invalid, .glass-select.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.field-error-text {
  font-size: 0.75rem;
  color: #FF7070;
  display: none;
  margin-top: 2px;
}

.field-error-text.visible {
  display: block;
}

.site-url-conditional {
  display: none;
}

.site-url-conditional.visible {
  display: flex;
  animation: slideDownFade 0.35s ease;
}

@keyframes slideDownFade {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.lgpd-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  margin-top: 8px;
}

.lgpd-box input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--purple-main);
  cursor: pointer;
}

.lgpd-box label {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  cursor: pointer;
}

.form-submit-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  text-align: center;
}

/* ── 5. PIPELINE ANTES VS DEPOIS ────────────────────────────── */
.transformation-pipeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-radius: var(--radius-lg);
}

.pipeline-card {
  padding: 24px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.pipeline-card--before {
  border-left: 4px solid var(--danger);
}

.pipeline-card--after {
  border-left: 4px solid var(--success);
}

.pipeline-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.pipeline-badge {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.pipeline-badge--danger {
  background: rgba(239, 68, 68, 0.15);
  color: #FF7070;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.pipeline-badge--success {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.pipeline-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pipeline-flow {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pipeline-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.step-highlight-danger {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #FF8A8A;
}

.step-highlight-primary {
  background: rgba(123, 47, 255, 0.2);
  border-color: rgba(123, 47, 255, 0.5);
  color: #C4B5FD;
  box-shadow: 0 0 15px rgba(123, 47, 255, 0.3);
}

.step-highlight-success {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.5);
  color: #6EE7B7;
}

.pipeline-arrow {
  color: var(--purple-main);
  font-weight: 700;
  font-size: 1rem;
}

/* ── 6. REPERTÓRIO ESTÉTICO (DIREÇÕES VISUAIS) ─────────────── */
.models-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.model-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.model-card:hover {
  transform: translateY(-6px);
}

.model-card--classica:hover {
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(212, 175, 55, 0.2);
}

.model-card--contemporanea:hover {
  border-color: rgba(0, 212, 255, 0.5);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 212, 255, 0.2);
}

.model-card--minimalista:hover {
  border-color: rgba(224, 64, 251, 0.5);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(224, 64, 251, 0.2);
}

.model-preview-window {
  height: 190px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.model-preview-window.classica {
  background: radial-gradient(circle at center, rgba(212,175,55,0.12) 0%, #0a0a1a 80%);
  border-bottom: 2px solid #D4AF37;
}

.model-preview-window.contemporanea {
  background: radial-gradient(circle at center, rgba(0,212,255,0.12) 0%, #080c1d 80%);
  border-bottom: 2px solid #00D4FF;
}

.model-preview-window.minimalista {
  background: radial-gradient(circle at center, rgba(224,64,251,0.12) 0%, #0d0a22 80%);
  border-bottom: 2px solid #E040FB;
}

.model-card-body {
  padding: 28px;
}

.palette-swatches {
  display: flex;
  gap: 10px;
  margin: 12px 0 16px;
}

.palette-swatches span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-block;
}

/* ── 7. MODAL FALLBACK WHATSAPP ─────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(16px);
  z-index: 10000;
  display: none;
  place-items: center;
  padding: 24px;
}

.modal-overlay.active {
  display: grid;
}

.modal-box {
  max-width: 560px;
  width: 100%;
  padding: 40px;
  text-align: center;
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 20px; right: 20px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close-btn:hover {
  color: #FFF;
}

.msg-snippet {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: left;
  font-family: monospace;
  font-size: 0.82rem;
  color: var(--text-secondary);
  white-space: pre-line;
  max-height: 130px;
  overflow-y: auto;
  margin: 20px 0 24px;
}

/* ── RESPONSIVIDADE ─────────────────────────────────────────── */
@media (max-width: 992px) {
  .hero-title {
    font-size: clamp(2rem, 7vw, 3.2rem);
  }
  .needs-grid, .models-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-buttons {
    flex-direction: column !important;
  }
  .hero-buttons .btn, .hero-buttons .pixel-card, .hero-buttons .glass-surface {
    width: 100%;
  }
}
