/* =========================================================
   MATRIX – GLOBAL STYLE
========================================================= */

:root {
    --bg: #000;
    --violet: #9b5cff;
    --green: #00ff9c;
    --text: #eaeaf0;
    --muted: #9a9aa8;
}

/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* =========================================================
   BACKGROUND GLOW (TOOLS PAGES)
========================================================= */

body:not(.home) {
    background:
        radial-gradient(circle at 50% 20%, rgba(155, 92, 255, 0.18), transparent 60%),
        radial-gradient(circle at 80% 70%, rgba(0, 255, 156, 0.16), transparent 55%),
        var(--bg);
}

/* =========================================================
   HOME (NO SCROLL)
========================================================= */

body.home {
    height: 100vh;
    overflow: hidden;
}

/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 25%, rgba(155, 92, 255, 0.12), transparent 60%),
        radial-gradient(circle at 80% 65%, rgba(0, 255, 156, 0.10), transparent 55%);
}

.hero-content {
    position: relative;
    max-width: 720px;
}

.logo {
    width: 280px;
    max-width: 90%;
    margin-bottom: 26px;
}

.hero-sub {
    font-size: 18px;
    color: var(--muted);
}

.hero-actions {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
}

/* =========================================================
   CTA
========================================================= */
.cta {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    max-width: 260px;
    /* larghezza IDENTICA */
    height: 52px;
    /* altezza IDENTICA */

    border-radius: 24px;

    background: linear-gradient(90deg, var(--violet), var(--green));
    color: #000;
    font-weight: 700;
    text-decoration: none;

    transition: transform .2s ease, opacity .2s ease;
}

.cta:hover {
    transform: translateY(-2px);
    opacity: .9;
}

.cta.ghost {
    background: transparent;
    color: var(--violet);
    border: 1px solid rgba(155, 92, 255, 0.4);
}

/* =========================================================
   HOME FOOTER
========================================================= */

.hero-footer {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-size: 11px;
    color: #777;
    max-width: 90%;
}

.footer-brand {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 3px;
    color: var(--violet);
    opacity: 0.7;
    margin-bottom: 6px;
}

/* =========================================================
   TOOLS SECTION
========================================================= */

.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 140px 24px 120px;
}

.section h2 {
    text-align: center;
    font-size: 44px;
    font-weight: 800;
    margin-bottom: 20px;
}

.section-intro {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 100px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
}

/* =========================================================
   CARDS GRID
========================================================= */

.cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}

/* =========================================================
   CARD
========================================================= */

.card {
    padding: 40px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(14px);

    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "title title"
        "image content"
        "price price"
        "button button";

    column-gap: 48px;
    row-gap: 24px;
    position: relative;
}

.card .cta {
    margin-top: auto;
}
/* =========================================================
   IMAGE / VIDEO BOX
========================================================= */

.video-box {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: visible;
}

/* =========================================================
   SLIDER
========================================================= */

.slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity .6s ease;
}

.slider img.active {
    opacity: 1;
}

/* immagine singola (no slider) */
.video-box>img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* =========================================================
   CARD CONTENT
========================================================= */

.card h3 {
    font-size: 28px;
    margin-bottom: 16px;
}

.card ul {
    list-style: none;
    font-size: 15px;
    color: var(--muted);
    line-height: 1.9;
}

.card ul li {
    position: relative;
    padding-left: 18px;
}

.card ul li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--green);
}

/* =========================================================
   PRICE
========================================================= */

.price {
    margin-top: auto;
    margin-bottom: 22px;
    font-size: 14px;
    font-weight: 700;
    color: var(--green);
}

/* =========================================================
   BACK LINK
========================================================= */

.contact {
    display: block;
    text-align: center;
    margin-top: 140px;
    color: var(--muted);
    text-decoration: none;
}

.contact:hover {
    color: var(--text);
}

/* =========================================================
   MOBILE – CENTERED LAYOUT
========================================================= */

@media (max-width: 900px) {

    /* SECTION */
    .section {
        padding: 80px 16px;
    }

    .section h2 {
        font-size: 28px;
        text-align: center;
    }

    .section-intro {
        font-size: 15px;
        margin-bottom: 60px;
        text-align: center;
    }

    /* CARDS CONTAINER */
    .cards {
        display: flex;
        flex-direction: column;
        gap: 48px;
        align-items: stretch;
    }

    /* CARD */
    .card {
        display: flex;
        flex-direction: column;
        align-items: center;
        /* 🔥 CENTRA TUTTO */

        width: 100%;
        max-width: 100%;

        padding: 24px;
        height: auto;
        border-radius: 22px;

        text-align: center;
    }

    /* IMAGE / SLIDER */
    .video-box {
        width: 100%;
        height: 200px;
        margin-bottom: 12px;

        display: flex;
        align-items: center;
        justify-content: center;
    }

    .video-box img,
    .slider img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

    /* TITLE */
    .card h3 {
        font-size: 22px;
        margin-bottom: 10px;
    }

    /* LIST */
    .card ul {
        font-size: 14px;
        line-height: 1.7;

        display: flex;
        flex-direction: column;
        align-items: center;
        /* 🔥 lista centrata */
        gap: 6px;
    }

    .card ul li {
        padding-left: 0;
    }

    .card ul li::before {
        display: none;
        /* opzionale: più pulito su mobile */
    }

    /* PRICE */
    .price {
        margin: 16px 0 12px;
        text-align: center;
    }

    /* CTA */
    .cta {
        width: 100%;
        max-width: 220px;
        height: 48px;

        border-radius: 22px;
    }
}