.landing-home {
    font-family: "Inter", "Segoe UI", sans-serif;
}

.landing-home .landing-hero {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
}

.landing-home .landing-hero__title {
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.08;
}

.landing-home .landing-hero__lead {
    max-width: 38rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.landing-home .home-cta-primary,
.btn-cta-shine {
    min-height: 2.85rem;
    padding: 0.65rem 1.45rem;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.landing-home .home-cta-primary::after,
.btn-cta-shine::after {
    content: "";
    position: absolute;
    top: -120%;
    left: -40%;
    width: 40%;
    height: 320%;
    transform: rotate(24deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    animation: home-cta-shine 5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes home-cta-shine {
    0%, 70% {
        transform: translateX(-180%) rotate(24deg);
    }

    100% {
        transform: translateX(420%) rotate(24deg);
    }
}

.dashboard-mockup {
    position: relative;
    max-width: 28rem;
    margin-inline: auto;
}

.dashboard-mockup__frame {
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 215, 0, 0.28);
    background: linear-gradient(160deg, rgba(28, 28, 28, 0.92), rgba(12, 12, 12, 0.88));
    backdrop-filter: blur(14px);
    box-shadow:
        0 0 0 1px rgba(255, 215, 0, 0.08),
        0 24px 60px rgba(0, 0, 0, 0.45),
        0 0 42px rgba(255, 215, 0, 0.12);
    overflow: hidden;
}

.dashboard-mockup__topbar {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dashboard-mockup__dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
}

.dashboard-mockup__dot--red {
    background: #ef4444;
}

.dashboard-mockup__dot--amber {
    background: #f59e0b;
}

.dashboard-mockup__dot--green {
    background: #22c55e;
}

.dashboard-mockup__title {
    margin-left: 0.35rem;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dashboard-mockup__body {
    padding: 1rem;
}

.dashboard-mockup__metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.dashboard-mockup__metric {
    border-radius: 0.85rem;
    padding: 0.7rem 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.dashboard-mockup__metric-label {
    display: block;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 0.35rem;
}

.dashboard-mockup__metric-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffd700;
}

.dashboard-mockup__chart {
    border-radius: 1rem;
    padding: 0.75rem 0.5rem 0.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 0.65rem;
}

.dashboard-mockup__chart svg {
    width: 100%;
    height: auto;
    display: block;
}

.dashboard-mockup__chart-area {
    fill: url(#dashboardMockupFill);
}

.dashboard-mockup__chart-line {
    fill: none;
    stroke: url(#mockStrokeGrad);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dashboard-mockup__ticker {
    --landing-ticker-loop: 28s;
    position: relative;
    border-radius: 0.65rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.4rem 0;
    overflow: hidden;
}

.dashboard-mockup__ticker-viewport {
    overflow: hidden;
    /* Bordi morbidi senza “svuotare” troppo il nastro (evita effetto sparizione laterale) */
    mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
}

.dashboard-mockup__ticker-track {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
    width: max-content;
    font-family: "JetBrains Mono", "Roboto Mono", ui-monospace, monospace;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    will-change: transform;
    backface-visibility: hidden;
    animation: dashboard-ticker-scroll var(--landing-ticker-loop, 28s) linear infinite;
}

.dashboard-mockup__ticker:hover .dashboard-mockup__ticker-track {
    animation-play-state: paused;
}

@keyframes dashboard-ticker-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.dashboard-mockup__ticker-chip {
    display: inline-flex;
    align-items: baseline;
    gap: 0.45rem;
    white-space: nowrap;
    padding: 0.15rem 0.35rem;
}

.dashboard-mockup__ticker-chip--muted {
    color: rgba(255, 255, 255, 0.45);
    padding-left: 0.75rem;
}

.dashboard-mockup__ticker-name {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 600;
}

.dashboard-mockup__ticker-sep {
    color: rgba(255, 255, 255, 0.2);
    padding: 0 0.65rem;
    user-select: none;
}

.dashboard-mockup__ticker-price.is-up,
.dashboard-mockup__ticker-chg.is-up {
    color: #39ff14;
    text-shadow: 0 0 8px rgba(57, 255, 20, 0.35);
}

.dashboard-mockup__ticker-price.is-down,
.dashboard-mockup__ticker-chg.is-down {
    color: #ff4d4d;
    text-shadow: 0 0 8px rgba(255, 77, 77, 0.25);
}

.dashboard-mockup__ticker-price.is-flat,
.dashboard-mockup__ticker-chg.is-flat {
    color: rgba(255, 255, 255, 0.55);
    text-shadow: none;
}

.landing-home .home-service-card,
.institutional-interactive-card {
    position: relative;
    height: 100%;
    border: 1px solid rgba(255, 215, 0, 0.16);
    border-radius: 1rem;
    padding: 1.35rem;
    background: linear-gradient(180deg, rgba(28, 28, 28, 0.96), rgba(16, 16, 16, 0.98));
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.35s ease,
        box-shadow 0.35s ease;
    z-index: 0;
}

.landing-home .home-service-card:hover,
.landing-home .home-service-card:focus-within,
.institutional-interactive-card:hover,
.institutional-interactive-card:focus-within {
    z-index: 2;
    transform: translateY(-6px) scale(1.05);
    border-color: rgba(255, 215, 0, 0.95);
    box-shadow:
        0 0 0 1px rgba(255, 215, 0, 0.35),
        0 22px 48px rgba(0, 0, 0, 0.45),
        0 0 36px rgba(255, 215, 0, 0.22),
        0 0 64px rgba(255, 215, 0, 0.08);
}

.landing-home .home-service-card__icon,
.institutional-interactive-card__icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: #ffd700;
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.18);
    transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.landing-home .home-service-card:hover .home-service-card__icon,
.landing-home .home-service-card:focus-within .home-service-card__icon,
.institutional-interactive-card:hover .institutional-interactive-card__icon,
.institutional-interactive-card:focus-within .institutional-interactive-card__icon {
    background: rgba(255, 215, 0, 0.16);
    border-color: rgba(255, 215, 0, 0.55);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
    transform: scale(1.06);
}

.landing-home .home-service-card__icon svg,
.institutional-interactive-card__icon svg {
    width: 1.35rem;
    height: 1.35rem;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.landing-home .home-highlight {
    color: #ffd700;
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .landing-home .landing-hero {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .landing-home .home-cta-primary,
    .landing-home .home-cta-secondary,
    .btn-cta-shine {
        width: 100%;
        justify-content: center;
    }

    .dashboard-mockup {
        margin-top: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .landing-home .home-cta-primary::after,
    .btn-cta-shine::after {
        animation: none;
    }

    .landing-home .home-service-card,
    .institutional-interactive-card {
        transition: none;
    }

    .landing-home .home-service-card:hover,
    .landing-home .home-service-card:focus-within,
    .institutional-interactive-card:hover,
    .institutional-interactive-card:focus-within {
        transform: none;
    }

    .landing-home .home-service-card__icon,
    .institutional-interactive-card__icon {
        transition: none;
    }

    .landing-home .home-service-card:hover .home-service-card__icon,
    .landing-home .home-service-card:focus-within .home-service-card__icon,
    .institutional-interactive-card:hover .institutional-interactive-card__icon,
    .institutional-interactive-card:focus-within .institutional-interactive-card__icon {
        transform: none;
    }

    .dashboard-mockup__ticker-track {
        animation: none;
        transform: none;
    }
}

/* FAQ — mockup: fondo grigio carbone uniforme (no gradiente), box leggere con bordo oro/arancio sottile */
.faq-sim-page {
    --faq-page-bg: #121212;
    --faq-border: rgba(204, 142, 53, 0.55);
    --faq-border-soft: rgba(204, 142, 53, 0.28);
    background: var(--faq-page-bg);
    background-image: none;
    color: #f0f0f0;
    min-height: 60vh;
    padding-bottom: 3rem;
}

.faq-sim-page .container {
    background: transparent;
}

.faq-category-shell .collapse.collapsing {
    transition: height 0.35s ease;
}

.faq-sim-page .faq-cat-label {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #e8a030;
    font-weight: 700;
    margin-bottom: 0.75rem;
    margin-top: 0.25rem;
}

.faq-category-shell {
    border: 1px solid var(--faq-border);
    border-radius: 10px;
    overflow: hidden;
    background: transparent;
    margin-bottom: 2.25rem;
    box-shadow: none;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.faq-item:last-child,
.faq-item--last {
    border-bottom: none;
}

.faq-item__head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.35rem;
    margin: 0;
    background: transparent;
    border: 0;
    color: #fff;
    font-weight: 600;
    font-size: 0.96rem;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease;
}

.faq-item__head:hover,
.faq-item__head:focus-visible {
    background: rgba(255, 200, 80, 0.04);
    outline: none;
    color: #fff;
}

.faq-item__q {
    flex: 1;
    min-width: 0;
}

.faq-item__chev {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.faq-item__chev::before {
    content: "";
    display: block;
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid rgba(255, 255, 255, 0.85);
    border-bottom: 2px solid rgba(255, 255, 255, 0.85);
    transform: rotate(45deg);
    transition: transform 0.25s ease;
}

.faq-item__head:not(.collapsed) .faq-item__chev::before {
    transform: rotate(-135deg);
    margin-top: 0.2rem;
}

.faq-item__panel {
    border-top: 1px solid var(--faq-border-soft);
}

.faq-item__answer {
    padding: 1rem 1.35rem 1.35rem;
    color: rgba(235, 235, 235, 0.9);
    line-height: 1.65;
    white-space: pre-line;
    font-size: 0.94rem;
}

.faq-sim-cta-card {
    border: 1px solid var(--faq-border);
    border-radius: 10px;
    background: transparent;
    margin-top: 2.5rem;
}

/* FAQ: stessa tinta su tutta la viewport (il layout landing usa ancora bg-login sul body) */
body.landing-body:has(.faq-sim-page) {
    background-color: #121212 !important;
    background-image: none !important;
}

/* Affiliate program — official rules list */
.affiliate-rules-card {
    border-top: 2px solid rgba(255, 215, 0, 0.35);
}

.affiliate-rules-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.affiliate-rules-list li {
    position: relative;
    padding-left: 1.25rem;
    line-height: 1.65;
}

.affiliate-rules-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffd700;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.45);
}

.affiliate-rules-list li strong {
    color: #ffd700;
    font-weight: 600;
}
