/* ═══════════════════════════════════════════════════════════
   CASHORY LANDING PAGE - STYLES
   A premium, immersive experience for financial management
   ═══════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────
   CSS VARIABLES - Brand Colors & Design Tokens
   ───────────────────────────────────────────────────────────── */
:root {
    /* Primary Colors - From Logo */
    --cashory-green: #01c795;
    --cashory-green-light: #34d8ac;
    --cashory-green-dark: #00a67c;
    --cashory-blue: #2563eb;
    --cashory-blue-light: #4f81f7;
    --cashory-blue-dark: #1d4ed8;
    
    /* Neutral Palette */
    --bg-primary: #0a0a0b;
    --bg-secondary: #111113;
    --bg-tertiary: #18181b;
    --bg-elevated: #1f1f23;
    --bg-card: rgba(25, 25, 28, 0.8);
    
    /* Text Colors */
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-tertiary: #71717a;
    --text-muted: #52525b;
    
    /* Accents */
    --accent-success: #22c55e;
    --accent-warning: #f59e0b;
    --accent-error: #ef4444;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--cashory-green) 0%, var(--cashory-blue) 100%);
    --gradient-glow: linear-gradient(135deg, rgba(1, 199, 149, 0.3) 0%, rgba(37, 99, 235, 0.3) 100%);
    --gradient-text: linear-gradient(135deg, var(--cashory-green) 0%, var(--cashory-green-light) 50%, var(--cashory-blue) 100%);
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 60px rgba(1, 199, 149, 0.3);
}

/* ─────────────────────────────────────────────────────────────
   RESET & BASE STYLES
   ───────────────────────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ─────────────────────────────────────────────────────────────
   ANIMATED BACKGROUND
   ───────────────────────────────────────────────────────────── */
.bg-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-primary);
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--cashory-green) 0%, transparent 70%);
    top: -200px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--cashory-blue) 0%, transparent 70%);
    top: 50%;
    right: -150px;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--cashory-green-light) 0%, transparent 70%);
    bottom: -100px;
    left: 30%;
    animation-delay: -14s;
}

/* Mobile: ridurre dimensioni orbs per vedere meglio l'effetto */
@media (max-width: 480px) {
    .orb-1 {
        width: 250px;
        height: 250px;
        top: 10%;
        left: -30px;
        filter: blur(50px);
        opacity: 0.4;
    }
    
    .orb-2 {
        width: 200px;
        height: 200px;
        top: 50%;
        right: -50px;
        filter: blur(50px);
        opacity: 0.4;
    }
    
    .orb-3 {
        width: 180px;
        height: 180px;
        bottom: 10%;
        left: 15%;
        filter: blur(50px);
        opacity: 0.4;
    }
    
    /* Ridurre anche particles canvas su mobile */
    #particles-canvas {
        transform: scale(0.6);
        opacity: 0.5;
    }
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -50px) scale(1.05);
    }
    50% {
        transform: translate(-20px, 30px) scale(0.95);
    }
    75% {
        transform: translate(-40px, -30px) scale(1.02);
    }
}

.mesh-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(1, 199, 149, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(37, 99, 235, 0.05) 0%, transparent 50%);
    animation: meshPulse 8s ease-in-out infinite;
}

@keyframes meshPulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
}

#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* ─────────────────────────────────────────────────────────────
   NAVIGATION
   ───────────────────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) var(--space-xl);
    background: rgba(10, 10, 11, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    padding: var(--space-sm) var(--space-xl);
    background: rgba(10, 10, 11, 0.95);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-icon {
    width: 36px;
    height: 36px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-base);
    box-shadow: 0 0 20px rgba(1, 199, 149, 0.3);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(1, 199, 149, 0.5);
}

.nav-cta svg {
    transition: transform var(--transition-fast);
}

.nav-cta:hover svg {
    transform: translateX(4px);
}

/* ─────────────────────────────────────────────────────────────
   HERO SECTION
   ───────────────────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    padding: 100px var(--space-xl) var(--space-3xl); /* Ridotto padding */
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3xl); /* Ridotto gap */
    align-items: center;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width: 1200px) {
    .hero {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

.hero-content {
    max-width: 640px;
}

/* Nascondi logo mobile su desktop */
.hero-logo-mobile {
    display: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: rgba(1, 199, 149, 0.1);
    border: 1px solid rgba(1, 199, 149, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--cashory-green);
    margin-bottom: var(--space-xl);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--cashory-green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-xl);
}

.title-line {
    display: block;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 8s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-2xl);
}

.hero-subtitle strong {
    color: var(--text-primary);
    background: rgba(1, 199, 149, 0.15);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-family: 'Inter', monospace;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-3xl);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-base);
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 80px rgba(1, 199, 149, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(1, 199, 149, 0.5);
    color: var(--cashory-green);
}

.btn-outline:hover {
    background: rgba(1, 199, 149, 0.1);
    border-color: var(--cashory-green);
}

.btn-large {
    padding: var(--space-lg) var(--space-2xl);
    font-size: 1.1rem;
}

/* Hero Trust Badges */
.hero-trust {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: nowrap; /* Forza su una riga su desktop */
    justify-content: flex-start;
}

.hero-trust .trust-badge {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--text-secondary);
    font-size: 0.75rem; /* Rimpicciolito */
    padding: var(--space-xs) var(--space-sm); /* Padding ridotto */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    white-space: nowrap;
    flex-shrink: 0;
}

.hero-trust .trust-badge:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(1, 199, 149, 0.2);
    color: var(--text-primary);
}

.hero-trust .trust-badge svg {
    color: var(--cashory-green);
    flex-shrink: 0;
    width: 14px; /* Icone più piccole */
    height: 14px;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Phone Mockup */
.phone-mockup {
    position: relative;
}

.phone-frame {
    width: 320px;
    height: 640px;
    background: linear-gradient(180deg, #2a2a2e 0%, #1a1a1d 100%);
    border-radius: 45px;
    padding: 12px;
    box-shadow: 
        0 0 0 2px rgba(255, 255, 255, 0.1),
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(1, 199, 149, 0.2);
    position: relative;
    overflow: hidden;
}

.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 28px;
    background: #000;
    border-radius: 20px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #0d1117;
    border-radius: 35px;
    overflow: hidden;
}

.phone-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(1, 199, 149, 0.3) 0%, transparent 60%);
    z-index: -1;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Chat Interface */
.chat-interface {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 40px var(--space-md) var(--space-md);
    background: rgba(1, 199, 149, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.chat-avatar img {
    width: 28px;
    height: 28px;
}

.chat-info {
    display: flex;
    flex-direction: column;
}

.chat-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.chat-status {
    font-size: 0.75rem;
    color: var(--cashory-green);
}

.chat-messages {
    flex: 1;
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    overflow-y: auto;
}

.message {
    max-width: 85%;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    line-height: 1.5;
    animation: messageIn 0.5s ease forwards;
}

.message.bot {
    background: var(--bg-tertiary);
    align-self: flex-start;
    border-bottom-left-radius: var(--radius-sm);
}

.message.user {
    background: var(--cashory-green);
    color: #000;
    align-self: flex-end;
    border-bottom-right-radius: var(--radius-sm);
}

.message strong {
    color: var(--cashory-green);
}

.message.user strong {
    color: inherit;
}

.message .positive {
    color: var(--accent-success);
    font-weight: 600;
}

@keyframes messageIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Chat Input Bar */
.chat-input-bar {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-tertiary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.input-field {
    flex: 1;
    display: flex;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-primary);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--text-primary);
    min-height: 36px;
}

.input-cursor {
    width: 2px;
    height: 16px;
    background: var(--cashory-green);
    animation: cursorBlink 1s step-end infinite;
    margin-right: 2px;
}

.input-cursor.hidden {
    display: none;
}

@keyframes cursorBlink {
    50% { opacity: 0; }
}

.input-text {
    color: var(--text-primary);
}

.send-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--cashory-green);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    transition: all var(--transition-fast);
    opacity: 0.5;
}

.send-btn.active {
    opacity: 1;
    transform: scale(1.05);
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: var(--space-sm) var(--space-md);
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--text-tertiary);
    border-radius: 50%;
    animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-8px);
    }
}

/* QR Code Overlay */
.qr-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s ease;
    z-index: 10;
    border-radius: 35px;
}

.qr-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.qr-content {
    text-align: center;
    padding: var(--space-xl);
    animation: qrFadeIn 0.8s ease;
}

@keyframes qrFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.qr-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.qr-header .qr-logo {
    width: 32px;
    height: 32px;
}

.qr-header span {
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.qr-box {
    width: 180px;
    height: 180px;
    margin: 0 auto var(--space-lg);
    padding: var(--space-sm);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 0 40px rgba(1, 199, 149, 0.3);
    animation: qrPulse 2s ease-in-out infinite;
}

@keyframes qrPulse {
    0%, 100% {
        box-shadow: 0 0 40px rgba(1, 199, 149, 0.3);
    }
    50% {
        box-shadow: 0 0 60px rgba(1, 199, 149, 0.5);
    }
}

.qr-code-svg {
    width: 100%;
    height: 100%;
}

.qr-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.qr-cta-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.85rem;
    color: var(--cashory-green);
    transition: all var(--transition-fast);
}

.qr-cta-link:hover {
    gap: var(--space-sm);
}

.qr-cta-link svg {
    transition: transform var(--transition-fast);
}

.qr-cta-link:hover svg {
    transform: translateX(4px);
}

/* Floating Cards */
.floating-card {
    position: absolute;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: var(--space-sm); /* Ridotto */
    display: flex;
    align-items: center;
    gap: var(--space-sm); /* Ridotto */
    box-shadow: var(--shadow-xl);
    animation: floatCard 6s ease-in-out infinite;
    max-width: 180px; /* Limite larghezza */
}

.floating-card .card-icon {
    font-size: 1.2rem; /* Ridotto */
}

.floating-card .card-content {
    display: flex;
    flex-direction: column;
}

.floating-card .card-title {
    font-size: 0.7rem; /* Ridotto */
    color: var(--text-tertiary);
}

.floating-card .card-value {
    font-weight: 700;
    font-size: 0.85rem; /* Ridotto */
}

.floating-card .card-value.positive {
    color: var(--cashory-green);
}

.floating-card .progress-bar {
    width: 80px; /* Ridotto */
    height: 3px; /* Ridotto */
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    margin-top: var(--space-xs);
    overflow: hidden;
}

.floating-card .progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    animation: progressGrow 2s ease 1s forwards;
    width: 0;
}

@keyframes progressGrow {
    to {
        width: var(--target-width, 45.6%);
    }
}

/* Floating cards - posizioni aggiustate per non uscire */
.card-1 {
    top: 60px;
    right: 20px; /* Da -60px a 20px */
    animation-delay: 0s;
}

.card-2 {
    bottom: 120px;
    left: 20px; /* Da -80px a 20px */
    animation-delay: -2s;
}

.card-3 {
    bottom: 40px;
    right: 20px; /* Da -40px a 20px */
    animation-delay: -4s;
}

@keyframes floatCard {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}


/* ─────────────────────────────────────────────────────────────
   SECTIONS COMMON STYLES
   ───────────────────────────────────────────────────────────── */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-xl); /* Ridotto da 4xl a 3xl */
}

.section-header {
    text-align: center;
    max-width: 600px; /* Ridotto da 700px */
    margin: 0 auto var(--space-2xl); /* Ridotto da 4xl a 2xl */
}

.section-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: rgba(1, 199, 149, 0.1);
    border: 1px solid rgba(1, 199, 149, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--cashory-green);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-lg);
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem); /* Ridotto da 2-3rem a 1.5-2rem */
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--space-md); /* Ridotto da lg */
}

.section-subtitle {
    font-size: 0.95rem; /* Ridotto da 1.1rem */
    color: var(--text-secondary);
    line-height: 1.6; /* Ridotto da 1.7 */
}

/* ─────────────────────────────────────────────────────────────
   VIDEO SECTION
   ───────────────────────────────────────────────────────────── */
.video-section {
    background: var(--bg-primary);
    padding: var(--space-3xl) var(--space-xl); /* Ridotto da 4xl a 3xl */
}

.video-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-xl);
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    background: linear-gradient(135deg, rgba(1, 199, 149, 0.1) 0%, rgba(37, 99, 235, 0.1) 100%);
    color: var(--text-secondary);
}

.video-placeholder svg {
    color: var(--cashory-green);
    opacity: 0.5;
}

.video-placeholder p {
    text-align: center;
    font-size: 1.1rem;
}

.video-placeholder span {
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

/* ─────────────────────────────────────────────────────────────
   FEATURES SECTION
   ───────────────────────────────────────────────────────────── */
.features {
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(10px);
}

.features .section-header {
    margin-bottom: var(--space-xl); /* Spazio più compatto tra header e grid */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm); /* Gap molto più compatto */
}

.feature-card {
    background: rgba(37, 99, 235, 0.05); /* Blu neutro invece di verde */
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: var(--radius-xl);
    padding: var(--space-md);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 99, 235, 0.3);
    background: rgba(37, 99, 235, 0.08);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card > * {
    position: relative;
    z-index: 1;
}

.feature-large {
    grid-column: span 2;
}

.feature-wide {
    grid-column: span 3;
}

/* Natural Language - Solo leggero effetto colore, mantiene la demo esistente */
.feature-natural-language::after {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03) 0%, rgba(1, 199, 149, 0.03) 100%);
    opacity: 0.5;
}

/* Mobile: colori visibili ma leggermente più opachi */
/* Feature card colors defined in main 480px media query */

/* Goals - Cerchio di progresso che si riempie (rappresenta obiettivo raggiunto) */
.feature-goals::after {
    background: 
        conic-gradient(
            from 0deg at 50% 50%,
            rgba(1, 199, 149, 0.15) 0deg,
            rgba(1, 199, 149, 0.15) 270deg,
            transparent 270deg,
            transparent 360deg
        );
    animation: goalProgress 4s ease-in-out infinite;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes goalProgress {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
        opacity: 0.1;
    }
    50% {
        transform: translate(-50%, -50%) rotate(180deg);
        opacity: 0.2;
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
        opacity: 0.1;
    }
}

/* Recurring - Onde circolari che si espandono (rappresenta ripetizione ciclica) */
.feature-recurring::after {
    background: 
        radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 40%),
        radial-gradient(circle, rgba(1, 199, 149, 0.1) 0%, transparent 40%);
    background-size: 100px 100px, 80px 80px;
    background-position: 20% 30%, 80% 70%;
    animation: recurringWaves 3s ease-in-out infinite;
}

@keyframes recurringWaves {
    0%, 100% {
        background-size: 100px 100px, 80px 80px;
        opacity: 0.15;
    }
    50% {
        background-size: 150px 150px, 120px 120px;
        opacity: 0.25;
    }
}

/* Reports - Linee di grafico animate (rappresenta visualizzazione dati) */
.feature-reports::after {
    background: 
        linear-gradient(90deg, transparent 0%, rgba(37, 99, 235, 0.08) 20%, transparent 40%),
        linear-gradient(90deg, transparent 30%, rgba(1, 199, 149, 0.08) 50%, transparent 70%),
        linear-gradient(90deg, transparent 60%, rgba(37, 99, 235, 0.08) 80%, transparent 100%);
    background-size: 100% 2px, 100% 2px, 100% 2px;
    background-position: 0% 30%, 0% 50%, 0% 70%;
    animation: chartBars 5s ease-in-out infinite;
    opacity: 0.4;
}

@keyframes chartBars {
    0%, 100% {
        background-position: 0% 30%, 0% 50%, 0% 70%;
        opacity: 0.3;
    }
    25% {
        background-position: 25% 30%, 25% 50%, 25% 70%;
        opacity: 0.4;
    }
    50% {
        background-position: 50% 30%, 50% 50%, 50% 70%;
        opacity: 0.5;
    }
    75% {
        background-position: 75% 30%, 75% 50%, 75% 70%;
        opacity: 0.4;
    }
}

/* Export - Frecce che scendono (rappresenta download/esportazione) */
.feature-export::after {
    background: 
        repeating-linear-gradient(
            90deg,
            transparent 0px,
            transparent 40px,
            rgba(37, 99, 235, 0.08) 40px,
            rgba(37, 99, 235, 0.08) 45px,
            transparent 45px,
            transparent 85px
        ),
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            transparent 30px,
            rgba(1, 199, 149, 0.08) 30px,
            rgba(1, 199, 149, 0.08) 35px,
            transparent 35px,
            transparent 65px
        );
    background-size: 100% 100%, 100% 100%;
    animation: exportDown 4s linear infinite;
    opacity: 0.3;
}

@keyframes exportDown {
    0% {
        background-position: 0% 0%, 0% 0%;
    }
    100% {
        background-position: 0% 100%, 0% 100%;
    }
}

.feature-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
    line-height: 1.3;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Feature Demo */
.feature-demo {
    margin-top: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-primary);
    border-radius: var(--radius-md);
}

.demo-input {
    display: flex;
    align-items: center;
    padding: var(--space-sm);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    font-family: 'Inter', monospace;
    font-size: 0.85rem;
    margin-bottom: var(--space-sm);
}

.demo-cursor {
    width: 2px;
    height: 20px;
    background: var(--cashory-green);
    margin-right: var(--space-xs);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.demo-text {
    color: var(--text-primary);
}

.demo-result {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--cashory-green);
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    animation: showResult 0.5s ease 3s forwards;
}

@keyframes showResult {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Feature Highlight */
.feature-highlight {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.highlight-badge {
    padding: var(--space-xs) var(--space-sm);
    background: var(--cashory-blue);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* ─────────────────────────────────────────────────────────────
   HOW IT WORKS SECTION
   ───────────────────────────────────────────────────────────── */
.how-it-works {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
}

.how-it-works .section-header {
    margin-bottom: var(--space-xl); /* Spazio più compatto tra titolo e primo step */
}

.steps-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md); /* Gap molto più compatto tra gli step */
}

.steps-container .step:first-child {
    margin-top: 0;
}

.step {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--space-md); /* Gap più compatto tra colonne */
    align-items: center;
    width: 100%;
    max-width: 700px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    box-shadow: var(--shadow-glow);
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
    line-height: 1.3;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.step-visual {
    min-width: 120px;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.step-connector {
    display: flex;
    justify-content: center;
    padding: var(--space-xs) 0;
    margin-left: 25px;
    height: 30px;
}

/* QR Mockup */
.qr-mockup {
    text-align: center;
}

.qr-code {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: var(--radius-md);
    padding: var(--space-xs);
    margin-bottom: var(--space-sm);
}

.qr-code svg {
    width: 100%;
    height: 100%;
}

.qr-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

/* Currency Selector */
.currency-selector {
    display: flex;
    gap: var(--space-sm);
}

.currency-btn {
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.currency-btn.active {
    background: var(--cashory-green);
    color: #000;
    border-color: var(--cashory-green);
}

/* First Expense */
.first-expense {
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.expense-input {
    padding: var(--space-md);
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: 'Inter', monospace;
    margin-bottom: var(--space-md);
}

.expense-result {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.expense-result .checkmark {
    animation: checkBounce 0.5s ease;
}

@keyframes checkBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
}

/* ─────────────────────────────────────────────────────────────
   TESTIMONIALS SECTION
   ───────────────────────────────────────────────────────────── */
.testimonials {
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(10px);
    overflow: hidden;
    padding: var(--space-2xl) 0; /* Padding verticale ridotto */
}

.testimonials .section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl); /* Padding orizzontale ridotto ma mantiene centratura */
}

.testimonials .section-header {
    margin-bottom: var(--space-lg); /* Spazio ridotto */
    text-align: center; /* Assicura che l'header sia centrato */
}

.testimonials-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    gap: var(--space-md);
    animation: scrollTestimonials 35s linear infinite;
    width: max-content;
    will-change: transform;
}

@keyframes scrollTestimonials {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(var(--set-width, -50%)); /* Usa la larghezza esatta calcolata da JS */
    }
}

.testimonial-track:hover {
    animation-play-state: paused;
}

.testimonial-card {
    flex: 0 0 320px; /* Card più compatta (da 400px a 320px) */
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: var(--space-lg); /* Padding ridotto (da 2xl a lg) */
    transition: all var(--transition-base);
    margin: 0;
}

.testimonial-card:hover {
    border-color: rgba(1, 199, 149, 0.2);
    transform: translateY(-2px);
}

.testimonial-card {
    display: flex;
    flex-direction: column;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md); /* Spazio dopo avatar/nome */
}

.testimonial-content {
    flex: 1; /* Prende tutto lo spazio disponibile */
}

.testimonial-content p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0; /* Rimuove margine inferiore */
}

.testimonial-rating {
    margin-top: var(--space-md); /* Spazio sopra le stelle */
}

.author-avatar {
    width: 40px; /* Avatar più piccolo */
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 2px; /* Gap minimo tra nome e ruolo */
}

.author-name {
    font-weight: 600;
    font-size: 0.9rem; /* Font più compatto */
}

.author-role {
    font-size: 0.8rem; /* Font più compatto */
    color: var(--text-tertiary);
}

.testimonial-rating {
    color: #fbbf24;
    font-size: 0.9rem; /* Font più compatto */
    letter-spacing: 1px; /* Letter-spacing ridotto */
}

/* ─────────────────────────────────────────────────────────────
   PRICING SECTION - SINGLE PLAN
   ───────────────────────────────────────────────────────────── */
.pricing {
    background: var(--bg-primary);
}

.pricing-single {
    max-width: 600px;
    margin: 0 auto;
}

.pricing-card-single {
    background: var(--bg-card);
    border: 2px solid var(--cashory-green);
    border-radius: var(--radius-xl);
    padding: var(--space-xl); /* Ridotto da 2xl a xl */
    transition: all var(--transition-base);
    position: relative;
    box-shadow: var(--shadow-glow);
    max-width: 500px; /* Ridotto da 600px */
    margin: 0 auto;
}

.pricing-trial-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    padding: var(--space-xs) var(--space-lg);
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(1, 199, 149, 0.4);
}

.pricing-header-single {
    text-align: center;
    margin-bottom: var(--space-lg); /* Ridotto da xl */
    padding-bottom: var(--space-md); /* Ridotto da lg */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pricing-header-single h3 {
    font-size: 1.5rem; /* Ridotto da 1.75rem */
    font-weight: 800;
    margin-bottom: var(--space-sm); /* Ridotto da md */
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-amount-single {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.price-main {
    display: flex;
    align-items: baseline;
    gap: var(--space-xs);
}

.price-main .currency {
    font-size: 1.2rem; /* Ridotto da 1.5rem */
    font-weight: 600;
    color: var(--text-secondary);
}

.price-main .price {
    font-size: 2.5rem; /* Ridotto da 3rem */
    font-weight: 800;
    line-height: 1;
}

.price-main .period {
    font-size: 0.95rem; /* Ridotto da 1.1rem */
    color: var(--text-tertiary);
}

.price-annual {
    display: flex;
    align-items: baseline;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-lg);
    background: rgba(1, 199, 149, 0.1);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(1, 199, 149, 0.2);
}

.annual-label {
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

.annual-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cashory-green);
}

.annual-period {
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

.early-adopter-badge {
    display: flex;
    align-items: flex-start;
    gap: var(--space-xs); /* Ridotto da sm */
    padding: var(--space-sm); /* Ridotto da md */
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: var(--radius-lg);
    font-size: 0.75rem; /* Ridotto da 0.85rem */
    line-height: 1.5; /* Ridotto da 1.6 */
    color: var(--text-secondary);
    margin-top: var(--space-md); /* Ridotto da lg */
}

.early-adopter-badge svg {
    color: var(--cashory-blue);
    flex-shrink: 0;
    margin-top: 2px;
}

.early-adopter-badge strong {
    color: var(--text-primary);
}

.pricing-features-single {
    list-style: none;
    margin-bottom: var(--space-xl); /* Ridotto da 2xl */
    text-align: left;
}

.pricing-features-single li {
    display: flex;
    align-items: center;
    gap: var(--space-sm); /* Ridotto da md */
    padding: var(--space-xs) 0; /* Ridotto da sm */
    color: var(--text-secondary);
    font-size: 0.9rem; /* Aggiunto per ridurre */
}

.pricing-features-single li svg {
    color: var(--cashory-green);
    flex-shrink: 0;
}


/* ─────────────────────────────────────────────────────────────
   PRICING + CTA COMBINED SECTION
   ───────────────────────────────────────────────────────────── */
.pricing-cta-combined {
    background: transparent; /* Stesso sfondo della Hero - mostra bg-wrapper */
    padding: var(--space-3xl) var(--space-xl); /* Ridotto da 4xl a 3xl */
    position: relative;
    overflow: hidden;
}

.pricing-cta-combined .pricing-single {
    margin-bottom: 0; /* Rimosso, ora spacing gestito da gap in cta-combined */
}

/* CTA finale - più spazio dalla sezione precedente */
.cta-combined {
    margin-top: var(--space-4xl); /* Aggiunto spazio sopra */
}

.cta-combined {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3xl);
}

/* Header sopra la card del prezzo */
.cta-header-above-pricing {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content-combined {
    max-width: 560px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-title-combined {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--space-lg);
    background: var(--gradient-text); /* Stesso gradient della Hero */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite; /* Stessa animazione della Hero */
}

.cta-subtitle-combined {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-2xl);
}

/* Header sopra pricing - centrato */
.cta-header-above-pricing .cta-title-combined {
    margin-bottom: var(--space-md);
}

.cta-header-above-pricing .cta-subtitle-combined {
    margin-bottom: var(--space-xl); /* Ridotto da 2xl a xl */
}

.cta-buttons-combined {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

/* QR Code Small */
.qr-code-small {
    width: 64px;
    height: 64px;
    padding: var(--space-xs);
    background: white;
    border: 2px solid var(--cashory-green);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(1, 199, 149, 0.2);
}

.qr-code-small:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(1, 199, 149, 0.4);
    border-color: var(--cashory-blue);
}

.qr-code-svg-small {
    width: 100%;
    height: 100%;
}

.cta-note-combined {
    display: flex;
    align-items: flex-start; /* Allinea icona con prima riga */
    gap: var(--space-sm);
    font-size: 0.85rem;
    color: var(--text-tertiary);
    line-height: 1.5;
}

.cta-note-combined svg {
    color: var(--cashory-green);
    flex-shrink: 0;
    margin-top: 2px; /* Allinea icona con prima riga del testo */
}

/* QR Code Overlay Modal */
.qr-overlay-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
}

.qr-overlay-modal.active {
    display: flex;
}

.qr-overlay-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.qr-overlay-content {
    position: relative;
    background: var(--bg-primary);
    border: 2px solid var(--cashory-green);
    border-radius: var(--radius-2xl);
    padding: var(--space-3xl);
    max-width: 400px;
    width: 100%;
    text-align: center;
    z-index: 1;
    animation: slideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.qr-overlay-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.qr-overlay-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.qr-overlay-header {
    margin-bottom: var(--space-xl);
}

.qr-overlay-logo {
    width: 60px;
    height: 60px;
    margin-bottom: var(--space-md);
}

.qr-overlay-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.qr-box-overlay {
    width: 280px;
    height: 280px;
    padding: var(--space-md);
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: 0 0 60px rgba(1, 199, 149, 0.4);
    margin: 0 auto var(--space-lg);
    animation: qrPulse 2s ease-in-out infinite;
}

.qr-box-overlay .qr-code-svg {
    width: 100%;
    height: 100%;
}

.qr-overlay-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.qr-overlay-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--cashory-green);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-base);
}

.qr-overlay-link:hover {
    color: var(--cashory-blue);
    gap: var(--space-md);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─────────────────────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────────────────────── */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: var(--space-4xl) var(--space-xl) var(--space-xl);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-3xl); /* Ridotto da 4xl */
    padding-bottom: var(--space-2xl); /* Ridotto da 3xl */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand {
    max-width: 280px;
}

.footer-brand .logo {
    margin-bottom: var(--space-lg);
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2xl);
}

.footer-column h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
}

.footer-column a {
    display: block;
    padding: var(--space-xs) 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--cashory-green);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
}

.footer-bottom p {
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--cashory-green);
    color: #000;
}

/* ─────────────────────────────────────────────────────────────
   ANIMATION FALLBACKS
   ───────────────────────────────────────────────────────────── */
/* Ensure elements are visible even if JS animations fail */
@media (prefers-reduced-motion: reduce) {
    .feature-card,
    .step,
    .testimonial-card,
    .pricing-card,
    .pricing-card-single,
    .section-header {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Fallback for browsers without IntersectionObserver */
.no-js .feature-card,
.no-js .step,
.no-js .testimonial-card,
.no-js .pricing-card,
.no-js .pricing-card-single,
.no-js .section-header {
    opacity: 1;
    transform: none;
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE DESIGN
   ───────────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
    .hero {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    /* Phone comes AFTER text on mobile */
    .hero-visual {
        order: 1;
    }
    
    .floating-card {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-large,
    .feature-wide {
        grid-column: span 2;
    }
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }
    
    .pricing-single {
        max-width: 100%;
    }
    
    .pricing-card-single {
        padding: var(--space-2xl) var(--space-lg);
    }
    
    .price-main .price {
        font-size: 3rem;
    }
    
    .early-adopter-badge {
        font-size: 0.8rem;
    }
    
    .cta-combined {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
        text-align: center;
    }
    
    .qr-code-small {
        width: 56px;
        height: 56px;
    }
    
    .qr-overlay-content {
        padding: var(--space-2xl) var(--space-lg);
        max-width: 90%;
    }
    
    .qr-box-overlay {
        width: 240px;
        height: 240px;
    }
    
    .cta-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cta-visual {
        order: -1;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .footer-brand {
        max-width: 100%;
        text-align: center;
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-large,
    .feature-wide {
        grid-column: span 1;
    }
    
    .step {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        text-align: center;
    }
    
    .step-number {
        margin: 0 auto;
    }
    
    .step-connector {
        margin-left: 0;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-lg);
        text-align: center;
    }
    
    /* Phone mockup smaller on tablet */
    .phone-frame {
        width: 280px;
        height: 560px;
    }
    
    /* Hero title smaller */
    .hero-title {
        font-size: 2.25rem;
    }
    
    /* Buttons full width */
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    /* Header mobile - NASCONDERE completamente */
    .navbar {
        display: none !important; /* Rimuove header su mobile */
    }
    
    /* Hero - ottimizzato per mobile first, senza padding-top per header */
    .hero {
        padding: var(--space-2xl) var(--space-sm) var(--space-xl);
        min-height: auto;
    }
    
    /* Logo sopra il titolo nella hero - solo mobile */
    .hero-logo-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: var(--space-lg);
        gap: var(--space-sm);
    }
    
    .hero-logo-mobile img {
        width: 32px;
        height: 32px;
    }
    
    .hero-logo-mobile .logo-text {
        font-size: 1.3rem;
        font-weight: 700;
        color: #ffffff !important;
        background: none !important;
        -webkit-background-clip: unset !important;
        -webkit-text-fill-color: #ffffff !important;
        background-clip: unset !important;
    }
    
    .hero-wrapper {
        gap: var(--space-lg);
    }
    
    .hero-content {
        text-align: center;
        padding: 0;
    }
    
    /* Hero title mobile */
    .hero-title {
        font-size: 2.6rem;
        line-height: 1.15;
        margin-bottom: var(--space-md);
        font-weight: 800;
    }
    
    .hero-title .gradient-text {
        background: var(--gradient-text);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        background-size: 200% 200%;
        animation: gradientShift 8s ease infinite;
    }
    
    /* Hero subtitle mobile - conciso */
    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.55;
        margin-bottom: var(--space-md);
    }
    
    /* Rimuovi badge AI su mobile */
    .hero-badge {
        display: none;
    }
    
    /* ═══════════════════════════════════════════════════════════
       BUTTONS MOBILE - HARMONIOUS WITH PAGE COLORS
       ═══════════════════════════════════════════════════════════ */
    
    .hero-cta {
        flex-direction: column;
        gap: var(--space-md);
        margin-bottom: var(--space-lg);
        width: 100%;
    }
    
    /* Base button styles mobile */
    .btn {
        width: 100%;
        min-height: 52px;
        padding: var(--space-md) var(--space-lg);
        font-size: 1rem;
        font-weight: 600;
        border-radius: var(--radius-lg);
        position: relative;
        overflow: hidden;
        transition: all 0.2s ease;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Primary Button - Gradient verde → blu (come il brand) */
    .btn-primary {
        background: var(--gradient-primary) !important;
        color: var(--text-primary) !important;
        box-shadow: var(--shadow-glow) !important;
    }
    
    .btn-primary:active {
        transform: scale(0.98) !important;
        box-shadow: 0 0 40px rgba(1, 199, 149, 0.5) !important;
    }
    
    .btn-primary svg {
        width: 20px;
        height: 20px;
    }
    
    /* Secondary Button - Glassmorphism sottile */
    .btn-secondary {
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        color: var(--text-primary) !important;
    }
    
    .btn-secondary:active {
        transform: scale(0.98) !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border-color: rgba(255, 255, 255, 0.2) !important;
    }
    
    .btn-secondary svg {
        width: 18px;
        height: 18px;
    }
    
    /* Large Button */
    .btn-large {
        min-height: 56px;
        padding: var(--space-lg) var(--space-xl);
        font-size: 1.05rem;
    }
    
    /* Remove hover on touch */
    .btn:hover {
        transform: none;
    }
    
    .btn:focus {
        outline: none;
    }
    
    .hero-cta .btn {
        justify-content: center;
        gap: var(--space-sm);
    }
    
    /* Trust badges - riga singola scorrevole, nessun taglio */
    .hero-trust-wrapper {
        width: 100%;
        margin-left: 0;
        overflow: visible;
        margin-top: var(--space-lg);
        margin-bottom: var(--space-md);
        padding: 0 var(--space-sm);
    }
    
    .hero-trust.trust-carousel {
        display: flex;
        gap: var(--space-sm);
        overflow-x: auto;
        overflow-y: visible;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: var(--space-xs) 0;
        animation: scrollBadges 12s linear infinite;
        width: max-content;
        min-width: 100%;
    }
    
    @keyframes scrollBadges {
        0%, 100% { transform: translateX(0); }
        50% { transform: translateX(-30%); }
    }
    
    .hero-trust.trust-carousel::-webkit-scrollbar {
        display: none;
    }
    
    .hero-trust.trust-carousel .trust-badge {
        flex: 0 0 auto;
        scroll-snap-align: start;
        white-space: nowrap;
        font-size: 0.85rem;
        padding: var(--space-xs) var(--space-sm);
        background: rgba(1, 199, 149, 0.1);
        border: 1px solid rgba(1, 199, 149, 0.2);
        overflow: visible;
        text-overflow: clip;
    }
    
    .hero-trust.trust-carousel .trust-badge svg {
        width: 14px;
        height: 14px;
        flex-shrink: 0;
    }
    
    /* Phone mockup - design realistico e minimal, solo bordi sottili */
    .phone-mockup {
        transform: scale(0.9);
        transform-origin: top center;
        margin: 0 auto;
    }
    
    .phone-frame {
        width: 300px;
        height: 600px;
        border-radius: 38px;
        border: 0.5px solid rgba(255, 255, 255, 0.1); /* Bordo ultra sottile */
        box-shadow: 
            0 20px 60px rgba(0, 0, 0, 0.5);
        background: #000;
    }
    
    .phone-notch {
        width: 110px;
        height: 28px;
        top: 8px;
        border-radius: 18px;
        background: #000;
        z-index: 10;
    }
    
    .phone-screen {
        border-radius: 34px;
        border: none;
        overflow: hidden;
    }
    
    /* Chat simulation mobile - nome completo visibile, status sotto nome */
    .chat-header {
        padding: var(--space-lg) var(--space-md) var(--space-md) !important; /* Padding-top aumentato per evitare notch */
        gap: var(--space-sm); /* Gap ridotto tra avatar e info */
        min-height: 60px; /* Altezza minima aumentata */
        background: rgba(1, 199, 149, 0.1);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        margin-top: 0;
        align-items: center;
        justify-content: flex-start; /* Allinea a sinistra */
        position: relative;
        z-index: 1; /* Assicura che sia sopra altri elementi */
    }
    
    .chat-avatar {
        width: 36px; /* Leggermente ridotto */
        height: 36px;
        flex-shrink: 0;
        margin-right: 0; /* Rimuove margine extra */
    }
    
    .chat-info {
        display: flex;
        flex-direction: column;
        gap: 1px; /* Gap minimo tra nome e status */
        flex: 1;
        min-width: 0;
        justify-content: center; /* Centra verticalmente il contenuto */
        align-items: flex-start; /* Allinea a sinistra */
    }
    
    .chat-name {
        font-size: 0.9rem; /* Leggermente ridotto per assicurare visibilità */
        font-weight: 600;
        white-space: nowrap;
        overflow: visible !important; /* Nome sempre visibile, non tagliato */
        text-overflow: clip !important; /* Non ellipsis, mostra tutto */
        line-height: 1.3;
        color: var(--text-primary);
        width: auto; /* Larghezza automatica */
        max-width: 100%; /* Non supera il container */
    }
    
    .chat-status {
        font-size: 0.7rem; /* Leggermente ridotto */
        line-height: 1.2;
        color: var(--cashory-green);
        white-space: nowrap;
        margin-top: 0; /* Nessun margine extra */
    }
    
    .chat-messages {
        padding: var(--space-lg) var(--space-md);
        gap: var(--space-md);
        align-items: stretch;
        text-align: left;
    }
    
    .message {
        font-size: 0.85rem;
        padding: var(--space-sm) var(--space-md);
        max-width: 80%;
        line-height: 1.5;
        word-wrap: break-word;
        border-radius: 16px;
    }
    
    .message.bot {
        align-self: flex-start !important;
        margin-right: auto !important;
        margin-left: 0 !important;
        text-align: left !important;
        background: rgba(40, 40, 40, 0.95);
        border-bottom-left-radius: 4px;
    }
    
    .message.user {
        align-self: flex-end !important;
        margin-left: auto !important;
        margin-right: 0 !important;
        text-align: left !important;
        background: var(--cashory-green);
        color: #000;
        border-bottom-right-radius: 4px;
    }
    
    .chat-input-bar {
        padding: var(--space-sm) var(--space-md);
        gap: var(--space-sm);
        min-height: 50px;
    }
    
    .input-field {
        font-size: 0.85rem;
        padding: var(--space-sm) var(--space-md);
        min-height: 36px;
    }
    
    .send-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }
    
    /* General mobile buttons */
    .btn-large {
        padding: var(--space-md) var(--space-lg);
        font-size: 1rem;
        min-height: 52px;
    }
    
    /* Video section */
    .video-section {
        padding: var(--space-2xl) var(--space-md);
    }
    
    .video-container {
        border-radius: var(--radius-lg);
    }
    
    /* Sections padding mobile - via di mezzo tra prima e adesso */
    .section-container {
        padding: 0 var(--space-sm);
    }
    
    .section {
        padding: var(--space-xl) 0; /* Via di mezzo: era xl, poi 2xl, ora xl */
    }
    
    .how-it-works,
    .testimonials,
    .video-section {
        padding: var(--space-xl) var(--space-sm); /* Via di mezzo */
    }
    
    /* Spazio bilanciato tra inizio sezione e titolo */
    .section-header {
        margin-top: var(--space-md); /* Via di mezzo: era 0, poi lg, ora md */
        margin-bottom: var(--space-md); /* Via di mezzo */
    }
    
    /* Features section - spazio bilanciato */
    .features {
        padding: var(--space-xl) var(--space-sm) !important; /* Via di mezzo */
    }
    
    .features .section-header {
        margin-top: var(--space-md);
        margin-bottom: var(--space-md);
    }
    
    /* Testimonials - ridurre spazio sopra, aggiungere sotto */
    .testimonials {
        padding: var(--space-2xl) 0 !important; /* Aumentato padding sopra per distanziare da pricing */
    }
    
    .testimonials .section-header {
        margin-top: var(--space-lg); /* Aumentato spazio sopra il titolo */
        margin-bottom: var(--space-md);
        padding: 0 var(--space-sm);
    }
    
    /* Aggiungere spazio sotto testimonials */
    .testimonials-carousel {
        margin-bottom: var(--space-lg); /* Spazio sotto il carosello */
    }
    
    .section-title {
        font-size: 1.6rem;
        line-height: 1.25;
        margin-bottom: var(--space-sm);
    }
    
    .section-subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .section-badge {
        font-size: 0.75rem;
        padding: 4px var(--space-sm);
        margin-bottom: var(--space-sm);
    }
    
    /* How it works - steps migliorati e ben strutturati */
    .how-it-works {
        padding: var(--space-2xl) var(--space-sm) !important; /* Aumentato padding */
    }
    
    .how-it-works .section-header {
        margin-bottom: var(--space-lg);
    }
    
    .steps-container {
        gap: var(--space-lg);
        align-items: stretch;
    }
    
    .step {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: var(--space-md);
        gap: var(--space-md);
        background: rgba(37, 99, 235, 0.03);
        border: 1px solid rgba(37, 99, 235, 0.1);
        border-radius: var(--radius-lg);
    }
    
    .step-number {
        width: 56px;
        height: 56px;
        font-size: 1.2rem;
        margin: 0 auto;
        flex-shrink: 0;
    }
    
    .step-content {
        flex: 1;
        width: 100%;
    }
    
    .step-content h3 {
        font-size: 1.25rem;
        margin-bottom: var(--space-sm);
        line-height: 1.3;
        font-weight: 700;
    }
    
    .step-content p {
        font-size: 1rem;
        line-height: 1.55;
        color: var(--text-secondary);
    }
    
    .step-visual {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-top: var(--space-sm);
    }
    
    .step-connector {
        height: 24px;
        margin: var(--space-xs) 0;
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .qr-mockup {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
    
    .qr-code {
        width: 100px;
        height: 100px;
        margin: 0 auto var(--space-xs); /* Centrato orizzontalmente */
    }
    
    .qr-label {
        font-size: 0.85rem;
        text-align: center;
    }
    
    .currency-selector,
    .report-preview {
        margin: 0 auto; /* Centra anche gli altri visual */
    }
    
    /* Testimonials mobile - card full width o quasi, più padding interno */
    .testimonials {
        padding: var(--space-2xl) 0 !important; /* Aumentato padding verticale */
    }
    
    .testimonials .section-container {
        padding: 0 var(--space-sm); /* Solo per header */
    }
    
    .testimonials .section-header {
        margin-top: var(--space-lg);
        margin-bottom: var(--space-lg);
        padding: 0 var(--space-sm);
    }
    
    .testimonials-carousel {
        margin: 0;
        padding: 0;
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
    }
    
    .testimonial-track {
        padding-left: var(--space-sm);
        padding-right: var(--space-sm);
    }
    
    .testimonial-card {
        padding: var(--space-lg) var(--space-md) !important; /* Più padding interno */
        min-width: calc(100vw - var(--space-md)); /* Quasi full width, con piccolo margine */
        flex: 0 0 calc(100vw - var(--space-md));
        max-width: calc(100vw - var(--space-md));
        margin: 0 var(--space-xs); /* Piccolo margine laterale */
    }
    
    .testimonial-card p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: var(--space-sm);
    }
    
    .testimonial-author {
        margin-bottom: var(--space-xs);
        gap: var(--space-xs);
    }
    
    .author-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
    
    .author-info .author-name {
        font-size: 0.9rem;
    }
    
    .author-info .author-role {
        font-size: 0.75rem;
    }
    
    .testimonial-rating {
        font-size: 0.85rem;
        letter-spacing: 0.5px;
        margin-top: var(--space-xs);
    }
    
    /* ═══════════════════════════════════════════════════════════
       FEATURE CARDS MOBILE - COLORFUL & VIBRANT
       ═══════════════════════════════════════════════════════════ */
    .features {
        padding: var(--space-xl) var(--space-sm) !important;
    }
    
    .features-grid {
        gap: var(--space-md);
        grid-template-columns: 1fr !important;
    }
    
    .feature-card {
        padding: var(--space-md) !important;
        padding-left: calc(var(--space-md) + 6px) !important;
        display: flex !important;
        flex-direction: column !important;
        gap: var(--space-xs);
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: var(--radius-lg) !important;
        position: relative;
        overflow: hidden;
    }
    
    /* Colored accent line left */
    .feature-card::before {
        content: '' !important;
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        width: 4px !important;
        transform: none !important;
        opacity: 1 !important;
        border-radius: 0 !important;
    }
    
    /* Subtle glow background */
    .feature-card::after {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        opacity: 1 !important;
        pointer-events: none !important;
        z-index: 0 !important;
    }
    
    /* Card 1 - Linguaggio Naturale: Verde/Blu */
    .feature-natural-language {
        background: linear-gradient(135deg, rgba(1, 199, 149, 0.12) 0%, rgba(37, 99, 235, 0.08) 100%) !important;
        box-shadow: 0 4px 20px rgba(1, 199, 149, 0.1) !important;
    }
    .feature-natural-language::before {
        background: linear-gradient(180deg, #01c795, #2563eb) !important;
    }
    
    /* Card 2 - Goals: Verde */
    .feature-goals {
        background: linear-gradient(135deg, rgba(34, 197, 94, 0.12) 0%, rgba(16, 185, 129, 0.08) 100%) !important;
        box-shadow: 0 4px 20px rgba(34, 197, 94, 0.1) !important;
    }
    .feature-goals::before {
        background: linear-gradient(180deg, #22c55e, #10b981) !important;
    }
    
    /* Card 3 - Ricorrenze: Viola/Blu */
    .feature-recurring {
        background: linear-gradient(135deg, rgba(147, 51, 234, 0.12) 0%, rgba(99, 102, 241, 0.08) 100%) !important;
        box-shadow: 0 4px 20px rgba(147, 51, 234, 0.1) !important;
    }
    .feature-recurring::before {
        background: linear-gradient(180deg, #9333ea, #6366f1) !important;
    }
    
    /* Card 4 - Report: Rosa/Arancio */
    .feature-reports {
        background: linear-gradient(135deg, rgba(236, 72, 153, 0.12) 0%, rgba(249, 115, 22, 0.08) 100%) !important;
        box-shadow: 0 4px 20px rgba(236, 72, 153, 0.1) !important;
    }
    .feature-reports::before {
        background: linear-gradient(180deg, #ec4899, #f97316) !important;
    }
    
    /* Card 5 - Export: Giallo/Verde */
    .feature-export {
        background: linear-gradient(135deg, rgba(251, 191, 36, 0.12) 0%, rgba(34, 197, 94, 0.08) 100%) !important;
        box-shadow: 0 4px 20px rgba(251, 191, 36, 0.1) !important;
    }
    .feature-export::before {
        background: linear-gradient(180deg, #fbbf24, #22c55e) !important;
    }
    
    .feature-card h3 {
        font-size: 1.05rem;
        line-height: 1.3;
        color: var(--text-primary);
        font-weight: 600;
        margin: 0;
        padding: 0;
        background: none;
        position: relative;
        z-index: 1;
    }
    
    .feature-card h3::before {
        display: none !important;
    }
    
    .feature-card p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin: 0;
        color: var(--text-secondary);
        padding: 0;
        background: none;
        border-radius: 0;
        position: relative;
        z-index: 1;
    }
    
    /* Feature large stays same layout */
    .feature-large {
        padding: var(--space-md) !important;
        padding-left: calc(var(--space-md) + 6px) !important;
    }
    
    /* Demo area */
    .feature-demo {
        margin-top: var(--space-sm);
        padding: var(--space-sm);
        background: rgba(0, 0, 0, 0.25) !important;
        border-radius: var(--radius-sm) !important;
        border: 1px solid rgba(1, 199, 149, 0.15);
        position: relative;
        z-index: 1;
    }
    
    .demo-input {
        padding: var(--space-xs) var(--space-sm);
        font-size: 0.85rem;
        margin-bottom: var(--space-xs);
        background: rgba(0, 0, 0, 0.3);
        border-radius: var(--radius-sm);
        border: 1px solid rgba(1, 199, 149, 0.2);
    }
    
    .demo-result {
        font-size: 0.85rem;
        color: var(--cashory-green);
    }
    
    /* FORZA visibilità di tutti gli elementi animati su mobile */
    .feature-card,
    .step,
    .testimonial-card,
    .pricing-card-single,
    .section-header,
    .cta-combined,
    .cta-content-combined,
    .features-grid,
    .steps-container {
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
        animation: none !important;
    }
    
    /* Override JS inline styles */
    .feature-card[style],
    .step[style],
    .testimonial-card[style],
    .section-header[style] {
        opacity: 1 !important;
        transform: none !important;
    }
    
    /* Pricing mobile - layout corretto: PREZZO PRIMA, poi bottoni */
    .pricing-cta-combined {
        padding: var(--space-xl) var(--space-sm) var(--space-2xl) !important; /* Aumentato padding-bottom per distanziare da testimonials */
    }
    
    .pricing-cta-combined .section-header {
        margin-top: var(--space-md);
        margin-bottom: var(--space-md);
    }
    
    .cta-combined {
        gap: var(--space-md); /* Ridotto gap generale */
        padding: 0;
        flex-direction: column;
        display: flex !important; /* Forza flex su mobile */
    }
    
    /* ORDINE CORRETTO MOBILE: Titolo → Card → Bottoni */
    .cta-header-above-pricing {
        order: 1 !important; /* TITOLO PRIMA - forzato */
        width: 100%;
        text-align: center;
        display: block !important;
        margin-bottom: var(--space-md) !important; /* Spazio ridotto dopo titolo/sottotitolo */
    }
    
    .cta-header-above-pricing .cta-subtitle-combined {
        margin-bottom: var(--space-md) !important; /* Ridotto spazio dopo sottotitolo */
    }
    
    .pricing-single {
        order: 2 !important; /* CARD DOPO TITOLO - forzato */
        width: 100%;
        display: block !important;
        margin-bottom: var(--space-xl) !important; /* Aumentato spazio dopo card */
    }
    
    .cta-content-combined {
        order: 3 !important; /* BOTTONI DOPO CARD - forzato */
        width: 100%;
        display: flex !important;
        flex-direction: column;
        align-items: center;
    }
    
    .pricing-card-single {
        padding: var(--space-md) var(--space-sm);
        margin: 0;
    }
    
    .pricing-trial-badge {
        font-size: 0.7rem;
        padding: 2px var(--space-xs);
    }
    
    .pricing-header-single {
        margin-bottom: var(--space-sm);
        padding-bottom: var(--space-sm);
    }
    
    .pricing-header-single h3 {
        font-size: 1.35rem;
    }
    
    .price-main .price {
        font-size: 1.75rem;
    }
    
    .price-main .currency,
    .price-main .period {
        font-size: 0.85rem;
    }
    
    .price-annual {
        font-size: 0.8rem;
    }
    
    .annual-price {
        padding: var(--space-xs) var(--space-sm);
        font-size: 0.8rem;
    }
    
    .early-adopter-badge {
        font-size: 0.8rem;
        padding: var(--space-sm);
        flex-direction: column;
        text-align: center;
        gap: var(--space-xs);
        line-height: 1.4;
    }
    
    .early-adopter-badge svg {
        display: none !important; /* Nascondi icona su mobile */
    }
    
    .pricing-features-single {
        gap: 4px;
        margin-bottom: var(--space-sm);
    }
    
    .pricing-features-single li {
        font-size: 0.9rem;
        padding: 6px 0;
    }
    
    .pricing-features-single li svg {
        width: 16px;
        height: 16px;
    }
    
    /* CTA e QR code mobile */
    .cta-title-combined {
        font-size: 1.5rem;
        line-height: 1.25;
        margin-bottom: var(--space-sm);
    }
    
    .cta-subtitle-combined {
        font-size: 1.05rem;
        margin-bottom: var(--space-md);
    }
    
    /* CTA mobile - layout migliorato: bottone centrale, QR code sotto */
    .cta-content-combined {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }
    
    /* ═══════════════════════════════════════════════════════════
       CTA SECTION BUTTONS - HARMONIOUS
       ═══════════════════════════════════════════════════════════ */
    .cta-buttons-combined {
        flex-direction: column;
        gap: var(--space-md);
        margin-bottom: var(--space-lg);
        align-items: center;
        width: 100%;
    }
    
    .cta-buttons-combined .btn {
        font-size: 1rem;
        padding: var(--space-md) var(--space-xl);
        min-height: 54px;
        width: 100%;
        max-width: 100%;
        order: 1;
        justify-content: center;
        border-radius: var(--radius-lg);
        font-weight: 600;
    }
    
    .cta-buttons-combined .btn-primary {
        background: var(--gradient-primary) !important;
        color: var(--text-primary) !important;
        box-shadow: var(--shadow-glow) !important;
    }
    
    /* QR code - minimal design */
    .cta-buttons-combined .qr-code-small {
        width: 120px;
        height: 120px;
        order: 2;
        margin-top: var(--space-sm);
        align-self: center;
        flex-shrink: 0;
        border-radius: var(--radius-lg);
        border: 2px solid var(--cashory-green) !important;
        box-shadow: 0 0 30px rgba(1, 199, 149, 0.2);
        transition: transform 0.2s ease;
    }
    
    .cta-buttons-combined .qr-code-small:active {
        transform: scale(0.95);
    }
    
    .cta-note-combined {
        font-size: 0.85rem;
        margin-top: var(--space-md);
        text-align: center;
    }
    
    .qr-overlay-content {
        padding: var(--space-xl) var(--space-md);
    }
    
    .qr-box-overlay {
        width: 200px;
        height: 200px;
    }
    
    .qr-overlay-header h3 {
        font-size: 1.4rem;
    }
    
    /* Footer mobile - ULTRA COMPATTO 3 colonne */
    .footer {
        padding: var(--space-lg) var(--space-sm) var(--space-md);
    }
    
    .footer-main {
        display: grid;
        grid-template-columns: 1fr;
        gap: var(--space-md);
        padding-bottom: var(--space-md);
    }
    
    .footer-brand {
        text-align: center;
        margin-bottom: 0;
    }
    
    .footer-brand .logo {
        justify-content: center;
        margin-bottom: var(--space-xs);
        font-size: 0.9rem;
    }
    
    .footer-brand .logo img {
        width: 20px;
        height: 20px;
    }
    
    .footer-brand p {
        display: none; /* Hide tagline on mobile */
    }
    
    /* Footer links - 3 colonne affiancate compatte */
    .footer-links {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: var(--space-xs) !important;
        text-align: center;
    }
    
    .footer-column {
        margin-bottom: 0;
    }
    
    .footer-column h4 {
        font-size: 0.8rem;
        margin-bottom: 6px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        font-weight: 600;
    }
    
    .footer-column a {
        font-size: 0.8rem;
        padding: 3px 0;
        display: block;
        line-height: 1.5;
    }
    
    .footer-bottom {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--space-xs);
        padding-top: var(--space-sm);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        text-align: center;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }
    
    .footer-social {
        gap: var(--space-xs);
    }
    
    .footer-social a {
        width: 24px;
        height: 24px;
    }
    
    .footer-social svg {
        width: 12px;
        height: 12px;
    }
}

/* ─────────────────────────────────────────────────────────────
   UTILITY CLASSES
   ───────────────────────────────────────────────────────────── */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Smooth scroll offset for fixed nav */
[id] {
    scroll-margin-top: 100px;
}

/* Selection styling */
::selection {
    background: rgba(1, 199, 149, 0.3);
    color: var(--text-primary);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--cashory-green);
}

/* LEGAL PAGES */
.legal-page {
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
}

.legal-container {
    max-width: 960px;
    margin: 0 auto;
    padding: var(--space-4xl) var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.legal-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.legal-block {
    background: rgba(22, 24, 30, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.legal-block h2 {
    font-size: 1.2rem;
    margin: 0 0 var(--space-sm);
    color: #f5f8ff;
}

.legal-block p,
.legal-block li {
    color: #e8edf5;
    line-height: 1.7;
    font-size: 1rem;
}

.legal-block strong {
    color: #ffffff;
}

.legal-block ul {
    padding-left: var(--space-lg);
    margin: 0;
    display: grid;
    gap: var(--space-xs);
}

.legal-back {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: var(--radius-full);
    color: #f5f8ff;
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(8px);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.legal-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

@media (max-width: 768px) {
    .legal-container {
        padding: var(--space-3xl) var(--space-lg);
    }
    .legal-block {
        padding: var(--space-lg);
    }
    .legal-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .legal-container {
        padding: var(--space-2xl) var(--space-md);
        gap: var(--space-lg);
    }
    .legal-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    .legal-block {
        padding: var(--space-md);
    }
    .legal-block h2 {
        font-size: 1.15rem;
        margin-bottom: var(--space-sm);
    }
    .legal-block p,
    .legal-block li {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    .legal-back {
        font-size: 0.85rem;
        padding: 8px 12px;
        top: 12px;
        left: 12px;
    }
}

