/* Mobile-First CSS Architecture */
:root {
    --bg-dark: #070709;
    --bg-surface: #121216;
    --bg-surface-light: rgba(30, 30, 36, 0.6);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    
    --brand-primary: #3b82f6;
    --brand-secondary: #0ea5e9;
    --brand-gradient: linear-gradient(135deg, #3b82f6 0%, #0ea5e9 100%);
    --brand-gradient-hover: linear-gradient(135deg, #2563eb 0%, #0284c7 100%);
    
    --success: #10b981;
    --warning: #fbbf24;
    
    --border-glass: rgba(255, 255, 255, 0.08);
    --shadow-glow: 0 0 24px rgba(59, 130, 246, 0.25);
    
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Accounts for fixed navbar */
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

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

/* Layout Utilities */
.w-full { width: 100%; }

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--brand-gradient);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    border: none;
    box-shadow: var(--shadow-glow);
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
}

.btn-large {
    padding: 1.1rem 2.5rem;
    font-size: 1.15rem;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    box-shadow: 0 0 24px rgba(37, 211, 102, 0.3);
}

.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

/* Glassmorphism Panels */
.glass-panel {
    background: var(--bg-surface-light);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

/* Navbar (Mobile First) */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(7, 7, 9, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
}

.logo-subtitle {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.desktop-nav {
    display: none; /* Hidden on mobile */
}

.mobile-menu-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 340px;
    height: 100vh;
    background: rgba(12, 12, 16, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--border-glass);
    z-index: 2000;
    padding: 5rem 2rem 2rem;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(0,0,0,0.8);
}

.mobile-nav-drawer.active {
    right: 0;
}

.mobile-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: white;
    font-size: 2.2rem;
    cursor: pointer;
    line-height: 1;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-nav-links a {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
    display: block;
    transition: var(--transition);
}

.mobile-nav-links a:not(.btn-primary):hover {
    color: var(--brand-secondary);
}

/* Base Section */
section {
    padding: 5rem 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header p {
    margin-bottom: 0;
}

/* Tag */
.tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--brand-secondary);
}

/* Hero Section (Mobile layout) */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: auto;
    padding-top: 100px; /* offset for nav */
    gap: 3rem;
}

.hero-image-wrapper {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    order: -1; /* Image on top for mobile */
}

.glow-orb {
    position: absolute;
    width: 250px;
    height: 250px;
    background: var(--brand-primary);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    z-index: -1;
    animation: pulse-glow 4s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    0% { transform: scale(0.8); opacity: 0.3; }
    100% { transform: scale(1.2); opacity: 0.6; }
}

.hero-img {
    width: 100%;
    max-width: 400px;
    object-fit: contain;
    mix-blend-mode: screen; 
    /* The user had 'screen' blend mode previously */
    position: relative;
    z-index: 1;
}

.trust-badge {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(18, 18, 22, 0.9);
    border: 1px solid var(--border-glass);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    z-index: 2;
    backdrop-filter: blur(8px);
}

.stars {
    display: flex;
    gap: 2px;
}
.stars svg {
    width: 14px;
    height: 14px;
}

.hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    margin-top: 1rem;
    align-items: center;
}

/* Process Timeline (Mobile Vertical) */
.process-section {
    background: var(--bg-surface);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.timeline-line {
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--brand-primary), var(--brand-secondary), var(--success));
    opacity: 0.5;
}

.timeline-item {
    display: flex;
    gap: 1.5rem;
    position: relative;
    padding-left: 10px;
}

.timeline-dot {
    width: 32px;
    height: 32px;
    background: var(--bg-dark);
    border: 2px solid var(--brand-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--brand-secondary);
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    /* Adjust alignment with the line */
    margin-left: -6px; 
}

.timeline-content {
    padding: 1.5rem;
    flex: 1;
}

.timeline-content .icon-box {
    margin-bottom: 1rem;
    color: var(--brand-secondary);
}

.timeline-content .icon-box.success {
    color: var(--success);
}

.highlight-panel {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.05);
}

/* Benefits Grid */
.benefits-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.benefit-card {
    padding: 2rem;
    text-align: left;
    transition: var(--transition);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.benefit-card .icon-wrapper {
    width: 48px;
    height: 48px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary);
    margin-bottom: 1.5rem;
}

/* Tecnologia Premium Section */
.tech-section {
    text-align: center;
    overflow: hidden;
    padding-bottom: 4rem;
}

.tech-3d-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 850px;
    margin: 12rem auto 0;
    perspective: 2500px;
}

.scene-3d {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
}

.lens-container {
    position: relative;
    width: 380px;
    height: 380px;
    top: 420px;
    transform-style: preserve-3d;
    transform: rotateX(65deg) rotateZ(45deg);
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lens-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.2), 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform-style: preserve-3d;
    transform: translateZ(calc(var(--layer-idx) * 2px)); /* Stacked state */
}

.base-layer { --layer-idx: 1; border-color: rgba(255, 255, 255, 0.4); }
.hard-coat-layer { --layer-idx: 2; border-color: rgba(16, 185, 129, 0.4); }
.uv-layer { --layer-idx: 3; border-color: rgba(245, 158, 11, 0.4); }
.blue-light-layer { --layer-idx: 4; border-color: rgba(59, 130, 246, 0.4); background: rgba(59, 130, 246, 0.05); }
.ar-layer { --layer-idx: 5; border-color: rgba(139, 92, 246, 0.4); }
.hydro-layer { --layer-idx: 6; border-color: rgba(6, 182, 212, 0.4); }

/* Exploded State on hover or when .active is added via JS/Scroll */
.tech-3d-wrapper:hover .lens-layer,
.tech-3d-wrapper.active .lens-layer {
    transform: translateZ(calc(var(--layer-idx) * 120px));
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.1), 0 20px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Layer Content Tooltips */
.layer-content {
    position: absolute;
    left: -280px;
    top: 50%;
    transform: translateY(-50%) rotateZ(-45deg) rotateX(-65deg); 
    width: 240px;
    text-align: right;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    background: rgba(16, 37, 66, 0.88);
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(96, 165, 250, 0.4);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.layer-content.right {
    left: auto;
    right: -280px;
    text-align: left;
}

.tech-3d-wrapper:hover .layer-content,
.tech-3d-wrapper.active .layer-content {
    opacity: 1;
    visibility: visible;
    transition-delay: 0.3s;
}

.layer-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--brand-secondary);
    color: var(--bg-dark);
    border-radius: 50%;
    font-weight: 800;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.layer-content h4 {
    color: var(--brand-secondary);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.layer-content p {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0;
    color: var(--text-primary);
}

@media (max-width: 767px) {
    .tech-3d-wrapper {
        height: 800px;
        margin: 8rem auto 0;
        perspective: 2000px;
    }
    .lens-container {
        width: 180px;
        height: 180px;
        top: 320px;
        transform: rotateX(70deg) rotateZ(45deg);
    }
    .layer-content {
        left: -120px;
        width: 150px;
        transform: translateY(-50%) rotateZ(-45deg) rotateX(-70deg); 
        padding: 0.75rem;
    }
    .layer-content.right {
        right: -120px;
    }
    .layer-content h4 {
        font-size: 0.85rem;
    }
    .layer-content p {
        font-size: 0.75rem;
        line-height: 1.2;
    }
    .tech-3d-wrapper:hover .lens-layer,
    .tech-3d-wrapper.active .lens-layer {
        transform: translateZ(calc(var(--layer-idx) * 90px));
    }
}

/* Primeiro Óculos Section */
.first-time-section {
    padding-top: 0;
}

.first-time-card {
    padding: 3rem 1.5rem;
    border-color: var(--brand-secondary);
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.05) 0%, rgba(30, 30, 36, 0.6) 100%);
    text-align: center;
}

.first-time-content h2 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 1rem;
}

.economy-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-top: 2rem;
}

.economy-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--success);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.economy-text {
    font-weight: 500;
    color: var(--text-primary);
}

/* CTA Section */
.cta-section {
    padding-bottom: 8rem; /* Space for sticky mobile CTA */
}

.cta-banner {
    padding: 3rem 1.5rem;
    text-align: center;
    border-color: rgba(59, 130, 246, 0.3);
}

.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    z-index: -1;
}

.cta-banner h2 {
    font-size: 1.8rem;
}

.safe-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 1.5rem;
}

/* Footer */
footer {
    padding: 3rem 5%;
    text-align: center;
    border-top: 1px solid var(--border-glass);
    background: var(--bg-surface);
}

footer .logo {
    margin-bottom: 1rem;
}

.copyright {
    font-size: 0.85rem;
    margin-top: 2rem;
    opacity: 0.6;
}

/* Mobile Sticky CTA */
.mobile-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem 5%;
    background: rgba(7, 7, 9, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-glass);
    z-index: 999;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* 
==================================================================
   DESKTOP / TABLET MEDIA QUERIES (Min-Width Strategy)
================================================================== 
*/

@media (min-width: 768px) {
    h1 { margin-bottom: 1.5rem; }
    
    /* Reveal Mobile Sticky CTA, only needed for small screens */
    .mobile-sticky-cta {
        display: none;
    }
    .cta-section {
        padding-bottom: 5rem;
    }

    /* Benefits to grid */
    .benefits-grid {
        flex-direction: row;
        grid-template-columns: repeat(3, 1fr);
        display: grid;
    }
    
    .benefit-card:hover {
        transform: translateY(-5px);
        border-color: rgba(59, 130, 246, 0.4);
    }

    .economy-box {
        flex-direction: row;
        gap: 1.5rem;
        text-align: left;
        max-width: 600px;
        margin: 2rem auto 0;
    }
    .economy-number {
        margin-bottom: 0;
        border-right: 1px solid rgba(16, 185, 129, 0.3);
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    /* Navbar */
    .mobile-menu-btn { display: none; }
    .desktop-nav { display: block; }
    .desktop-nav ul {
        display: flex;
        gap: 2.5rem;
        list-style: none;
        align-items: center;
    }
    .desktop-nav a {
        color: var(--text-primary);
        text-decoration: none;
        font-weight: 500;
        transition: var(--transition);
    }
    .desktop-nav a:not(.btn-primary):hover {
        color: var(--brand-secondary);
    }

    /* Hero layout centered and balanced */
    .hero {
        flex-direction: column;
        min-height: auto;
        align-items: center;
        text-align: center;
        padding-top: 120px;
        padding-bottom: 4rem;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .hero-content {
        flex: initial;
        align-items: center;
        max-width: 850px;
    }

    .hero-content p {
        font-size: 1.25rem;
        max-width: 700px;
    }
    
    .hero-cta {
        flex-direction: row;
        justify-content: center;
        width: auto;
    }

    .hero-cta .btn-whatsapp {
        width: auto;
    }
    
    .hero-image-wrapper {
        flex: initial;
        order: 1;
        max-width: 500px;
        margin-top: 1rem;
    }

    .hero-img {
        max-width: 480px;
    }
    
    .trust-badge {
        bottom: -15px;
        left: 50%;
        transform: translateX(-50%);
    }

    /* Timeline Horizontal */
    .timeline {
        flex-direction: row;
        max-width: 100%;
        padding-top: 3rem;
    }
    
    .timeline-line {
        left: 0;
        top: 25px;
        bottom: auto;
        height: 2px;
        width: 100%;
        background: linear-gradient(to right, var(--brand-primary), var(--brand-secondary), var(--success));
    }
    
    .timeline-item {
        flex-direction: column;
        flex: 1;
        padding-left: 0;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }
    
    .timeline-dot {
        margin-left: 0;
        margin-top: -10px; /* align with horizontal line */
    }
    
    .timeline-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .cta-banner {
        padding: 5rem;
    }
    .cta-banner h2 {
        font-size: 2.5rem;
    }
}
