:root {
    --primary: #4F46E5;
    --secondary: #DB2777;
    --accent: #00f0ff;
    --background: #0b1326;
    --on-surface: #ffffff;
    --surface-low: rgba(255, 255, 255, 0.03);
    --glass: rgba(255, 255, 255, 0.05);
    --ghost-border: rgba(255, 255, 255, 0.08);
    --active-gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --font-display: 'Manrope', sans-serif;
    --font-body: 'Inter', sans-serif;
    --glass-shadow: none;
}

body.light-mode {
    --background: #f8fafc;
    --on-surface: #1e293b;
    --surface-low: rgba(0, 0, 0, 0.03);
    --glass: rgba(255, 255, 255, 0.6);
    --ghost-border: rgba(0, 0, 0, 0.05);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
}

body {
    background-color: var(--background);
    color: var(--on-surface);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* Background Glows */
.glow-bg {
    position: fixed; top: -100px; right: -50px; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.2) 0%, transparent 70%);
    filter: blur(100px); z-index: -1;
}

body.light-mode .glow-bg {
    background: radial-gradient(circle, rgba(79, 70, 229, 0.08) 0%, transparent 70%);
}

.pink-glow {
    top: auto; bottom: -100px; left: -50px;
    background: radial-gradient(circle, rgba(219, 39, 119, 0.2) 0%, transparent 70%);
}

body.light-mode .pink-glow {
    background: radial-gradient(circle, rgba(219, 39, 119, 0.08) 0%, transparent 70%);
}

/* Glass UI Elements */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--ghost-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
}

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

/* Nav */
.glass-nav {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    width: calc(100% - 40px); max-width: 1200px;
    height: 80px; z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--ghost-border);
    border-radius: 99px;
    display: flex; align-items: center;
    box-shadow: var(--glass-shadow);
}

.nav-content { display: flex; justify-content: space-between; align-items: center; width: 100%; }

.logo { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.05rem; }
.logo span { color: var(--secondary); margin-left: 2px; }

.footer {
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
    background: rgba(10, 11, 30, 0.3);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.footer-brand .logo {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.9rem;
    opacity: 0.5;
    max-width: 300px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

.footer-links a {
    text-decoration: none;
    color: var(--on-surface);
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--secondary);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .footer-links {
        justify-content: center;
        gap: 20px;
    }
}

.nav-links { display: flex; list-style: none; gap: 24px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--on-surface); opacity: 0.7; transition: 0.3; font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { opacity: 1; }

.theme-btn { cursor: pointer; font-size: 1.2rem; }

/* Buttons */
.btn {
    padding: 14px 28px; border-radius: 99px; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; border: none; transition: 0.3s;
}

.btn-primary { background: var(--active-gradient); color: white; box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(79, 70, 229, 0.5); }

.btn-secondary { background: var(--glass); border: 1px solid var(--ghost-border); color: var(--on-surface); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.3); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; min-height: 90vh; align-items: center; padding-top: 140px; margin-bottom: 120px; }
.hero-content h1 { 
    font-family: var(--font-display); 
    font-size: 4.5rem; 
    font-weight: 800; 
    line-height: 1.25; /* Increased to prevent clipping */
    margin-bottom: 24px; 
    letter-spacing: -0.15rem; 
    padding-bottom: 10px; /* Space for descenders like 'g' */
}
.hero-content .subtitle { font-size: 1.15rem; opacity: 0.6; margin-bottom: 40px; }
.cta-group { display: flex; gap: 20px; }

.store-btn { display: flex; align-items: center; gap: 15px; padding: 12px 24px; text-align: left; }
.btn-icon { font-size: 1.5rem; opacity: 0.9; }
.store-btn .small { display: block; font-size: 0.65rem; opacity: 0.5; text-transform: uppercase; letter-spacing: 0.1rem; }
.store-btn .big { font-size: 1.1rem; font-weight: 700; }

.hero-mockup-container { position: relative; }
.main-mockup { width: 340px; height: 600px; padding: 30px; border-radius: 40px; margin: 0 auto; box-shadow: 0 40px 100px rgba(0,0,0,0.5); }
body.light-mode .main-mockup { box-shadow: 0 40px 100px rgba(0,0,0,0.1); }

.mini-card { position: absolute; padding: 16px 20px; border-radius: 20px; font-weight: 600; display: flex; align-items: center; gap: 12px; z-index: 2; animation: float 6s ease-in-out infinite; }
.budget-view { top: 20%; left: -40px; animation-delay: 0s; }
.insight-view { bottom: 15%; right: -20px; animation-delay: 3s; }

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

/* Hero Card Sub-elements */
.highlight { font-family: var(--font-display); font-size: 2rem; font-weight: 800; margin-top: 10px; color: var(--accent); }
body.light-mode .highlight { color: var(--primary); }
.spending-chart { display: flex; height: 80px; align-items: flex-end; gap: 12px; margin: 40px 0; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; }
.chart-bar { flex: 1; background: rgba(255,255,255,0.05); border-radius: 4px; transition: 0.5s; }
.chart-bar.active { background: var(--active-gradient); box-shadow: 0 0 15px rgba(79, 70, 229, 0.4); }

/* About Section */
.about-section { margin-bottom: 120px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.section-title.left { text-align: left; }
.about-text p { margin-bottom: 20px; font-size: 1.1rem; opacity: 0.7; }
.about-visual { padding: 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), transparent); }
.stat-box { display: flex; flex-direction: column; }
.stat-box .big { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; color: var(--accent); }
body.light-mode .stat-box .big { color: var(--primary); }
.stat-box .small { opacity: 0.5; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05rem; }

/* Features */
.section-title { font-family: var(--font-display); font-size: 3rem; font-weight: 800; text-align: center; margin-bottom: 60px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 120px; }
.feature-card { padding: 40px; border-radius: 32px; transition: 0.3s; }
.feature-card:hover { transform: translateY(-10px); background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.3); }
body.light-mode .feature-card:hover { background: white; }
.feature-icon { font-size: 2.5rem; margin-bottom: 24px; display: block; }

/* Showcase Grid */
.showcase { padding-bottom: 120px; }
.showcase-content { text-align: center; margin-bottom: 60px; }
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.screen-box {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 600px;
    background: var(--glass);
    border: 1px solid var(--ghost-border);
    border-radius: 32px;
    box-shadow: var(--glass-shadow);
}

.screen-label {
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.screen-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.6s cubic-bezier(0.2, 0, 0.2, 1);
}

.screen-box:hover .screen-img {
    transform: scale(1.05);
}

@media (max-width: 992px) {
    .showcase-grid { grid-template-columns: 1fr; }
    .screen-box { height: 500px; }
}

/* Download Section */
.download-hero { padding-bottom: 120px; }
.download-card { display: flex; justify-content: space-between; align-items: center; padding: 80px; border-radius: 48px; background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(219, 39, 119, 0.1)); }
body.light-mode .download-card { background: white; }
.download-text h2 { font-family: var(--font-display); font-size: 3.5rem; font-weight: 800; margin-bottom: 20px; }
.download-text p { font-size: 1.2rem; opacity: 0.6; margin-bottom: 40px; max-width: 500px; }

.qr-box { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.qr-placeholder { width: 180px; height: 180px; background: white; border-radius: 20px; display: flex; align-items: center; justify-content: center; position: relative; border: 1px solid rgba(0,0,0,0.05); }
.qr-dot { width: 40px; height: 40px; background: #0b1326; border-radius: 4px; position: absolute; }
.qr-dot:nth-child(1) { top: 20px; left: 20px; }
.qr-dot:nth-child(2) { bottom: 20px; right: 20px; }
.qr-box span { font-weight: 800; font-size: 0.8rem; letter-spacing: 0.1rem; opacity: 0.7; }

/* Mobile Bottom Navigation Styles */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 500px;
    height: 70px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--ghost-border);
    border-radius: 99px;
    z-index: 1001;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    padding: 0 15px;
}

body.light-mode .mobile-bottom-nav {
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--on-surface);
    opacity: 0.6;
    transition: 0.3s;
    cursor: pointer;
}

.nav-item:hover, .nav-item.active {
    opacity: 1;
    transform: translateY(-2px);
}

.nav-item .icon { font-size: 1.4rem; }
.nav-item .label { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

/* Responsive Enhancements */
@media (max-width: 1024px) {
    .container { padding: 0 30px; }
    .hero { grid-template-columns: 1fr; text-align: center; padding-top: 160px; gap: 40px; margin-bottom: 80px; }
    .hero-content h1 { font-size: 3.5rem; }
    .cta-group { justify-content: center; transform: scale(0.9); }
    .about-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .section-title.left { text-align: center; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .download-card { flex-direction: column; text-align: center; gap: 50px; padding: 60px 30px; }
}

@media (max-width: 768px) {
    body { padding-bottom: 110px; } /* Space for bottom nav */
    .glass-nav { 
        height: 50px; 
        top: 10px; 
        width: calc(100% - 30px); 
        padding: 0 15px; 
        display: flex;
        justify-content: center;
    }
    .nav-links { display: none; } /* Hide links, but keep the logo in nav-content */
    .nav-content { justify-content: center; width: 100%; }
    .logo { font-size: 1.1rem; } 
    
    .mobile-bottom-nav { display: flex; } /* Show bottom nav on mobile */
    
    .hero { 
        padding-top: 160px; /* Big space to fix overlap completely */
        margin-bottom: 60px; 
        min-height: auto; 
    } 
    .hero-content .badge { margin-top: 20px; }
    .hero-content h1 { font-size: 2.8rem; letter-spacing: -0.1rem; margin-top: 25px; }
    .section-title { font-size: 2.2rem; }
    .about-visual { padding: 30px; gap: 20px; }
    .stat-box .big { font-size: 2rem; }
    
    .showcase-grid { gap: 40px; margin-bottom: 60px; }
    .screen-box { height: auto; min-height: 400px; padding-bottom: 20px; }
    .screen-img { height: auto; max-height: 450px; }
}

@media (max-width: 480px) {
    .container { padding: 0 20px; }
    .hero-content h1 { font-size: 2.4rem; }
    .hero-content .subtitle { font-size: 1rem; }
    .cta-group { flex-direction: column; width: 100%; align-items: center; }
    .store-btn { width: 100%; justify-content: center; }
    .feature-grid { grid-template-columns: 1fr; }
    .main-mockup { width: 100%; max-width: 280px; height: 500px; }
    .download-text h2 { font-size: 2.2rem; }
    .qr-placeholder { width: 160px; height: 160px; }
    .section-title { font-size: 1.8rem; }
}
