/* --- GLOBAL --- */
:root {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --primary-color: #3b82f6;
    --accent-color: #06b6d4;
    --vip-color: #8b5cf6;
    --ai-color: #d946ef;
    --success-color: #10b981;
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --gradient: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    --ai-gradient: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%);
}

body,
button,
input,
select,
textarea,
h1,
h2,
h3,
h4,
span,
p,
a {
    font-family: 'Inter', sans-serif;
    outline: none !important;
    /* Previne contornos de foco/debug no carregamento */
    box-shadow: none !important;
}

/* Remove tap highlight em mobile */
* {
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 5px;
    /* Reduzido conforme solicitado */
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    letter-spacing: -0.5px;
}

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

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: white;
}

/* Sync Landing Navbar button styles */
.selected-lang,
.login-btn-quiet {
    border: 1px solid rgba(148, 163, 184, 0.28);
    padding: 7px 18px;
    border-radius: 50px;
    color: white !important;
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
    transition: 0.3s;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    outline: none !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    transition: background 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, transform 0.28s ease;
}

.selected-lang:hover,
.login-btn-quiet:hover,
.selected-lang:focus-visible,
.login-btn-quiet:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(148, 163, 184, 0.38);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 12px 26px rgba(15, 23, 42, 0.2), 0 0 24px rgba(96, 165, 250, 0.08);
    transform: translateY(-1px) scale(1.02);
}

/* Dropdown de Idioma (Restaurado) */
.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-options {
    position: absolute;
    top: 120%;
    right: 0;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 10px 0;
    width: 180px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: 0.3s ease;
    z-index: 1100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lang-dropdown:hover .lang-options,
.lang-options.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-options li {
    padding: 10px 20px;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.2s;
    font-size: 0.9rem;
}

.lang-options li:hover {
    background: rgba(59, 130, 246, 0.1);
    color: white;
}

.lang-options li img {
    border-radius: 2px;
    flex-shrink: 0;
}

/* --- HERO --- */
.hero {
    padding: 160px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Layered background: Gradient (TOP) over Image (BOTTOM). Align TOP for wide screens. */
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.7) 0%, rgba(15, 23, 42, 0.8) 50%, rgba(15, 23, 42, 0.9) 92%, rgba(15, 23, 42, 1) 99%), url('/banner.png') center 35% / cover no-repeat !important;
    z-index: -1;
}

.badge {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

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

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    padding: 16px 36px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease;
    display: inline-block;
    position: relative;
    overflow: visible;
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.28), 0 0 0 rgba(56, 189, 248, 0);
}

.btn-primary::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 18px;
    background: radial-gradient(circle at center, rgba(56, 189, 248, 0.28) 0%, rgba(59, 130, 246, 0.18) 35%, transparent 72%);
    opacity: 0;
    filter: blur(12px);
    transition: opacity 0.28s ease, transform 0.28s ease;
    z-index: -1;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    transform: translateY(-3px) scale(1.045);
    box-shadow: 0 22px 42px rgba(37, 99, 235, 0.34), 0 0 26px rgba(56, 189, 248, 0.28), 0 0 52px rgba(59, 130, 246, 0.18);
    filter: brightness(1.06);
}

.btn-primary:hover::before,
.btn-primary:focus-visible::before {
    opacity: 1;
    transform: scale(1.08);
}

.visual-break {
    position: relative;
    height: 450px;
    width: 100%;
    margin: -20px auto 30px;
    max-width: 1100px;
    border-radius: 24px;
    overflow: hidden !important;
    z-index: 10;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #0b1120;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.visual-break img.main-visual {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center !important;
    opacity: 0.9;
    transition: 0.6s ease;
    display: block;
    transform: scale(1.02); /* Escala solicitada para Desktop */
}

@media (max-width: 992px) {
    .visual-break {
        height: 350px;
    }

    .visual-break img.main-visual {
        transform: scale(1.6);
        /* Ajuste de zoom em mobile */
    }
}

/* --- FEATURES --- */
.features {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

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

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    transition: border-color 0.3s ease, transform 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.35rem;
    margin-bottom: 15px;
    white-space: nowrap;
}

.feature-card p {
    color: var(--text-muted);
}

/* --- SKELETON LOADERS --- */
.skeleton-card {
    pointer-events: none;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

.skeleton-icon,
.skeleton-title,
.skeleton-text {
    background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-title {
    height: 24px;
    width: 70%;
    margin-bottom: 15px;
    border-radius: 4px;
}

.skeleton-text {
    height: 16px;
    width: 90%;
    border-radius: 4px;
    margin-bottom: 8px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* --- CALCULATOR REFINED --- */
.calculator-section {
    padding: 60px 0 100px;
    background-color: #020617;
}

.calc-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.calc-col-left {
    flex: 2;
    min-width: 300px;
}

.calc-col-right {
    flex: 1;
    min-width: 300px;
    position: sticky;
    top: 100px;
}

.plan-group {
    margin-bottom: 50px;
}

.plan-group-title {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #334155;
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-group.ai-highlight {
    background: linear-gradient(180deg, rgba(217, 70, 239, 0.08) 0%, rgba(217, 70, 239, 0.03) 100%);
    border: 2px solid #d946ef;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 0 40px rgba(217, 70, 239, 0.15), inset 0 0 30px rgba(217, 70, 239, 0.05);
}

.plan-item {
    display: flex;
    gap: 15px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.plan-item:hover {
    border-color: #94a3b8;
    transform: translateY(-2px);
}

.plan-item.selected {
    background: rgba(59, 130, 246, 0.08);
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px #3b82f6;
}

.plan-item.ai-style {
    background: rgba(217, 70, 239, 0.05);
    border-color: rgba(217, 70, 239, 0.4);
}

.plan-item.ai-style.selected {
    background: rgba(217, 70, 239, 0.12);
    border-color: #d946ef;
    box-shadow: 0 0 30px rgba(217, 70, 239, 0.3);
}

.summary-box {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #3b82f6;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.price-display {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin: 10px 0;
}

/* --- FOOTER --- */
footer {
    background: var(--bg-color);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

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

.footer-col h4 {
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.footer-col p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.copyright {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

/* --- LOCATION --- */
.location {
    position: relative;
    overflow: hidden;
}

.map-container iframe {
    filter: grayscale(1) invert(0.9) contrast(1.2);
    opacity: 0.8;
    transition: 0.5s;
}

.map-container:hover iframe {
    filter: grayscale(0) invert(0) contrast(1);
    opacity: 1;
}

@media (max-width: 992px) {
    .calc-container {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .container {
        padding: 0 10px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .calc-wrapper {
        flex-direction: column !important;
        display: flex !important;
    }
    .calc-col-right {
        order: 2 !important; /* Move para o final */
        width: 100% !important;
        margin-top: 30px !important;
        position: relative !important;
        top: 0 !important;
        bottom: auto !important;
    }
    .summary-box {
        position: relative !important;
        top: 0 !important;
    }
}
