:root {
    --bg-dark: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --bg-card-border: rgba(255, 255, 255, 0.08);
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --primary-glow: rgba(59, 130, 246, 0.35);
    --accent: #10b981;
    --expense-color: #ef4444;
    --income-color: #10b981;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-family);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Glow Effects */
.glow-bg {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
}
.glow-1 {
    width: 450px;
    height: 450px;
    background: rgba(59, 130, 246, 0.2);
    top: -100px;
    left: -100px;
}
.glow-2 {
    width: 400px;
    height: 400px;
    background: rgba(16, 185, 129, 0.15);
    top: 400px;
    right: -100px;
}

/* Typography & General */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
}
p {
    color: var(--text-muted);
}
a {
    text-decoration: none;
    color: inherit;
}
.text-center { text-align: center; }
.text-income { color: var(--income-color) !important; font-weight: 700; }
.text-expense { color: var(--expense-color) !important; font-weight: 700; }
.text-balance { color: var(--primary) !important; font-weight: 700; }
.text-success { color: var(--accent); }
.mt-1 { margin-top: 6px; }
.mt-2 { margin-top: 12px; }

/* Gradient & Glass Effect */
.gradient-text {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}
.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px var(--primary-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--bg-card-border);
    color: var(--text-main);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: var(--radius-md);
}
.btn-block {
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    z-index: 1000;
    transition: var(--transition);
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--bg-card-border);
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}
.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
}
.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
}
.highlight {
    color: var(--primary);
}
.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}
.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}
.nav-links a:hover {
    color: #ffffff;
}

/* Hero Section */
.hero-section {
    padding: 160px 24px 80px;
    max-width: 1200px;
    margin: 0 auto;
}
.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 30px;
    color: #60a5fa;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}
.hero-content h1 {
    font-size: 52px;
    margin-bottom: 20px;
    letter-spacing: -1px;
}
.hero-content p {
    font-size: 18px;
    margin-bottom: 36px;
    max-width: 520px;
}
.hero-cta-group {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}
.stats-row {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--bg-card-border);
}
.stat-item {
    display: flex;
    flex-direction: column;
}
.stat-value {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
}
.stat-label {
    font-size: 13px;
    color: var(--text-muted);
}
.stat-divider {
    width: 1px;
    height: 36px;
    background: var(--bg-card-border);
}

/* App Showcase Phone Frame */
.hero-visual {
    display: flex;
    justify-content: center;
}
.phone-frame {
    width: 380px;
    padding: 16px;
    border-radius: 40px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}
.phone-screen {
    background: #090d16;
    border-radius: 28px;
    padding: 20px;
}
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.app-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.app-header h2 {
    font-size: 18px;
}
.pro-badge {
    padding: 4px 10px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
}
.app-card {
    padding: 16px;
    border-radius: 16px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 16px;
}
.main-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.9) 100%);
}
.card-label {
    font-size: 12px;
    color: var(--text-muted);
}
.card-amount {
    font-size: 30px;
    font-weight: 800;
    color: #ffffff;
    margin: 6px 0 14px;
}
.progress-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}
.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    border-radius: 4px;
    transition: width 0.4s ease;
}
.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}
.badge-success {
    color: var(--accent);
    font-weight: 700;
}
.app-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}
.sub-card {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.income-bg { background: rgba(16, 185, 129, 0.08); border-color: rgba(16, 185, 129, 0.2); }
.expense-bg { background: rgba(239, 68, 68, 0.08); border-color: rgba(239, 68, 68, 0.2); }
.sub-label { font-size: 11px; color: var(--text-muted); }
.sub-amount { font-size: 16px; font-weight: 700; }
.recent-header {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}
.link-sm { color: var(--primary); font-size: 12px; }
.app-list { display: flex; flex-direction: column; gap: 10px; }
.list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}
.item-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.cat-tech { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.cat-salary { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.cat-food { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.item-details { flex: 1; }
.item-details h4 { font-size: 13px; font-weight: 600; }
.item-time { font-size: 11px; color: var(--text-muted); }
.item-price { font-size: 13px; }

/* Features Section */
.features-section, .demo-section, .pricing-section, .download-section {
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
}
.section-tag {
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: block;
}
.section-header h2 {
    font-size: 38px;
    margin-bottom: 16px;
}
.section-header p {
    font-size: 17px;
    max-width: 600px;
    margin: 0 auto 50px;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.feature-card {
    padding: 32px;
    transition: var(--transition);
}
.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(59, 130, 246, 0.4);
}
.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}
.icon-blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.icon-rose { background: rgba(244, 63, 94, 0.15); color: #fb7185; }
.icon-emerald { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.icon-amber { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.icon-purple { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.icon-cyan { background: rgba(6, 182, 212, 0.15); color: #22d3ee; }
.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

/* Interactive Demo */
.demo-wrapper {
    padding: 36px;
}
.demo-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    margin-bottom: 36px;
}
.demo-form-col h3, .demo-metrics-col h3 {
    font-size: 20px;
    margin-bottom: 20px;
}
.tab-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}
.tab-btn {
    flex: 1;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.tab-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.form-group input, .form-group select {
    width: 100%;
    padding: 12px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-size: 14px;
    outline: none;
}
.form-group input:focus, .form-group select:focus {
    border-color: var(--primary);
}
.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}
.metric-card {
    background: rgba(15, 23, 42, 0.6);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--bg-card-border);
}
.metric-card.span-2 {
    grid-column: span 2;
}
.metric-label { font-size: 12px; color: var(--text-muted); }
.metric-val { font-size: 24px; font-weight: 800; margin-top: 4px; }
.savings-text { font-size: 13px; color: var(--accent); font-weight: 600; display: block; }
.demo-actions {
    display: flex;
    gap: 12px;
}
.demo-table-container {
    border-top: 1px solid var(--bg-card-border);
    padding-top: 24px;
}
.demo-table-container h4 { margin-bottom: 16px; font-size: 16px; }
.demo-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.demo-table th {
    padding: 12px;
    font-size: 13px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--bg-card-border);
}
.demo-table td {
    padding: 12px;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    max-width: 900px;
    margin: 0 auto;
}
.pricing-card {
    padding: 40px;
    position: relative;
    display: flex;
    flex-direction: column;
}
.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.2);
}
.popular-badge {
    position: absolute;
    top: -14px;
    right: 30px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}
.plan-header h3 { font-size: 24px; margin-bottom: 8px; }
.plan-header p { font-size: 14px; margin-bottom: 24px; }
.plan-price { font-size: 36px; font-weight: 800; color: #fff; margin-bottom: 30px; }
.plan-price span { font-size: 14px; color: var(--text-muted); font-weight: 400; }
.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 36px;
    flex: 1;
}
.plan-features li {
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e2e8f0;
}
.plan-features li.disabled {
    color: var(--text-muted);
    opacity: 0.6;
}

/* Download CTA */
.cta-box {
    padding: 60px 40px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.9) 100%);
    border-color: var(--primary);
}
.cta-box h2 { font-size: 36px; margin-bottom: 16px; }
.cta-box p { font-size: 18px; max-width: 550px; margin: 0 auto 36px; }
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Footer */
.footer {
    background: #090d16;
    border-top: 1px solid var(--bg-card-border);
    padding: 60px 24px 30px;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}
.footer-brand p { margin-top: 16px; max-width: 320px; }
.footer-links h4, .footer-legal h4 { font-size: 16px; margin-bottom: 20px; }
.footer-links ul, .footer-legal ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a, .footer-legal a { color: var(--text-muted); font-size: 14px; transition: var(--transition); }
.footer-links a:hover, .footer-legal a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--bg-card-border); padding-top: 24px; font-size: 14px; color: var(--text-muted); }

/* Responsive */
@media (max-width: 992px) {
    .hero-container, .features-grid, .demo-columns, .pricing-grid, .footer-container {
        grid-template-columns: 1fr;
    }
    .hero-content h1 { font-size: 40px; }
    .hero-section { padding-top: 120px; }
    .phone-frame { margin: 0 auto; }
}
