/* ============================================
   NovaBank Design System - nova-theme.css
   Based on nova-bank-spark (Lovable)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&amp;family=Inter:wght@300;400;500;600;700&amp;display=swap');

/* ---- CSS Custom Properties ---- */
:root {
    /* Brand Colors */
    --nova-primary: #3B82F6;
    --nova-primary-dark: #2563EB;
    --nova-gradient-end: #7C3AED;
    --nova-accent: #FF6B6B;
    --nova-accent-dark: #FF4C4C;

    /* Neutrals */
    --nova-bg: #F7F8FA;
    --nova-fg: #0E1320;
    --nova-card: #FFFFFF;
    --nova-muted: #6B7B94;
    --nova-border: #E5E7EB;
    --nova-secondary-bg: rgba(241, 243, 245, 0.3);

    /* Gradients */
    --nova-gradient: linear-gradient(135deg, #3B82F6, #7C3AED);
    --nova-gradient-hero: linear-gradient(135deg, #3B82F6 0%, #7C3AED 100%);
    --nova-gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));

    /* Shadows */
    --nova-shadow-card: 0 4px 20px 0 rgba(0, 0, 0, 0.05);
    --nova-shadow-hover: 0 8px 40px 0 rgba(59, 130, 246, 0.15);
    --nova-shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.08);
    --nova-shadow-glow: 0 0 40px rgba(59, 130, 246, 0.1);

    /* Radius */
    --nova-radius: 0.75rem;
    --nova-radius-lg: 1rem;
    --nova-radius-xl: 1.25rem;
    --nova-radius-2xl: 1rem;
    --nova-radius-full: 9999px;

    /* Fonts */
    --nova-font-heading: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
    --nova-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ---- Reset & Base ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--nova-font-body);
    background: var(--nova-bg);
    color: var(--nova-fg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--nova-font-heading);
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* ---- Animations ---- */
@keyframes novaFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes novaPulseSoft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes novaFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

@keyframes novaFadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in { animation: novaFadeIn 0.6s ease-out both; }
.animate-slide-up { animation: novaSlideUp 0.6s ease-out both; }
.animate-pulse-soft { animation: novaPulseSoft 2s ease-in-out infinite; }
.animate-float { animation: novaFloat 6s ease-in-out infinite; }

/* ---- Utility Classes ---- */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--nova-shadow-glass);
}

.glass-dark {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--nova-shadow-glass);
}

.card-premium {
    background: var(--nova-card);
    border: 1px solid rgba(229, 231, 235, 0.5);
    border-radius: var(--nova-radius-xl);
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--nova-shadow-card);
}

.card-premium:hover {
    transform: translateY(-4px);
    box-shadow: var(--nova-shadow-hover);
}

.bg-gradient-primary {
    background: var(--nova-gradient);
}

.text-gradient {
    background: var(--nova-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glow {
    box-shadow: var(--nova-shadow-glow);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
    .container { padding: 0 2rem; }
}

/* ---- Buttons ---- */
.nova-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--nova-gradient);
    color: white;
    font-family: var(--nova-font-body);
    font-weight: 500;
    font-size: 0.9375rem;
    border: none;
    border-radius: var(--nova-radius-2xl);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.nova-btn-primary:hover {
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.nova-btn-primary:active {
    transform: translateY(0);
}

.nova-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--nova-primary);
    font-family: var(--nova-font-body);
    font-weight: 500;
    font-size: 0.9375rem;
    border: 2px solid var(--nova-primary);
    border-radius: var(--nova-radius-2xl);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.nova-btn-secondary:hover {
    background: var(--nova-primary);
    color: white;
}

.nova-btn-accent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--nova-accent);
    color: white;
    font-family: var(--nova-font-body);
    font-weight: 500;
    font-size: 0.9375rem;
    border: none;
    border-radius: var(--nova-radius-2xl);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nova-btn-accent:hover {
    background: var(--nova-accent-dark);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
    transform: translateY(-2px);
}

.nova-btn-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    color: var(--nova-primary);
    font-family: var(--nova-font-body);
    font-weight: 600;
    font-size: 0.9375rem;
    border: none;
    border-radius: var(--nova-radius-2xl);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nova-btn-white:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.nova-btn-glass {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-family: var(--nova-font-body);
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: var(--nova-radius-2xl);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nova-btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
}

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

/* ---- Header Public ---- */
.nova-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.3);
    transition: all 0.3s ease;
}

.nova-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

@media (min-width: 640px) {
    .nova-header-inner { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
    .nova-header-inner { padding: 0 2rem; }
}

.nova-logo {
    font-family: var(--nova-font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--nova-fg);
}

.nova-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nova-nav a {
    color: var(--nova-fg);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.2s;
}

.nova-nav a:hover {
    color: var(--nova-primary);
}

.nova-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ---- Language Selector ---- */
.nova-lang-selector {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--nova-muted);
    font-size: 0.875rem;
}

.nova-lang-selector .globe-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.nova-lang-selector select {
    background: transparent;
    border: none;
    color: var(--nova-fg);
    font-family: var(--nova-font-body);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0.25rem 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 1rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7B94' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
}

.nova-lang-selector select:focus {
    outline: none;
}

.nova-lang-selector-light {
    color: rgba(255, 255, 255, 0.7);
}

.nova-lang-selector-light select {
    color: white;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.7)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

/* ---- Mobile Menu ---- */
.nova-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nova-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--nova-fg);
    transition: all 0.3s;
    border-radius: 2px;
}

.nova-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nova-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nova-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nova-mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--nova-border);
    z-index: 49;
    animation: novaFadeInDown 0.3s ease;
}

.nova-mobile-menu.active {
    display: block;
}

.nova-mobile-menu-content {
    padding: 1rem;
}

.nova-mobile-menu a {
    display: block;
    padding: 0.875rem 1rem;
    color: var(--nova-fg);
    font-weight: 500;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    transition: color 0.2s;
}

.nova-mobile-menu a:hover {
    color: var(--nova-primary);
}

.nova-mobile-menu-buttons {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.nova-mobile-menu-buttons .nova-btn-primary,
.nova-mobile-menu-buttons .nova-btn-secondary {
    width: 100%;
    text-align: center;
}

/* ---- Footer ---- */
.nova-footer {
    background: var(--nova-secondary-bg);
    padding: 3rem 0;
}

.nova-footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .nova-footer-inner { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
    .nova-footer-inner { padding: 0 2rem; }
}

.nova-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.nova-footer-brand h3 {
    font-family: var(--nova-font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--nova-fg);
    margin-bottom: 1rem;
}

.nova-footer-brand p {
    color: var(--nova-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 400px;
}

.nova-footer-col h4 {
    font-family: var(--nova-font-heading);
    font-weight: 600;
    color: var(--nova-fg);
    margin-bottom: 1rem;
}

.nova-footer-col ul {
    list-style: none;
}

.nova-footer-col ul li {
    margin-bottom: 0.75rem;
}

.nova-footer-col a {
    color: var(--nova-muted);
    transition: color 0.2s;
}

.nova-footer-col a:hover {
    color: var(--nova-primary);
}

.nova-footer-bottom {
    border-top: 1px solid rgba(229, 231, 235, 0.5);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nova-footer-bottom p {
    color: var(--nova-muted);
    font-size: 0.875rem;
}

.nova-footer-legal {
    display: flex;
    gap: 1.5rem;
}

.nova-footer-legal a {
    color: var(--nova-muted);
    font-size: 0.875rem;
    transition: color 0.2s;
}

.nova-footer-legal a:hover {
    color: var(--nova-primary);
}

/* ---- Cookie Banner ---- */
.nova-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    padding: 1rem;
    display: none;
    animation: novaSlideUpBanner 0.5s ease-out;
}

.nova-cookie-banner.show {
    display: block;
}

.nova-cookie-inner {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--nova-radius-2xl);
    padding: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.12);
}

.nova-cookie-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.nova-cookie-text h3 {
    font-family: var(--nova-font-heading);
    font-weight: 600;
    color: var(--nova-fg);
    margin-bottom: 0.5rem;
}

.nova-cookie-text p {
    font-size: 0.875rem;
    color: var(--nova-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.nova-cookie-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.nova-cookie-close {
    background: none;
    border: none;
    color: var(--nova-muted);
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s;
    flex-shrink: 0;
}

.nova-cookie-close:hover {
    color: var(--nova-fg);
}

/* ---- Section Styles ---- */
.nova-section {
    padding: 4rem 0;
}

.nova-section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--nova-fg);
    text-align: center;
    margin-bottom: 1rem;
}

.nova-section-subtitle {
    font-size: 1.125rem;
    color: var(--nova-muted);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* ---- Icon Backgrounds ---- */
.nova-icon-bg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--nova-radius-2xl);
    transition: background 0.2s;
}

.nova-icon-bg-primary {
    background: rgba(59, 130, 246, 0.1);
    color: var(--nova-primary);
}

.nova-icon-bg-accent {
    background: rgba(255, 107, 107, 0.1);
    color: var(--nova-accent);
}

/* ---- Form Inputs ---- */
.nova-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--nova-card);
    border: 1px solid var(--nova-border);
    border-radius: var(--nova-radius);
    font-family: var(--nova-font-body);
    font-size: 0.9375rem;
    color: var(--nova-fg);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.nova-input:focus {
    outline: none;
    border-color: var(--nova-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.nova-input::placeholder {
    color: var(--nova-muted);
}

.nova-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--nova-fg);
    margin-bottom: 0.375rem;
}

.nova-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--nova-card);
    border: 1px solid var(--nova-border);
    border-radius: var(--nova-radius);
    font-family: var(--nova-font-body);
    font-size: 0.9375rem;
    color: var(--nova-fg);
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: vertical;
    min-height: 100px;
}

.nova-textarea:focus {
    outline: none;
    border-color: var(--nova-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* ---- Badge ---- */
.nova-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    background: rgba(255, 107, 107, 0.1);
    color: var(--nova-accent);
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: var(--nova-radius-full);
}

.nova-badge-primary {
    background: rgba(59, 130, 246, 0.1);
    color: var(--nova-primary);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .nova-nav { display: none; }
    .nova-header-actions .nova-btn-primary,
    .nova-header-actions .nova-btn-secondary { display: none; }
    .nova-menu-toggle { display: flex; }

    .nova-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .nova-footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .nova-footer-grid {
        grid-template-columns: 1fr;
    }

    .nova-footer-brand {
        grid-column: span 1;
    }

    .nova-footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .nova-footer-legal {
        flex-direction: column;
        gap: 0.5rem;
    }

    .nova-cookie-inner {
        margin: 0 0.5rem;
    }

    .nova-cookie-actions {
        flex-direction: column;
    }

    .nova-cookie-actions .nova-btn-primary,
    .nova-cookie-actions .nova-btn-secondary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .nova-header-inner {
        height: 56px;
        padding: 0 0.75rem;
    }

    .nova-logo {
        font-size: 1.25rem;
    }
}
