/* ============================================
   Landing Page Clientes - Premium Design
   Focada em donos de veículos
   ============================================ */

/* Importar variáveis do design system existente */
@import url('landing.css');

/* ============================================
   Customizações para Landing de Clientes
   ============================================ */

/* Hero Section - Cliente Focado */
.hero-customer {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
}

.hero-customer .hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
}

.hero-customer .highlight-box {
    display: inline-block;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.1));
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* ============================================
   Benefits Section
   ============================================ */
/* ============================================
   Benefits Carousel
   ============================================ */
.benefits-carousel-container {
    position: relative;
    max-width: 100%;
    margin-top: var(--space-3xl);
}

.benefits-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: var(--space-lg);
    padding: var(--space-lg) var(--space-md);
    padding-bottom: var(--space-2xl);
    /* Space for shadow */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
}

.benefits-carousel::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

.carousel-card {
    flex: 0 0 280px;
    /* Fixed width for consistency */
    scroll-snap-align: center;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

/* Media query for desktop to center if enough space, or keep carousel behavior */
@media (min-width: 1024px) {
    .benefits-carousel {
        justify-content: center;
        flex-wrap: wrap;
        /* Fallback to grid-like on large screens if desired, or keep as row */
        overflow-x: visible;
        scroll-snap-type: none;
    }

    .carousel-card {
        flex: 1 1 250px;
        max-width: 300px;
    }
}

.carousel-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-primary);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.15);
}

.card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: var(--space-md);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.carousel-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
}

.carousel-card p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin-bottom: var(--space-md);
}

.card-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    text-align: left;
}

.card-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: 6px;
}

.card-list li::before {
    content: "•";
    color: var(--color-primary);
    font-weight: bold;
    font-size: 1.2rem;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: var(--space-md);
}

.carousel-indicators span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.carousel-indicators span.active {
    background: var(--color-primary);
    width: 24px;
    border-radius: 4px;
}


/* ============================================
   Como Funciona - Timeline
   ============================================ */
.timeline-container {
    max-width: 1000px;
    margin: var(--space-4xl) auto;
    position: relative;
}

.timeline-item {
    display: flex;
    gap: var(--space-2xl);
    margin-bottom: var(--space-4xl);
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: var(--font-weight-extrabold);
    color: white;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
    position: relative;
    z-index: 2;
}

.timeline-item:not(:last-child) .timeline-number::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100px;
    background: linear-gradient(180deg, var(--color-primary), transparent);
}

.timeline-content {
    flex: 1;
    padding-top: var(--space-sm);
}

.timeline-title {
    font-size: 1.75rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
}

.timeline-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

/* ============================================
   Screenshot Gallery
   ============================================ */
.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-3xl);
}

.screenshot-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-light);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.screenshot-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--color-primary);
}

.screenshot-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: linear-gradient(135deg, #1a1a2e 0%, #2a2a3a 100%);
}

.screenshot-caption {
    padding: var(--space-lg);
}

.screenshot-title {
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-xs);
}

.screenshot-subtitle {
    font-size: 0.9rem;
    color: var(--color-text-tertiary);
}

/* ============================================
   Testimonials - Cliente Style
   ============================================ */
.testimonial-customer {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: var(--space-2xl);
    position: relative;
}

.testimonial-customer::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 24px;
    font-size: 5rem;
    color: var(--color-primary);
    opacity: 0.1;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-text-customer {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
    font-style: italic;
    margin-bottom: var(--space-lg);
    position: relative;
    z-index: 1;
}

.testimonial-author-customer {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.author-avatar-customer {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.author-info-customer {
    flex: 1;
}

.author-name-customer {
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    margin-bottom: 2px;
}

.author-vehicle-customer {
    font-size: 0.9rem;
    color: var(--color-text-tertiary);
}

/* ============================================
   Cadastro Form
   ============================================ */
.cadastro-section {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
    padding: var(--space-5xl) 0;
    position: relative;
    overflow: hidden;
}

.cadastro-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
}

.form-container-customer {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: var(--space-3xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.form-header-customer {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.form-title-customer {
    font-size: 2.25rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
}

.form-subtitle-customer {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.form-group-customer {
    margin-bottom: var(--space-xl);
}

.form-label-customer {
    display: block;
    font-size: 0.95rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
}

.form-input-customer {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border-medium);
    border-radius: var(--radius-lg);
    color: var(--color-text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input-customer::placeholder {
    color: var(--color-text-disabled);
}

.form-input-customer:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input-customer.error {
    border-color: var(--color-error);
}

.form-error-message {
    display: none;
    font-size: 0.875rem;
    color: var(--color-error);
    margin-top: var(--space-xs);
}

.form-input-customer.error+.form-error-message {
    display: block;
}

.form-submit-customer {
    width: 100%;
    padding: var(--space-lg) var(--space-2xl);
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.form-submit-customer:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.5);
}

.form-submit-customer:active {
    transform: translateY(0);
}

.form-submit-customer:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   Trust Badges
   ============================================ */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2xl);
    margin-top: var(--space-4xl);
    padding: var(--space-3xl) 0;
    border-top: 1px solid var(--color-border-light);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg) var(--space-xl);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.trust-badge:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--color-primary);
    transform: translateY(-4px);
}

.trust-badge-icon {
    font-size: 2rem;
}

.trust-badge-text {
    display: flex;
    flex-direction: column;
}

.trust-badge-title {
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
}

.trust-badge-subtitle {
    font-size: 0.875rem;
    color: var(--color-text-tertiary);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .timeline-item {
        flex-direction: column;
        gap: var(--space-lg);
    }

    .timeline-item:not(:last-child) .timeline-number::after {
        display: none;
    }

    .screenshot-grid {
        grid-template-columns: 1fr;
    }

    .form-container-customer {
        padding: var(--space-2xl) var(--space-lg);
    }

    .trust-badges {
        flex-direction: column;
        align-items: center;
    }
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-scale {
    opacity: 0;
    animation: scaleIn 0.5s ease-out forwards;
}

/* ============================================
   Segment Selection Modal
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: var(--space-md);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #1E1E2E;
    /* Dark theme background matching platform */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: var(--space-2xl);
    width: 100%;
    max-width: 600px;
    position: relative;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #9CA3AF;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.modal-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.modal-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-xs);
}

.modal-header p {
    color: #9CA3AF;
    font-size: 1rem;
}

.segment-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.segment-card {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.segment-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.segment-card:active {
    transform: translateY(0);
}

.segment-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
}

.segment-info {
    flex: 1;
}

.segment-info h4 {
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.segment-info p {
    color: #9CA3AF;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.segment-arrow {
    color: #9CA3AF;
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.segment-card:hover .segment-arrow {
    color: var(--color-primary);
    transform: translateX(4px);
}

/* ============================================
   Wizard Form Styles
   ============================================ */
.wizard-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-3xl);
    position: relative;
    padding: 0 var(--space-md);
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    z-index: 2;
    position: relative;
    width: 100px;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    transition: all 0.4s ease;
}

.step-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    transition: all 0.4s ease;
    text-align: center;
}

.step-item.active .step-circle {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.step-item.active .step-label {
    color: var(--color-primary);
}

.step-item.completed .step-circle {
    background: var(--color-success);
    border-color: var(--color-success);
    color: white;
}

.step-line {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 -30px;
    margin-top: -24px;
    z-index: 1;
    position: relative;
}

.step-line.active {
    background: linear-gradient(90deg, var(--color-primary), var(--color-success));
}

.wizard-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.wizard-step.active {
    display: block;
}

.wizard-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-2xl);
    gap: var(--space-md);
}

.wizard-actions.right {
    justify-content: flex-end;
}

.btn-next,
.btn-prev {
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.btn-prev {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-prev:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .step-label {
        display: none;
    }

    .wizard-progress {
        padding: 0;
    }
}

/* ============================================
   Navigation Styles
   ============================================ */
.nav-links {
    display: none;
    /* Hidden by default on mobile, toggled by JS */
}

.nav-link {
    color: var(--color-text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
    text-decoration: none;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--color-primary);
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
        gap: var(--space-xl);
        align-items: center;
        margin-left: var(--space-2xl);
    }

    /* Ensure nav content is spaced correctly */
    .nav-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .nav-logo,
    .nav-actions {
        flex-shrink: 0;
    }
}