/* Container Principal da Demonstração */
.seo-search-demo {
    width: 100%;
    max-width: 450px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    transition: background-color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

.seo-search-demo::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(102, 45, 145, 0.1) 0%, transparent 60%);
    background-image: var(--noise);
    background-size: 100px 100px;
    background-repeat: repeat;
    opacity: 0.04;
    pointer-events: none;
}

.fake-search-bar {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.05);
    border-radius: 30px;
    padding: 12px 20px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    transition: background-color 0.5s ease, border-color 0.5s ease;
}

.search-icon {
    color: var(--text-secondary);
    margin-right: 15px;
    font-size: 20px;
    transition: color 0.5s ease;
}

.typing-container {
    overflow: hidden;
    white-space: nowrap;
}

.typing-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: var(--stellar-white);
    display: inline-block;
    overflow: hidden;
    border-right: 2px solid var(--electric-indigo);
    white-space: nowrap;
    width: 0;
    margin-bottom: -1px;
    animation: 
        typing 2.5s steps(30, end) forwards,
        blink-caret 0.75s step-end infinite;
    animation-delay: 0.5s;
    transition: color 0.5s ease;
}

.results-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    animation: fadeInResults 0.8s ease-out forwards;
    animation-delay: 3.2s;
}

.result-card {
    padding: 15px;
    border-radius: 8px;
    background: rgba(255,255,255,0.02);
    transition: background-color 0.5s ease;
}

.top-result {
    border: 1px solid var(--electric-indigo);
    background: rgba(102, 45, 145, 0.05);
    box-shadow: 0 4px 15px rgba(102, 45, 145, 0.15);
    transform: scale(1.02);
    transition: background-color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

.result-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.site-url {
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: color 0.5s ease;
}

.verified-icon {
    font-size: 16px;
    color: var(--electric-indigo);
    transition: color 0.5s ease;
}

.result-title {
    font-size: 1.1rem;
    color: var(--electric-indigo);
    margin-bottom: 8px;
    font-weight: 600;
    transition: color 0.5s ease;
}

.result-snippet {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    transition: color 0.5s ease;
}

.competitor {
    filter: blur(2px);
    opacity: 0.5;
    border: 1px solid transparent;
}

.competitor.extra-blur {
    filter: blur(4px);
    opacity: 0.3;
}

.fake-line {
    height: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    margin-bottom: 8px;
    transition: background-color 0.5s ease;
}

.title-line {
    width: 60%;
    background: rgba(255,255,255,0.2);
    height: 14px;
    transition: background-color 0.5s ease;
}

.snippet-line {
    width: 90%;
}

.short {
    width: 40%;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--electric-indigo); }
}

@keyframes fadeInResults {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

body.light-theme .seo-search-demo {
    background: #FFFFFF;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
}

body.light-theme .fake-search-bar {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .result-card {
    background: rgba(0, 0, 0, 0.02);
}

body.light-theme .top-result {
    background: rgba(102, 45, 145, 0.04);
    border-color: var(--electric-indigo);
    box-shadow: 0 4px 15px rgba(102, 45, 145, 0.08);
}

body.light-theme .fake-line {
    background: rgba(0, 0, 0, 0.06);
}

body.light-theme .title-line {
    background: rgba(0, 0, 0, 0.1);
}

body.light-theme .competitor {
    opacity: 0.4;
}

.insight-grid {
    padding: 150px 15%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.insight-cards {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.eco-card {
    position: relative;
    padding: 40px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-card);
    transition: var(--transition-smooth);
    overflow: hidden;
    z-index: 1;
}

.eco-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(46, 49, 146, 0.08);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.eco-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--noise);
    background-size: 100px 100px;
    background-repeat: repeat;
    opacity: 0.04;
    mix-blend-mode: overlay;
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    pointer-events: none;
    z-index: -1;
}

.eco-card:hover {
    border-color: var(--indigo-deep);
    transform: translateY(-5px);
}

.eco-card span {
    font-size: 40px;
    color: var(--electric-indigo);
    margin-bottom: 25px;
    display: block;
    transition: var(--transition-smooth), color 0.5s ease;
    position: relative;
    z-index: 2;
}

.eco-card:hover::after {
    opacity: 1;
}

.eco-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
    opacity: 0.7;
    position: relative;
    z-index: 2;
    transition: color 0.5s ease;
}

.eco-card h4 {
    font-size: 1.9rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--stellar-white);
    position: relative;
    z-index: 2;
    transition: color 0.5s ease;
}

.eco-card:hover span {
    color: var(--stellar-white);
    filter: drop-shadow(0 0 10px var(--electric-indigo));
}

/* SEO QUESTION: ESTILO DESCRITIVO */
.seo-question {
    padding: 150px 15%;
    background-color: var(--bg-primary);
    text-align: center;
    transition: background-color 0.5s ease;
}

.question-container {
    max-width: 900px;
    margin: 0 auto;
}

.desc-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-top: 30px;
    opacity: 0.8;
    transition: color 0.5s ease;
}

/* SEO FUNDAMENTALS */
.seo-fundamentals {
    padding: 150px 15%;
    background-color: var(--bg-primary);
    transition: background-color 0.5s ease;
}

.fundamentals-header {
    margin-bottom: 80px;
    text-align: left;
}

.seo-fundamentals .ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

/* SEO COMPARISON */
.seo-comparison {
    padding: 150px 15%;
    background-color: var(--bg-primary);
    transition: background-color 0.5s ease;
}

.comparison-header {
    margin-bottom: 80px;
    text-align: left;
}

.comparison-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.vmoode-comparison-table {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.5s ease;
    transition: background-color 0.5s ease, border-color 0.5s ease;
}

.vmoode-comparison-table .table-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.vmoode-comparison-table .table-row:last-child {
    border-bottom: none;
}

.table-row:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.vmoode-comparison-table .table-cell {
    padding: 30px;
    font-size: 1rem;
    color: var(--text-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    transition: color 0.5s ease, border-color 0.5s ease, background-color 0.5s ease;
}

.vmoode-comparison-table .table-cell:last-child {
    border-right: none;
}

.vmoode-comparison-table .table-header {
    background: rgba(102, 45, 145, 0.05);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 2px;
    transition: background-color 0.5s ease, color 0.5s ease;
}

.vmoode-comparison-table .table-cell.highlight {
    background: rgba(102, 45, 145, 0.08);
    color: var(--stellar-white);
    font-weight: 500;
    transition: background-color 0.5s ease, color 0.5s ease;
}

@media (max-width: 992px) {
    .seo-search-demo {
        max-width: 100%;
    }

    .seo-hero {
        padding: 150px 10% !important;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        height: auto;
    }

    .seo-insight {
        padding: 80px 10% !important;
    }

    .hero-visual {
        width: 100%;
        display: flex;
        justify-content: center;
        
        /* 1. Mata a herança do style.css que estava quebrando a altura */
        height: auto !important; 
        
        /* 2. Remove alinhamentos verticais desnecessários no mobile */
        align-items: initial; 
        
        /* 3. Ajuste fino do espaçamento (reduzi de 50px para 30px, igual LP) */
        margin-top: 30px; 
        padding: 0; 
    }

    .insight-grid {
        padding: 0;
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .insight-text {
        text-align: left;
    }

    .insight-text .section-title {
        margin-bottom: 20px;
    }

    .insight-cards {
        gap: 30px;
        width: 100%;
    }

    .insight-cards .eco-card {
        padding: 35px 25px;
    }
    
    .seo-insight, .seo-comparison {
        padding: 80px 10% !important;
    }

    .hero-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
        height: auto;
    }

    .insight-grid {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .table-row {
        grid-template-columns: 1fr;
    }

    .seo-fundamentals {
        padding: 80px 10% !important;
    }

    .seo-question {
        padding: 80px 10% !important;
        text-align: left;
    }

    .desc-text {
        font-size: 1.1rem;
        text-align: left;
    }

    .seo-fundamentals .ecosystem-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .seo-comparison {
        padding: 80px 10% !important;
    }

    .vmoode-comparison-table {
        background: transparent;
        border: none;
        gap: 30px;
    }

    .vmoode-comparison-table .table-header {
        display: none;
    }

    .vmoode-comparison-table .table-row {
        grid-template-columns: 1fr;
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: 12px;
    }

    .vmoode-comparison-table .table-cell {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .vmoode-comparison-table .table-cell:nth-child(1) {
        background: rgba(255, 255, 255, 0.03);
        color: var(--electric-indigo);
        font-weight: 800;
        font-size: 0.7rem;
    }

    .vmoode-comparison-table .table-cell:nth-child(2)::before {
        content: "MERCADO COMUM";
        font-size: 0.6rem;
        opacity: 0.5;
        margin-bottom: 8px;
        font-weight: 800;
    }

    .vmoode-comparison-table .table-cell:nth-child(3)::before {
        content: "MÉTODO VMOODE";
        font-size: 0.6rem;
        color: var(--electric-indigo);
        margin-bottom: 8px;
        font-weight: 800;
    }
}