/* ============================================
   ExpenWise Modern UI - Design System
   Version 2.0
   ============================================ */

/* ==================== CSS Variables ==================== */
:root {
    /* Primary Colors - Brand Blue */
    --primary-900: #001a33;
    --primary-800: #003366;
    --primary-700: #004d99;
    --primary-600: #0066cc;
    --primary-500: #0080ff;
    --primary-400: #3399ff;
    --primary-300: #66b3ff;
    --primary-200: #99ccff;
    --primary-100: #cce6ff;
    
    /* Accent Colors - Vibrant Yellow/Gold */
    --accent-600: #E6A400;
    --accent-500: #FFB700;
    --accent-400: #FFC107;
    --accent-300: #FFD54F;
    --accent-200: #FFE082;
    --accent-100: #FFECB3;
    
    /* Neutral Colors */
    --neutral-50: #FAFAFA;
    --neutral-100: #F5F5F5;
    --neutral-200: #EEEEEE;
    --neutral-300: #E0E0E0;
    --neutral-400: #BDBDBD;
    --neutral-500: #9E9E9E;
    --neutral-600: #757575;
    --neutral-700: #616161;
    --neutral-800: #424242;
    --neutral-900: #212121;
    
    /* Success/Growth Colors */
    --success-600: #059669;
    --success-500: #10B981;
    --success-400: #34D399;
    --success-100: #D1FAE5;
    
    /* Warning Colors */
    --warning-500: #F59E0B;
    --warning-100: #FEF3C7;
    
    /* Error Colors */
    --error-500: #EF4444;
    --error-100: #FEE2E2;
    
    /* Info Colors */
    --info-500: #3B82F6;
    --info-100: #DBEAFE;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #003366 0%, #0066cc 100%);
    --gradient-primary-soft: linear-gradient(135deg, rgba(0, 51, 102, 0.9) 0%, rgba(0, 102, 204, 0.9) 100%);
    --gradient-warm: linear-gradient(135deg, #FFB700 0%, #FF6B6B 100%);
    --gradient-success: linear-gradient(135deg, #10B981 0%, #34D399 100%);
    --gradient-glow: radial-gradient(circle at 50% 0%, rgba(255, 183, 0, 0.15) 0%, transparent 60%);
    --gradient-hero-overlay: radial-gradient(ellipse at 20% 30%, rgba(255, 183, 0, 0.1) 0%, transparent 50%),
                             radial-gradient(ellipse at 80% 70%, rgba(0, 102, 204, 0.1) 0%, transparent 50%);
    
    /* 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), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 20px rgba(255, 193, 7, 0.3);
    --shadow-glow-lg: 0 0 40px rgba(255, 193, 7, 0.4);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
}

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

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--primary-800);
    color: var(--neutral-900);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

a {
    text-decoration: none;
    transition: all var(--transition-base);
}

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

/* ==================== Navbar Styles ==================== */
.navbar {
    backdrop-filter: blur(20px);
    background: rgba(0, 51, 102, 0.95) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    transition: all var(--transition-base);
}

.navbar-brand img {
    transition: transform var(--transition-base);
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-item a {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    position: relative;
}

.nav-item a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-400);
    transform: translateX(-50%);
    transition: width var(--transition-base);
}

.nav-item a:hover::before,
.nav-item a.active::before {
    width: 60%;
}

.nav-item a:hover,
.nav-item a.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1);
}

/* ==================== Hero Section ==================== */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: var(--primary-800);
    overflow: hidden;
    padding: var(--spacing-3xl) 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero-overlay);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.6s ease-out;
}

.hero-title {
    color: #fff;
    margin-bottom: var(--spacing-md);
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-400) 0%, var(--accent-200) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-xl);
    animation: fadeInUp 0.6s ease-out 0.6s both;
}

.social-proof {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    animation: fadeInUp 0.6s ease-out 0.8s both;
}

.social-proof .avatars {
    display: flex;
    margin-right: -0.5rem;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-800);
    margin-right: -0.5rem;
    object-fit: cover;
}

/* Hero Image Container */
.hero-image-container {
    position: relative;
    z-index: 2;
    animation: fadeIn 0.8s ease-out 0.4s both;
}

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

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    font-weight: 600;
    font-size: 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: float 4s ease-in-out infinite;
}

.floating-card.card-1 {
    top: 20%;
    right: -10%;
    color: var(--success-600);
    animation-delay: 0s;
}

.floating-card.card-2 {
    bottom: 25%;
    left: -5%;
    color: var(--info-500);
    animation-delay: 1s;
}

.floating-card.card-3 {
    top: 15%;
    right: -10%;
    animation-delay: 1.5s;
}

/* Hero logo watermark */
.hero-logo-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}

/* ==================== Button Styles ==================== */
.btn {
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-warm) !important;
    color: var(--neutral-900) !important;
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow-lg);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent !important;
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-2px);
}

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

.cta-btn {
    background: var(--gradient-warm) !important;
    color: var(--neutral-900) !important;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-lg);
    border: 2px solid transparent !important;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow-lg);
}

/* ==================== Feature Section ==================== */
.features-section {
    padding: var(--spacing-3xl) 0;
    background: var(--neutral-50);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section-header h2 {
    color: var(--primary-800);
    margin-bottom: var(--spacing-sm);
}

.section-header p {
    color: var(--neutral-600);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.feature-card {
    background: #fff;
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid var(--neutral-200);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--accent-300);
}

.feature-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-gradient {
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    opacity: 0.1;
    transition: all var(--transition-base);
}

.feature-card:hover .icon-gradient {
    opacity: 0.2;
    transform: scale(1.1);
}

.feature-icon-wrapper i {
    font-size: 2.5rem;
    color: var(--primary-700);
    z-index: 1;
    animation: float 3s ease-in-out infinite;
}

.feature-card h4 {
    color: var(--primary-800);
    margin-bottom: var(--spacing-sm);
}

.feature-card p {
    color: var(--neutral-600);
    flex: 1;
    margin-bottom: var(--spacing-md);
}

.feature-link {
    color: var(--primary-600);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-base);
}

.feature-link:hover {
    color: var(--primary-700);
    gap: 0.75rem;
}

/* ==================== How It Works Section ==================== */
.how-it-works-section {
    padding: var(--spacing-3xl) 0;
    background: var(--primary-800);
    color: #fff;
}

.how-it-works-section .section-header h2,
.how-it-works-section .section-header p {
    color: #fff;
}

.step-card {
    text-align: center;
    padding: var(--spacing-xl);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-base);
    height: 100%;
}

.step-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.step-number {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-md);
    background: var(--gradient-warm);
    color: var(--neutral-900);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    box-shadow: var(--shadow-glow);
}

.step-image {
    width: 150px;
    height: 150px;
    margin: 0 auto var(--spacing-md);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.step-card h4 {
    margin-bottom: var(--spacing-sm);
}

.step-card p {
    color: rgba(255, 255, 255, 0.8);
}

/* ==================== Pricing Section ==================== */
.pricing-section {
    padding: var(--spacing-3xl) 0;
    background: var(--primary-800);
    color: #fff;
}

.pricing-section .section-header h2,
.pricing-section .section-header p {
    color: #fff;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.pricing-card:hover::before {
    transform: scaleX(1);
}

.pricing-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-2xl);
}

.pricing-card.featured {
    border: 2px solid var(--accent-400);
}

.pricing-card.featured::before {
    transform: scaleX(1);
    background: var(--gradient-warm);
}

.popular-badge {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: var(--gradient-warm);
    color: var(--neutral-900);
    padding: 0.375rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.pricing-header h3 {
    color: var(--primary-800);
    margin-bottom: var(--spacing-xs);
}

.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-800);
    margin-bottom: var(--spacing-xs);
}

.pricing-price span {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--neutral-600);
}

.pricing-description {
    color: var(--neutral-600);
    margin-bottom: var(--spacing-lg);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin-bottom: var(--spacing-lg);
    flex: 1;
}

.pricing-features li {
    padding: 0.75rem 0;
    color: var(--neutral-700);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--neutral-200);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li i {
    color: var(--success-500);
    font-size: 1.25rem;
}

/* Pricing Table */
.pricing-table {
    margin-top: var(--spacing-3xl);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.table {
    background: transparent;
    color: #fff;
    margin-bottom: 0;
}

.table thead th {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    font-weight: 700;
    padding: 1rem;
}

.table tbody td {
    border-color: rgba(255, 255, 255, 0.1);
    padding: 1rem;
}

/* ==================== Blog Section ==================== */
.blog-section {
    padding: var(--spacing-3xl) 0;
    background: var(--neutral-100);
}

.blog-card {
    background: #fff;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--neutral-200);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.blog-card-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.blog-card:hover .blog-card-img {
    transform: scale(1.05);
}

.blog-card-body {
    padding: var(--spacing-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-title {
    color: var(--primary-800);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.blog-card-text {
    color: var(--neutral-600);
    flex: 1;
    margin-bottom: var(--spacing-md);
}

/* ==================== Footer ==================== */
.footer {
    background: var(--neutral-800);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-base);
}

.footer a:hover {
    color: var(--accent-400);
}

.footer-brand {
    margin-bottom: var(--spacing-md);
}

.footer-brand h4 {
    color: #fff;
}

.footer-links h5 {
    color: #fff;
    margin-bottom: var(--spacing-md);
    font-size: 1rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-md);
    text-align: center;
    font-size: 0.875rem;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ==================== Utility Classes ==================== */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ==================== Responsive Design ==================== */
@media (max-width: 991px) {
    .hero-section {
        min-height: auto;
        padding: var(--spacing-xl) 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn-lg {
        width: 100%;
        justify-content: center;
    }
    
    .floating-card {
        display: none;
    }
    
    .hero-image-container {
        margin-top: var(--spacing-xl);
    }
}

@media (max-width: 767px) {
    :root {
        --spacing-3xl: 3rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .feature-card,
    .step-card,
    .pricing-card {
        margin-bottom: var(--spacing-md);
    }
}

/* ==================== Dark Mode Support (Future) ==================== */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles here if needed */
}

/* ==================== Print Styles ==================== */
@media print {
    .navbar,
    .footer,
    .cta-buttons {
        display: none;
    }
}

