/* ==========================================================================
   CONNECT VALLEY - Design System Moderno
   ========================================================================== */

/* ==========================================================================
   1. VARIÁVEIS & TOKENS
   ========================================================================== */
:root {
    /* Cores Principais */
    --cv-blue: #0066FF;
    --cv-blue-dark: #0052CC;
    --cv-blue-light: #338FFF;
    --cv-purple: #6366F1;
    --cv-cyan: #06B6D4;

    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #0066FF 0%, #6366F1 100%);
    --gradient-secondary: linear-gradient(135deg, #06B6D4 0%, #0066FF 100%);
    --gradient-hero: linear-gradient(135deg, #0052CC 0%, #0066FF 50%, #6366F1 100%);
    --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);

    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(0, 102, 255, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 102, 255, 0.12);
    --shadow-lg: 0 8px 40px rgba(0, 102, 255, 0.16);
    --shadow-xl: 0 20px 60px rgba(0, 102, 255, 0.20);

    /* Espaçamento */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;

    /* Tipografia */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Cardo', Georgia, serif;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transições */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: #1a1a1a;
    background: #ffffff;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: #0a0a0a;
}

/* ==========================================================================
   3. ANIMAÇÕES
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

/* ==========================================================================
   4. HERO SECTION
   ========================================================================== */
.cv-hero {
    position: relative;
    background: var(--gradient-hero);
    background-size: 200% 200%;
    animation: gradient 15s ease infinite;
    padding: 120px 0 140px;
    overflow: hidden;
}

.cv-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

.cv-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 0.8s var(--transition-base);
}

.cv-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: white;
    margin-bottom: 32px;
    animation: fadeIn 1s var(--transition-base) 0.2s both;
}

.cv-hero-title {
    font-size: clamp(40px, 6vw, 68px);
    font-weight: 700;
    color: white;
    margin-bottom: 24px;
    line-height: 1.1;
    animation: fadeInUp 0.8s var(--transition-base) 0.3s both;
}

.cv-hero-subtitle {
    font-size: clamp(18px, 2vw, 22px);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 48px;
    line-height: 1.6;
    animation: fadeInUp 0.8s var(--transition-base) 0.4s both;
}

.cv-hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s var(--transition-base) 0.5s both;
}

/* ==========================================================================
   5. BOTÕES
   ========================================================================== */
.cv-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.cv-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: translateX(-100%);
    transition: transform var(--transition-slow);
}

.cv-btn:hover::before {
    transform: translateX(100%);
}

.cv-btn-primary {
    background: white;
    color: var(--cv-blue);
    box-shadow: var(--shadow-lg);
}

.cv-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.cv-btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.cv-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* ==========================================================================
   6. CARDS
   ========================================================================== */
.cv-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 1px solid rgba(0, 102, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.cv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.cv-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.cv-card:hover::before {
    transform: scaleX(1);
}

.cv-card-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}

.cv-card-icon i {
    font-size: 28px;
    color: white;
}

.cv-card-title {
    font-size: 22px;
    margin-bottom: 12px;
    color: #0a0a0a;
}

.cv-card-description {
    color: #6b7280;
    line-height: 1.7;
}

/* ==========================================================================
   7. SEÇÕES
   ========================================================================== */
.cv-section {
    padding: 100px 0;
    position: relative;
}

.cv-section-light {
    background: #fafbfc;
}

.cv-section-gradient {
    background: var(--gradient-primary);
    color: white;
}

.cv-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}

.cv-section-title {
    font-size: clamp(32px, 4vw, 48px);
    margin-bottom: 16px;
}

.cv-section-subtitle {
    font-size: 18px;
    color: #6b7280;
    line-height: 1.7;
}

.cv-section-gradient .cv-section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   8. GRID
   ========================================================================== */
.cv-grid {
    display: grid;
    gap: 32px;
}

.cv-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.cv-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.cv-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ==========================================================================
   9. STATS
   ========================================================================== */
.cv-stat-item {
    text-align: center;
    padding: 32px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cv-stat-number {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, white 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cv-stat-label {
    font-size: 16px;
    opacity: 0.9;
}

/* ==========================================================================
   10. PROCESS STEPS
   ========================================================================== */
.cv-process-step {
    text-align: center;
    position: relative;
}

.cv-process-number {
    width: 96px;
    height: 96px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    color: white;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.cv-process-number::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.3;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0; }
}

.cv-process-title {
    font-size: 24px;
    margin-bottom: 12px;
}

.cv-process-description {
    color: #6b7280;
    line-height: 1.7;
}

/* ==========================================================================
   11. FORM STYLES
   ========================================================================== */
.cv-form-card {
    background: white;
    padding: 56px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(0, 102, 255, 0.08);
}

.cv-form-header {
    text-align: center;
    margin-bottom: 40px;
}

.cv-logo-text {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 700;
    color: #0a0a0a;
    margin-bottom: 16px;
}

.cv-logo-accent {
    color: var(--cv-blue);
}

.form-control,
.form-select {
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    font-size: 15px;
    transition: all var(--transition-base);
    width: 100%;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--cv-blue);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    display: block;
}

/* ==========================================================================
   12. UTILIDADES
   ========================================================================== */
.container-cv {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 768px) {
    .cv-hero {
        padding: 80px 0 100px;
    }

    .cv-section {
        padding: 60px 0;
    }

    .cv-form-card {
        padding: 32px 24px;
    }

    .cv-hero-actions {
        flex-direction: column;
    }

    .cv-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   13. GLASSMORPHISM
   ========================================================================== */
.cv-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cv-glass-dark {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.1);
}
