/* =========================================
   DESIGN TOKENS & RESET
   ========================================= */
:root {
    /* Colors */
    --black: #000000;
    --black-light: #222222;
    --white: #ffffff;
    --gray-light: #f6f6f6;
    --gray: #e2e2e2;
    --gray-dark: #545454;
    --blue: #276ef1;
    
    /* Typography */
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Spacing & Layout */
    --container-max: 1280px;
    --header-height: 64px;
    --sub-header-height: 72px;
    
    /* Shadows & Transitions */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
}

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

img, video {
    max-width: 100%;
    height: auto;
}

html {
    scroll-behavior: auto; /* Necessário para não conflitar com o Lenis */
    font-family: var(--font-primary);
    overflow-x: hidden;
}

body {
    background-color: var(--white);
    color: var(--black);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

ul {
    list-style: none;
}

/* =========================================
   UTILITIES & COMPONENTS
   ========================================= */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 99px; /* Pill shape */
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
}

.btn-large {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: 8px;
}

.btn-primary-black {
    background-color: var(--black);
    color: var(--white);
}

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

.btn-primary-white {
    background-color: var(--white);
    color: var(--black);
}

.btn-primary-white:hover {
    background-color: var(--gray-light);
}

/* =========================================
   GLOBAL HEADER
   ========================================= */
.global-header {
    background-color: var(--black);
    color: var(--white);
    height: var(--header-height);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.header-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px; /* Logo reduzido para visual mais delicado */
    width: auto;
    object-fit: contain;
}

.header-nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.header-nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--white);
    transition: var(--transition);
}

.header-nav a:hover {
    color: #a0a0a0;
}

@media (max-width: 768px) {
    .header-nav {
        display: none; /* Hide on mobile for now, or you could implement a hamburger menu */
    }
}

/* =========================================
   SECONDARY HEADER
   ========================================= */
.secondary-header {
    background-color: var(--white);
    height: var(--sub-header-height);
    border-bottom: 1px solid var(--gray);
    z-index: 100;
}

.secondary-header.sticky {
    position: sticky;
    top: 0;
}

.page-title {
    font-size: 24px;
    font-weight: 700;
}

.secondary-nav {
    display: flex;
    gap: 24px;
}

.secondary-nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-dark);
    padding: 24px 0; /* Full height for active indicator */
    position: relative;
}

.secondary-nav a:hover {
    color: var(--black);
}

.secondary-nav a.active {
    color: var(--black);
}

.secondary-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--black);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
    padding: 40px 0 80px;
    background-color: var(--white);
    color: var(--black);
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.hero-logos {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.uber-logo {
    height: 24px;
    object-fit: contain;
}

.logo-plus {
    font-size: 20px;
    font-weight: 500;
    color: var(--gray-dark);
}

.suppley-logo {
    height: 36px;
    object-fit: contain;
    filter: brightness(0); /* Transforma a logo branca em preta */
}

.hero-title {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
    text-wrap: balance;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 24px;
    color: var(--black);
    text-wrap: balance;
}

.hero-description {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 40px;
    color: var(--gray-dark);
}

.hero-actions {
    display: flex;
    gap: 16px;
}

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

.btn-outline:hover {
    background-color: var(--black);
    color: var(--white);
}

.hero-video-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.video-container {
    width: 100%;
    aspect-ratio: 4/5;
    background-color: transparent;
    border-radius: 24px;
    position: relative;
    pointer-events: none;
}

.hero-video-box {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    mix-blend-mode: multiply;
    filter: contrast(1.1) brightness(1.1);
    transform: scale(2.4);
    pointer-events: none;
}

/* =========================================
   APP SECTION
   ========================================= */
.app-section {
    padding: 96px 0;
    background-color: var(--white);
}

.app-grid {
    display: flex;
    gap: 80px;
    align-items: center;
}

.app-image-wrapper {
    flex: 1;
}

.app-image {
    width: 100%;
    max-width: 450px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.app-content {
    flex: 1;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 48px;
    letter-spacing: -0.5px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.feature-item {
    display: flex;
    gap: 24px;
}

.feature-icon {
    font-size: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gray-light);
    border-radius: 50%;
    flex-shrink: 0;
}

.feature-text h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.feature-text p {
    color: var(--gray-dark);
}

/* =========================================
   BENEFITS GRID SECTION
   ========================================= */
.benefits-section {
    padding: 96px 0;
    background-color: var(--gray-light);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 64px;
}

.benefit-card {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.benefit-icon {
    font-size: 32px;
    margin-bottom: 24px;
    display: block;
}

.benefit-card h3 {
    font-size: 20px;
    margin-bottom: 16px;
}

.benefit-card p {
    color: var(--gray-dark);
}

/* =========================================
   FOOTER
   ========================================= */
.global-footer {
    background-color: #f9f9f9;
    color: var(--black);
    padding: 64px 0 32px;
}

.global-footer .footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logos {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-nav {
    display: flex;
    gap: 24px;
}

.footer-nav a {
    font-size: 14px;
    color: #545454;
    font-weight: 500;
}

.footer-nav a:hover {
    color: var(--black);
}

.global-footer .footer-bottom {
    padding-top: 32px;
    font-size: 12px;
    color: #888;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .global-footer .footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
    .footer-nav {
        flex-wrap: wrap;
        gap: 16px;
    }
}

/* =========================================
   RESPONSIVE (MEDIA QUERIES)
   ========================================= */
@media (max-width: 992px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: block !important; }
    
    .hero-grid, .app-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-container, .app-grid {
        flex-direction: column;
        text-align: left;
    }

    .hero-grid > .hero-video-wrapper {
        grid-row: 1; /* Move o vídeo para cima no mobile */
    }

    .hero-grid > .hero-content {
        grid-row: 2;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-item {
        text-align: left;
    }
}

/* =========================================
   COMO FUNCIONA SECTION
   ========================================= */
.how-it-works-section {
    padding: 96px 0;
    background-color: var(--white);
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 64px;
}

.timeline-item {
    position: relative;
    padding-top: 48px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 48px;
    width: 100%;
    height: 2px;
    background-color: var(--gray);
    z-index: 0;
}

.timeline-item:last-child::before {
    display: none;
}

.step-number {
    width: 48px;
    height: 48px;
    background-color: var(--black);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.timeline-item h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.timeline-item p {
    color: var(--gray-dark);
}

@media (max-width: 768px) {
    .timeline-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-item::before {
        display: none; /* Hide horizontal line on mobile */
    }
    
    .timeline-item {
        padding-top: 0;
        padding-left: 72px;
        margin-bottom: 32px;
    }
    
    .timeline-item:last-child {
        margin-bottom: 0;
    }
}

/* =========================================
   FAQ SECTION
   ========================================= */
.faq-section {
    padding: 80px 0 40px;
    background-color: var(--white);
}

.faq-container {
    max-width: 800px;
}

.faq-accordion {
    margin-top: 64px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    border: 1px solid var(--gray);
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    font-size: 18px;
    font-weight: 600;
    color: var(--black);
    text-align: left;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: var(--gray-light);
}

.faq-icon {
    font-size: 24px;
    font-weight: 400;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 24px 24px;
    color: var(--gray-dark);
}

.faq-answer ul,
.faq-answer ol {
    padding: 0 24px 24px 48px;
    color: var(--gray-dark);
}

.faq-answer ul {
    list-style: disc;
}

.faq-answer ol {
    list-style: decimal;
}

.faq-answer li {
    margin-bottom: 8px;
}

.faq-answer li:last-child {
    margin-bottom: 0;
}

/* =========================================
   DARK CTA BANNER
   ========================================= */
.dark-cta-section {
    padding: 40px 0 80px;
    background-color: var(--white);
}

.dark-cta-box {
    background-color: #1a1a1a;
    color: var(--white);
    border-radius: 8px;
    padding: 64px 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.dark-cta-content h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    line-height: 1.4;
}

.dark-cta-content p {
    font-size: 16px;
    color: #a0a0a0;
}

.support-cta-container {
    text-align: center;
    margin-top: 32px;
}

.support-cta-container p {
    font-size: 16px;
    color: var(--gray-dark);
    margin-bottom: 16px;
}

.support-cta-container .btn {
    font-weight: 600;
}

@media (max-width: 992px) {
    .dark-cta-box {
        padding: 40px 24px;
    }
}

/* =========================================
   MODALS
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.modal-content {
    background-color: var(--white);
    padding: 48px;
    border-radius: 24px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

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

.faq-modal-content {
    max-width: 800px;
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 28px;
    line-height: 1;
    color: var(--gray-dark);
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--black);
}

.support-contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border: 1px solid var(--gray);
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 18px;
}

.support-contact:last-child {
    margin-bottom: 0;
}

.contact-link {
    font-weight: 600;
    color: var(--blue);
}

.contact-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .modal-content {
        padding: 32px 24px;
    }
    .support-contact {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
