/* Design Tokens & Variables */
:root {
    --color-bg-main: #060606; /* Pitch Black */
    --color-bg-secondary: #121212; /* Deep Carbon */
    --color-glass: rgba(255, 255, 255, 0.02);
    --color-glass-border: rgba(255, 255, 255, 0.06);
    
    --color-text-main: #ffffff;
    --color-text-muted: #a5a5a5;
    
    --color-primary: #E50914; /* Premium Crimson Red */
    --color-primary-hover: #B80710;
    --color-accent: #FF3B30; /* Vibrant Accent Red */
    --color-accent-hover: #D02B20;
    
    --font-main: 'Inter', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg-main);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    
    /* Anti-Copy */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.mt-5 { margin-top: 3rem; }
.text-center { text-align: center; }

h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
}

.highlight {
    color: var(--color-primary);
}

a {
    text-decoration: none;
    color: inherit;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.4);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.125rem;
}

.btn-outline {
    background: transparent;
    color: var(--color-text-main);
    border: 1px solid var(--color-glass-border);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: var(--color-glass);
    border-color: var(--color-text-muted);
}

/* Floating WhatsApp */
.float-wpp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition-smooth);
}
.float-wpp svg { width: 30px; height: 30px; }
.float-wpp:hover {
    transform: scale(1.1) translateY(-5px);
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    transition: var(--transition-smooth);
}

header.scrolled {
    background-color: rgba(6, 6, 6, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--color-glass-border);
    padding: 12px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo .divider {
    color: var(--color-text-muted);
    font-weight: 300;
    margin: 0 8px;
}

.desktop-nav a {
    margin: 0 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-muted);
    transition: var(--transition-smooth);
}

.desktop-nav a:hover {
    color: var(--color-text-main);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(6,6,6,0.95) 0%, rgba(6,6,6,0.7) 50%, rgba(6,6,6,0.2) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 650px;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--color-glass);
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 24px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.sub-text {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Common Section Styles */
.section {
    padding: 100px 0;
}
.bg-darker {
    background-color: var(--color-bg-secondary);
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.glass-card {
    background: var(--color-glass);
    border: 1px solid var(--color-glass-border);
    border-radius: 16px;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.15);
    background: rgba(255, 255, 255, 0.05);
}

.featured-card {
    border-color: var(--color-accent);
    box-shadow: 0 10px 40px rgba(229, 9, 20, 0.05);
}

.card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--color-accent);
    color: #000;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--color-bg-secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--color-text-main);
}
.card-icon svg { width: 30px; height: 30px; }

.highlight-icon {
    background: var(--color-primary);
    color: #fff;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.card p {
    color: var(--color-text-muted);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.features-list {
    list-style: none;
}
.features-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: var(--color-text-main);
}
.features-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

.center-action {
    display: flex;
    justify-content: center;
}

/* Split Section (FGTS) */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.split-image {
    border-radius: 20px;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.stats-overlay {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--color-bg-main);
    border: 1px solid var(--color-glass-border);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.stat-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-accent);
}
.stat-text {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.split-content h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
}
.split-content > p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.benefit-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.b-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: var(--color-glass);
    border: 1px solid var(--color-glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-weight: bold;
}

.b-text h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}
.b-text p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* FAQ Accordion */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-glass-border);
}

.faq-btn {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: var(--color-text-main);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 24px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-btn .icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-accent);
    transition: var(--transition-smooth);
}

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

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

.faq-content p {
    padding-bottom: 24px;
    color: var(--color-text-muted);
}

/* Footer */
.footer {
    background-color: #050505;
    padding: 80px 0 30px;
    border-top: 1px solid var(--color-glass-border);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
}

.footer-brand {
    max-width: 400px;
}
.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}
.footer-brand p {
    color: var(--color-text-muted);
}

.footer-links {
    max-width: 300px;
}
.footer-links h4 {
    margin-bottom: 20px;
}
.footer-links p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--color-glass-border);
    padding-top: 30px;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 { font-size: 3rem; }
    .cards-grid { grid-template-columns: 1fr; }
    .split-section { grid-template-columns: 1fr; }
    .split-image { min-height: 300px; }
    .mega-grid { grid-template-columns: 1fr; }
    .content-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .hero { padding-top: 100px; }
    .hero h1 { font-size: 2.5rem; }
    .footer-top { flex-direction: column; gap: 40px; }
    .page-hero h1 { font-size: 2.5rem; }
}

/* Mega Hub Styles */
.mega-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.mega-card {
    height: 350px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border: 1px solid var(--color-glass-border);
    transition: var(--transition-smooth);
    overflow: hidden;
}

.mega-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
    box-shadow: 0 10px 40px rgba(229, 9, 20, 0.2);
}

.mc-content {
    position: relative;
    z-index: 2;
}

.mega-card h3 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.mega-card p {
    color: var(--color-text-main);
    opacity: 0.9;
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.mc-link {
    color: var(--color-accent);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.fgts-card {
    background: linear-gradient(135deg, var(--color-bg-secondary) 0%, var(--color-primary) 100%);
    border-color: var(--color-primary);
}

/* Inner Pages Styles */
.inner-page header {
    background-color: var(--color-bg-main);
    border-bottom: 1px solid var(--color-glass-border);
}
.desktop-nav a.active {
    color: var(--color-text-main);
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 4px;
}

.page-hero {
    padding: 150px 0 80px;
    background-size: cover;
    background-position: center;
    text-align: center;
    border-bottom: 1px solid var(--color-glass-border);
}
.page-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}
.page-hero p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.2rem;
    color: var(--color-text-muted);
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.glass-box {
    background: var(--color-glass);
    border: 1px solid var(--color-glass-border);
    border-radius: 12px;
    padding: 30px;
}
.divider-glass {
    border: 0;
    border-top: 1px solid var(--color-glass-border);
    margin: 20px 0;
}

/* Premium Table */
.table-responsive {
    overflow-x: auto;
    margin-top: 24px;
}
.premium-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-glass);
    border-radius: 12px;
    overflow: hidden;
}
.premium-table th, .premium-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--color-glass-border);
}
.premium-table th {
    background: rgba(229, 9, 20, 0.2);
    color: var(--color-accent);
    font-weight: 800;
}
.positive {
    color: #4CAF50;
    font-weight: 600;
}
.negative {
    color: #F44336;
}

/* Sidebar */
.cta-box {
    background: linear-gradient(to bottom, var(--color-bg-secondary), var(--color-bg-main));
    border: 1px solid var(--color-accent);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    position: sticky;
    top: 100px;
}
.cta-box h3 { margin-bottom: 16px; }
.cta-box p { color: var(--color-text-muted); margin-bottom: 24px; font-size: 0.95rem; }
.faq-simple h4 { margin-top: 20px; color: var(--color-accent); }
.faq-simple p { color: var(--color-text-muted); font-size: 0.95rem; }

/* Custom Cursor */
@media (pointer: fine) {
    .custom-cursor-active { cursor: none; }
    .custom-cursor-active a, .custom-cursor-active button, .custom-cursor-active input { cursor: none; }
    
    .cursor-dot {
        width: 8px;
        height: 8px;
        background-color: var(--color-accent);
        border-radius: 50%;
        position: fixed;
        top: 0;
        left: 0;
        transform: translate(-50%, -50%);
        pointer-events: none;
        z-index: 9999;
    }
    
    .cursor-outline {
        width: 40px;
        height: 40px;
        border: 1px solid var(--color-primary);
        border-radius: 50%;
        position: fixed;
        top: 0;
        left: 0;
        transform: translate(-50%, -50%);
        pointer-events: none;
        z-index: 9998;
        transition: width 0.2s, height 0.2s, background-color 0.2s;
    }
    
    .cursor-outline.hover-active {
        width: 60px;
        height: 60px;
        background-color: rgba(229, 9, 20, 0.1);
        border-color: transparent;
    }
}

/* Calculator Styles */
.calculator-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 50px;
}

.calc-input {
    margin-bottom: 40px;
    text-align: center;
}

.calc-input label {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.range-slider {
    width: 100%;
    max-width: 600px;
    -webkit-appearance: none;
    height: 6px;
    background: var(--color-glass-border);
    border-radius: 5px;
    outline: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--color-accent);
    cursor: pointer;
    box-shadow: 0 0 15px rgba(255, 59, 48, 0.5);
}

.calc-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .calc-results { grid-template-columns: 1fr; }
    .calculator-wrapper { padding: 30px 20px; }
}

.result-col {
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--color-glass-border);
    background: rgba(6, 6, 6, 0.5);
}

.negative-border { border-top: 4px solid #F44336; }
.positive-border { border-top: 4px solid var(--color-primary); }
.highlight-bg { background: linear-gradient(180deg, rgba(229,9,20,0.1) 0%, rgba(6,6,6,0) 100%); }

.rc-header {
    margin-bottom: 24px;
    border-bottom: 1px solid var(--color-glass-border);
    padding-bottom: 16px;
}

.rc-header h3 { font-size: 1.4rem; margin-bottom: 8px; }
.rc-badge { font-size: 0.8rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 1px; }
.rc-badge.accent { color: var(--color-accent); font-weight: 800; }

.rc-list { list-style: none; }
.rc-list li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 0.95rem;
    border-bottom: 1px dashed rgba(255,255,255,0.05);
    padding-bottom: 8px;
}
.rc-list li span { color: var(--color-text-muted); }
.rc-list li strong { font-size: 1.1rem; }

.calc-conclusion {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--color-glass-border);
}

.calc-conclusion p {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

/* Mobile & Tablet Overrides for Mega Hub and Cards */
@media (max-width: 992px) {
    .mega-grid {
        grid-template-columns: 1fr; /* Single column on mobile/tablet */
        gap: 20px;
    }
    
    .mega-card {
        height: 280px; /* Shorter card on mobile */
        padding: 24px; /* More padding breathing room */
    }
    
    .mega-card h3 {
        font-size: 1.6rem; /* Smaller, readable title */
    }
    
    .mega-card p {
        font-size: 0.95rem; /* Highly readable description */
        margin-bottom: 12px;
    }
}
