/* CityWallet Marketing Site - Modern CSS */

/* === CSS Variables === */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #64748b;
    --success-color: #059669;
    --warning-color: #d97706;
    --danger-color: #dc2626;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-size-base: 1rem;
    --line-height-base: 1.6;

    /* Spacing */
    --section-padding: 5rem 0;
    --container-padding: 1.5rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

/* === Base Styles === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--gray-800);
    background-color: var(--white);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.display-3 { font-size: clamp(2.5rem, 5vw, 4rem); }
.display-5 { font-size: clamp(2rem, 4vw, 3rem); }
.display-6 { font-size: clamp(1.75rem, 3vw, 2.5rem); }

p {
    margin-bottom: 1rem;
    color: var(--gray-600);
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
}

/* === Navigation === */
#mainNav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

#mainNav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--gray-700) !important;
    padding: 0.75rem 1rem !important;
    transition: color var(--transition-fast);
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all var(--transition-fast);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

/* === Buttons === */
.btn {
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    border: none;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-secondary {
    background: transparent;
    color: var(--gray-600);
    border: 2px solid var(--gray-300);
}

.btn-outline-secondary:hover {
    background: var(--gray-100);
    color: var(--gray-800);
    border-color: var(--gray-400);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-app-launch, .btn-app-main {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-app-launch:hover, .btn-app-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

/* === Hero Section === */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(37, 99, 235, 0.1) 0%,
        rgba(59, 130, 246, 0.05) 50%,
        transparent 100%);
    z-index: -1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero-background::after {
    content: '';
    position: absolute;
    bottom: 20%;
    right: 20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

.hero-content {
    padding-right: 2rem;
}

.hero-title {
    background: linear-gradient(135deg, var(--gray-900), var(--gray-700));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

.hero-title .text-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-actions {
    margin-bottom: 3rem;
}

.hero-stats {
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.stat-item h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat-item small {
    font-size: 0.875rem;
    color: var(--gray-500);
    font-weight: 500;
}

.hero-mockup {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
    animation: float 6s ease-in-out infinite;
}

/* === Feature Cards === */
.feature-card {
    background: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: all var(--transition-normal);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.feature-card h4 {
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* === Business Section === */
.business-image img {
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
}

.business-content h2 {
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.business-content .text-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem 0;
    font-size: 1rem;
    color: var(--gray-700);
}

.benefit-item i {
    margin-top: 0.125rem;
    font-size: 1.25rem;
}

/* === Security Section === */
.security-feature {
    padding: 2rem 1rem;
}

.security-icon i {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.security-feature h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.security-feature p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

/* === Footer === */
footer {
    background: var(--gray-900) !important;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.social-links a {
    transition: color var(--transition-fast);
}

.social-links a:hover {
    color: var(--primary-color) !important;
}

footer h5 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 1rem;
}

footer a {
    color: rgba(255, 255, 255, 0.7) !important;
    transition: color var(--transition-fast);
    font-size: 0.9rem;
    line-height: 2;
}

footer a:hover {
    color: var(--primary-color) !important;
}

/* === Modal === */
.modal-content {
    border: none;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    padding: 2rem 2rem 0;
}

.modal-body {
    padding: 1rem 2rem 2rem;
}

/* === Animations === */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Responsive Design === */
@media (max-width: 992px) {
    /* Fixed navbar padding for mobile */
    body {
        padding-top: 70px;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 3rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .feature-card {
        margin-bottom: 2rem;
    }

    .business-content {
        padding-left: 0 !important;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
        text-align: center;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-actions .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }

    .hero-stats .col-4 {
        margin-bottom: 1.5rem;
    }

    .stat-item h3 {
        font-size: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .business-actions .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    :root {
        --container-padding: 1rem;
    }

    .btn-lg {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .display-5 {
        font-size: 1.75rem;
    }

    .feature-card {
        padding: 1.25rem;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }
}

/* === Hero Title Dark Theme Fix === */
/* Questi stili devono essere alla fine per avere precedenza */
[data-theme="dark"] .hero-title .hero-text-white {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
}

[data-theme="dark"] .hero-title .text-gradient {
    background: linear-gradient(135deg, #60a5fa 0%, #818cf8 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}