html[data-bs-theme="dark"] {
    .ai-section {
        overflow: hidden;
        position: relative;
    }

    .ai-section::before {
        content: '';
        position: absolute;
        top: -120px;
        left: 50%;
        transform: translateX(-50%);
        width: 700px;
        height: 700px;
        background: radial-gradient(ellipse, rgba(192, 57, 43, 0.18) 0%, transparent 70%);
        pointer-events: none;
    }

    .ai-label {
        font-family: 'Syne', sans-serif;
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        color: #c0392b;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .ai-label::before {
        content: '';
        display: inline-block;
        width: 20px;
        height: 2px;
        background: #c0392b;
    }

    .ai-headline {
        font-family: 'Syne', sans-serif;
        font-size: clamp(2.2rem, 5vw, 3.4rem);
        font-weight: 800;
        line-height: 1.1;
    }

    .ai-headline em {
        font-style: normal;
        color: #c0392b;
    }

    .ai-sub {
        font-size: 1rem;
        font-weight: 300;
        line-height: 1.75;
        max-width: 480px;
    }

    /* Search demo */
    .search-demo {
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 16px;
        padding: 1.5rem;
    }

    .search-demo-label {
        font-size: 0.72rem;
        font-weight: 500;
        letter-spacing: 0.08em;
        color: rgba(255, 255, 255, 0.3);
        text-transform: uppercase;
        margin-bottom: 0.75rem;
    }

    .fake-input {
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 10px;
        padding: 0.75rem 1rem;
        font-size: 0.92rem;
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 1rem;
    }

    .fake-input .cursor {
        display: inline-block;
        width: 2px;
        height: 1em;
        background: #c0392b;
        animation: blink 1s step-end infinite;
        margin-left: 2px;
    }

    @keyframes blink {
        50% {
            opacity: 0;
        }
    }

    .query-chip {
        display: inline-block;
        background: rgba(192, 57, 43, 0.15);
        border: 1px solid rgba(192, 57, 43, 0.3);
        color: #e07060;
        font-size: 0.78rem;
        padding: 3px 10px;
        border-radius: 50px;
        margin: 3px;
        font-family: 'DM Sans', sans-serif;
    }

    .result-row {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        font-size: 0.85rem;
    }

    .result-row:last-child {
        border-bottom: none;
    }

    .result-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #c0392b;
        flex-shrink: 0;
    }

    .result-row .match-badge {
        margin-left: auto;
        font-size: 0.68rem;
        color: #5cb85c;
        background: rgba(92, 184, 92, 0.1);
        border: 1px solid rgba(92, 184, 92, 0.2);
        padding: 1px 8px;
        border-radius: 50px;
    }

    /* Feature cards */
    .feat-card {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 16px;
        padding: 1.75rem;
        height: 100%;
        transition: border-color .2s, background .2s;
        position: relative;
        overflow: hidden;
    }

    .feat-card::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, #c0392b, transparent);
        opacity: 0;
        transition: opacity .2s;
    }

    .feat-title {
        font-family: 'Syne', sans-serif;
        font-size: 1rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
    }

    .feat-desc {
        font-size: 0.88rem;
        line-height: 1.7;
        margin: 0;
    }

    /* Chat demo */
    .chat-demo {
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 16px;
        padding: 1.25rem;
    }

    .chat-bar {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }

    .chat-bar-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
    }

    .chat-bar-title {
        font-size: 0.75rem;
        margin-left: 4px;
        font-weight: 500;
    }

    .chat-bar-status {
        margin-left: auto;
        font-size: 0.68rem;
        color: #5cb85c;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .chat-bar-status::before {
        content: '';
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #5cb85c;
        display: inline-block;
        animation: pulse 1.5s ease-in-out infinite;
    }

    @keyframes pulse {

        0%,
        100% {
            opacity: 1
        }

        50% {
            opacity: 0.3
        }
    }

    .chat-msg {
        font-size: 0.82rem;
        line-height: 1.5;
        padding: 8px 12px;
        border-radius: 10px;
        max-width: 85%;
        margin-bottom: 8px;
    }

    .chat-msg.user {
        background: rgba(192, 57, 43, 0.2);
        margin-left: auto;
        border-bottom-right-radius: 3px;
    }

    .chat-msg.bot {
        background: rgba(255, 255, 255, 0.07);
        border-bottom-left-radius: 3px;
    }

    .chat-msg.typing {
        background: rgba(255, 255, 255, 0.07);
        font-style: italic;
    }

    /* Lang flags */
    .lang-row {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 0.75rem;
    }

    .lang-chip {
        font-size: 0.72rem;
        padding: 3px 10px;
        border-radius: 50px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .section-divider {
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
        margin: 0;
    }

    .ai-summary-box {
        background: rgba(192, 57, 43, 0.03);
        border: 1px solid rgba(192, 57, 43, 0.15);
        border-radius: 12px;
        padding: 1.25rem;
    }

    .ai-summary-title {
        color: #e07060;
        font-weight: 700;
        font-size: 0.95rem;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .ai-summary-badge {
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        background: rgba(192, 57, 43, 0.2);
        color: #ff8b7b;
        padding: 2px 8px;
        border-radius: 4px;
        letter-spacing: 0.05em;
    }

    .ai-summary-body {
        font-size: 0.88rem;
        line-height: 1.6;
        color: rgba(255, 255, 255, 0.85);
    }

    .ai-summary-body strong {
        color: #ffffff;
        font-weight: 600;
    }
}

html[data-bs-theme="light"] {
    .ai-section {
        overflow: hidden;
        position: relative;
        background-color: #ffffff;
        /* Fehér alap */
    }

    .ai-section::before {
        content: '';
        position: absolute;
        top: -120px;
        left: 50%;
        transform: translateX(-50%);
        width: 700px;
        height: 700px;
        /* Világosabb, lágyabb gradiens */
        background: radial-gradient(ellipse, rgba(192, 57, 43, 0.08) 0%, transparent 70%);
        pointer-events: none;
    }

    .ai-label {
        font-family: 'Syne', sans-serif;
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        color: #c0392b;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .ai-label::before {
        content: '';
        display: inline-block;
        width: 20px;
        height: 2px;
        background: #c0392b;
    }

    .ai-headline {
        font-family: 'Syne', sans-serif;
        font-size: clamp(2.2rem, 5vw, 3.4rem);
        font-weight: 800;
        line-height: 1.1;
        color: #1a1a1a;
        /* Sötétszürke szöveg */
    }

    .ai-headline em {
        font-style: normal;
        color: #c0392b;
    }

    .ai-sub {
        font-size: 1rem;
        font-weight: 400;
        /* Kicsit vastagabb a jobb olvashatóságért világosban */
        line-height: 1.75;
        max-width: 480px;
        color: #4a4a4a;
    }

    /* Search demo */
    .search-demo {
        background: #f8f9fa;
        /* Világos szürke háttér */
        border: 1px solid #e9ecef;
        border-radius: 16px;
        padding: 1.5rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    }

    .search-demo-label {
        font-size: 0.72rem;
        font-weight: 600;
        letter-spacing: 0.08em;
        color: #adb5bd;
        text-transform: uppercase;
        margin-bottom: 0.75rem;
    }

    .fake-input {
        background: #ffffff;
        border: 1px solid #dee2e6;
        border-radius: 10px;
        padding: 0.75rem 1rem;
        font-size: 0.92rem;
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 1rem;
        color: #212529;
    }

    .fake-input .cursor {
        display: inline-block;
        width: 2px;
        height: 1em;
        background: #c0392b;
        animation: blink 1s step-end infinite;
        margin-left: 2px;
    }

    @keyframes blink {
        50% {
            opacity: 0;
        }
    }

    .query-chip {
        display: inline-block;
        background: rgba(192, 57, 43, 0.08);
        /* Halványabb piros */
        border: 1px solid rgba(192, 57, 43, 0.2);
        color: #c0392b;
        font-size: 0.78rem;
        padding: 3px 10px;
        border-radius: 50px;
        margin: 3px;
        font-family: 'DM Sans', sans-serif;
        font-weight: 500;
    }

    .result-row {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px 0;
        border-bottom: 1px solid #f1f3f5;
        font-size: 0.85rem;
        color: #495057;
    }

    .result-row:last-child {
        border-bottom: none;
    }

    .result-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #c0392b;
        flex-shrink: 0;
    }

    .result-row .match-badge {
        margin-left: auto;
        font-size: 0.68rem;
        color: #28a745;
        background: rgba(40, 167, 69, 0.08);
        border: 1px solid rgba(40, 167, 69, 0.15);
        padding: 1px 8px;
        border-radius: 50px;
        font-weight: 600;
    }

    /* Feature cards */
    .feat-card {
        background: #ffffff;
        border: 1px solid #e9ecef;
        border-radius: 16px;
        padding: 1.75rem;
        height: 100%;
        transition: transform .2s, box-shadow .2s;
        position: relative;
        overflow: hidden;
    }

    .feat-title {
        font-family: 'Syne', sans-serif;
        font-size: 1rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
        color: #1a1a1a;
    }

    .feat-desc {
        font-size: 0.88rem;
        line-height: 1.7;
        margin: 0;
        color: #6c757d;
    }

    /* Chat demo */
    .chat-demo {
        background: #f8f9fa;
        border: 1px solid #e9ecef;
        border-radius: 16px;
        padding: 1.25rem;
    }

    .chat-bar {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid #dee2e6;
    }

    .chat-bar-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
    }

    .chat-bar-title {
        font-size: 0.75rem;
        margin-left: 4px;
        font-weight: 600;
        color: #495057;
    }

    .chat-bar-status {
        margin-left: auto;
        font-size: 0.68rem;
        color: #28a745;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .chat-bar-status::before {
        content: '';
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #28a745;
        display: inline-block;
        animation: pulse 1.5s ease-in-out infinite;
    }

    @keyframes pulse {

        0%,
        100% {
            opacity: 1
        }

        50% {
            opacity: 0.3
        }
    }

    .chat-msg {
        font-size: 0.82rem;
        line-height: 1.5;
        padding: 8px 12px;
        border-radius: 10px;
        max-width: 85%;
        margin-bottom: 8px;
    }

    .chat-msg.user {
        background: #c0392b;
        color: #ffffff;
        /* Felhasználó üzenete piros alapon fehér szöveg */
        margin-left: auto;
        border-bottom-right-radius: 3px;
    }

    .chat-msg.bot {
        background: #ffffff;
        border: 1px solid #dee2e6;
        color: #212529;
        border-bottom-left-radius: 3px;
    }

    .chat-msg.typing {
        background: #e9ecef;
        font-style: italic;
        color: #6c757d;
    }

    /* Lang flags */
    .lang-row {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 0.75rem;
    }

    .lang-chip {
        font-size: 0.72rem;
        padding: 3px 10px;
        border-radius: 50px;
        background: #ffffff;
        border: 1px solid #dee2e6;
        color: #495057;
    }

    .section-divider {
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.05), transparent);
        margin: 0;
    }

    .ai-summary-box {
        background: #fff5f4;
        /* Nagyon halvány, tiszta pirosas háttér */
        border: 1px solid #fcdad7;
        border-radius: 12px;
        padding: 1.25rem;
    }

    .ai-summary-title {
        color: #c0392b;
        font-weight: 700;
        font-size: 0.95rem;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .ai-summary-badge {
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        background: rgba(192, 57, 43, 0.1);
        color: #c0392b;
        padding: 2px 8px;
        border-radius: 4px;
        letter-spacing: 0.05em;
    }

    .ai-summary-body {
        font-size: 0.88rem;
        line-height: 1.6;
        color: #212529;
    }

    .ai-summary-body strong {
        color: #000000;
        font-weight: 700;
    }
}