:root {
    --bg-dark: #121212;
    --bg-card: #1a1a1a;
    --text-light: #f0f0f0;
    --text-muted: #888;
    --accent-color: #00ffc2;
    --border-color: #2a2a2a;
    --risk-color: #e74c3c;
}

body {
    margin: 0;
    padding: 0; 
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    -webkit-font-smoothing: antialiased;
    position: relative;
}

body::after, body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
}

body::after {
    background-image: url('https://www.transparenttextures.com/patterns/cubes.png');
    background-attachment: fixed;
    opacity: 0.05;
}

body::before {
    z-index: -1;
    background: radial-gradient(
        circle 500px at var(--x, 0px) var(--y, 0px),
        rgba(0, 255, 194, 0.1),
        transparent 80%
    );
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header --- */
header {
    padding: 15px 0;
    position: sticky;
    top: 0;
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

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

.logo {
    font-weight: 700;
    font-size: 24px;
    color: var(--text-light);
}

.logo span {
    color: var(--accent-color);
}

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

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s ease;
    height: 44px;
    display: inline-flex;
    align-items: center;
}

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

.header-right .header-cta {
    margin-left: 50px;
}

.header-right .language-dropdown {
    margin-left: 25px;
}


/* --- SELETOR DE IDIOMAS (REGRAS CORRIGIDAS) --- */
.language-dropdown {
    position: relative;
}

.language-dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    overflow: hidden;
}

.language-dropdown-toggle img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.language-dropdown-toggle span {
    color: var(--text-light);
    font-weight: 500;
}

.arrow-down {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--text-muted);
    transition: transform 0.3s ease;
}

.language-dropdown.open .arrow-down {
    transform: rotate(180deg);
}

.language-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px;
    width: 180px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.language-dropdown.open .language-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ESTA É A REGRA PRINCIPAL CORRIGIDA */
.language-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    text-decoration: none;
    color: var(--text-muted);
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s;
    /* As linhas erradas de width, height e border-radius foram removidas daqui */
}

.language-option:hover {
    background-color: rgba(0, 255, 194, 0.1);
    color: var(--text-light);
}

.language-option img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0; /* Impede a imagem de encolher */
}

.language-option span {
    font-size: 15px;
}

.language-option.active {
    color: var(--accent-color);
    font-weight: 600;
}


/* --- Botão Principal --- */
.cta-button {
    background-color: var(--accent-color);
    color: var(--bg-dark);
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 255, 194, 0.2);
}

/* --- Seções e Conteúdo Principal --- */
.hero { text-align: center; padding: 100px 0; }
.hero h1 { font-size: 52px; line-height: 1.2; max-width: 800px; margin: 0 auto 20px auto; }
.hero p { font-size: 18px; color: var(--text-muted); max-width: 600px; margin: 0 auto 30px auto; }
.section { padding: 80px 0; }
.section-title { text-align: center; font-size: 36px; margin-bottom: 50px; }
.results-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; background-color: var(--bg-card); padding: 40px; border-radius: 12px; border: 1px solid var(--border-color); }
.stat-item { text-align: center; }
.stat-item .stat-value { font-size: 42px; font-weight: 700; color: var(--accent-color); }
.stat-item .stat-label { font-size: 14px; color: var(--text-muted); }
.ticker-wrap { width: 100%; overflow: hidden; padding: 20px 0; background-color: var(--bg-card); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent); mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent); }
.ticker-track { display: flex; white-space: nowrap; will-change: transform; animation: scroll-horizontal 40s linear infinite; }
.ticker-item { font-family: 'Roboto Mono', monospace; font-size: 18px; padding: 0 30px; position: relative; color: var(--text-muted); }
.ticker-item::after { content: '•'; color: var(--border-color); position: absolute; right: -15px; }
.ticker-item.risk { color: var(--risk-color); }
.ticker-item.opportunity { color: var(--accent-color); }
.solutions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.solution-card { background-color: var(--bg-card); padding: 30px; border-radius: 12px; border: 1px solid var(--border-color); transition: transform 0.3s ease, border-color 0.3s ease; display: flex; flex-direction: column; }
.solution-card:hover { transform: translateY(-5px); border-color: var(--accent-color); }
.card-image { width: 100%; height: 180px; object-fit: cover; border-radius: 8px; margin-bottom: 20px; }
.solution-card h3 { font-size: 20px; margin: 0 0 10px 0; color: var(--accent-color); }
.solution-card p { color: var(--text-muted); font-size: 15px; line-height: 1.6; margin: 0; flex-grow: 1; }
.quote-section { padding: 60px 0; text-align: center; }
.quote-section p { font-size: 28px; font-style: italic; color: var(--text-muted); max-width: 700px; margin: 0 auto; }
.differentiators-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.diff-card { background-color: var(--bg-card); padding: 30px; border-radius: 12px; border: 1px solid var(--border-color); }
.diff-card h3 { font-size: 22px; margin-top: 0; }
.diff-card ul { list-style: none; padding: 0; margin: 0; color: var(--text-muted); }
.diff-card ul li { padding: 8px 0 8px 30px; position: relative; }
.diff-card ul li::before { content: '✖'; color: #d11b18; position: absolute; left: 0; }
.diff-card.highlighted { border-color: var(--accent-color); }
.diff-card.highlighted ul li::before { content: '✔'; color: var(--accent-color); }
.faq-accordion { max-width: 800px; margin: 0 auto; }
.faq-item { background-color: var(--bg-card); border-radius: 12px; margin-bottom: 15px; border: 1px solid var(--border-color); overflow: hidden; }
.faq-question { background: none; border: none; width: 100%; text-align: left; padding: 20px 30px; font-size: 18px; font-weight: 600; color: var(--text-light); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-icon { font-size: 24px; color: var(--accent-color); transition: transform 0.3s ease; }
.faq-item.active .faq-question .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; }
.faq-answer p { padding: 0 30px 20px 30px; margin: 0; color: var(--text-muted); line-height: 1.7; }
.contact-section { background: rgba(26, 26, 26, 0.5); padding: 60px; border-radius: 16px; border: 1px solid var(--border-color); text-align: center; }
.contact-form { max-width: 600px; margin: 0 auto; text-align: left; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 14px; color: var(--text-muted); }
.form-group input, .form-group textarea { width: 100%; padding: 12px; background-color: var(--bg-dark); border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-light); font-family: 'Poppins', sans-serif; font-size: 15px; box-sizing: border-box; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent-color); box-shadow: 0 0 0 3px rgba(0, 255, 194, 0.2); }
.contact-form button.cta-button { width: 100%; border: none; cursor: pointer; font-size: 16px; }
footer { text-align: center; padding: 40px 0; margin-top: 60px; border-top: 1px solid var(--border-color); color: var(--text-muted); font-size: 14px; }
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
@keyframes scroll-horizontal { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- MENU HAMBÚRGUER E LAYOUT MOBILE --- */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}
.hamburger-line {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--text-light);
    margin: 6px 0;
    transition: all 0.3s ease-in-out;
}

.mobile-nav-wrapper {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: #181818;
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    padding: 80px 30px 30px 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: right 0.4s ease-in-out;
    z-index: 1000;
}
.mobile-nav-wrapper.open {
    right: 0;
}

.mobile-nav-wrapper nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}
.mobile-nav-wrapper nav li a {
    color: var(--text-light);
    text-decoration: none;
    display: block;
    font-size: 20px;
    font-weight: 500;
    padding: 15px 10px;
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s;
}
.mobile-nav-wrapper nav li a:hover {
    background-color: rgba(0, 255, 194, 0.1);
    color: var(--accent-color);
}

.mobile-nav-wrapper .cta-button {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}
.mobile-nav-wrapper .language-dropdown-toggle {
    border: 1px solid var(--border-color);
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    justify-content: space-between;
}

.mobile-nav-wrapper .language-dropdown-menu {
    width: 100%;
    top: calc(100% + 10px);
    bottom: auto;
    right: auto;
    left: 0;
}


/* --- RESPONSIVIDADE --- */
@media (max-width: 992px) { 
    .header-right {
        display: none;
    }
    .hamburger {
        display: block;
    }
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) { 
    .hero h1 { font-size: 36px; } 
    .hero p { font-size: 16px; } 
    .section-title { font-size: 28px; }
    .contact-section { padding: 40px 20px; } 
    .form-grid { grid-template-columns: 1fr; }
    .differentiators-grid { grid-template-columns: 1fr; }
    .solutions-grid { grid-template-columns: 1fr; }
    .hero-image { display: none; }
}

@media (max-width: 576px) {
    .results-grid {
        grid-template-columns: 1fr;
    }
}