/**
 * Super LP Repágil — Estilos da Landing Page Pública
 * Otimizada para Mobile-First (base 390px)
 */

:root {
  /* Paleta Repágil — hierarquia obrigatória */
  --bg:           #FFFFFF;
  --navy:         #0D1F3C;
  --navy-mid:     #1A3560;
  --cobalt:       #2B7FFF;
  --gold:         #C9962A;
  --gold-light:   #F2C14E;
  --text-main:    #0D1F3C;
  --text-muted:   #5A6A85;
  --surface:      #F4F6FA;

  /* Tipografia */
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Cards */
  --radius-card:  24px;

  /* Borda dourada (cards cor_tema=dourado) */
  --border-gold:  1.5px solid rgba(201,150,42,0.50);
  --shadow-gold:  0 0 0 1px rgba(201,150,42,0.12), inset 0 1px 0 rgba(242,193,78,0.20);

  /* Borda cobalt (cards cor_tema=cobalt) */
  --border-cobalt: 1.5px solid rgba(43,127,255,0.45);
  --shadow-cobalt: 0 0 0 1px rgba(43,127,255,0.10), inset 0 1px 0 rgba(43,127,255,0.15);

  /* Easing premium do carrossel */
  --ease-carousel: cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset Global */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

/* Palavras-chave com Destaque (Inalterável) */
.kw-gold { 
    color: #C9962A; 
    font-weight: 700; 
}
.kw-blue { 
    color: #2B7FFF; 
    font-weight: 700; 
}

/* Ênfase Dourada para o Hero H1 */
.kw-gold-emphasis {
    color: var(--gold-light);
    display: inline-block;
    position: relative;
}

/* ==========================================================================
   #HERO (Fundo Navy, Altura 100dvh)
   ========================================================================== */
.section-hero {
    background: linear-gradient(180deg, rgba(13, 31, 60, 0.93) 0%, rgba(13, 31, 60, 0.97) 100%), url('../images/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #FFFFFF;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 60px 24px;
    text-align: center;
    overflow: hidden;
}

/* Orbes luminosos premium (Glow Orbs) de fundo */
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    -webkit-filter: blur(120px);
    opacity: 0.12;
    z-index: 1;
    pointer-events: none;
    will-change: transform;
}

.hero-glow--1 {
    width: 320px;
    height: 320px;
    background-color: var(--cobalt);
    top: 5%;
    left: -80px;
    animation: floatGlow1 18s infinite alternate ease-in-out;
}

.hero-glow--2 {
    width: 280px;
    height: 280px;
    background-color: var(--gold);
    bottom: 15%;
    right: -80px;
    animation: floatGlow2 22s infinite alternate ease-in-out;
}

@keyframes floatGlow1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, 40px) scale(1.15); }
}

@keyframes floatGlow2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-50px, -60px) scale(1.1); }
}

.hero-container {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Controle de visibilidade inicial para revelação suave via Anime.js */
.animate-el {
    opacity: 0;
}

.hero-logo {
    margin-bottom: 32px;
}

.hero-logo svg {
    width: 140px;
    height: auto;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 8.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    color: #FFFFFF;
    text-shadow: 0 2px 12px rgba(13, 31, 60, 0.4);
}

.hero-subtitle {
    font-size: clamp(0.95rem, 4.5vw, 1.125rem);
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 40px;
    max-width: 480px;
    line-height: 1.6;
}

.btn-hero {
    display: inline-block;
    background-color: var(--gold);
    color: var(--navy);
    font-family: var(--font-display);
    font-weight: 700;
    text-decoration: none;
    padding: 16px 40px;
    border-radius: 100px;
    font-size: 1rem;
    box-shadow: 0 10px 25px rgba(201, 150, 42, 0.25);
    transition: transform 0.3s var(--ease-carousel), background-color 0.3s var(--ease-carousel), box-shadow 0.3s var(--ease-carousel);
}

.btn-hero:hover {
    background-color: var(--gold-light);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(201, 150, 42, 0.38);
}

.hero-scroll {
    margin-top: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.scroll-label {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.05em;
}

.scroll-arrow {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   #GANCHO (Fundo Branco)
   ========================================================================== */
.section-gancho {
    padding: 70px 0 40px 0;
    text-align: center;
    background-color: var(--bg);
}

.gancho-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 7vw, 2.5rem);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 16px;
    line-height: 1.2;
}

.gancho-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 340px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==========================================================================
   #SOLUCOES / CARROSSEL (Fundo Branco, Center Mode)
   ========================================================================== */
.section-solucoes {
    padding: 0 0 60px 0;
    background-color: var(--bg);
    overflow: hidden;
}

.carrossel-container {
    position: relative;
    width: 100%;
}

.carrossel-stage {
    position: relative;
    min-height: 390px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: pan-y;
}

/* Setas de Navegação (Glassmorphism) */
.carrossel-seta {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(13, 31, 60, 0.1);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--navy);
    font-size: 1.75rem;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    user-select: none;
    transition: all 0.2s ease;
}

.carrossel-seta:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(13, 31, 60, 0.25);
}

.carrossel-seta--prev {
    left: 8px;
}

.carrossel-seta--next {
    right: 8px;
}

/* Estilo do Card Base */
.card {
    position: absolute;
    width: 280px; /* Mobile base */
    min-height: 350px;
    border-radius: var(--radius-card);
    background: var(--bg);
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.6s var(--ease-carousel),
                opacity 0.6s var(--ease-carousel),
                box-shadow 0.6s var(--ease-carousel);
    will-change: transform, opacity;
}

/* Temas dos Cards */
.card--dourado {
    border: var(--border-gold);
    box-shadow: var(--shadow-gold);
}

.card--cobalt {
    border: var(--border-cobalt);
    box-shadow: var(--shadow-cobalt);
}

/* Estados de Posicionamento (Layout Center Mode com Peek) */
.card--center {
    transform: translateX(0) scale(1);
    opacity: 1;
    z-index: 3;
}

.card--center.card--dourado {
    box-shadow: 0 18px 50px rgba(201, 150, 42, 0.22);
}

.card--center.card--cobalt {
    box-shadow: 0 18px 50px rgba(43, 127, 255, 0.22);
}

.card--left {
    transform: translateX(-72%) scale(0.84);
    opacity: 0.45;
    z-index: 2;
}

.card--right {
    transform: translateX(72%) scale(0.84);
    opacity: 0.45;
    z-index: 2;
}

.card--hidden {
    transform: translateX(0) scale(0.7);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

/* Elementos do Card */
.card-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-badge {
    align-self: flex-start;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card--dourado .card-badge {
    color: var(--gold);
}

.card--cobalt .card-badge {
    color: var(--cobalt);
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.2;
}

.card-tagline {
    font-size: 0.875rem;
    font-style: italic;
    color: var(--text-muted);
    line-height: 1.4;
}

.card-body {
    margin: 16px 0;
}

.card-description {
    font-size: 0.9375rem;
    color: var(--text-main);
    line-height: 1.5;
}

.btn-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.card--dourado .btn-card {
    background-color: var(--navy);
    color: #FFFFFF;
}

.card--dourado .btn-card:hover {
    background-color: var(--navy-mid);
}

.card--cobalt .btn-card {
    background-color: var(--cobalt);
    color: #FFFFFF;
}

.card--cobalt .btn-card:hover {
    background-color: #1A6BE6;
}

/* Dots do Carrossel */
.carrossel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #E2E8F0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    width: 20px;
    border-radius: 100px;
    background-color: var(--gold);
}

/* ==========================================================================
   #CAPTURA (Fundo Surface)
   ========================================================================== */
.section-captura {
    background-color: var(--surface);
    padding: 60px 0;
    text-align: center;
}

.form-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    text-transform: uppercase;
    color: var(--gold);
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    font-weight: 500;
}

.form-card, .success-card {
    background: #FFFFFF;
    border-radius: var(--radius-card);
    padding: 36px 24px;
    box-shadow: 0 12px 30px rgba(13, 31, 60, 0.05);
    max-width: 450px;
    margin: 0 auto;
    text-align: left;
}

.form-headline {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 10px;
    line-height: 1.2;
}

.form-subheadline {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.5;
}

/* Form Groups e Inputs */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 12px; /* Apple-style */
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-main);
    background-color: #FFFFFF;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--cobalt);
    box-shadow: 0 0 0 3px rgba(43, 127, 255, 0.15);
}

.form-error {
    background-color: #FEE2E2;
    border: 1px solid #FCA5A5;
    color: #B91C1C;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 16px;
    display: none;
}

.btn-form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background-color: var(--gold);
    color: var(--navy);
    border: none;
    border-radius: 100px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.btn-form:hover {
    background-color: var(--gold-light);
}

/* Spinner do botão */
.btn-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(13, 31, 60, 0.2);
    border-top-color: var(--navy);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}

.form-micro-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 14px;
}

/* Tela de Sucesso Inline */
.success-card {
    text-align: center;
}

.success-icon {
    width: 56px;
    height: 56px;
    background-color: #DCFCE7;
    color: #16A34A;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.success-headline {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 10px;
}

.success-subheadline {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   #STATS (Fundo Surface)
   ========================================================================== */
.section-stats {
    background-color: var(--surface);
    padding: 60px 0 80px 0;
    text-align: center;
    position: relative;
}

.stats-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 7vw, 2.25rem);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 40px;
    position: relative;
}

.stats-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: var(--gold);
    margin: 12px auto 0 auto;
    border-radius: 2px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 340px;
    margin: 0 auto;
}

.stat-item {
    background: #FFFFFF;
    border-radius: var(--radius-card);
    padding: 32px 24px;
    border: 1px solid rgba(13, 31, 60, 0.06);
    box-shadow: 0 10px 30px rgba(13, 31, 60, 0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--ease-carousel),
                box-shadow 0.4s var(--ease-carousel),
                border-color 0.4s var(--ease-carousel);
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--cobalt), var(--gold));
    opacity: 1;
    transition: opacity 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(13, 31, 60, 0.08);
    border-color: rgba(43, 127, 255, 0.2);
}

.stat-item:hover::before {
    opacity: 1;
}

/* Efeito nos números das estatísticas */
.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 9vw, 3.25rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
    display: inline-block;
}

/* Estatística 1 e 2 (Cobalt Gradient) */
#statItem1 .stat-number, #statItem2 .stat-number {
    background: linear-gradient(135deg, var(--navy), var(--cobalt));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Estatística 3 (Gold Gradient) */
#statItem3 .stat-number {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
    transition: color 0.3s ease;
}

.stat-item:hover .stat-label {
    color: var(--navy);
}

/* ==========================================================================
   #CTA-FINAL (Fundo Navy)
   ========================================================================== */
.section-cta-final {
    background-color: var(--navy);
    color: #FFFFFF;
    padding: 70px 0 120px 0; /* Espaço para o Sticky no final */
    text-align: center;
}

.cta-final-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 7vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.cta-final-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 360px;
    margin: 0 auto 32px auto;
    line-height: 1.6;
}

.cta-final-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 280px;
    margin: 0 auto;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 100px;
    font-family: var(--font-display);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.btn--gold {
    background-color: var(--gold);
    color: var(--navy);
}

.btn--gold:hover {
    background-color: var(--gold-light);
}

.btn--secondary {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
}

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

/* ==========================================================================
   #CTA-STICKY (Fixo no Rodapé)
   ========================================================================== */
#cta-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 12px 24px calc(12px + env(safe-area-inset-bottom));
    background: rgba(13, 31, 60, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateY(100%);
    transition: none; /* Controlado via JS */
}

#cta-sticky .btn-sticky {
    display: block;
    width: 100%;
    background: var(--gold);
    color: var(--navy);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    padding: 14px;
    border-radius: 100px;
    text-decoration: none;
    border: none;
    box-shadow: 0 4px 15px rgba(201, 150, 42, 0.25);
    transition: background-color 0.2s ease;
}

#cta-sticky .btn-sticky:hover {
    background-color: var(--gold-light);
}

/* ==========================================================================
   #RODAPE (Fundo Navy)
   ========================================================================== */
.section-rodape {
    background-color: var(--navy);
    color: rgba(255, 255, 255, 0.5);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
}

.rodape-tagline {
    font-style: italic;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.rodape-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.rodape-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s ease;
}

.rodape-links a:hover {
    color: #FFFFFF;
}

.rodape-copy {
    font-size: 0.75rem;
}

/* ==========================================================================
   ANIMAÇÕES E EFEITOS
   ========================================================================== */
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   BREAKPOINTS ADICIONAIS (768px e 1280px)
   ========================================================================== */
@media (min-width: 768px) {
    body {
        font-size: 17px;
    }
    
    .container {
        padding: 0 32px;
    }
    
    .section-hero {
        padding: 60px 32px;
    }
    
    .hero-container {
        max-width: 800px;
    }
    
    .hero-subtitle {
        max-width: 480px;
    }
    
    .section-gancho {
        padding: 90px 0 50px 0;
    }
    
    .gancho-subtitle {
        max-width: 500px;
    }
    
    /* Carrossel no Tablet */
    .card {
        width: 340px; /* Card maior */
    }
    
    .card--left {
        transform: translateX(-80%) scale(0.84);
    }
    
    .card--right {
        transform: translateX(80%) scale(0.84);
    }
    
    .carrossel-seta--prev {
        left: 20px;
    }
    
    .carrossel-seta--next {
        right: 20px;
    }
    
    .carrossel-dots {
        margin-top: 36px;
    }

    .form-card, .success-card {
        padding: 40px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 768px;
        gap: 20px;
    }
    
    .cta-final-subtitle {
        max-width: 460px;
    }
    
    .cta-final-buttons {
        flex-direction: row;
        max-width: 480px;
        justify-content: center;
        gap: 16px;
    }
    
    .btn {
        flex: 1;
    }
}

@media (min-width: 1280px) {
    .container {
        padding: 0 40px;
    }
    
    .section-hero {
        padding: 80px 40px;
    }
    
    .hero-logo {
        margin-bottom: 32px;
    }
    
    .hero-logo svg {
        width: 160px;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        margin-bottom: 32px;
    }
    
    .hero-subtitle {
        max-width: 600px;
        margin-bottom: 40px;
    }
    
    /* Carrossel no Desktop */
    .card {
        width: 360px;
    }
    
    .card--left {
        transform: translateX(-90%) scale(0.84);
    }
    
    .card--right {
        transform: translateX(90%) scale(0.84);
    }
    
    .carrossel-seta {
        width: 52px;
        height: 52px;
        font-size: 2rem;
    }
    
    .carrossel-seta--prev {
        left: 40px;
    }
    
    .carrossel-seta--next {
        right: 40px;
    }
    
    .stats-grid {
        max-width: 960px;
        gap: 30px;
    }
    
    .stat-item {
        padding: 30px;
    }
    
    /* Ocultar CTA Sticky no desktop */
    #cta-sticky {
        display: none;
    }
    
    .section-cta-final {
        padding: 90px 0; /* Remover padding excessivo já que não há sticky */
    }
}
