/* ================== IMPOSTAZIONI GLOBALI E VARIABILI ================== */

:root {
    --dark-bg: #0d1a26;
    --section-bg-light: #132232;
    --card-bg: #192c3f;

    --accent-gold: #e2c186;
    --accent-green: #00e5a8;
    --accent-red: #ff5c5c;

    --text-light: #f0f0f0;
    --text-secondary: #a8b2b9;

    --panel-bg: rgba(13, 26, 38, 0.74);
    --panel-border: rgba(226, 193, 134, 0.28);
    --panel-border-green: rgba(0, 229, 168, 0.28);
    --panel-border-red: rgba(255, 92, 92, 0.28);

    --panel-text: #d8e0e6;
    --panel-shadow: 0 14px 35px rgba(0, 0, 0, 0.35);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.7;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

h1,
h2,
h3 {
    color: var(--accent-gold);
    font-weight: 600;
    line-height: 1.3;
}

p {
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

a {
    color: var(--accent-gold);
    text-decoration: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ================== HEADER DINAMICO ================== */
.header {
    background: var(--section-bg-light);
    padding: 1.5rem 0;
    border-bottom: 1px solid #2a3a4a;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: padding 0.3s ease-in-out;
}

.header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 76px;
    width: auto;
    max-width: 260px;
    display: block;
    object-fit: contain;
    transition: height 0.3s ease-in-out;
}

.header.scrolled .logo img {
    height: 58px;
}

.cta-button {
    /* Trasforma i CTA in un vero box cliccabile anche quando il testo va a capo.
       In questo modo il fondo resta un unico rettangolo e non si spezza in due righe
       separate sui testi piu lunghi in italiano e spagnolo. */
    display: inline-block;
    max-width: 100%;
    text-align: center;
    white-space: normal;
    line-height: 1.25;
    overflow-wrap: anywhere;
    vertical-align: middle;
    background: linear-gradient(135deg, var(--accent-gold), #f1d7a7);
    color: var(--dark-bg);
    padding: 0.7rem 1.5rem;
    border-radius: 10px;
    font-weight: 700;
    border: 1px solid rgba(0, 229, 168, 0.18);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35), 0 0 0 3px rgba(0, 229, 168, 0.10);
    filter: brightness(1.02);
}

/* --- NAVIGAZIONE HEADER (MODIFICATA STILE BOTTONI) --- */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    position: relative;
    flex: none;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(226, 193, 134, 0.34);
    background: rgba(13, 26, 38, 0.76);
    color: var(--text-light);
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.nav-toggle::before {
    content: "";
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: var(--accent-gold);
    box-shadow: 0 -7px 0 var(--accent-gold), 0 7px 0 var(--accent-gold);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.nav-toggle[aria-expanded="true"] {
    background: rgba(226, 193, 134, 0.12);
    border-color: rgba(0, 229, 168, 0.38);
}

.nav-toggle[aria-expanded="true"]::before {
    background: var(--accent-green);
    box-shadow: 0 -7px 0 var(--accent-green), 0 7px 0 var(--accent-green);
}

.nav-toggle:hover {
    background: rgba(226, 193, 134, 0.10);
}

.nav-toggle:focus,
.nav-toggle:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

.main-nav {
    display: flex;
    gap: 0.55rem;
    /* Spazio tra i bottoni */
    align-items: center;
}

/* MODIFICA: Stile Bottoni Header (uguali al footer) */
.main-nav a {
    text-decoration: none;
    background: var(--accent-gold);
    /* Sfondo dorato */
    color: var(--dark-bg);
    /* Testo scuro */
    font-weight: 600;
    border-radius: 5px;
    /* Angoli smussati */
    padding: 0.48rem 0.78rem;
    /* Spaziatura interna */
    font-size: 0.84rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s;
    white-space: nowrap;
}

.main-nav a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(226, 193, 134, 0.3);
    background-color: #ebd1a0;
    /* Leggermente più chiaro all'hover */
    color: var(--dark-bg);
}

/* Highlight per la pagina corrente (Active state) */
.main-nav a[aria-current="page"] {
    background-color: #fff;
    /* Bianco per distinguere la pagina attiva */
    color: var(--dark-bg);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Gestione Nav Mobile */
@media (max-width: 1080px) {
    .nav-toggle {
        display: inline-flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        left: 1rem;
        right: 1rem;
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
        background: rgba(13, 26, 38, 0.98);
        border: 1px solid rgba(226, 193, 134, 0.24);
        border-radius: 14px;
        box-shadow: 0 22px 55px rgba(0, 0, 0, 0.45);
        z-index: 1000;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        width: 100%;
        text-align: center;
        padding: 0.75rem;
    }
}

/* ================== STILI GENERALI DELLE SEZIONI ================== */
section {
    padding: 5rem 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

section.qe-tight-top {
    padding-top: 2.5rem;
}

section.qe-tight-bottom {
    padding-bottom: 2.5rem;
}

.qe-lead {
    /* Pannello introduttivo piu coprente per mantenere leggibili i testi su sfondi fotografici o molto luminosi. */
    background: rgba(13, 26, 38, 0.68);
    border-bottom: 5px solid rgba(0, 229, 168, 0.70);
    border-left: 0;
    border-right: 0;
    border-top: 0;
    border-radius: 16px;
    padding: 1.05rem 1.1rem;
    margin: 1rem auto 0;
    color: var(--panel-text);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-width: 900px;
}

.qe-lead strong {
    color: var(--text-light);
}

.qe-lead em {
    color: var(--text-light);
}

.qe-lead-gold {
    border-bottom-color: rgba(226, 193, 134, 0.70);
}

.qe-lead-neutral {
    border-bottom-color: rgba(168, 178, 185, 0.35);
}

.qe-boundaries {
    margin: 1.1rem auto 0;
    max-width: 900px;
    /* Box informativo secondario: opacita aumentata per evitare perdita di contrasto sopra immagini o gradienti complessi. */
    background: rgba(13, 26, 38, 0.62);
    border: 1px solid rgba(226, 193, 134, 0.20);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    color: var(--text-secondary);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

section h1,
section h2 {
    margin-bottom: 1.5rem;
}

.vision,
.focus,
.footer {
    background-color: var(--section-bg-light);
}

.hero h1 {
    font-size: 2.5rem;
}

.qe-hero-copy p:not(.qe-plain),
.qe-hero-copy .subtitle:not(.qe-plain) {
    background: var(--panel-bg);
    border-bottom: 4px solid rgba(0, 229, 168, 0.60);
    border-left: 0;
    border-right: 0;
    border-top: 0;
    border-radius: 16px;
    padding: 1rem 1.15rem;
    margin: 1rem 0 0;
    color: var(--panel-text);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero .section-note,
.background-section .section-note {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    margin: 1.25rem auto 0;
    color: var(--text-secondary);
    max-width: 900px;
}

.qe-hero-copy p:first-of-type {
    margin-top: 1.5rem;
}

.qe-hero-copy p+p {
    margin-top: 0.75rem;
}

.qe-hero-copy p a {
    color: var(--accent-gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.vision h2,
.approach h2,
.focus h2,
.contact-section h2 {
    font-size: 2.2rem;
}

/* ================== EFFETTO SFONDO PARALLASSE ================== */
.background-section {
    position: relative;
    isolation: isolate;
    /* Multi-layer background:
       1) warm highlight to lift the gold path
       2) cool highlight to lift the cyan network
       3) lighter dark overlay to preserve text readability
       4) base artwork */
    background-image:
        radial-gradient(circle at 74% 40%, rgba(226, 193, 134, 0.16), rgba(226, 193, 134, 0.00) 24%),
        radial-gradient(circle at 22% 34%, rgba(88, 219, 255, 0.10), rgba(88, 219, 255, 0.00) 28%),
        /* Overlay scuro leggermente piu intenso per migliorare la leggibilita dei box trasparenti sovrapposti all'immagine. */
        linear-gradient(rgba(8, 18, 28, 0.62), rgba(9, 18, 28, 0.72)),
        url('assets/images/quantic-eagle-investimenti_trading_quantico_futuristico_trading_ai_intelligenza_artificiale_assets_management.png');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-color: #0d1a26;
}

.approach .feature-card {
    background: var(--card-bg);
}

/* ================== SEZIONE APPROACH (CARDS STANDARD) ================== */
.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
    text-align: left;
}

.feature-card {
    /* Default surface for cards used across Home, Project, Network, and Insights.
       Approach-specific cards can still override only the background when needed.
       Opacita aumentata in modo moderato per proteggere la leggibilita del testo sopra sezioni con immagine o glow. */
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #2a3a4a;
    background: linear-gradient(180deg, rgba(19, 34, 50, 0.84), rgba(13, 26, 38, 0.72));
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.feature-card h3 strong {
    color: var(--accent-gold);
    font-weight: 600;
}

/* ================== SEZIONE CONTATTI ================== */
.contact-subtitle {
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid #2a3a4a;
    border-radius: 5px;
    color: var(--text-light);
    font-family: 'Poppins', sans-serif;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.honeypot-field {
    display: none !important;
}

.privacy-consent {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    justify-content: center;
}

.privacy-consent input[type="checkbox"] {
    width: auto;
}

.privacy-consent a {
    text-decoration: underline;
}

#form-status {
    margin-top: 1rem;
    font-weight: 600;
}

.form-success {
    color: #7bdcb5;
}

.form-error {
    color: #cf2e2e;
}

/* ================== FOOTER ================== */
.footer {
    padding: 3rem 0;
    border-top: 1px solid #2a3a4a;
    background-color: var(--section-bg-light);
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 0;
}

.footer-links a {
    background: var(--accent-gold);
    color: var(--dark-bg);
    font-weight: 600;
    border-radius: 5px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(226, 193, 134, 0.15);
    color: var(--dark-bg);
}

.language-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem 0.8rem;
    max-width: 800px;
    margin: 0;
}

.language-links a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.language-links a:hover {
    color: var(--accent-gold);
}

.footer .company-info {
    width: 100%;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid #2a3a4a;
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.8;
    line-height: 1.6;
    text-align: center;
}

/* ================== MEDIA QUERIES GLOBALI ================== */
@media (max-width: 768px) {

    h1,
    .hero h1,
    .contact-section h2 {
        font-size: 2rem;
    }

    h2,
    .vision h2,
    .approach h2,
    .focus h2 {
        font-size: 1.8rem;
    }

    .nav-container {
        flex-direction: row;
        /* Manteniamo row per logo e toggle */
    }

    .header.scrolled {
        padding: 1rem 0;
    }

    section {
        padding: 3.5rem 1rem;
    }

    section.qe-tight-top {
        padding-top: 2rem;
    }

    section.qe-tight-bottom {
        padding-bottom: 2rem;
    }

    .qe-lead {
        padding: 0.95rem 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .footer .container {
        gap: 1.5rem;
    }

    .footer-links a {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .language-links {
        gap: 0.3rem 0.6rem;
    }
}

/* ================== STILI AGGIUNTIVI (PAGINA PROJECT/VISUAL) ================== */

/* Griglia per i report grafici */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
    margin-top: 2rem;
}

/* Card specifica per le immagini */
.visual-card {
    padding: 1rem;
    background: var(--card-bg);
    text-align: left;
}

.visual-card img {
    width: 100%;
    border-radius: 4px;
    border: 1px solid #2a3a4a;
    margin-bottom: 1rem;
}

.visual-card h4 {
    margin-top: 0.5rem;
    color: var(--accent-gold);
    font-size: 1.1rem;
}

.visual-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Container Dashboard */
.dashboard-preview {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--accent-gold);
    margin-top: 2rem;
    text-align: center;
}

.dashboard-desc {
    margin-bottom: 1.5rem;
}

.dashboard-img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid #2a3a4a;
}

/* Stili per la pagina del progetto (Details) */
.details-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.detail-card {
    /* Superficie piu solida per accordions e dettagli testuali, mantenendo l'effetto glass del tema. */
    background-color: rgba(13, 26, 38, 0.74);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #2a3a4a;
    text-align: left;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
    box-shadow: 0 5px 15px rgba(226, 193, 134, 0.1);
}

.detail-card h4 {
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.detail-card p {
    margin: 0;
    max-width: 100%;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    text-align: left;
    margin-top: 3rem;
}

.intro-card {
    /* Richer surface for the architecture overview on the project page. */
    background: linear-gradient(180deg, rgba(25, 44, 63, 0.96), rgba(19, 34, 50, 0.96));
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(226, 193, 134, 0.16);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}

.intro-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

/* Titolo con icona SVG per i riquadri introduttivi della pagina progetto.
   Serve a sostituire le emoji con un linguaggio visivo coerente con il sito. */
.qe-card-title {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.qe-card-title-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(226, 193, 134, 0.24);
    background: rgba(13, 26, 38, 0.32);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
}

.qe-card-title-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--accent-gold);
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 768px) {
    .qe-section-card-title {
        align-items: flex-start;
    }
}

@media (max-width: 992px) {
    .intro-grid {
        grid-template-columns: 1fr;
    }
}

/* ================== INSIGHTS FAQ / ACCORDION ================== */
.subtitle {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.section-note {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 1rem;
}

.notes-wrap {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

/* Scope everything to .qe-faq to avoid impacting other details usage */
.qe-faq details.detail-card {
    cursor: default;
    scroll-margin-top: 110px;
}

.qe-faq details.detail-card summary {
    list-style: none;
    cursor: pointer;
    outline: none;
}

.qe-faq details.detail-card summary::-webkit-details-marker {
    display: none;
}

.qe-faq details.detail-card summary:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
    border-radius: 10px;
}

.qe-faq .faq-summary {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: start;
}

.qe-faq .faq-summary h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 600;
    line-height: 1.3;
}

.qe-faq .faq-summary p {
    margin: 0.5rem 0 0;
    max-width: 100%;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.qe-faq .faq-icon {
    border: 1px solid #2a3a4a;
    background: rgba(13, 26, 38, 0.35);
    color: var(--accent-gold);
    border-radius: 10px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex: none;
    user-select: none;
}

.qe-faq .faq-icon::before {
    content: '+';
}

.qe-faq details[open] .faq-icon {
    background: rgba(226, 193, 134, 0.12);
    border-color: var(--accent-gold);
}

.qe-faq details[open] .faq-icon::before {
    content: '−';
}

.qe-faq .faq-body {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #2a3a4a;
}

.qe-faq .faq-body h4 {
    margin: 0 0 0.75rem;
    color: var(--accent-gold);
    font-size: 1.1rem;
    font-weight: 600;
}

.qe-faq .faq-body p {
    margin: 0.75rem 0 0;
    max-width: 100%;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .qe-faq .faq-summary {
        grid-template-columns: 1fr;
    }

    .qe-faq .faq-icon {
        width: 40px;
        height: 40px;
    }
}

/* ================== QE STORY CALLOUTS (ICON + PANEL) ================== */

.qe-story-cards {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2rem;
    display: grid;
    gap: 1.25rem;
    text-align: left;
}

.qe-story-card {
    /* Card narrativa con fondo piu coprente: utile quando la card si trova sopra sezioni con immagini, glow o pattern. */
    background: linear-gradient(180deg, rgba(13, 26, 38, 0.80), rgba(13, 26, 38, 0.68));
    border: 1px solid rgba(226, 193, 134, 0.18);
    border-radius: 16px;
    padding: 1.25rem 1.3rem;
    color: var(--panel-text);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.qe-story-card-problem {
    border-color: rgba(226, 193, 134, 0.22);
}

.qe-story-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(0, 229, 168, 0.22);
    background: rgba(13, 26, 38, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.qe-story-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--accent-gold);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.qe-story-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
}

.qe-story-label {
    margin: 0;
    max-width: none;
    color: var(--text-light);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 900;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 229, 168, 0.22);
    background: rgba(0, 229, 168, 0.08);
}

.qe-story-question {
    margin: 0.85rem 0 0;
    color: var(--text-light);
    font-weight: 900;
    font-size: 1.15rem;
    line-height: 1.35;
    background: rgba(226, 193, 134, 0.14);
    border: 1px solid rgba(226, 193, 134, 0.35);
    border-radius: 14px;
    padding: 0.75rem 0.85rem;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

.qe-story-emphasis-box {
    border: 1px solid rgba(0, 229, 168, 0.28);
    background: rgba(0, 229, 168, 0.10);
    border-radius: 14px;
    padding: 0.75rem 0.85rem;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.qe-story-text {
    margin: 0.75rem 0 0;
    max-width: none;
    color: var(--panel-text);
}

.qe-points {
    list-style: none;
    margin: 0.9rem 0 0;
    padding: 0;
    color: var(--panel-text);
    display: grid;
    gap: 0.55rem;
}

.qe-points li {
    margin: 0;
    padding-left: 1.35rem;
    position: relative;
}

.qe-points li::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: rgba(0, 229, 168, 0.80);
    box-shadow: 0 0 0 3px rgba(0, 229, 168, 0.12);
    position: absolute;
    left: 0;
    top: 0.45rem;
}

.qe-risk-tags {
    list-style: none;
    margin: 0.95rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.qe-tag {
    display: block;
    border-radius: 12px;
    padding: 0.65rem 0.75rem;
    font-size: 0.92rem;
    line-height: 1.45;
    max-width: none;
}

.qe-tag strong {
    color: var(--text-light);
    font-weight: 800;
}

.qe-tag-risk {
    border: 1px solid var(--panel-border-red);
    background: rgba(255, 92, 92, 0.10);
    color: var(--panel-text);
}

.qe-story-emphasis {
    margin: 0.95rem 0 0;
    max-width: none;
    color: var(--text-light);
    font-weight: 700;
}

.qe-story-emphasis-good {
    border-left: 3px solid rgba(0, 229, 168, 0.65);
    padding-left: 0.75rem;
    color: var(--panel-text);
}

@media (max-width: 768px) {
    .qe-story-card {
        flex-direction: column;
    }

    .qe-story-icon {
        width: 42px;
        height: 42px;
    }

    .qe-story-icon svg {
        width: 20px;
        height: 20px;
    }
}

/* ================== PREVIEW ACCESS LANDING (LAYOUT + VISUAL) ================== */

.qe-hero {
    overflow: hidden;
}

.qe-hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 2.25rem;
    align-items: start;
}

.qe-hero-copy {
    text-align: left;
}

.qe-kicker {
    display: inline-block;
    max-width: 100%;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 900;
    font-size: 0.82rem;
    line-height: 1.35;
    color: var(--accent-green);
    margin: 0;
    padding: 0.36rem 0.72rem;
    border: 1px solid rgba(0, 229, 168, 0.36);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(0, 229, 168, 0.16), rgba(226, 193, 134, 0.08));
    box-shadow: 0 0 0 3px rgba(0, 229, 168, 0.06), 0 10px 24px rgba(0, 0, 0, 0.22);
    text-shadow: 0 0 12px rgba(0, 229, 168, 0.45);
    overflow-wrap: anywhere;
}

.qe-h1-prefix {
    color: var(--text-light);
    font-size: 2.5rem;
}

.qe-hero h1 {
    margin-top: 0.65rem;
    margin-bottom: 0.85rem;
    font-size: 2.5rem;
    line-height: 1.12;
}

.qe-hero-callouts {
    margin-top: 1.15rem;
    display: grid;
    gap: 0.9rem;
    max-width: 820px;
}

.qe-hero-callout {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    /* Callout hero piu opaco per evitare che dettagli luminosi dello sfondo interferiscano con il testo. */
    background: rgba(13, 26, 38, 0.68);
    border-bottom: 5px solid rgba(0, 229, 168, 0.70);
    border-left: 0;
    border-right: 0;
    border-top: 0;
    border-radius: 16px;
    padding: 1.05rem 1.1rem;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.qe-hero-callout-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(0, 229, 168, 0.24);
    background: rgba(13, 26, 38, 0.30);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.30);
}

.qe-hero-callout-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--accent-green);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.qe-hero-callout-text {
    margin: 0;
    max-width: none;
    color: var(--panel-text);
}

.qe-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem 1rem;
    align-items: center;
    margin-top: 1.25rem;
}

.qe-tertiary-link {
    color: var(--accent-gold);
    text-decoration: underline;
    text-underline-offset: 4px;
    font-weight: 700;
}

/* ================== BRAND FILM SECTION ==================
   Cinematic click-to-play video block used on the home pages.
   The poster keeps the page fast, while the modal loads the video only after user intent. */

.qe-brand-film-section {
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 30%, rgba(0, 229, 168, 0.12), rgba(0, 229, 168, 0.00) 34%),
        radial-gradient(circle at 50% 58%, rgba(226, 193, 134, 0.10), rgba(226, 193, 134, 0.00) 32%),
        linear-gradient(180deg, #050b11 0%, var(--section-bg-light) 100%);
    border-top: 1px solid rgba(226, 193, 134, 0.10);
    border-bottom: 1px solid rgba(0, 229, 168, 0.10);
}

.qe-brand-film-head {
    max-width: 900px;
    margin: 0 auto 2rem;
    text-align: center;
}

.qe-brand-film-kicker {
    margin: 0 0 0.65rem;
    max-width: none;
    color: var(--text-secondary);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 800;
}

.qe-brand-film-title {
    margin: 0;
    font-size: 2.35rem;
    color: var(--accent-gold);
}

.qe-brand-film-copy {
    margin: 1rem auto 0;
    max-width: 760px;
    color: var(--panel-text);
    font-size: 1.02rem;
}

.qe-brand-film-stage {
    max-width: 1180px;
    margin: 0 auto;
}

.qe-brand-film-poster {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(226, 193, 134, 0.22);
    border-radius: 22px;
    background: #03070b;
    cursor: pointer;
    box-shadow: 0 28px 75px rgba(0, 0, 0, 0.52), 0 0 0 1px rgba(0, 229, 168, 0.07);
}

.qe-brand-film-poster img {
    display: block;
    width: 100%;
    aspect-ratio: 2048 / 873;
    object-fit: cover;
    opacity: 0.88;
    transform: scale(1);
    transition: opacity 0.28s ease, transform 0.28s ease, filter 0.28s ease;
}

.qe-brand-film-poster::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(circle at 50% 50%, rgba(0, 229, 168, 0.08), rgba(0, 0, 0, 0.00) 34%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0.28));
    pointer-events: none;
}

.qe-brand-film-poster:hover img,
.qe-brand-film-poster:focus-visible img {
    opacity: 1;
    transform: scale(1.015);
    filter: brightness(1.04);
}

.qe-brand-film-poster:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 4px;
}

.qe-brand-film-play {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    width: 76px;
    height: 76px;
    border-radius: 999px;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(226, 193, 134, 0.92);
    color: var(--dark-bg);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.46), 0 0 0 10px rgba(226, 193, 134, 0.10);
    transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.qe-brand-film-poster:hover .qe-brand-film-play,
.qe-brand-film-poster:focus-visible .qe-brand-film-play {
    transform: translate(-50%, -50%) scale(1.06);
    background: #f1d7a7;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.56), 0 0 0 14px rgba(0, 229, 168, 0.08);
}

.qe-brand-film-play svg {
    width: 30px;
    height: 30px;
    margin-left: 4px;
    fill: currentColor;
}

.qe-brand-film-caption {
    margin: 0.85rem auto 0;
    max-width: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.qe-brand-film-actions {
    margin-top: 1.35rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1rem;
    justify-content: center;
    align-items: center;
}

.qe-video-modal-open {
    overflow: hidden;
}

/* Hide the legal bar while the video modal is open.
   The modal is the active interaction layer, so the fixed disclaimer
   must not cover the media or intercept clicks. */
.qe-video-modal-open .qe-legal-bar {
    display: none !important;
}

.qe-video-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 1rem 2rem;
    overflow: auto;
}

.qe-video-modal[hidden] {
    display: none;
}

.qe-video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.84);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.qe-video-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100vw - 2rem));
    max-height: calc(100vh - 7rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qe-video-modal-close {
    position: absolute;
    right: 0;
    top: -3.25rem;
    min-height: 42px;
    padding: 0.55rem 0.9rem;
    border: 1px solid rgba(226, 193, 134, 0.40);
    border-radius: 999px;
    background: rgba(13, 26, 38, 0.92);
    color: var(--accent-gold);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    cursor: pointer;
}

.qe-video-modal-close:hover,
.qe-video-modal-close:focus-visible {
    background: rgba(226, 193, 134, 0.12);
    outline: 2px solid rgba(226, 193, 134, 0.45);
    outline-offset: 2px;
}

.qe-video-modal-media {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100vh - 7rem);
    object-fit: contain;
    border-radius: 18px;
    border: 1px solid rgba(226, 193, 134, 0.24);
    background: #000;
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.68);
}

@media (max-width: 768px) {
    .qe-brand-film-title {
        font-size: 1.95rem;
    }

    .qe-brand-film-copy {
        font-size: 0.98rem;
    }

    .qe-brand-film-play {
        width: 62px;
        height: 62px;
    }

    .qe-brand-film-play svg {
        width: 24px;
        height: 24px;
    }

    .qe-brand-film-actions {
        align-items: stretch;
    }

    .qe-brand-film-actions .cta-button,
    .qe-brand-film-actions .qe-tertiary-link {
        width: 100%;
        max-width: 420px;
        text-align: center;
    }

    .qe-video-modal {
        padding: 4.5rem 0.75rem 1.25rem;
    }

    .qe-video-modal-dialog {
        width: calc(100vw - 1.5rem);
        max-height: calc(100vh - 6rem);
    }

    .qe-video-modal-media {
        max-width: 100%;
        max-height: calc(100vh - 6rem);
        border-radius: 14px;
    }
}

.qe-briefing-visual {
    position: relative;
    min-height: 230px;
    border-radius: 18px;
    border: 1px solid rgba(226, 193, 134, 0.24);
    background:
        radial-gradient(circle at 50% 42%, rgba(226, 193, 134, 0.16), rgba(226, 193, 134, 0.00) 48%),
        radial-gradient(circle at 64% 58%, rgba(0, 229, 168, 0.12), rgba(0, 229, 168, 0.00) 45%),
        linear-gradient(180deg, rgba(13, 26, 38, 0.78), rgba(13, 26, 38, 0.56));
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.34);
}

.qe-briefing-visual svg {
    display: block;
    width: 100%;
    height: 230px;
}

.qe-briefing-orbit {
    fill: none;
    stroke: rgba(226, 193, 134, 0.52);
    stroke-width: 1.2;
    stroke-dasharray: 6 9;
    transform-origin: center;
    transform-box: fill-box;
    animation: qe-briefing-rotate 34s linear infinite;
}

.qe-briefing-orbit-alt {
    fill: none;
    stroke: rgba(0, 229, 168, 0.28);
    stroke-width: 1;
    stroke-dasharray: 3 8;
    transform-origin: center;
    transform-box: fill-box;
    animation: qe-briefing-rotate-reverse 28s linear infinite;
}

.qe-briefing-line {
    fill: none;
    stroke: rgba(226, 193, 134, 0.44);
    stroke-width: 1.2;
}

.qe-briefing-line-green {
    fill: none;
    stroke: rgba(0, 229, 168, 0.42);
    stroke-width: 1.2;
    stroke-dasharray: 4 7;
    animation: qe-briefing-dash 4.6s linear infinite;
}

.qe-briefing-flow {
    fill: none;
    stroke: rgba(226, 193, 134, 0.88);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 1 12;
    filter: drop-shadow(0 0 6px rgba(226, 193, 134, 0.48));
    animation: qe-briefing-dash 3.2s linear infinite;
}

.qe-briefing-node {
    fill: rgba(226, 193, 134, 0.22);
    stroke: rgba(226, 193, 134, 0.92);
    stroke-width: 1.4;
    transform-origin: center;
    transform-box: fill-box;
    animation: qe-briefing-pulse 3.8s ease-in-out infinite;
}

.qe-briefing-node-green {
    fill: rgba(0, 229, 168, 0.18);
    stroke: rgba(0, 229, 168, 0.82);
}

.qe-briefing-label-box {
    fill: rgba(13, 26, 38, 0.76);
    stroke: rgba(226, 193, 134, 0.34);
    stroke-width: 1;
}

.qe-briefing-label {
    fill: #e2c186;
    font-family: Poppins, sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.qe-briefing-label-soft {
    fill: #d8e0e6;
    font-family: Poppins, sans-serif;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

@keyframes qe-briefing-rotate {
    to {
        transform: rotate(360deg);
    }
}

@keyframes qe-briefing-rotate-reverse {
    to {
        transform: rotate(-360deg);
    }
}

@keyframes qe-briefing-dash {
    to {
        stroke-dashoffset: -32;
    }
}

@keyframes qe-briefing-pulse {

    0%,
    100% {
        opacity: 0.72;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.12);
    }
}

@media (prefers-reduced-motion: reduce) {

    .qe-briefing-orbit,
    .qe-briefing-orbit-alt,
    .qe-briefing-line-green,
    .qe-briefing-flow,
    .qe-briefing-node {
        animation: none;
    }
}

@media (max-width: 992px) {
    .qe-briefing-visual {
        min-height: 210px;
    }

    .qe-briefing-visual svg {
        height: 210px;
    }
}

.qe-hero-panel {
    background: linear-gradient(180deg, rgba(13, 26, 38, 0.78), rgba(13, 26, 38, 0.60));
    border: 1px solid var(--panel-border-green);
    border-radius: 18px;
    padding: 1.4rem 1.4rem;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.42);
    text-align: left;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: grid;
    gap: 1rem;
}

.qe-panel-title {
    margin: 0;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(0, 229, 168, 0.16);
    font-size: 1.25rem;
    color: var(--text-light);
}

.qe-panel-subtitle {
    margin: 0.25rem 0 0;
    font-size: 1.02rem;
    color: var(--text-light);
}

.qe-panel-note {
    margin-top: 0.25rem;
    color: var(--text-secondary);
    max-width: none;
}

.qe-checklist {
    margin: 0.6rem 0 0;
    padding: 0;
    list-style: none;
    color: var(--panel-text);
    display: grid;
    gap: 0.55rem;
}

.qe-checklist li {
    margin: 0;
    padding-left: 1.35rem;
    position: relative;
    line-height: 1.55;
}

.qe-checklist li::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: rgba(0, 229, 168, 0.80);
    box-shadow: 0 0 0 3px rgba(0, 229, 168, 0.12);
    position: absolute;
    left: 0;
    top: 0.45rem;
}

.qe-checklist-muted {
    color: var(--text-secondary);
}

.qe-checklist-muted li::before {
    background: rgba(0, 229, 168, 0.55);
    box-shadow: 0 0 0 3px rgba(0, 229, 168, 0.08);
}

.qe-plain {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.qe-story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ================== QE CATEGORY SHIFT SECTION ==================
   Premium editorial treatment for the Professional Briefing problem section.
   This keeps the existing HTML structure but makes the section feel more like
   an institutional manifesto and less like a product funnel. */

.qe-problem-section {
    background:
        radial-gradient(circle at 15% 8%, rgba(226, 193, 134, 0.08), rgba(226, 193, 134, 0.00) 28%),
        radial-gradient(circle at 84% 18%, rgba(0, 229, 168, 0.06), rgba(0, 229, 168, 0.00) 30%),
        linear-gradient(180deg, #132232 0%, #0d1a26 100%);
    border-top: 1px solid rgba(226, 193, 134, 0.10);
    border-bottom: 1px solid rgba(0, 229, 168, 0.10);
}

.qe-problem-section .qe-section-head {
    max-width: 880px;
}

.qe-problem-section .qe-section-head h2 {
    color: var(--accent-gold);
    letter-spacing: -0.02em;
}

.qe-problem-section .subtitle {
    font-size: 1.02rem;
    line-height: 1.72;
}

.qe-problem-section .qe-story-card {
    border-radius: 0;
    border: 1px solid rgba(226, 193, 134, 0.24);
    background: linear-gradient(180deg, rgba(13, 26, 38, 0.86), rgba(13, 26, 38, 0.72));
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
}

.qe-problem-section .qe-story-card:hover {
    border-color: rgba(226, 193, 134, 0.52);
    transform: translateY(-3px);
}

.qe-problem-section .qe-story-label {
    color: var(--accent-gold);
    letter-spacing: 0.16em;
    font-size: 0.7rem;
}

.qe-problem-section .qe-story-question {
    background: rgba(226, 193, 134, 0.08);
    border: 1px solid rgba(226, 193, 134, 0.28);
    border-radius: 0;
    color: var(--text-light);
    box-shadow: none;
}

.qe-problem-section .qe-risk-tags {
    grid-template-columns: 1fr;
}

.qe-problem-section .qe-tag-risk {
    border-radius: 0;
    border: 1px solid rgba(226, 193, 134, 0.20);
    background: rgba(226, 193, 134, 0.06);
}

.qe-problem-section .qe-story-emphasis-box {
    border-radius: 0;
    border: 1px solid rgba(0, 229, 168, 0.24);
    background: rgba(0, 229, 168, 0.07);
}

.qe-problem-section .qe-solution-panel {
    border-radius: 0;
    border: 1px solid rgba(226, 193, 134, 0.26);
    background:
        radial-gradient(circle at 82% 0%, rgba(226, 193, 134, 0.10), rgba(226, 193, 134, 0.00) 34%),
        linear-gradient(180deg, rgba(13, 26, 38, 0.86), rgba(13, 26, 38, 0.72));
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

.qe-problem-section .qe-pill-good {
    border-radius: 0;
    border-color: rgba(226, 193, 134, 0.26);
    background: rgba(226, 193, 134, 0.07);
}

.qe-contact-context-panel {
    max-width: 900px;
    margin: 2rem auto 0;
    padding: 1.6rem 1.7rem;
    border: 1px solid rgba(226, 193, 134, 0.24);
    border-left: 3px solid var(--accent-gold);
    background:
        radial-gradient(circle at 88% 8%, rgba(226, 193, 134, 0.08), rgba(226, 193, 134, 0.00) 32%),
        linear-gradient(180deg, rgba(13, 26, 38, 0.82), rgba(13, 26, 38, 0.68));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.30);
    text-align: left;
}

.qe-contact-context-panel h3 {
    margin: 0;
    color: var(--text-light);
    font-size: 1.35rem;
}

.qe-contact-context-panel p {
    margin: 0.85rem 0 0;
    max-width: none;
    color: var(--panel-text);
}

.qe-contact-context-panel ul {
    margin-top: 1rem;
}

.qe-proof-section {
    position: relative;
}

.qe-gates .feature-card {
    /* Gate cards use a column layout so screenshots and captions align cleanly across rows. */
    display: flex;
    flex-direction: column;
    height: 100%;
    background: linear-gradient(180deg, rgba(25, 44, 63, 0.95), rgba(19, 34, 50, 0.95));
    border: 1px solid rgba(0, 229, 168, 0.16);
}

.qe-gates .feature-card h3 {
    min-height: 4.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.25;
}

.qe-gates .feature-card h3 strong {
    white-space: nowrap;
}

.qe-gates .feature-card p {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
}

@media (max-width: 900px) {

    /* Forza i blocchi di prova in una sola colonna su mobile e piccoli tablet.
       Così si elimina il layout 2x2 stretto e poco leggibile visto negli screenshot. */
    .features-list.qe-gates,
    .features-list.qe-gates-four {
        grid-template-columns: 1fr;
    }

    .qe-gates .feature-card {
        padding: 1.4rem;
    }

    .qe-gates .feature-card h3 {
        min-height: 0;
    }

    .qe-network-intelligence-section {
        padding-bottom: 2.5rem;
    }

    .qe-validation-section {
        padding-top: 2.4rem;
    }

    .qe-network-intelligence-cta {
        margin-top: 1.6rem;
    }

    .qe-network-intelligence-note {
        margin-top: 0.45rem;
    }
}

.qe-gates .qe-gate-media {
    margin-top: auto;
    padding-top: 1.05rem;
    border-top: 1px solid rgba(0, 229, 168, 0.16);
}

.qe-gates .qe-gate-link {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #2a3a4a;
    background: rgba(13, 26, 38, 0.35);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.30);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.qe-gates .qe-gate-link:hover {
    transform: translateY(-2px);
    border-color: rgba(226, 193, 134, 0.60);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.38);
}

.qe-gates .qe-gate-link img,
.qe-gates .qe-gate-img {
    width: 100%;
    max-width: 100%;
    height: 220px;
    display: block;
    object-fit: contain;
}

.qe-gates .qe-gate-caption {
    margin: 0.65rem 0 0;
    max-width: none;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

@media (max-width: 768px) {

    .qe-gates .qe-gate-link img,
    .qe-gates .qe-gate-img {
        height: 160px;
    }
}

.qe-gates-four {
    /* Two-by-two proof grid for desktop.
       A dedicated media rule is declared immediately after so mobile wins in the cascade. */
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 900px) {
    .qe-gates-four {
        grid-template-columns: 1fr;
    }
}

/* Spaziatura dedicata tra il blocco "Mycelium Effect" e la sezione di validazione.
   Il bottone riceve più aria sopra, la nota resta più vicina al bottone,
   e il vuoto prima di "Proof: The 3-Gate Validation Discipline" viene ridotto. */
.qe-network-intelligence-section {
    padding-bottom: 3rem;
}

.qe-validation-section {
    padding-top: 3.25rem;
}

.qe-network-intelligence-cta {
    margin-top: 2.2rem;
    text-align: center;
}

.qe-network-intelligence-note {
    margin-top: 0.55rem;
}

.qe-section-head {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.qe-problem-section .subtitle {
    max-width: 900px;
}

.qe-solution-panel {
    max-width: 980px;
    margin: 1.5rem auto 0;
    text-align: left;
    /* Pannello soluzione reso piu compatto visivamente per aumentare il contrasto dei contenuti interni. */
    background: linear-gradient(180deg, rgba(13, 26, 38, 0.76), rgba(13, 26, 38, 0.64));
    border: 1px solid rgba(0, 229, 168, 0.30);
    border-radius: 18px;
    padding: 1.25rem 1.25rem;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.38);
}

.qe-solution-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.25rem;
    align-items: start;
}

.qe-solution-panel h3 {
    margin: 0 0 0.35rem;
    color: var(--text-light);
    font-size: 1.25rem;
}

.qe-solution-panel p {
    margin: 0.6rem 0 0;
    max-width: none;
    color: var(--panel-text);
}

.qe-solution-pills {
    /* Spaziatura e allineamento più netti per evitare l'effetto
       di "testo continuo" segnalato nella pagina Request Access. */
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-start;
    align-items: flex-start;
}

.qe-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    max-width: 100%;

    border-radius: 999px;
    padding: 0.45rem 0.95rem;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.35;
    text-align: center;

    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.qe-pill-good {
    border: 1px solid rgba(0, 229, 168, 0.32);
    background: rgba(0, 229, 168, 0.12);
    color: var(--panel-text);
}

.qe-pill-gold {
    position: relative;
    border: 1px solid rgba(0, 229, 168, 0.34);
    background:
        linear-gradient(135deg, rgba(0, 229, 168, 0.14), rgba(226, 193, 134, 0.09)),
        rgba(13, 26, 38, 0.42);
    color: #eaf7f2;
    padding: 0.52rem 1rem 0.52rem 0.78rem;
    line-height: 1.35;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.20), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.qe-gate-pills {
    margin: 0.85rem 0 1.05rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: flex-start;
    align-items: center;
}

.qe-gate-pills .qe-pill-gold {
    justify-content: flex-start;
    text-align: left;
    padding-left: 2.55rem;
}

.qe-gate-pills .qe-pill-gold::before {
    content: "";
    position: absolute;
    left: 0.75rem;
    top: 50%;
    width: 1.28rem;
    height: 1.28rem;
    border-radius: 999px;
    background: rgba(0, 229, 168, 0.14);
    border: 1px solid rgba(0, 229, 168, 0.34);
    box-shadow: 0 0 0 3px rgba(0, 229, 168, 0.08);
    transform: translateY(-50%);
}

.qe-gate-pills .qe-pill-gold::after {
    content: "";
    position: absolute;
    left: 0.98rem;
    top: 50%;
    width: 0.82rem;
    height: 0.82rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300e5a8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5l6.5 3.4v4.9c0 4.2-2.4 7.2-6.5 8.7-4.1-1.5-6.5-4.5-6.5-8.7V6.9L12 3.5z'/%3E%3Cpath d='M8.7 12.1l2.2 2.2 4.6-4.7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transform: translateY(-50%);
}

.qe-solution-cta {
    margin-top: 1.1rem;
    display: flex;
    justify-content: flex-start;
}

.qe-highlight-card {
    border-color: rgba(0, 229, 168, 0.22);
    /* Variante evidenziata piu opaca, usata per contenuti che devono restare leggibili anche sopra sfondi complessi. */
    background: linear-gradient(180deg, rgba(13, 26, 38, 0.76), rgba(13, 26, 38, 0.62));
}

.qe-mini-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.qe-badge {
    display: inline-block;
    border: 1px solid rgba(0, 229, 168, 0.26);
    background: rgba(0, 229, 168, 0.10);
    color: var(--panel-text);
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
    font-size: 0.82rem;
    font-weight: 700;
}

/* ================== ACCESS PATHS (PROJECT + REQUEST ACCESS) ==================
   Reusable styles for:
   1) the 3-card commercial ladder on project pages
   2) the radio-card path selector on the unified request page
   ========================================================================== */

.qe-paths-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
    text-align: left;
}

.qe-path-card {
    background: linear-gradient(180deg, rgba(25, 44, 63, 0.95), rgba(19, 34, 50, 0.95));
    border: 1px solid rgba(0, 229, 168, 0.18);
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.qe-path-card h3 {
    margin-bottom: 0.75rem;
}

.qe-path-card p {
    margin: 0;
    max-width: none;
}

.qe-path-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
    color: var(--panel-text);
}

.qe-path-list li {
    position: relative;
    padding-left: 1.25rem;
    margin: 0;
    line-height: 1.55;
}

.qe-path-list li::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: rgba(0, 229, 168, 0.80);
    box-shadow: 0 0 0 3px rgba(0, 229, 168, 0.12);
    position: absolute;
    left: 0;
    top: 0.48rem;
}

.qe-path-cta {
    margin-top: 1.25rem;
}

.qe-path-cta .cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
}

/* Card-based path selector for the unified request page. */
.qe-path-selector {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-bottom: 1.2rem;
}

.qe-path-choice {
    position: relative;
    display: block;
}

.qe-path-choice-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.qe-path-choice-card {
    display: block;
    height: 100%;
    padding: 1rem;
    border-radius: 14px;
    border: 1px solid rgba(226, 193, 134, 0.18);
    /* Card di selezione piu leggibile, soprattutto quando contiene descrizioni su due o piu righe. */
    background: rgba(13, 26, 38, 0.66);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
    cursor: pointer;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.qe-path-choice-card:hover {
    transform: translateY(-2px);
    border-color: rgba(226, 193, 134, 0.45);
}

.qe-path-choice-input:focus+.qe-path-choice-card {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

.qe-path-choice-input:checked+.qe-path-choice-card {
    border-color: rgba(0, 229, 168, 0.55);
    background: rgba(0, 229, 168, 0.08);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.32), 0 0 0 2px rgba(0, 229, 168, 0.08);
}

.qe-path-choice-title {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--text-light);
    font-weight: 700;
    line-height: 1.35;
}

.qe-path-choice-text {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.qe-dynamic-panel {
    margin-top: 1.25rem;
    /* Pannello dinamico piu coprente per preservare contrasto tra titolo, descrizione e sfondo. */
    background: rgba(13, 26, 38, 0.72);
    border: 1px solid rgba(0, 229, 168, 0.18);
    border-radius: 16px;
    padding: 1rem 1.1rem;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.30);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.qe-dynamic-kicker {
    margin: 0 0 0.45rem;
    max-width: none;
    color: var(--accent-gold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 800;
}

.qe-dynamic-panel h3 {
    margin: 0;
    color: var(--text-light);
    font-size: 1.2rem;
}

.qe-dynamic-panel p {
    margin: 0.55rem 0 0;
    max-width: none;
    color: var(--panel-text);
}

.qe-form-reset {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--accent-gold);
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
    padding: 0;
    margin-left: 0.35rem;
    cursor: pointer;
}

.qe-form-reset:hover {
    color: #f1d7a7;
}

.qe-form-reset[hidden] {
    display: none !important;
}

@media (max-width: 992px) {
    .qe-paths-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .qe-path-selector {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .qe-paths-grid {
        grid-template-columns: 1fr;
    }

    .qe-path-selector {
        grid-template-columns: 1fr;
    }
}

.qe-request-section {
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
}

.qe-request-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 2rem;
    align-items: start;
    text-align: left;
}

.qe-request-copy h2 {
    margin-bottom: 0.75rem;
}

.qe-request-points {
    margin-top: 1.25rem;
    /* Lista punti piu opaca per rendere leggibili elementi brevi e testo secondario. */
    background: rgba(13, 26, 38, 0.72);
    border: 1px solid rgba(0, 229, 168, 0.18);
    border-radius: 16px;
    padding: 1.05rem 1.15rem;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.30);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.qe-form-panel {
    background: rgba(19, 34, 50, 0.88);
    border: 1px solid rgba(0, 229, 168, 0.22);
    border-radius: 18px;
    padding: 1.5rem 1.5rem;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.qe-form-title {
    margin: 0 0 0.45rem;
    color: var(--text-light);
    font-size: 1.25rem;
}

.qe-form-subtitle {
    margin: 0 0 1.45rem;
    color: var(--text-secondary);
    max-width: none;
}

.qe-form-panel .contact-form {
    max-width: none;
    margin: 0;
}

.qe-form-panel .contact-form input,
.qe-form-panel .contact-form textarea {
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(0, 229, 168, 0.14);
}

.qe-form-panel .contact-form textarea {
    /* Shorter default height fits the new pre-filled templates while keeping the field easy to edit. */
    min-height: 220px;
    resize: vertical;
}

.qe-form-panel .contact-form input:focus,
.qe-form-panel .contact-form textarea:focus {
    border-color: rgba(0, 229, 168, 0.55);
    box-shadow: 0 0 0 3px rgba(0, 229, 168, 0.12);
}

/* Centra il bottone submit nel form di richiesta accesso.
   display:block + width:fit-content + margin:auto e il metodo
   piu robusto per centrare un <button> in tutti i browser.
   La tecnica precedente (display:table) puo fallire su <button>
   in alcuni contesti dove il browser non restringe la larghezza. */
#submitButton {
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.qe-disclaimer-section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

.qe-disclaimer-panel {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    background: rgba(13, 26, 38, 0.55);
    border: 1px solid rgba(0, 229, 168, 0.18);
    border-radius: 16px;
    padding: 1rem 1.1rem;
}

.qe-disclaimer-text {
    margin: 0;
    max-width: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

@media (max-width: 992px) {
    .qe-hero-grid {
        grid-template-columns: 1fr;
    }

    .qe-request-grid {
        grid-template-columns: 1fr;
    }

    .qe-story-grid {
        grid-template-columns: 1fr;
    }

    .qe-solution-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .qe-hero h1 {
        font-size: 2.25rem;
    }

    .qe-hero-actions {
        align-items: stretch;
    }

    /* Su mobile i CTA principali diventano a larghezza piena nelle aree di contenuto.
       In questo modo i testi lunghi in italiano e spagnolo non escono più dal bottone. */
    .qe-hero-actions .cta-button,
    .qe-path-cta .cta-button,
    .qe-solution-cta .cta-button,
    .contact-section .cta-button,
    .focus .cta-button,
    .vision .cta-button,
    .approach .cta-button {
        width: 100%;
        max-width: 420px;
        text-align: center;
    }
}

.qe-gold-strong {
    color: var(--accent-gold);
    font-weight: 800;
}

/* PROJECT HERO ONLY: keep the gold lead accent on the project page */
#project-hero .qe-lead.qe-lead-neutral {
    border-bottom-color: rgba(226, 193, 134, 0.70);
}

/* Global reveal system used by Home, Project, Request Access, and Network cards. */
[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.9s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.6, 0.2, 1);
}

[data-reveal].in-view {
    opacity: 1;
    transform: none;
}

[data-reveal-d1] {
    transition-delay: 0.08s;
}

[data-reveal-d2] {
    transition-delay: 0.16s;
}

[data-reveal-d3] {
    transition-delay: 0.24s;
}

/* Shared evergreen status chip for evaluation-oriented messaging. */
.qe-live-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(0, 229, 168, 0.28);
    background: rgba(0, 229, 168, 0.08);
    color: #9fe7c6;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.qe-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #8fd7ad;
    position: relative;
    flex: none;
}

.qe-live-dot::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: #8fd7ad;
    opacity: 0.4;
    animation: qe-live-halo 1.8s ease-out infinite;
}

@keyframes qe-live-halo {
    0% {
        transform: scale(0.6);
        opacity: 0.5;
    }

    100% {
        transform: scale(2.6);
        opacity: 0;
    }
}

/* Home hero layout:
   - the hero container is slightly wider on desktop to reduce the right-side dead area
   - the right panel no longer stretches to the full height of the left column
   - the note stays directly under the checklist instead of being pushed to the bottom */
.qe-hero-home .container {
    max-width: 1220px;
}

.qe-hero-home .qe-hero-grid {
    grid-template-columns: minmax(0, 1.32fr) minmax(360px, 0.88fr);
    gap: 1.75rem;
    align-items: start;
}

.qe-hero-home .qe-hero-panel {
    display: grid;
    gap: 1rem;
    align-self: start;
}

.qe-hero-home .qe-hero-panel .qe-panel-note {
    margin-top: 0.15rem;
    padding-top: 0;
}

.qe-h1-kicker {
    display: block;
    color: var(--accent-gold);
    font-size: 0.52em;
    line-height: 1.1;
    letter-spacing: 0.03em;
    margin-bottom: 0.35em;
    font-weight: 600;
}

.qe-hero-stats {
    border: 1px solid rgba(226, 193, 134, 0.20);
    border-radius: 16px;
    padding: 1.35rem;
    background: rgba(226, 193, 134, 0.04);
    position: relative;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.34);
    text-align: left;
}

.qe-hero-stats::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-gold), transparent);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.qe-stat {
    padding: 0.95rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.qe-stat:first-child {
    border-top: none;
    padding-top: 0;
}

.qe-stat-k {
    color: #9aabb9;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 5px;
}

.qe-stat-v {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 15px;
    color: #f2f5f7;
    font-weight: 500;
}

.qe-stat-cta {
    padding-top: 1rem;
}

.qe-stat-cta a {
    color: var(--accent-gold);
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
}

.qe-stat-cta a:hover {
    text-decoration: underline;
}

.qe-outcome-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
    text-align: left;
}

.qe-outcome-card {
    position: relative;
    padding: 28px 22px 22px;
    border: 1px solid rgba(226, 193, 134, 0.16);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    transition: transform 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.qe-outcome-card:hover {
    transform: translateY(-3px);
    border-color: rgba(226, 193, 134, 0.30);
}

.qe-outcome-num {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.14em;
    margin-bottom: 14px;
}

.qe-outcome-card h3 {
    color: var(--text-light);
    font-size: 19px;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.qe-outcome-card p {
    margin: 0;
    max-width: none;
}

/* Network hero: dedicated neural graph scene used only on the signature page. */
.qe-network-hero {
    position: relative;
    overflow: hidden;
}

.qe-network-hero.background-section {
    /* Dedicated dark backdrop for the Network hero.
       Keep this scoped here so the generic background image remains unchanged elsewhere.
       If you later add a custom neural artwork, replace the first layer below with:
       url('/assets/images/network-hero-neural.webp') */
    background-image:
        radial-gradient(circle at 18% 52%, rgba(255, 170, 35, 0.12), transparent 24%),
        radial-gradient(circle at 72% 40%, rgba(88, 219, 255, 0.12), transparent 30%),
        linear-gradient(180deg, rgba(7, 14, 22, 0.94), rgba(8, 16, 24, 0.96));
    background-color: #081018;
    background-attachment: scroll;
}

.qe-network-hero .container {
    position: relative;
    z-index: 1;
}

.qe-network-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.qe-network-neural-scene {
    opacity: 0.96;
}

.qe-network-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(90px);
    opacity: 0.32;
    mix-blend-mode: screen;
}

.qe-network-glow-gold {
    width: 32rem;
    height: 32rem;
    left: -8rem;
    top: 18%;
    background: radial-gradient(circle, rgba(255, 170, 35, 0.28) 0%, rgba(255, 170, 35, 0.10) 42%, transparent 72%);
}

.qe-network-glow-cyan {
    width: 38rem;
    height: 38rem;
    right: -10rem;
    top: 10%;
    background: radial-gradient(circle, rgba(88, 219, 255, 0.22) 0%, rgba(88, 219, 255, 0.08) 46%, transparent 74%);
}

.qe-network-neural-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.qe-network-link {
    fill: none;
    stroke: rgba(88, 219, 255, 0.16);
    stroke-width: 1.25;
    stroke-linecap: round;
    opacity: 0.9;
}

.qe-network-link-hot {
    stroke: rgba(255, 170, 35, 0.24);
    stroke-width: 1.7;
}

.qe-network-link-secondary {
    stroke: rgba(132, 150, 170, 0.12);
    stroke-width: 1;
}

.qe-network-pulse {
    fill: none;
    stroke: rgba(88, 219, 255, 0.18);
    stroke-width: 1.25;
    opacity: 0.65;
    transform-box: fill-box;
    transform-origin: center;
    animation: qe-network-pulse-wave 5.6s ease-out infinite;
}

.qe-network-pulse-hot {
    stroke: rgba(255, 170, 35, 0.22);
}

.qe-network-node-shell {
    fill: rgba(5, 11, 18, 0.74);
    stroke: rgba(88, 219, 255, 0.28);
    stroke-width: 1.2;
}

.qe-network-node-core {
    fill: #58dbff;
    opacity: 0.95;
    animation: qe-network-node-breathe 4.8s ease-in-out infinite;
}

.qe-network-node-shell-hot {
    stroke: rgba(255, 170, 35, 0.34);
}

.qe-network-node-core-hot {
    fill: #ffb142;
}

.qe-network-node-shell-muted {
    stroke: rgba(132, 150, 170, 0.20);
}

.qe-network-node-core-muted {
    fill: rgba(132, 150, 170, 0.78);
}

.qe-network-particle {
    opacity: 0.88;
}

.qe-network-particle-cyan {
    fill: #58dbff;
}

.qe-network-particle-gold {
    fill: #ffb142;
}

@keyframes qe-network-node-breathe {
    0% {
        transform: scale(0.94);
        opacity: 0.78;
    }

    50% {
        transform: scale(1.08);
        opacity: 1;
    }

    100% {
        transform: scale(0.94);
        opacity: 0.78;
    }
}

@keyframes qe-network-pulse-wave {
    0% {
        transform: scale(0.5);
        opacity: 0.42;
    }

    100% {
        transform: scale(2.8);
        opacity: 0;
    }
}

.qe-network-proof-strip {
    margin-top: 1.6rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    text-align: left;
}

.qe-network-proof-item {
    /* Elementi proof piu leggibili sopra la scena network animata e i glow di sfondo. */
    background: rgba(13, 26, 38, 0.70);
    border: 1px solid rgba(226, 193, 134, 0.18);
    border-radius: 16px;
    padding: 1rem 1rem 0.95rem;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.qe-network-proof-kicker {
    color: var(--accent-gold);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.45rem;
}

.qe-network-proof-item p {
    margin: 0;
    max-width: none;
    font-size: 0.92rem;
    line-height: 1.55;
}

@media (max-width: 992px) {
    .qe-network-proof-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .qe-network-proof-strip {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .qe-hero-home .qe-hero-grid {
        grid-template-columns: 1fr;
    }

    .qe-hero-stats {
        margin-top: 1rem;
    }

    .qe-outcome-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .qe-live-dot::before {
        animation: none;
    }

    .qe-network-node-core {
        animation: none;
    }

    .qe-network-pulse {
        display: none;
    }
}

/* ================== FIX: PATH CARD BUTTON ALIGNMENT ================== */
.qe-path-card {
    display: flex;
    flex-direction: column;
}

.qe-path-card>h3,
.qe-path-card>p,
.qe-path-card>.qe-path-list {
    flex-shrink: 0;
}

.qe-path-cta {
    margin-top: auto;
    padding-top: 1.5rem;
}

/* ================== QE UTILITY (BACK TO TOP + IT/EN) ================== */

.qe-utility {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 9999;

    right: calc(1rem + env(safe-area-inset-right));
    bottom: calc(1rem + env(safe-area-inset-bottom));

    max-width: calc(100vw - 2rem);

    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.qe-utility.qe-utility--visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.qe-utility-group {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    overflow: hidden;

    max-width: 100%;

    border: 1px solid rgba(0, 229, 168, 0.18);
    background: rgba(13, 26, 38, 0.55);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.qe-utility-btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--text-light);
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    letter-spacing: 0.02em;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;

    padding: 0.65rem 0.85rem;
    cursor: pointer;

    min-height: 48px;

    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.qe-utility-btn-top {
    text-decoration: none;
}

.qe-utility-btn svg {
    width: 18px;
    height: 18px;
    stroke: var(--accent-gold);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.qe-utility-sep {
    width: 1px;
    align-self: stretch;
    background: rgba(226, 193, 134, 0.22);
}

.qe-utility-btn:hover {
    background: rgba(226, 193, 134, 0.10);
}

.qe-utility-btn:active {
    background: rgba(226, 193, 134, 0.16);
}

.qe-utility-btn:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: -2px;
}

.qe-utility-menu {
    position: absolute;
    right: 0;
    bottom: calc(100% + 0.65rem);

    min-width: 160px;
    max-width: calc(100vw - 2rem);

    display: none;
    padding: 0.4rem;
    border-radius: 14px;

    background: rgba(13, 26, 38, 0.92);
    border: 1px solid rgba(226, 193, 134, 0.22);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.50);
}

.qe-utility.qe-utility--open .qe-utility-menu {
    display: grid;
    gap: 0.35rem;
}

.qe-utility-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0.6rem 0.8rem;
    border-radius: 10px;

    color: var(--text-light);
    background: rgba(19, 34, 50, 0.75);
    border: 1px solid rgba(0, 229, 168, 0.14);

    font-weight: 700;
    text-decoration: none;

    min-height: 44px;
}

.qe-utility-menu-item:hover {
    background: rgba(226, 193, 134, 0.14);
    border-color: rgba(226, 193, 134, 0.35);
    color: var(--text-light);
}

.qe-utility-menu-item:active {
    background: rgba(226, 193, 134, 0.18);
}

.qe-utility-menu-item:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

@media (hover: none) {
    .qe-utility-btn:hover {
        background: transparent;
    }
}

@media (max-width: 768px) {
    .qe-utility {
        right: 1rem;
        bottom: 1rem;

        right: calc(0.85rem + env(safe-area-inset-right));
        bottom: calc(0.85rem + env(safe-area-inset-bottom));
    }

    .qe-utility-btn {
        padding: 0.6rem 0.75rem;
        min-height: 48px;
    }
}

@media (max-width: 420px) {
    .qe-utility-btn span {
        display: none;
    }

    .qe-utility-btn {
        gap: 0;
        padding: 0.65rem 0.8rem;
    }

    .qe-utility-menu {
        min-width: 140px;
    }
}

/* ================== QE LEGAL BAR (DESKTOP STICKY, MOBILE ALWAYS OPEN) ================== */

.qe-legal-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    background: rgba(13, 26, 38, 0.92);
    border-top: 1px solid rgba(226, 193, 134, 0.22);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateY(100%);
    transition: transform 0.35s ease, background-color 0.25s ease, border-color 0.25s ease;
    pointer-events: none;
}

.qe-legal-bar.qe-legal-bar--visible {
    transform: translateY(0);
    pointer-events: auto;
}

.qe-legal-bar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.65rem 1.25rem;
}

.qe-legal-bar p {
    margin: 0;
    max-width: none;
    color: var(--text-secondary);
    font-size: 0.78rem;
    line-height: 1.5;
    text-align: center;
}

@media (max-width: 768px) {

    /* Su mobile la nota legale diventa un blocco normale a fondo pagina,
       sempre aperto e senza alcun toggle. */
    .qe-legal-bar {
        position: static;
        left: auto;
        right: auto;
        bottom: auto;
        z-index: auto;
        transform: none;
        pointer-events: auto;
        box-shadow: none;
        border-top: 0;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .qe-legal-bar.qe-legal-bar--visible {
        transform: none;
    }

    .qe-legal-bar-inner {
        max-width: 1100px;
        padding: 0.9rem 1rem 0;
        background: rgba(13, 26, 38, 0.55);
        border: 1px solid rgba(226, 193, 134, 0.18);
        border-radius: 14px;
        box-shadow: 0 14px 35px rgba(0, 0, 0, 0.22);
    }

    .qe-legal-bar p {
        font-size: 0.72rem;
        text-align: left;
    }
}

/* ================== QE FLOW (2-STEP DIAGRAM) ==================
   Usato nella home (EN/IT/ES) per mostrare il flusso di valutazione
   in due step. Le card ora includono:
     - numerazione 01 / 02 (font monospace, colore oro)
     - icona tematica: occhio (osservazione), cartella (mandato)
     - paragrafo descrittivo con tipografia piu leggera
   Il connettore centrale usa doppia barra gradient laterale + freccia
   SVG con pulse, molto piu gradevole della freccia generica.
   Su mobile il connettore ruota di 90 gradi e le barre laterali si
   nascondono, per un layout verticale pulito.
================================================================== */

.qe-flow {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: stretch;
    max-width: 960px;
    margin: 1.1rem auto 0;
}

.qe-flow-step {
    position: relative;
    /* Step del flow piu opaco per mantenere leggibili descrizioni brevi e label sopra sfondi complessi. */
    background: linear-gradient(180deg, rgba(13, 26, 38, 0.76), rgba(13, 26, 38, 0.64));
    border: 1px solid rgba(0, 229, 168, 0.22);
    border-radius: 18px;
    padding: 1.15rem 1.25rem 1.1rem;
    text-align: left;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.qe-flow-step:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 229, 168, 0.45);
    box-shadow: 0 26px 58px rgba(0, 0, 0, 0.42);
}

.qe-flow-step-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.1rem;
}

.qe-flow-step-num {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--accent-gold);
    line-height: 1;
    letter-spacing: 0.02em;
    min-width: 2.4rem;
}

.qe-flow-step-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(0, 229, 168, 0.28);
    background: rgba(0, 229, 168, 0.10);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.qe-flow-step-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--accent-green);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.qe-flow-kicker {
    color: var(--accent-gold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 800;
}

.qe-flow-text {
    margin: 0;
    max-width: none;
    color: var(--panel-text);
    font-size: 0.93rem;
    line-height: 1.6;
}

/* Override esplicito: il selettore generico
   .qe-hero-copy p:not(.qe-plain) altrimenti applicherebbe
   background panel + bordo verde + padding + ombra anche al
   paragrafo interno dello step, creando la "card nella card".
   Qui azzeriamo tutti questi valori con specificita piu alta. */
.qe-hero-copy .qe-flow-step .qe-flow-text {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    margin: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Connettore centrale fra i due step: freccia SVG con pulse
   e due piccole barre gradient laterali (pseudo-elementi) che
   simulano una linea continua di connessione. */
.qe-flow-connector {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.25rem;
    color: var(--accent-gold);
    min-width: 40px;
}

.qe-flow-connector::before,
.qe-flow-connector::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 14px;
    height: 2px;
    border-radius: 2px;
    transform: translateY(-50%);
}

.qe-flow-connector::before {
    left: -10px;
    background: linear-gradient(90deg, transparent, rgba(226, 193, 134, 0.55));
}

.qe-flow-connector::after {
    right: -10px;
    background: linear-gradient(90deg, rgba(226, 193, 134, 0.55), transparent);
}

.qe-flow-connector svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: qe-flow-connector-pulse 3s ease-in-out infinite;
}

@keyframes qe-flow-connector-pulse {

    0%,
    100% {
        transform: translateX(0);
        opacity: 0.85;
    }

    50% {
        transform: translateX(4px);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .qe-flow {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .qe-flow-connector {
        transform: rotate(90deg);
        margin: 0.15rem auto;
    }

    /* In layout verticale le barre laterali non servono. */
    .qe-flow-connector::before,
    .qe-flow-connector::after {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .qe-flow-connector svg {
        animation: none;
    }
}

/* ================== QE PROOF MAP AND LIVE COHERENCE ================== */

.qe-proof-map {
    margin: 2.4rem auto 2.1rem;
    max-width: 1040px;
    padding: 1.25rem;
    border-radius: 20px;
    border: 1px solid rgba(226, 193, 134, 0.22);
    background:
        radial-gradient(circle at 18% 30%, rgba(0, 229, 168, 0.10), rgba(0, 229, 168, 0.00) 34%),
        radial-gradient(circle at 86% 48%, rgba(226, 193, 134, 0.12), rgba(226, 193, 134, 0.00) 32%),
        linear-gradient(180deg, rgba(13, 26, 38, 0.82), rgba(13, 26, 38, 0.68));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
    text-align: left;
    overflow: hidden;
}

.qe-proof-map-title {
    margin: 0 0 1rem;
    color: var(--text-light);
    font-size: 1.25rem;
    font-weight: 800;
}

.qe-proof-map-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.8rem;
    position: relative;
}

.qe-proof-map-grid::before {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    top: 2.05rem;
    height: 2px;
    background: linear-gradient(90deg, rgba(0, 229, 168, 0.20), rgba(226, 193, 134, 0.80), rgba(0, 229, 168, 0.20));
    opacity: 0.85;
}

.qe-proof-map-step {
    position: relative;
    z-index: 1;
    min-height: 180px;
    padding: 0.9rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 229, 168, 0.18);
    background: rgba(13, 26, 38, 0.74);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.26);
}

.qe-proof-map-step-final {
    border-color: rgba(226, 193, 134, 0.34);
    background: rgba(226, 193, 134, 0.08);
}

.qe-proof-map-node {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
    background: rgba(0, 229, 168, 0.12);
    border: 1px solid rgba(0, 229, 168, 0.36);
    color: var(--accent-green);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-weight: 800;
    box-shadow: 0 0 0 6px rgba(0, 229, 168, 0.06);
}

.qe-proof-map-step-final .qe-proof-map-node {
    background: rgba(226, 193, 134, 0.14);
    border-color: rgba(226, 193, 134, 0.46);
    color: var(--accent-gold);
    box-shadow: 0 0 0 6px rgba(226, 193, 134, 0.08);
}

.qe-proof-map-kicker {
    margin: 0 0 0.35rem;
    color: var(--accent-gold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 800;
}

.qe-proof-map-step h3 {
    margin: 0;
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.28;
}

.qe-proof-map-step p {
    margin: 0.55rem 0 0;
    max-width: none;
    color: var(--panel-text);
    font-size: 0.86rem;
    line-height: 1.55;
}

.qe-live-coherence-section {
    background:
        radial-gradient(circle at 18% 20%, rgba(226, 193, 134, 0.10), rgba(226, 193, 134, 0.00) 30%),
        radial-gradient(circle at 82% 32%, rgba(0, 229, 168, 0.08), rgba(0, 229, 168, 0.00) 34%),
        linear-gradient(180deg, var(--section-bg-light), var(--dark-bg));
    border-top: 1px solid rgba(226, 193, 134, 0.10);
    border-bottom: 1px solid rgba(0, 229, 168, 0.10);
}

.qe-live-coherence-card {
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 1.5rem;
    align-items: center;
    text-align: left;
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(226, 193, 134, 0.24);
    background: rgba(13, 26, 38, 0.72);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

.qe-live-coherence-visual {
    min-height: 300px;
    border-radius: 18px;
    border: 1px solid rgba(0, 229, 168, 0.24);
    background:
        radial-gradient(circle at 24% 32%, rgba(226, 193, 134, 0.14), rgba(226, 193, 134, 0.00) 34%),
        radial-gradient(circle at 76% 48%, rgba(0, 229, 168, 0.16), rgba(0, 229, 168, 0.00) 42%),
        rgba(13, 26, 38, 0.88);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qe-live-coherence-visual svg {
    display: block;
    width: 100%;
    height: 300px;
    min-width: 0;
    flex: 1 1 auto;
}

.qe-live-coherence-frame {
    fill: rgba(13, 26, 38, 0.72);
    stroke: rgba(226, 193, 134, 0.24);
    stroke-width: 1.2;
}

.qe-live-coherence-panel {
    fill: rgba(19, 34, 50, 0.74);
    stroke: rgba(0, 229, 168, 0.24);
    stroke-width: 1.2;
}

.qe-live-coherence-panel-final {
    fill: rgba(226, 193, 134, 0.07);
    stroke: rgba(226, 193, 134, 0.42);
}

.qe-live-coherence-title {
    fill: #e2c186;
    font-family: Poppins, sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.qe-live-coherence-label {
    fill: #f0f0f0;
    font-family: Poppins, sans-serif;
    font-size: 11px;
    font-weight: 700;
}

.qe-live-coherence-label-soft {
    fill: #a8b2b9;
    font-family: Poppins, sans-serif;
    font-size: 8.5px;
    font-weight: 600;
}

.qe-live-coherence-mini-label {
    fill: #d8e0e6;
    font-family: Poppins, sans-serif;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.qe-live-coherence-flow-line {
    fill: none;
    stroke: rgba(0, 229, 168, 0.42);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 6 8;
    animation: qe-proof-dash 6s linear infinite;
}

.qe-live-coherence-flow-line-hot {
    fill: none;
    stroke: rgba(226, 193, 134, 0.94);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 6px rgba(226, 193, 134, 0.32));
}

.qe-live-coherence-node {
    fill: rgba(13, 26, 38, 0.96);
    stroke: rgba(0, 229, 168, 0.88);
    stroke-width: 2;
    filter: drop-shadow(0 0 5px rgba(0, 229, 168, 0.22));
}

.qe-live-coherence-node-hot {
    stroke: rgba(226, 193, 134, 1);
    filter: drop-shadow(0 0 6px rgba(226, 193, 134, 0.34));
}

.qe-live-coherence-band {
    fill: rgba(0, 229, 168, 0.10);
    stroke: rgba(0, 229, 168, 0.20);
    stroke-width: 1;
}

.qe-live-coherence-band-edge {
    fill: none;
    stroke: rgba(0, 229, 168, 0.34);
    stroke-width: 1;
    stroke-dasharray: 4 6;
}

.qe-live-coherence-live-curve {
    fill: none;
    stroke: rgba(226, 193, 134, 1);
    stroke-width: 3.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 7px rgba(226, 193, 134, 0.34));
}

.qe-live-coherence-drift-curve {
    fill: none;
    stroke: rgba(255, 92, 92, 0.72);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 5 7;
}

.qe-live-coherence-badge {
    fill: rgba(13, 26, 38, 0.86);
    stroke-width: 1;
}

.qe-live-coherence-badge-good {
    stroke: rgba(0, 229, 168, 0.42);
}

.qe-live-coherence-badge-warn {
    stroke: rgba(255, 92, 92, 0.38);
}

.qe-live-coherence-check {
    fill: none;
    stroke: rgba(0, 229, 168, 0.98);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.qe-live-coherence-warning {
    fill: none;
    stroke: rgba(255, 92, 92, 0.88);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.qe-live-coherence-copy h2 {
    margin-bottom: 0.8rem;
}

.qe-live-coherence-copy p {
    margin: 0.85rem 0 0;
    max-width: none;
}

.qe-live-coherence-copy .cta-button {
    margin-top: 1.2rem;
}

/* ================== QE INVESTMENT MEMO STYLE ================== */

.qe-memo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    text-align: left;
}

.qe-memo-card {
    padding: 1.35rem;
    border-radius: 16px;
    border: 1px solid rgba(226, 193, 134, 0.18);
    background: linear-gradient(180deg, rgba(13, 26, 38, 0.78), rgba(13, 26, 38, 0.64));
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.26);
}

.qe-memo-card h3 {
    margin: 0 0 0.65rem;
    color: var(--text-light);
    font-size: 1.08rem;
}

.qe-memo-card p {
    margin: 0;
    max-width: none;
}

.qe-memo-card ul {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
    display: grid;
    gap: 0.45rem;
    color: var(--panel-text);
}

.qe-memo-card li {
    position: relative;
    padding-left: 1.15rem;
}

.qe-memo-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 0.46rem;
    height: 0.46rem;
    border-radius: 999px;
    background: rgba(0, 229, 168, 0.82);
}

/* ================== QE CATEGORY THESIS PAGE ================== */

.qe-category-thesis-section {
    background:
        radial-gradient(circle at 14% 20%, rgba(226, 193, 134, 0.09), rgba(226, 193, 134, 0.00) 30%),
        radial-gradient(circle at 86% 18%, rgba(0, 229, 168, 0.08), rgba(0, 229, 168, 0.00) 32%),
        linear-gradient(180deg, var(--section-bg-light), var(--dark-bg));
}

.qe-category-thesis-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 1.5rem;
    align-items: start;
    text-align: left;
}

.qe-category-thesis-panel {
    position: sticky;
    top: 120px;
    padding: 1.35rem;
    border-radius: 18px;
    border: 1px solid rgba(0, 229, 168, 0.20);
    background: rgba(13, 26, 38, 0.74);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.32);
}

.qe-category-thesis-panel h2 {
    margin-bottom: 0.75rem;
    color: var(--text-light);
    font-size: 1.35rem;
}

.qe-category-thesis-body {
    display: grid;
    gap: 1rem;
}

.qe-category-thesis-card {
    padding: 1.35rem;
    border-radius: 18px;
    border: 1px solid rgba(226, 193, 134, 0.18);
    background: rgba(13, 26, 38, 0.68);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}

.qe-category-thesis-card h2 {
    margin-bottom: 0.7rem;
    color: var(--accent-gold);
    font-size: 1.45rem;
}

.qe-category-thesis-card p {
    margin: 0.75rem 0 0;
    max-width: none;
}

@keyframes qe-proof-dash {
    to {
        stroke-dashoffset: -72;
    }
}

@media (max-width: 992px) {
    .qe-proof-map-grid {
        grid-template-columns: 1fr;
    }

    .qe-proof-map-grid::before {
        left: 2.05rem;
        right: auto;
        top: 2rem;
        bottom: 2rem;
        width: 2px;
        height: auto;
        background: linear-gradient(180deg, rgba(0, 229, 168, 0.20), rgba(226, 193, 134, 0.80), rgba(0, 229, 168, 0.20));
    }

    .qe-proof-map-step {
        min-height: 0;
        padding-left: 4.1rem;
    }

    .qe-proof-map-node {
        position: absolute;
        left: 0.9rem;
        top: 0.9rem;
    }

    .qe-live-coherence-card {
        grid-template-columns: 1fr;
    }

    .qe-memo-grid {
        grid-template-columns: 1fr;
    }

    .qe-category-thesis-grid {
        grid-template-columns: 1fr;
    }

    .qe-category-thesis-panel {
        position: static;
    }
}

/* ================== QE INFOGRAPHIC UPGRADES ================== */

.qe-proof-map {
    position: relative;
}

.qe-proof-map-summary {
    margin: 0 0 1.1rem;
    border-radius: 18px;
    border: 1px solid rgba(0, 229, 168, 0.18);
    background:
        radial-gradient(circle at 18% 44%, rgba(0, 229, 168, 0.14), rgba(0, 229, 168, 0.00) 32%),
        radial-gradient(circle at 82% 44%, rgba(226, 193, 134, 0.16), rgba(226, 193, 134, 0.00) 34%),
        rgba(13, 26, 38, 0.62);
    overflow: hidden;
}

.qe-proof-map-flow {
    display: block;
    width: 100%;
    height: 132px;
}

.qe-infographic-frame {
    fill: rgba(13, 26, 38, 0.72);
    stroke: rgba(226, 193, 134, 0.22);
    stroke-width: 1;
}

.qe-infographic-panel {
    fill: rgba(19, 34, 50, 0.78);
    stroke: rgba(0, 229, 168, 0.22);
    stroke-width: 1;
}

.qe-infographic-panel-hot {
    fill: rgba(226, 193, 134, 0.10);
    stroke: rgba(226, 193, 134, 0.42);
}

.qe-infographic-line {
    fill: none;
    stroke: rgba(226, 193, 134, 0.86);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 8 9;
    animation: qe-infographic-dash 6s linear infinite;
}

.qe-infographic-line-muted {
    fill: none;
    stroke: rgba(0, 229, 168, 0.30);
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.qe-infographic-node {
    fill: rgba(13, 26, 38, 0.96);
    stroke: rgba(0, 229, 168, 0.82);
    stroke-width: 2;
    filter: drop-shadow(0 0 6px rgba(0, 229, 168, 0.22));
}

.qe-infographic-node-hot {
    stroke: rgba(226, 193, 134, 0.96);
    filter: drop-shadow(0 0 7px rgba(226, 193, 134, 0.28));
}

.qe-infographic-dot {
    fill: rgba(0, 229, 168, 0.92);
    animation: qe-infographic-pulse 3.8s ease-in-out infinite;
}

.qe-infographic-dot-hot {
    fill: rgba(226, 193, 134, 0.96);
}

.qe-infographic-text {
    fill: #f0f0f0;
    font-family: Poppins, sans-serif;
    font-size: 9px;
    font-weight: 700;
}

.qe-infographic-text-soft {
    fill: #a8b2b9;
    font-family: Poppins, sans-serif;
    font-size: 7.6px;
    font-weight: 600;
}

.qe-infographic-text-gold {
    fill: #e2c186;
    font-family: Poppins, sans-serif;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.qe-proof-map-step-icon {
    width: 42px;
    height: 42px;
    margin: 0.05rem 0 0.75rem;
    border-radius: 14px;
    border: 1px solid rgba(0, 229, 168, 0.24);
    background: rgba(0, 229, 168, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.qe-proof-map-step-final .qe-proof-map-step-icon {
    border-color: rgba(226, 193, 134, 0.34);
    background: rgba(226, 193, 134, 0.10);
}

.qe-proof-map-step-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--accent-green);
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.qe-proof-map-step-final .qe-proof-map-step-icon svg {
    stroke: var(--accent-gold);
}

.qe-architecture-infographic {
    margin: 1.2rem 0 1.25rem;
    border-radius: 18px;
    border: 1px solid rgba(0, 229, 168, 0.18);
    background:
        radial-gradient(circle at 25% 40%, rgba(0, 229, 168, 0.12), rgba(0, 229, 168, 0.00) 34%),
        radial-gradient(circle at 74% 44%, rgba(226, 193, 134, 0.12), rgba(226, 193, 134, 0.00) 34%),
        rgba(13, 26, 38, 0.54);
    overflow: hidden;
}

.qe-architecture-infographic svg {
    display: block;
    width: 100%;
    height: 180px;
}

.qe-arch-block {
    fill: rgba(19, 34, 50, 0.82);
    stroke: rgba(0, 229, 168, 0.22);
    stroke-width: 1;
}

.qe-arch-block-hot {
    fill: rgba(226, 193, 134, 0.10);
    stroke: rgba(226, 193, 134, 0.40);
}

.qe-arch-link {
    fill: none;
    stroke: rgba(226, 193, 134, 0.82);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 7 8;
    animation: qe-infographic-dash 6.5s linear infinite;
}

.qe-arch-link-soft {
    fill: none;
    stroke: rgba(0, 229, 168, 0.28);
    stroke-width: 1.3;
    stroke-linecap: round;
}

.qe-arch-icon {
    fill: none;
    stroke: rgba(0, 229, 168, 0.92);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.qe-arch-icon-hot {
    stroke: rgba(226, 193, 134, 0.96);
}

.qe-arch-label {
    fill: #f0f0f0;
    font-family: Poppins, sans-serif;
    font-size: 8.5px;
    font-weight: 700;
}

.qe-arch-label-soft {
    fill: #a8b2b9;
    font-family: Poppins, sans-serif;
    font-size: 7px;
    font-weight: 600;
}

.qe-shift-infographic {
    max-width: 980px;
    margin: 2rem auto 0;
    border-radius: 22px;
    border: 1px solid rgba(226, 193, 134, 0.24);
    background:
        radial-gradient(circle at 15% 42%, rgba(255, 92, 92, 0.10), rgba(255, 92, 92, 0.00) 28%),
        radial-gradient(circle at 82% 44%, rgba(0, 229, 168, 0.14), rgba(0, 229, 168, 0.00) 34%),
        linear-gradient(180deg, rgba(13, 26, 38, 0.84), rgba(13, 26, 38, 0.68));
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
    overflow: hidden;
}

.qe-shift-infographic svg {
    display: block;
    width: 100%;
    height: 230px;
}

.qe-shift-bad-signal {
    fill: rgba(255, 92, 92, 0.10);
    stroke: rgba(255, 92, 92, 0.38);
    stroke-width: 1;
}

.qe-shift-good-signal {
    fill: rgba(0, 229, 168, 0.10);
    stroke: rgba(0, 229, 168, 0.38);
    stroke-width: 1;
}

.qe-shift-core {
    fill: rgba(226, 193, 134, 0.12);
    stroke: rgba(226, 193, 134, 0.50);
    stroke-width: 1.3;
    filter: drop-shadow(0 0 8px rgba(226, 193, 134, 0.20));
}

.qe-shift-line-risk {
    fill: none;
    stroke: rgba(255, 92, 92, 0.55);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-dasharray: 5 7;
    animation: qe-infographic-dash 5.5s linear infinite;
}

.qe-shift-line-good {
    fill: none;
    stroke: rgba(0, 229, 168, 0.65);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: qe-infographic-glow 3.8s ease-in-out infinite;
}

.qe-memo-infographic {
    max-width: 980px;
    margin: 2rem auto 0;
    border-radius: 22px;
    border: 1px solid rgba(0, 229, 168, 0.22);
    background:
        radial-gradient(circle at 28% 42%, rgba(0, 229, 168, 0.12), rgba(0, 229, 168, 0.00) 34%),
        radial-gradient(circle at 72% 42%, rgba(226, 193, 134, 0.12), rgba(226, 193, 134, 0.00) 34%),
        rgba(13, 26, 38, 0.72);
    box-shadow: 0 24px 62px rgba(0, 0, 0, 0.30);
    overflow: hidden;
}

.qe-memo-infographic svg {
    display: block;
    width: 100%;
    height: 210px;
}

.qe-memo-lane {
    fill: rgba(19, 34, 50, 0.76);
    stroke: rgba(226, 193, 134, 0.22);
    stroke-width: 1;
}

.qe-memo-lane-good {
    stroke: rgba(0, 229, 168, 0.34);
}

.qe-memo-lane-protected {
    stroke: rgba(226, 193, 134, 0.40);
}

.qe-memo-lock {
    fill: none;
    stroke: rgba(226, 193, 134, 0.96);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.qe-memo-check {
    fill: none;
    stroke: rgba(0, 229, 168, 0.96);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.qe-category-infographic {
    max-width: 1050px;
    margin: 0 auto 2rem;
    border-radius: 24px;
    border: 1px solid rgba(226, 193, 134, 0.24);
    background:
        radial-gradient(circle at 18% 42%, rgba(255, 92, 92, 0.09), rgba(255, 92, 92, 0.00) 30%),
        radial-gradient(circle at 78% 42%, rgba(0, 229, 168, 0.14), rgba(0, 229, 168, 0.00) 34%),
        linear-gradient(180deg, rgba(13, 26, 38, 0.84), rgba(13, 26, 38, 0.68));
    box-shadow: 0 26px 72px rgba(0, 0, 0, 0.34);
    overflow: hidden;
}

.qe-category-infographic svg {
    display: block;
    width: 100%;
    height: 260px;
}

.qe-category-old {
    fill: rgba(255, 92, 92, 0.08);
    stroke: rgba(255, 92, 92, 0.34);
    stroke-width: 1;
}

.qe-category-new {
    fill: rgba(0, 229, 168, 0.09);
    stroke: rgba(0, 229, 168, 0.36);
    stroke-width: 1;
}

.qe-category-core {
    fill: rgba(226, 193, 134, 0.11);
    stroke: rgba(226, 193, 134, 0.46);
    stroke-width: 1.2;
}

.qe-category-network-link {
    fill: none;
    stroke: rgba(0, 229, 168, 0.34);
    stroke-width: 1.4;
    stroke-linecap: round;
}

.qe-category-network-link-hot {
    stroke: rgba(226, 193, 134, 0.70);
    stroke-width: 2;
    stroke-dasharray: 7 8;
    animation: qe-infographic-dash 6s linear infinite;
}

.qe-category-node {
    fill: rgba(13, 26, 38, 0.95);
    stroke: rgba(0, 229, 168, 0.78);
    stroke-width: 1.6;
}

.qe-category-node-hot {
    stroke: rgba(226, 193, 134, 0.96);
}

@keyframes qe-infographic-dash {
    to {
        stroke-dashoffset: -80;
    }
}

@keyframes qe-infographic-pulse {

    0%,
    100% {
        opacity: 0.68;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.18);
    }
}

@keyframes qe-infographic-glow {

    0%,
    100% {
        filter: drop-shadow(0 0 0 rgba(0, 229, 168, 0.00));
    }

    50% {
        filter: drop-shadow(0 0 8px rgba(0, 229, 168, 0.34));
    }
}

@media (max-width: 768px) {
    .qe-proof-map-flow {
        height: 190px;
    }

    .qe-architecture-infographic svg {
        height: 210px;
    }

    .qe-shift-infographic svg,
    .qe-memo-infographic svg,
    .qe-category-infographic svg {
        height: 300px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .qe-live-coherence-line,
    .qe-live-coherence-line-soft,
    .qe-infographic-line,
    .qe-arch-link,
    .qe-shift-line-risk,
    .qe-category-network-link-hot {
        animation: none;
    }

    .qe-infographic-dot,
    .qe-shift-line-good {
        animation: none;
    }
}