/* ============================================================
   USC-PLAN — Landing Page Styles
   ============================================================ */

/* === Font === */
.landing-page,
.landing-page * {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* === Landing Navbar === */
.landing-nav {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0 32px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.landing-nav__brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 1.0625rem;
    color: #1A56DB;
    letter-spacing: -0.01em;
    text-decoration: none;
}

.landing-nav__brand img {
    height: 28px;
    width: 28px;
}

.landing-nav__links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.landing-nav__links li a {
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    transition: color 150ms, background 150ms;
}

.landing-nav__links li a:hover {
    color: #1A56DB;
    background: #EBF5FF;
}

.landing-nav__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.landing-nav__hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: #374151;
}

/* === Hero === */
.lp-hero {
    background: linear-gradient(135deg, #1A56DB 0%, #1239A5 100%);
    padding: 80px 32px 88px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Griglia di dots discreta */
.lp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.12) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

/* Quadrato grande decorativo in alto a destra */
.lp-hero::after {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 320px;
    height: 320px;
    border-radius: 24px;
    background: rgba(255,255,255,0.04);
    border: 1.5px solid rgba(255,255,255,0.10);
    transform: rotate(20deg);
    pointer-events: none;
}

/* Quadrato piccolo in basso a sinistra */
.lp-hero__deco {
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 240px;
    height: 240px;
    border-radius: 20px;
    background: rgba(255,255,255,0.03);
    border: 1.5px solid rgba(255,255,255,0.08);
    transform: rotate(30deg);
    pointer-events: none;
}

/* Linea curva bottom-wave */
.lp-hero__wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    pointer-events: none;
    line-height: 0;
}

.lp-hero__wave svg {
    display: block;
    width: 100%;
    height: 40px;
}

/* Secondo quadrato in alto a destra */
.lp-hero__deco2 {
    position: absolute;
    top: -20px;
    right: 14%;
    width: 100px;
    height: 100px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.12);
    transform: rotate(15deg);
    pointer-events: none;
}

/* SVG geometrici agli angoli */
.lp-hero__geo {
    position: absolute;
    pointer-events: none;
    width: 220px;
    height: 220px;
}

.lp-hero__geo--tl {
    top: -30px;
    left: -30px;
}

.lp-hero__geo--br {
    bottom: 10px;
    right: -30px;
}


.lp-hero__inner {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.lp-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.lp-hero p {
    font-size: 1rem;
    color: rgba(255,255,255,0.82);
    line-height: 1.65;
    margin-bottom: 36px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.lp-hero__buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero buttons */
.lp-btn-white {
    background: #ffffff;
    color: #1A56DB;
    border: none;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.9375rem;
    transition: background 150ms, transform 100ms;
}
.lp-btn-white:hover {
    background: #f0f4ff;
    color: #1239A5;
    transform: translateY(-1px);
}

.lp-btn-outline {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255,255,255,0.55);
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 0.9375rem;
    transition: border-color 150ms, background 150ms;
}
.lp-btn-outline:hover {
    border-color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.08);
    color: #ffffff;
}

/* === Shared section === */
.lp-section {
    padding: 72px 32px;
}

.lp-section--gray {
    background: #f9fafb;
}

.lp-section--white {
    background: #ffffff;
}

.lp-container {
    max-width: 1100px;
    margin: 0 auto;
}

.lp-section__title {
    text-align: center;
    font-size: 1.875rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 48px;
    letter-spacing: -0.02em;
}

/* === Come funziona — Steps === */
.lp-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.lp-step {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 32px 24px;
    text-align: center;
    transition: box-shadow 200ms, transform 200ms;
}

.lp-step:hover {
    box-shadow: 0 8px 24px rgba(26,86,219,0.10);
    transform: translateY(-3px);
}

.lp-step__icon {
    width: 52px;
    height: 52px;
    background: #EBF5FF;
    border: 1.5px solid #BFDBFE;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    color: #1A56DB;
}

.lp-step__icon svg {
    width: 24px;
    height: 24px;
}

.lp-step h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.lp-step p {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
}

/* === Funzionalità — Features === */
.lp-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.lp-feature {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: box-shadow 200ms;
}

.lp-feature:hover {
    box-shadow: 0 4px 16px rgba(26,86,219,0.09);
}

.lp-feature__icon {
    width: 44px;
    height: 44px;
    background: #EBF5FF;
    border: 1.5px solid #BFDBFE;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1A56DB;
    flex-shrink: 0;
}

.lp-feature__icon svg {
    width: 20px;
    height: 20px;
}

.lp-feature h4 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.lp-feature p {
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.55;
    margin: 0;
}

/* === FAQ === */
.lp-faq {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lp-faq__item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.lp-faq__item[open] .lp-faq__icon {
    transform: rotate(45deg);
}

.lp-faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    font-weight: 600;
    font-size: 0.9375rem;
    color: #111827;
    cursor: pointer;
    list-style: none;
    gap: 16px;
    transition: background 150ms;
}

.lp-faq__q::-webkit-details-marker { display: none; }

.lp-faq__q:hover {
    background: #f9fafb;
}

.lp-faq__icon {
    font-size: 1.25rem;
    font-weight: 400;
    color: #6b7280;
    transition: transform 200ms;
    flex-shrink: 0;
    line-height: 1;
}

.lp-faq__a {
    padding: 0 20px 18px;
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.65;
    margin: 0;
    border-top: 1px solid #f3f4f6;
    padding-top: 14px;
}

/* === CTA Finale === */
.lp-cta {
    background: linear-gradient(135deg, #1A56DB 0%, #1239A5 100%);
    padding: 72px 32px;
    text-align: center;
}

.lp-cta h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.lp-cta p {
    color: rgba(255,255,255,0.82);
    font-size: 1rem;
    margin-bottom: 32px;
}

/* === Responsive === */
@media (max-width: 900px) {
    .lp-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 680px) {
    .landing-nav__links {
        display: none;
    }
    .landing-nav__hamburger {
        display: flex;
    }

    .lp-hero {
        padding: 56px 20px 64px;
    }

    .lp-section {
        padding: 52px 20px;
    }

    .lp-steps {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .lp-features {
        grid-template-columns: 1fr;
    }

    .lp-section__title {
        font-size: 1.5rem;
        margin-bottom: 32px;
    }
}

/* === Footer === */
.lp-footer {
    background: #0f172a;
    color: #94a3b8;
    font-size: 0.875rem;
}

.lp-footer__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 32px 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
}

.lp-footer__logo {
    display: inline-block;
    font-size: 1.125rem;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -0.01em;
    margin-bottom: 14px;
}

.lp-footer__tagline {
    color: #64748b;
    line-height: 1.65;
    font-size: 0.8375rem;
    margin-bottom: 16px;
}

.lp-footer__author {
    font-size: 0.8125rem;
    color: #475569;
}

.lp-footer__author a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 150ms;
}

.lp-footer__author a:hover {
    color: #93c5fd;
}

.lp-footer__heading {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    margin-bottom: 16px;
}

.lp-footer__col nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lp-footer__col nav a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 150ms;
    line-height: 1.4;
}

.lp-footer__col nav a:hover {
    color: #e2e8f0;
}

.lp-footer__bottom {
    border-top: 1px solid #1e293b;
    padding: 20px 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.lp-footer__bottom p {
    font-size: 0.8125rem;
    color: #475569;
}

@media (max-width: 768px) {
    .lp-footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
        padding: 40px 20px 32px;
    }
    .lp-footer__brand {
        grid-column: 1 / -1;
    }
    .lp-footer__bottom {
        padding: 16px 20px;
    }
}

@media (max-width: 480px) {
    .lp-footer__inner {
        grid-template-columns: 1fr;
    }
}

/* === Privacy Page === */
.privacy-hero {
    background: linear-gradient(135deg, #1A56DB 0%, #1239A5 100%);
    padding: 52px 32px 56px;
    color: #fff;
}

.privacy-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.65);
    margin-bottom: 16px;
}

.privacy-hero__breadcrumb a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: color 150ms;
}

.privacy-hero__breadcrumb a:hover {
    color: #fff;
}

.privacy-hero__breadcrumb span {
    color: rgba(255,255,255,0.4);
}

.privacy-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.privacy-hero p {
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
    margin: 0;
}

.privacy-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 52px 32px 72px;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 48px;
    align-items: start;
}

/* TOC sidebar */
.privacy-card {
    position: sticky;
    top: 76px;
}

.privacy-toc {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
}

.privacy-toc__label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9ca3af;
    margin-bottom: 14px;
}

.privacy-toc ol {
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    counter-reset: toc;
}

.privacy-toc ol li {
    counter-increment: toc;
}

.privacy-toc ol li a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: #6b7280;
    text-decoration: none;
    padding: 5px 8px;
    border-radius: 6px;
    transition: background 150ms, color 150ms;
    line-height: 1.4;
}

.privacy-toc ol li a::before {
    content: counter(toc, decimal-leading-zero);
    font-size: 0.6875rem;
    font-weight: 700;
    color: #d1d5db;
    flex-shrink: 0;
}

.privacy-toc ol li a:hover {
    background: #EBF5FF;
    color: #1A56DB;
}

.privacy-toc ol li a:hover::before {
    color: #93c5fd;
}

/* Content area */
.privacy-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.privacy-section {
    padding: 36px 0;
    border-bottom: 1px solid #f3f4f6;
    position: relative;
}

.privacy-section:last-child {
    border-bottom: none;
}

.privacy-section__number {
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #1A56DB;
    opacity: 0.6;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.privacy-section h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.privacy-section p {
    color: #4b5563;
    font-size: 0.9375rem;
    line-height: 1.75;
    margin-bottom: 12px;
}

.privacy-section p:last-child {
    margin-bottom: 0;
}

.privacy-section ul {
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.privacy-section ul li {
    padding: 12px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-left: 3px solid #1A56DB;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.6;
}

.privacy-section code {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 0.85em;
    color: #1A56DB;
    font-family: 'SFMono-Regular', Consolas, monospace;
}

.privacy-section a {
    color: #1A56DB;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.privacy-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #EBF5FF;
    border: 1px solid #BFDBFE;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 0.875rem;
    color: #1e40af;
    line-height: 1.6;
    margin-top: 12px;
}

.privacy-notice svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: #1A56DB;
}

@media (max-width: 768px) {
    .privacy-main {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 32px 20px 52px;
    }
    .privacy-card {
        position: static;
    }
    .privacy-hero {
        padding: 36px 20px 40px;
    }
}

/* === FAQ Page === */
.faq-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 48px;
    align-items: start;
    padding-top: 52px;
    padding-bottom: 72px;
}

/* Sidebar */
.faq-sidebar {
    position: sticky;
    top: 76px;
}

.faq-sidebar__label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9ca3af;
    margin-bottom: 12px;
}

.faq-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.faq-nav-link {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 7px;
    transition: background 150ms, color 150ms;
    line-height: 1.3;
}

.faq-nav-link svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.faq-nav-link:hover {
    background: #EBF5FF;
    color: #1A56DB;
}

.faq-nav-link:hover svg {
    opacity: 1;
}

.faq-nav-link.active {
    background: #EBF5FF;
    color: #1A56DB;
    font-weight: 600;
}

.faq-nav-link.active svg {
    opacity: 1;
}

/* Content */
.faq-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq-category {
    padding: 40px 0;
    border-bottom: 1px solid #f3f4f6;
}

.faq-category:last-child {
    border-bottom: none;
}

.faq-category__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.faq-category__icon {
    width: 40px;
    height: 40px;
    background: #EBF5FF;
    border: 1.5px solid #BFDBFE;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1A56DB;
    flex-shrink: 0;
}

.faq-category h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

/* Accordion */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 200ms;
}

.faq-item:hover {
    box-shadow: 0 2px 10px rgba(26,86,219,0.07);
}

.faq-item[open] {
    border-color: #BFDBFE;
    box-shadow: 0 2px 12px rgba(26,86,219,0.08);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
    cursor: pointer;
    list-style: none;
    transition: background 150ms;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-item[open] .faq-question {
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.faq-icon {
    font-size: 1.25rem;
    font-weight: 400;
    color: #1A56DB;
    flex-shrink: 0;
    line-height: 1;
    transition: transform 200ms;
}

.faq-answer {
    padding: 16px 20px;
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.75;
    margin: 0;
}

.faq-answer a {
    color: #1A56DB;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Active nav link link in navbar */
.landing-nav__links a[aria-current="page"] {
    color: #1A56DB;
    font-weight: 600;
}

@media (max-width: 768px) {
    .faq-layout {
        grid-template-columns: 1fr;
        gap: 0;
        padding-top: 32px;
        padding-bottom: 52px;
    }

    .faq-sidebar {
        position: static;
        margin-bottom: 32px;
    }

    .faq-sidebar__nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }

    .faq-nav-link {
        font-size: 0.75rem;
        padding: 6px 10px;
    }

    .faq-nav-link svg {
        display: none;
    }
}

/* === SyzerMC Style Loader Splash Screen === */
html.is-compiling,
html.is-compiling body {
    overflow: hidden !important;
    height: 100% !important;
}

.compiler-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #101f42, #000000 80%);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    opacity: 1;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.compiler-loader.fade-out {
    transform: translateY(-100%);
    pointer-events: none;
    display: flex !important;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 320px;
    width: 90%;
}

.loader-logo-wrapper {
    position: relative;
    margin-bottom: 30px;
}

.loader-logo {
    width: 130px;
    height: 130px;
    filter: drop-shadow(0 0 20px #000000) drop-shadow(0 0 50px #1A56DB);
    animation: logoPulse 2.2s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1) rotate(0);
        filter: drop-shadow(0 0 20px #000000) drop-shadow(0 0 50px rgba(26, 86, 219, 0.6));
    }
    50% {
        transform: scale(1.06) rotate(-2deg);
        filter: drop-shadow(0 0 30px #000000) drop-shadow(0 0 70px rgba(59, 130, 246, 0.8));
    }
}

.loader-title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 12px;
    margin-bottom: 24px;
    text-indent: 12px; /* Centers the text properly despite letter-spacing */
    text-shadow: 0 0 12px rgba(26, 86, 219, 0.4);
}

.loader-progress-container {
    width: 240px;
    height: 2px;
    background: rgba(26, 86, 219, 0.15);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
    position: relative;
}

.loader-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #1A56DB, #3B82F6, #ffffff, #3B82F6, #1A56DB);
    box-shadow: 0 0 14px #1A56DB;
}

.loader-status {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-top: 8px;
}

