/* ===== RESET E BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'SF Pro Display', 'Helvetica Neue', sans-serif;
    background-color: #f9fafb;
    background-image: 
        radial-gradient(circle at 25% 40%, rgba(0, 0, 0, 0.008) 0%, transparent 50%),
        repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.008) 0px, rgba(0, 0, 0, 0.008) 2px, transparent 2px, transparent 8px);
    color: #111111;
    scroll-behavior: smooth;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ===== TIPOGRAFIA ===== */
h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    transition: all 0.2s ease;
}

/* ===== GLASSMORPHISM BASE ===== */
.glass-card,
.feature-glass-card,
.pricing-card,
.dashboard-mockup {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 28px;
    box-shadow: 0 12px 35px -12px rgba(0, 0, 0, 0.06), 0 0 0 0.5px rgba(0, 0, 0, 0.02);
    transition: all 0.35s cubic-bezier(0.2, 0, 0, 1);
}

.glass-card:hover,
.feature-glass-card:hover,
.pricing-card:hover {
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 24px 48px -18px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    border-color: rgba(0, 0, 0, 0.08);
}

/* ===== HEADER ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(249, 250, 251, 0.75);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s;
}

.header.scrolled {
    background: rgba(249, 250, 251, 0.92);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    height: 38px;
    width: auto;
}

.logo-text {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo-gradient {
    background: linear-gradient(135deg, #1a1a1a 0%, #3a3a3a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-solid {
    color: #111111;
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-item {
    text-decoration: none;
    font-weight: 500;
    color: #444444;
    transition: color 0.2s;
    font-size: 0.95rem;
    position: relative;
}

.nav-item:hover {
    color: #000000;
}

.nav-actions {
    display: flex;
    gap: 12px;
}

.btn {
    padding: 10px 24px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: #111111;
    color: white;
    border: none;
}

.btn-primary:hover {
    background: #2a2a2a;
    transform: scale(0.96);
}

.btn-ghost {
    background: transparent;
    border: 1px solid #d4d4d4;
    color: #222;
}

.btn-ghost:hover {
    background: rgba(0, 0, 0, 0.02);
    border-color: #aaaaaa;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #111;
}

/* ===== MOBILE SIDEBAR ===== */
.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.mobile-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    z-index: 201;
    transition: right 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.mobile-sidebar.active {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-logo img {
    height: 32px;
}

.sidebar-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.sidebar-nav {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    color: #222;
    font-weight: 500;
    transition: background 0.2s;
}

.sidebar-nav-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 80px 0 100px;
}

.hero-grid {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.hero-left {
    flex: 1.2;
}

.hero-badge {
    display: inline-flex;
    margin-bottom: 28px;
}

.badge-dark {
    background: rgba(0, 0, 0, 0.02);
    backdrop-filter: blur(4px);
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #444;
    border: 0.5px solid rgba(0, 0, 0, 0.04);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: #111111;
    margin-bottom: 24px;
}

.hero-title span {
    background: linear-gradient(135deg, #111111 0%, #555555 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #555555;
    max-width: 500px;
    margin-bottom: 36px;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.btn-black {
    background: #111111;
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.btn-black:hover {
    background: #2c2c2c;
    transform: scale(0.97);
}

.btn-outline-gray {
    background: transparent;
    border: 1px solid #cccccc;
    color: #222;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

.btn-outline-gray:hover {
    background: rgba(0, 0, 0, 0.02);
    border-color: #999;
}

.hero-stats {
    display: flex;
    gap: 36px;
    color: #666;
    font-size: 0.95rem;
}

.hero-stats strong {
    color: #111;
    font-size: 1.2rem;
    margin-right: 6px;
}

.hero-right {
    flex: 1;
    position: relative;
}

/* ===== DASHBOARD MOCKUP ===== */
.dashboard-mockup {
    padding: 20px;
    transform: rotate(1deg);
}

.dashboard-inner {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 22px;
    padding: 20px;
}

.stats-row {
    display: flex;
    gap: 14px;
    margin-bottom: 24px;
}

.stat-card {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 20px;
    padding: 14px;
    flex: 1;
}

.stat-label {
    font-size: 12px;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #111;
    margin-top: 6px;
}

.expense-cats {
    margin: 20px 0;
}

.cat-header {
    font-weight: 600;
    margin-bottom: 14px;
    font-size: 0.85rem;
    color: #444;
}

.cat-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 0.5px solid #eaeef2;
    font-size: 0.9rem;
}

.next-payment {
    background: #f3f4f6;
    border-radius: 20px;
    padding: 14px;
    margin-top: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ===== TRUST SECTION (LOGOS) ===== */
.trust-section {
    padding: 48px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.logo-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    filter: grayscale(1);
    opacity: 0.55;
}

.logo-grid span {
    font-weight: 500;
    color: #333;
    font-size: 1.1rem;
    letter-spacing: -0.2px;
}

/* ===== SEÇÕES GERAIS ===== */
.section-block {
    padding: 80px 0 40px;
}

.section-title {
    font-size: 2.6rem;
    font-weight: 750;
    letter-spacing: -0.02em;
    color: #111;
    margin-bottom: 18px;
}

.section-desc {
    color: #5b5b5b;
    max-width: 600px;
    margin-bottom: 52px;
    font-size: 1.1rem;
    line-height: 1.45;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}

.feature-glass-card {
    padding: 32px 28px;
}

.feature-icon {
    font-size: 34px;
    margin-bottom: 22px;
    color: #111;
}

.feature-glass-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-glass-card p {
    color: #5e5e5e;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ===== SEÇÃO DE PREÇOS (8 PLANOS) ===== */
.pricing-section {
    padding: 60px 0 80px;
}

.section-header-center {
    text-align: center;
    margin-bottom: 52px;
}

.section-header-center .section-desc {
    margin-left: auto;
    margin-right: auto;
}

/* Opções de faturamento */
.billing-options {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 56px;
    flex-wrap: wrap;
}

.billing-btn {
    background: transparent;
    border: 1px solid #d0d0d0;
    padding: 10px 28px;
    border-radius: 60px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    color: #333;
}

.billing-btn.active {
    background: #111111;
    color: white;
    border-color: #111111;
}

.billing-btn:hover:not(.active) {
    background: rgba(0, 0, 0, 0.03);
    border-color: #aaa;
}

/* Categorias de planos */
.plan-category {
    margin-bottom: 70px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 36px;
    padding-bottom: 8px;
    border-bottom: 1.5px solid rgba(0, 0, 0, 0.05);
}

.category-header i {
    font-size: 28px;
    color: #222;
}

.category-header h3 {
    font-size: 1.6rem;
    font-weight: 600;
}

/* Grid de cards de preço */
.pricing-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    justify-content: center;
}

.pricing-card {
    flex: 1;
    min-width: 250px;
    padding: 32px 26px;
    transition: all 0.25s;
}

.pricing-card.popular {
    background: rgba(20, 20, 20, 0.92);
    backdrop-filter: blur(14px);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.12);
    transform: scale(1.02);
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.2);
}

.pricing-card.popular .plan-name,
.pricing-card.popular .plan-price,
.pricing-card.popular .plan-features li {
    color: #f5f5f5;
}

.popular-badge {
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.15);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 40px;
    margin-bottom: 12px;
    font-weight: 500;
}

.plan-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.plan-price {
    font-size: 2.1rem;
    font-weight: 800;
    margin: 16px 0 8px;
}

.plan-price span {
    font-size: 0.9rem;
    font-weight: 400;
}

.plan-features {
    list-style: none;
    margin: 28px 0 32px;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 0;
    font-size: 0.88rem;
}

.plan-features li i {
    font-size: 1.1rem;
    color: #2c2c2c;
}

.popular .plan-features li i {
    color: #dddddd;
}

.pricing-btn {
    background: #111111;
    color: white;
    width: 100%;
    padding: 14px;
    border-radius: 60px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-align: center;
    display: inline-block;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.pricing-btn:hover {
    background: #2c2c2c;
    transform: translateY(-2px);
}

.popular .pricing-btn {
    background: white;
    color: black;
}

.popular .pricing-btn:hover {
    background: #f0f0f0;
}

/* ===== CTA FINAL ===== */
.cta-final {
    text-align: center;
    padding: 64px 24px;
    margin: 40px auto 20px;
    background: rgba(0, 0, 0, 0.015);
    backdrop-filter: blur(4px);
    border-radius: 56px;
    width: 90%;
    max-width: 1000px;
    border: 0.5px solid rgba(0, 0, 0, 0.03);
}

.cta-final h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-final p {
    color: #555;
    margin-bottom: 32px;
    font-size: 1.1rem;
}

/* ===== FOOTER ===== */
.footer {
    margin-top: 100px;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    padding: 60px 0 40px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 48px;
}

.footer-col h4 {
    font-weight: 600;
    margin-bottom: 24px;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    color: #111;
}

.footer-col a {
    display: block;
    color: #5f5f5f;
    text-decoration: none;
    margin-bottom: 14px;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #111;
}

.copyright {
    text-align: center;
    margin-top: 60px;
    padding-top: 24px;
    border-top: 1px solid #e8e8e8;
    color: #888;
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.copyright span i {
    font-size: 1.1rem;
    margin-left: 12px;
    cursor: pointer;
    opacity: 0.6;
}

/* ===== MODAL DE VÍDEO ===== */
.video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.video-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.video-modal {
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    background: #0a0a0a;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-modal-overlay.active .video-modal {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 20px;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.05);
}

.video-container {
    position: relative;
    width: 100%;
    background: #000;
}

.demo-video {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

/* Controles personalizados */
.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px 16px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-container:hover .video-controls {
    opacity: 1;
}

.video-controls.visible {
    opacity: 1;
}

.control-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: background 0.2s;
    flex-shrink: 0;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.progress-container {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: #ffffff;
    border-radius: 4px;
    width: 0%;
    position: relative;
    transition: width 0.1s;
}

.progress-bar::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
}

.progress-container:hover .progress-bar::after {
    opacity: 1;
}

.time-display {
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    min-width: 100px;
    text-align: center;
}

.volume-slider-container {
    display: flex;
    align-items: center;
    width: 80px;
}

.volume-slider {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.fullscreen-btn {
    margin-left: auto;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: #111111;
    color: white;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.25s;
    z-index: 99;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
}

.back-to-top:hover {
    background: #2c2c2c;
    transform: translateY(-3px);
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.2rem;
    }
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 900px) {
    .nav-menu, .nav-actions {
        display: none;
    }
    .mobile-toggle {
        display: block;
    }
    .hero-title {
        font-size: 2.6rem;
    }
    .hero-grid {
        flex-direction: column;
    }
    .container {
        padding: 0 24px;
    }
    .pricing-grid {
        flex-direction: column;
        align-items: stretch;
    }
    .pricing-card.popular {
        transform: scale(1);
    }
    .category-header h3 {
        font-size: 1.3rem;
    }
    .video-modal {
        width: 95%;
    }
    .time-display {
        min-width: 85px;
        font-size: 0.75rem;
    }
    .volume-slider-container {
        width: 60px;
    }
}

@media (max-width: 640px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .billing-options {
        gap: 10px;
    }
    .billing-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    .footer-grid {
        flex-direction: column;
        gap: 32px;
    }
    .copyright {
        flex-direction: column;
        text-align: center;
    }
    .video-controls {
        padding: 12px 8px 8px;
        gap: 6px;
    }
    .control-btn {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
    .time-display {
        min-width: 70px;
        font-size: 0.7rem;
    }
    .volume-slider-container {
        display: none;
    }
    .modal-close {
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}

/* ===== ANIMAÇÕES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-glass-card, .pricing-card {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

/* Delay para cards */
.feature-glass-card:nth-child(1) { animation-delay: 0.05s; }
.feature-glass-card:nth-child(2) { animation-delay: 0.1s; }
.feature-glass-card:nth-child(3) { animation-delay: 0.15s; }
.feature-glass-card:nth-child(4) { animation-delay: 0.2s; }

/* ===== UTILITÁRIOS ===== */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 32px;
}

.mb-4 {
    margin-bottom: 32px;
}