/* ── Base ───────────────────────────────────────────────────────────────────── */
body { font-family: 'Nunito', sans-serif; }

/* ── Navbar ─────────────────────────────────────────────────────────────────── */
.landing-nav {
    background: rgba(255,255,255,0.92);
    backdrop-filter: saturate(1.8) blur(16px);
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
    transition: box-shadow var(--transition-base, .2s);
}
.landing-nav.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
}

/* ── Hero ───────────────────────────────────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 50%, #084298 100%);
    color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 92vh;
}
.hero::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 70%);
    border-radius: 50%;
    top: -150px; right: -150px;
    animation: heroPulse 8s ease-in-out infinite;
}
.hero::after {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.06), transparent 70%);
    border-radius: 50%;
    bottom: -100px; left: -100px;
    animation: heroPulse 10s ease-in-out infinite reverse;
}
@keyframes heroPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: .7; }
}

.hero-badge {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 0.875rem;
    display: inline-block;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
    animation: badgeFadeIn .6s ease .2s both;
}
@keyframes badgeFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.2;
    animation: heroTextIn .6s ease .3s both;
}
.hero .lead {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    opacity: 0.9;
    max-width: 520px;
    animation: heroTextIn .6s ease .45s both;
}
@keyframes heroTextIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Feature cards ──────────────────────────────────────────────────────────── */
.feature-card {
    border: 1px solid rgba(0,0,0,.04);
    border-radius: 16px;
    transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease, border-color .3s ease;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(13,110,253,.02));
    opacity: 0;
    transition: opacity .3s ease;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.08) !important;
    border-color: rgba(13,110,253,.1);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
    width: 52px; height: 52px; flex-shrink: 0;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(-3deg);
}

/* ── Dark section ───────────────────────────────────────────────────────────── */
.dark-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    position: relative;
    overflow: hidden;
}
.dark-section::before {
    content: '';
    position: absolute;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(13,110,253,.1), transparent 70%);
    top: -100px; right: -100px;
    border-radius: 50%;
}
.dark-section-item {
    display: flex; gap: 16px; align-items: flex-start;
    transition: transform .2s ease;
}
.dark-section-item:hover { transform: translateX(4px); }
.dark-section-icon {
    width: 40px; height: 40px; flex-shrink: 0;
    background: rgba(13,110,253,0.2);
    border: 1px solid rgba(13,110,253,0.3);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #60a5fa;
    font-size: 1rem;
    transition: all .3s ease;
}
.dark-section-item:hover .dark-section-icon {
    background: rgba(13,110,253,0.3);
    box-shadow: 0 0 16px rgba(13,110,253,.2);
    transform: scale(1.08);
}

/* ── Landing: mockup — enhanced ──────────────────────────────────────────── */
.mockup {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px; padding: 20px;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0,0,0,.15);
    transition: transform .4s ease;
    animation: mockupFloat 6s ease-in-out infinite;
}
@keyframes mockupFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.mockup-bar { display: flex; gap: 6px; margin-bottom: 14px; }
.mockup-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,0.4);
}
.mockup-dot:nth-child(1) { background: #ff5f57; }
.mockup-dot:nth-child(2) { background: #febc2e; }
.mockup-dot:nth-child(3) { background: #28c840; }
.mockup-line {
    height: 10px; border-radius: 4px;
    background: rgba(255,255,255,0.15);
    margin-bottom: 8px;
    animation: lineShimmer 2s ease infinite;
}
.mockup-line:nth-child(odd) { animation-delay: .5s; }
@keyframes lineShimmer {
    0%, 100% { opacity: .5; }
    50% { opacity: 1; }
}

/* ── Landing: come funziona ──────────────────────────────────────────────── */
.step-number {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; font-weight: 800; color: white;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 12px rgba(13,110,253,.25);
    transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.step-number:hover {
    transform: scale(1.15);
}
/* ── Landing: CTA finale ─────────────────────────────────────────────────── */
.cta-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 60%, #084298 100%);
    color: white;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(13,110,253,.2);
}
.cta-section::before {
    content: '';
    position: absolute;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,.08), transparent);
    top: -100px; right: -100px;
    border-radius: 50%;
}
