/* ═══════════════════════════════════════════════════════════
   OrionEye v4.0 — Landing Page Styles
   Dark cyber theme with neon-blue accents
   ═══════════════════════════════════════════════════════════ */

/* ── Reset & Variables ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary:    #0a0e17;
    --bg-secondary:  #0d1220;
    --bg-card:       #111827;
    --bg-modal:      #0f1525;
    --neon-blue:     #00d4ff;
    --neon-cyan:     #00ffd5;
    --neon-purple:   #7c3aed;
    --accent-glow:   rgba(0, 212, 255, 0.15);
    --text-primary:  #e8edf5;
    --text-secondary:#8892a4;
    --text-muted:    #4a5568;
    --border-color:  #1e293b;
    --danger:        #ff4d6a;
    --success:       #00e68a;
    --font-display:  'Orbitron', sans-serif;
    --font-body:     'Rajdhani', sans-serif;
    --font-mono:     'Share Tech Mono', monospace;
    --radius:        8px;
    --transition:    0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--neon-blue); border-radius: 3px; }

/* ═══════════════════════════════════════════════════════════
   TOP NAVIGATION
   ═══════════════════════════════════════════════════════════ */

.topnav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: 60px;
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    transition: background var(--transition);
}

.topnav--scrolled {
    background: rgba(10, 14, 23, 0.95);
    border-bottom-color: rgba(0, 212, 255, 0.25);
}

.topnav__brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topnav__logo {
    font-size: 1.4rem;
    color: var(--neon-blue);
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.6));
    animation: pulse-glow 3s ease-in-out infinite;
}

.topnav__name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 3px;
    color: var(--text-primary);
}

.topnav__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Hamburger (solo mobile) */
.topnav__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 40px;
    height: 34px;
    padding: 0 9px;
    background: rgba(0, 255, 213, 0.06);
    border: 1px solid rgba(0, 255, 213, 0.35);
    border-radius: 9px;
    cursor: pointer;
}
.topnav__burger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--neon-cyan);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.2s;
}
.topnav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.topnav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.topnav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Language switch */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 20px;
    padding: 4px 8px;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 1px;
    cursor: pointer;
    padding: 3px 8px;
    border-radius: 12px;
    transition: all var(--transition);
}

.lang-btn:hover { color: var(--text-secondary); }
.lang-btn.active {
    color: var(--neon-blue);
    background: rgba(0, 212, 255, 0.12);
    text-shadow: 0 0 6px rgba(0, 212, 255, 0.5);
}

.lang-divider {
    color: var(--text-muted);
    font-size: 0.7rem;
    opacity: 0.4;
}

/* Voce di nav secondaria → /orion-ia
   Stessa forma del CTA ma senza fondo ne' bordo: nella barra ci sono due
   destinazioni e una sola merita di sembrare un pulsante, altrimenti nessuna
   delle due risalta. */
.topnav__link {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-secondary, #aeb9c9);
    padding: 8px 12px;
    border-radius: 20px;
    white-space: nowrap;
    transition: all var(--transition);
}
.topnav__link:hover {
    color: var(--neon-cyan);
    background: rgba(0, 255, 213, 0.06);
}

/* Navbar CTA → /piani (Piani & Enterprise) */
.topnav__cta {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--neon-cyan);
    background: rgba(0, 255, 213, 0.07);
    border: 1px solid rgba(0, 255, 213, 0.35);
    padding: 8px 16px;
    border-radius: 20px;
    white-space: nowrap;
    transition: all var(--transition);
}
.topnav__cta:hover {
    background: rgba(0, 255, 213, 0.14);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 18px rgba(0, 255, 213, 0.25);
    transform: translateY(-1px);
}
@media (max-width: 720px) {
    /* Mobile: le azioni finiscono in un menu a tendina (hamburger) */
    .topnav { padding: 0 1rem; }
    .topnav__brand { flex-shrink: 0; }
    .topnav__burger { display: flex; }

    .topnav__actions {
        position: absolute;
        top: 60px;
        right: 1rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
        min-width: 210px;
        padding: 1rem;
        background: rgba(10, 14, 23, 0.98);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
        border: 1px solid rgba(0, 212, 255, 0.22);
        border-radius: 14px;
        box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
        transform: translateY(-10px) scale(0.98);
        transform-origin: top right;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }
    .topnav__actions.open {
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }
    .topnav__cta {
        width: 100%;
        text-align: center;
        font-size: 0.74rem;
        padding: 11px 14px;
        letter-spacing: 1px;
    }
    .topnav__link {
        width: 100%;
        text-align: center;
        font-size: 0.74rem;
        padding: 11px 14px;
        letter-spacing: 1px;
    }
    .lang-switch { justify-content: center; }
}

@media (max-width: 400px) {
    .topnav__name { font-size: 0.78rem; letter-spacing: 2px; }
    .topnav__actions { right: 0.7rem; min-width: 190px; }
}

/* ═══════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════ */

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.5) saturate(0.8);
}

/* Dark gradient overlay for readability */
.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 50% 45%, transparent 0%, rgba(10, 14, 23, 0.65) 70%),
        linear-gradient(180deg,
            rgba(10, 14, 23, 0.4) 0%,
            rgba(10, 14, 23, 0.2) 30%,
            rgba(10, 14, 23, 0.5) 70%,
            rgba(10, 14, 23, 0.95) 100%
        );
}

/* Animated scanline effect */
.hero__scanline {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 212, 255, 0.015) 2px,
        rgba(0, 212, 255, 0.015) 4px
    );
    pointer-events: none;
    animation: scanline-move 8s linear infinite;
}

@keyframes scanline-move {
    0% { background-position: 0 0; }
    100% { background-position: 0 100px; }
}

/* Hero content */
.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
    animation: fadeInUp 1s ease-out;
}

.hero__badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 4px;
    color: var(--neon-blue);
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.2);
    padding: 6px 18px;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
}

.hero__title {
    font-family: var(--font-display);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero__title-line1 {
    display: block;
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #ffffff 0%, var(--neon-blue) 50%, var(--neon-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.3));
}

.hero__title-line2 {
    display: block;
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 400;
    color: var(--neon-cyan);
    letter-spacing: 6px;
    text-shadow: 0 0 20px rgba(0, 255, 213, 0.4);
}

.hero__subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

/* Feature ticker */
.hero__ticker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2.5rem;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
}

.hero__ticker-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--neon-blue);
    letter-spacing: 2px;
    white-space: nowrap;
    flex-shrink: 0;
}

.hero__ticker-track {
    display: flex;
    gap: 2rem;
    animation: ticker-scroll 30s linear infinite;
    white-space: nowrap;
}

.hero__ticker-track span {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    padding: 3px 12px;
    border: 1px solid rgba(0, 212, 255, 0.08);
    border-radius: 12px;
    flex-shrink: 0;
    transition: color 0.3s;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* CTA buttons */
.hero__cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Scroll hint */
.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 2px;
    animation: bounce 2s ease-in-out infinite;
}

.hero__scroll-arrow {
    font-size: 1.2rem;
    margin-top: 4px;
    color: var(--neon-blue);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════ */

.btn {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    padding: 14px 36px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: linear-gradient(135deg, var(--neon-blue), #0099cc);
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}

.btn--primary:hover {
    background: linear-gradient(135deg, #00e6ff, var(--neon-blue));
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.5), 0 4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.btn--primary:active { transform: translateY(0); }

.btn--outline {
    background: transparent;
    color: var(--neon-blue);
    border: 1px solid rgba(0, 212, 255, 0.4);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.1);
}

.btn--outline:hover {
    background: rgba(0, 212, 255, 0.08);
    border-color: var(--neon-blue);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

.btn--outline:active { transform: translateY(0); }

.btn--full {
    width: 100%;
    text-align: center;
}

/* ═══════════════════════════════════════════════════════════
   ABOUT / DESCRIPTION SECTION
   ═══════════════════════════════════════════════════════════ */

.about {
    padding: 6rem 2rem;
    background: var(--bg-secondary);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
}

.about__container {
    max-width: 1200px;
    margin: 0 auto;
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-primary);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: var(--neon-blue);
    margin-top: 0.5rem;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.about__desc {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 700px;
}

.about__features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-cyan));
    opacity: 0;
    transition: opacity var(--transition);
}

.feature-card:hover {
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.08);
    transform: translateY(-4px);
}

.feature-card:hover::before { opacity: 1; }

.feature-card__icon {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    color: var(--neon-green, #00ff41);
    line-height: 0;
}
.feature-card__icon svg {
    width: 34px;
    height: 34px;
}

.feature-card__title {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--neon-blue);
    margin-bottom: 0.5rem;
}

.feature-card__desc {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════
   AUTH MODAL
   ═══════════════════════════════════════════════════════════ */

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    background: var(--bg-modal);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    width: 100%;
    max-width: 420px;
    padding: 2rem;
    position: relative;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s ease-out;
    box-shadow: 0 0 60px rgba(0, 212, 255, 0.1), 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-backdrop.open .modal {
    transform: translateY(0) scale(1);
}

.modal__close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color var(--transition);
    line-height: 1;
    padding: 4px;
}

.modal__close:hover { color: var(--danger); }

.modal__tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal__tab {
    flex: 1;
    background: none;
    border: none;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-muted);
    padding: 10px 0;
    cursor: pointer;
    transition: all var(--transition);
    border-bottom: 2px solid transparent;
    text-transform: uppercase;
}

.modal__tab:hover { color: var(--text-secondary); }

.modal__tab.active {
    color: var(--neon-blue);
    border-bottom-color: var(--neon-blue);
}

/* Forms */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-form.hidden { display: none; }

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.form-group input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 12px 14px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    transition: all var(--transition);
    outline: none;
}

.form-group input::placeholder {
    color: var(--text-muted);
    font-weight: 300;
}

.form-group input:focus {
    border-color: var(--neon-blue);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.15);
}

.form-error {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--danger);
    min-height: 1rem;
    letter-spacing: 0.5px;
}

.form-success {
    text-align: center;
    padding: 2rem 1rem;
}

.form-success.hidden { display: none; }

.form-success h3 {
    font-family: var(--font-display);
    color: var(--success);
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.form-success p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */

.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 2rem;
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

.footer__logo {
    color: var(--neon-blue);
    font-size: 1rem;
}

.footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.5rem;
}

.footer__links a {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
}

.footer__links a:hover { color: var(--neon-blue); }

.footer__copy {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    width: 100%;
    text-align: center;
    margin-top: 1rem;
}

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════ */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-glow {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.6)); }
    50%      { filter: drop-shadow(0 0 16px rgba(0, 212, 255, 0.9)); }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .topnav { padding: 0 1rem; }
    .hero__content { padding: 0 1.2rem; }
    .hero__ticker { display: none; }
    .hero__cta { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 280px; }
    .about { padding: 3rem 1.2rem; }
    .about__features { grid-template-columns: 1fr; }
    .modal { margin: 1rem; max-width: 100%; }
    .footer { padding: 2rem 1.2rem; }
    .footer__container { flex-direction: column; text-align: center; }
    .footer__links { justify-content: center; width: 100%; }
    .footer__copy { padding: 0 0.4rem; overflow-wrap: anywhere; }
}

@media (max-width: 480px) {
    .hero__title-line1 { font-size: 2.2rem; }
    .hero__title-line2 { font-size: 1rem; }
    .hero__subtitle { font-size: 0.9rem; }
    .topnav__name { font-size: 0.75rem; letter-spacing: 2px; }
}

/* ═══════════════════════════════════════════════════════════
   CAPABILITY DEMO VIDEO — sci-fi faded frame
   ═══════════════════════════════════════════════════════════ */
.cap-video {
    position: relative;
    max-width: 900px;
    margin: 0 auto 2.4rem;
    border-radius: 18px;
}
.cap-video__el {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
    filter: saturate(1.08) contrast(1.03);
    /* contorno sfumato: i bordi del video si dissolvono nello sfondo */
    -webkit-mask-image: radial-gradient(125% 125% at 50% 50%, #000 60%, transparent 100%);
    mask-image: radial-gradient(125% 125% at 50% 50%, #000 60%, transparent 100%);
}
/* velo tecnologico blu + scanline sottili + glow interno */
.cap-video__scan {
    content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: 18px;
    background:
        linear-gradient(120deg, rgba(0,212,255,.10), transparent 55%),
        repeating-linear-gradient(0deg, rgba(0,0,0,.06) 0 1px, transparent 1px 3px);
    mix-blend-mode: screen;
    -webkit-mask-image: radial-gradient(125% 125% at 50% 50%, #000 60%, transparent 100%);
    mask-image: radial-gradient(125% 125% at 50% 50%, #000 60%, transparent 100%);
}
.cap-video__glow {
    position: absolute; inset: 0; pointer-events: none; border-radius: 18px;
    box-shadow: inset 0 0 70px rgba(0,212,255,.16);
}
/* mirini "scanner" agli angoli */
.cap-video::before, .cap-video::after {
    content: ''; position: absolute; width: 34px; height: 34px; z-index: 2;
    border: 2px solid rgba(0,255,213,.75);
    filter: drop-shadow(0 0 6px rgba(0,255,213,.4));
}
.cap-video::before { top: 16px; left: 16px; border-right: none; border-bottom: none; border-top-left-radius: 8px; }
.cap-video::after  { bottom: 16px; right: 16px; border-left: none; border-top: none; border-bottom-right-radius: 8px; }
/* toggle audio (parte muto per l'autoplay) */
.cap-video__sound {
    position: absolute; bottom: 16px; right: 16px; z-index: 3;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(10,14,23,.72); border: 1px solid rgba(0,255,213,.45); color: #00ffd5;
    font-size: 15px; cursor: pointer;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    transition: all .2s;
}
.cap-video__sound:hover { background: rgba(0,255,213,.16); border-color: #00ffd5; }
.cap-video__cap {
    text-align: center; font-family: var(--font-mono); font-size: .72rem;
    letter-spacing: 2px; color: var(--text-secondary); text-transform: uppercase; margin-top: .7rem;
}
.cap-video__cap b { color: var(--neon-cyan); }

/* ═══════════════════════════════════════════════════════════
   DIAPOSITIVE — piu' dimostrazioni nello stesso riquadro
   Si cambia quando il filmato finisce, non a tempo: una dimostrazione
   tagliata a meta' non mostra niente.
   ═══════════════════════════════════════════════════════════ */
.cap-slider { position: relative; max-width: 900px; margin: 0 auto 2.4rem; }
/* La finestra: quello che esce dai fianchi non si vede. Senza, le diapositive
   ferme allargherebbero la pagina di tutta la loro larghezza. */
.cap-slider__viewport { overflow: hidden; border-radius: 18px; }
.cap-slider__track {
    display: flex; align-items: flex-start;
    transition: transform .55s cubic-bezier(.4, 0, .2, 1);
    will-change: transform;
}
.cap-slider__slide {
    flex: 0 0 100%; max-width: none; margin: 0;
    opacity: .35; transition: opacity .45s;
}
.cap-slider__slide.is-active { opacity: 1; }
.cap-slider__nav {
    display: flex; align-items: center; justify-content: center; gap: .9rem;
    margin-top: .9rem;
}
.cap-slider__arrow {
    width: 36px; height: 36px; border-radius: 50%; flex: none;
    background: rgba(10, 14, 23, .72); border: 1px solid rgba(0, 255, 213, .35);
    color: #00ffd5; font-size: 19px; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    transition: background .2s, border-color .2s;
}
.cap-slider__arrow:hover { background: rgba(0, 255, 213, .16); border-color: #00ffd5; }
.cap-slider__dots { display: flex; align-items: center; gap: .5rem; }
.cap-slider__dot {
    width: 34px; height: 3px; padding: 0; border: none; border-radius: 2px;
    background: rgba(0, 255, 213, .22); cursor: pointer;
    position: relative; overflow: hidden; transition: background .2s;
}
.cap-slider__dot:hover { background: rgba(0, 255, 213, .45); }
/* Il trattino in corso si riempie insieme al filmato: dice quanto manca al
   cambio invece di farlo arrivare di sorpresa. */
.cap-slider__dot.is-active::after {
    content: ''; position: absolute; top: 0; bottom: 0; left: 0;
    width: var(--avanzamento, 0%);
    background: #00ffd5; box-shadow: 0 0 8px rgba(0, 255, 213, .6);
}
/* Chi ha chiesto meno animazioni non deve vedere il riquadro scorrere. */
@media (prefers-reduced-motion: reduce) {
    .cap-slider__track, .cap-slider__slide { transition: none; }
}
/* Sul telefono i comandi si toccano, non si puntano. */
@media (max-width: 760px) {
    .cap-slider__arrow { width: 44px; height: 44px; }
    .cap-slider__dot { width: 30px; height: 10px; background: transparent; }
    .cap-slider__dot::before {
        content: ''; position: absolute; top: 3.5px; left: 0; right: 0; height: 3px;
        border-radius: 2px; background: rgba(0, 255, 213, .22);
    }
    .cap-slider__dot.is-active::after { top: 3.5px; bottom: auto; height: 3px; border-radius: 2px; }
}

/* Demo video · adattamenti mobile */
@media (max-width: 560px) {
    .cap-video { margin-bottom: 1.6rem; border-radius: 12px; }
    .cap-video__el, .cap-video__scan, .cap-video__glow { border-radius: 12px; }
    .cap-video::before, .cap-video::after { width: 22px; height: 22px; }
    .cap-video::before { top: 10px; left: 10px; }
    .cap-video::after  { bottom: 10px; right: 10px; }
    .cap-video__sound { width: 34px; height: 34px; bottom: 10px; right: 10px; font-size: 13px; }
    .cap-video__cap { font-size: 0.64rem; letter-spacing: 1.5px; }
}
