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

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #a5b4fc;
    --accent: #06b6d4;
    --accent-dark: #0891b2;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #0f172a;
    --dark-2: #1e293b;
    --dark-3: #334155;
    --gray: #94a3b8;
    --light: #f1f5f9;
    --white: #ffffff;
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
    --gradient-2: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --shadow-glow: 0 0 40px rgba(99,102,241,0.3);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    overflow-x: hidden;
    background: var(--white);
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 1rem 2rem;
    display: flex; align-items: center; justify-content: space-between;
    transition: all 0.3s ease;
    background: transparent;
}
.navbar.scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    padding: 0.7rem 2rem;
}
.nav-logo {
    font-size: 1.5rem; font-weight: 800;
    background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    text-decoration: none;
}
.nav-links { display: flex; gap: 2rem; align-items: center; list-style: none; }
.nav-links a {
    text-decoration: none; color: var(--dark-3); font-weight: 500; font-size: 0.95rem;
    transition: color 0.3s;
}
.nav-links a:hover { color: var(--primary); }
.nav-cta {
    display: flex; gap: 0.75rem; align-items: center;
}

/* ===== BUTTONS ===== */
.btn-primary-custom {
    padding: 0.7rem 1.8rem; border-radius: 12px; font-weight: 600; font-size: 0.95rem;
    background: var(--gradient-1); color: white; border: none; cursor: pointer;
    text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem;
    transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(99,102,241,0.3);
}
.btn-primary-custom:hover {
    transform: translateY(-2px); box-shadow: 0 6px 25px rgba(99,102,241,0.4);
}
.btn-outline-custom {
    padding: 0.7rem 1.8rem; border-radius: 12px; font-weight: 600; font-size: 0.95rem;
    background: transparent; color: var(--primary); border: 2px solid var(--primary-light);
    cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem;
    transition: all 0.3s ease;
}
.btn-outline-custom:hover {
    background: var(--primary); color: white; border-color: var(--primary);
    transform: translateY(-2px);
}
.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; border-radius: 16px; }

/* ===== HERO ===== */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    padding: 8rem 2rem 4rem;
    background: linear-gradient(180deg, #f0f0ff 0%, #ffffff 100%);
    position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: -50%; right: -20%;
    width: 700px; height: 700px; border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,0.1) 0%, transparent 70%);
}
.hero::after {
    content: ''; position: absolute; bottom: -30%; left: -10%;
    width: 500px; height: 500px; border-radius: 50%;
    background: radial-gradient(circle, rgba(6,182,212,0.08) 0%, transparent 70%);
}
.hero-container {
    max-width: 1200px; margin: 0 auto; display: grid;
    grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
    position: relative; z-index: 1;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 1rem; border-radius: 50px;
    background: rgba(99,102,241,0.1); color: var(--primary);
    font-size: 0.85rem; font-weight: 600; margin-bottom: 1.5rem;
}
.hero-badge span { font-size: 1rem; }
.hero h1 {
    font-size: 3.5rem; font-weight: 900; line-height: 1.1;
    color: var(--dark); margin-bottom: 1.5rem;
}
.hero h1 .gradient-text {
    background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p {
    font-size: 1.15rem; color: var(--gray); line-height: 1.7;
    margin-bottom: 2rem; max-width: 500px;
}
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
    display: flex; gap: 2.5rem; margin-top: 3rem;
    padding-top: 2rem; border-top: 1px solid #e2e8f0;
}
.hero-stats .stat h3 {
    font-size: 1.8rem; font-weight: 800;
    background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-stats .stat p { font-size: 0.85rem; color: var(--gray); margin-top: 0.25rem; }

/* Hero Visual */
.hero-visual {
    position: relative; display: flex; justify-content: center; align-items: center;
}
.hero-card {
    background: var(--white); border-radius: 24px; padding: 2rem;
    box-shadow: var(--shadow-lg); width: 100%; max-width: 420px;
    position: relative; z-index: 2;
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
.hero-card-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1.5rem;
}
.hero-card-header h4 { font-weight: 700; font-size: 1rem; }
.hero-card-header .badge-live {
    padding: 0.3rem 0.8rem; border-radius: 50px;
    background: rgba(16,185,129,0.1); color: var(--success);
    font-size: 0.75rem; font-weight: 600;
}
.card-balance {
    text-align: center; padding: 1.5rem 0; margin-bottom: 1.5rem;
    background: var(--gradient-1); border-radius: 16px; color: white;
}
.card-balance p { font-size: 0.85rem; opacity: 0.8; margin-bottom: 0.5rem; }
.card-balance h2 { font-size: 2rem; font-weight: 800; }
.card-mini-chart {
    display: flex; align-items: flex-end; gap: 6px;
    justify-content: center; margin-top: 1rem; height: 40px;
}
.card-mini-chart .bar {
    width: 8px; border-radius: 4px;
    background: rgba(255,255,255,0.4);
    animation: growBar 1.5s ease-out forwards;
}
@keyframes growBar { from { height: 0; } }
.card-transactions { display: flex; flex-direction: column; gap: 0.75rem; }
.card-tx {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.75rem; border-radius: 12px; background: var(--light);
}
.card-tx-info { display: flex; align-items: center; gap: 0.75rem; }
.card-tx-icon {
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
}
.card-tx-icon.income { background: rgba(16,185,129,0.1); }
.card-tx-icon.expense { background: rgba(239,68,68,0.1); }
.card-tx-details span { font-size: 0.85rem; font-weight: 600; display: block; }
.card-tx-details small { font-size: 0.75rem; color: var(--gray); }
.card-tx-amount { font-weight: 700; font-size: 0.9rem; }
.card-tx-amount.positive { color: var(--success); }
.card-tx-amount.negative { color: var(--danger); }

/* Floating badges */
.floating-badge {
    position: absolute; padding: 0.75rem 1.25rem; border-radius: 16px;
    background: var(--white); box-shadow: var(--shadow-md);
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.85rem; font-weight: 600; z-index: 3;
    animation: floatBadge 4s ease-in-out infinite;
}
@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.floating-badge.top-right { top: 10%; right: -5%; animation-delay: 0.5s; }
.floating-badge.bottom-left { bottom: 15%; left: -5%; animation-delay: 1s; }
.floating-badge .icon { font-size: 1.2rem; }

/* ===== SECTION COMMON ===== */
.section {
    padding: 6rem 2rem;
    max-width: 1200px; margin: 0 auto;
}
.section-dark { background: var(--gradient-2); }
.section-gray { background: var(--light); }
.section-header {
    text-align: center; margin-bottom: 4rem;
}
.section-label {
    display: inline-flex; padding: 0.4rem 1rem; border-radius: 50px;
    background: rgba(99,102,241,0.1); color: var(--primary);
    font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; margin-bottom: 1rem;
}
.section-header h2 {
    font-size: 2.5rem; font-weight: 800; color: var(--dark);
    margin-bottom: 1rem;
}
.section-header p {
    font-size: 1.05rem; color: var(--gray); max-width: 600px; margin: 0 auto;
    line-height: 1.7;
}

/* ===== FEATURES ===== */
.features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
.feature-card {
    padding: 2.5rem 2rem; border-radius: 20px;
    background: var(--white); border: 1px solid #e2e8f0;
    transition: all 0.4s ease; position: relative; overflow: hidden;
}
.feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--gradient-1); opacity: 0; transition: opacity 0.3s;
}
.feature-card:hover {
    transform: translateY(-8px); box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
    width: 56px; height: 56px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 1.5rem;
    background: rgba(99,102,241,0.1);
}
.feature-card h3 {
    font-size: 1.2rem; font-weight: 700; margin-bottom: 0.75rem;
}
.feature-card p {
    font-size: 0.95rem; color: var(--gray); line-height: 1.6;
}

/* ===== HOW IT WORKS ===== */
.steps-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
    position: relative;
}
.steps-grid::before {
    content: ''; position: absolute; top: 40px; left: 12%; right: 12%;
    height: 2px; background: linear-gradient(90deg, var(--primary-light), var(--accent));
    z-index: 0;
}
.step-card { text-align: center; position: relative; z-index: 1; }
.step-number {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--gradient-1); color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; font-weight: 800; margin: 0 auto 1.5rem;
    box-shadow: 0 4px 15px rgba(99,102,241,0.3);
}
.step-card h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.step-card p { font-size: 0.9rem; color: var(--gray); line-height: 1.6; }

/* ===== PRICING ===== */
.pricing-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
    align-items: start;
}
.pricing-card {
    padding: 2.5rem 2rem; border-radius: 24px;
    background: var(--white); border: 2px solid #e2e8f0;
    transition: all 0.4s ease; position: relative;
}
.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    transform: scale(1.05);
}
.pricing-card.popular .popular-badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    padding: 0.4rem 1.5rem; border-radius: 50px;
    background: var(--gradient-1); color: white;
    font-size: 0.8rem; font-weight: 700;
}
.pricing-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.pricing-card.popular:hover { transform: scale(1.05) translateY(-5px); }
.pricing-header { text-align: center; margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid #e2e8f0; }
.pricing-header h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }
.pricing-header .price {
    font-size: 2.8rem; font-weight: 900; color: var(--dark);
}
.pricing-header .price span { font-size: 1rem; font-weight: 500; color: var(--gray); }
.pricing-header .price-note { font-size: 0.85rem; color: var(--gray); margin-top: 0.25rem; }
.pricing-features { list-style: none; margin-bottom: 2rem; }
.pricing-features li {
    padding: 0.6rem 0; font-size: 0.95rem; color: var(--dark-3);
    display: flex; align-items: center; gap: 0.75rem;
}
.pricing-features li .check { color: var(--success); font-weight: bold; }
.pricing-features li .cross { color: var(--gray); }
.pricing-card .btn-pricing {
    width: 100%; padding: 0.9rem; border-radius: 14px;
    font-weight: 700; font-size: 1rem; cursor: pointer;
    border: 2px solid var(--primary-light);
    background: transparent; color: var(--primary);
    transition: all 0.3s;
}
.pricing-card .btn-pricing:hover,
.pricing-card.popular .btn-pricing {
    background: var(--gradient-1); color: white; border-color: transparent;
    box-shadow: 0 4px 15px rgba(99,102,241,0.3);
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
.testimonial-card {
    padding: 2rem; border-radius: 20px;
    background: var(--white); border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-5px); box-shadow: var(--shadow-md);
}
.testimonial-stars { color: var(--warning); font-size: 1rem; margin-bottom: 1rem; }
.testimonial-card blockquote {
    font-size: 0.95rem; color: var(--dark-3); line-height: 1.7;
    margin-bottom: 1.5rem; font-style: italic;
}
.testimonial-author {
    display: flex; align-items: center; gap: 0.75rem;
}
.testimonial-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--gradient-1);
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 700; font-size: 1rem;
}
.testimonial-info h5 { font-size: 0.95rem; font-weight: 700; }
.testimonial-info p { font-size: 0.8rem; color: var(--gray); }

/* ===== STATS BANNER ===== */
.stats-banner {
    background: var(--gradient-1); border-radius: 24px;
    padding: 3rem; margin: 0 2rem;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
    text-align: center; color: white;
}
.stats-banner .stat-item h3 { font-size: 2.5rem; font-weight: 900; }
.stats-banner .stat-item p { font-size: 0.9rem; opacity: 0.85; margin-top: 0.25rem; }

/* ===== FAQ ===== */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
    border: 1px solid #e2e8f0; border-radius: 16px;
    margin-bottom: 1rem; overflow: hidden; transition: all 0.3s;
}
.faq-item:hover { border-color: var(--primary-light); }
.faq-question {
    padding: 1.25rem 1.5rem; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    font-weight: 600; font-size: 1rem; background: var(--white);
    border: none; width: 100%; text-align: left; color: var(--dark);
}
.faq-question .arrow { transition: transform 0.3s; font-size: 1.2rem; color: var(--gray); }
.faq-item.active .faq-question .arrow { transform: rotate(180deg); }
.faq-answer {
    max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
    padding: 0 1.5rem; color: var(--gray); line-height: 1.7; font-size: 0.95rem;
}
.faq-item.active .faq-answer { max-height: 200px; padding-bottom: 1.25rem; }

/* ===== CTA ===== */
.cta-section {
    padding: 6rem 2rem; text-align: center;
    background: var(--gradient-2); position: relative; overflow: hidden;
}
.cta-section::before {
    content: ''; position: absolute; top: -50%; left: 50%; transform: translateX(-50%);
    width: 800px; height: 800px; border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 70%);
}
.cta-content { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; }
.cta-content h2 { font-size: 2.5rem; font-weight: 800; color: white; margin-bottom: 1rem; }
.cta-content p { font-size: 1.05rem; color: var(--gray); margin-bottom: 2rem; }

/* ===== FOOTER ===== */
.footer {
    background: var(--dark); color: var(--gray); padding: 4rem 2rem 2rem;
}
.footer-grid {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
    margin-bottom: 3rem;
}
.footer-brand h3 {
    font-size: 1.5rem; font-weight: 800; margin-bottom: 1rem;
    background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.footer-brand p { font-size: 0.9rem; line-height: 1.7; }
.footer-col h4 { color: white; font-size: 0.95rem; font-weight: 700; margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a {
    color: var(--gray); text-decoration: none; font-size: 0.9rem;
    transition: color 0.3s;
}
.footer-col ul li a:hover { color: var(--primary-light); }
.footer-bottom {
    max-width: 1200px; margin: 0 auto;
    border-top: 1px solid var(--dark-3); padding-top: 1.5rem;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.85rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero p { margin: 0 auto 2rem; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { margin-top: 3rem; }
    .features-grid, .pricing-grid, .testimonials-grid { grid-template-columns: 1fr 1fr; }
    .steps-grid { grid-template-columns: 1fr 1fr; }
    .steps-grid::before { display: none; }
    .stats-banner { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .section-header h2 { font-size: 2rem; }
    .features-grid, .pricing-grid, .testimonials-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .stats-banner { grid-template-columns: 1fr; border-radius: 16px; }
    .pricing-card.popular { transform: none; }
    .pricing-card.popular:hover { transform: translateY(-5px); }
    .nav-links { display: none; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
    .floating-badge { display: none; }
}

/* Mobile Header Fixes */
@media (max-width: 768px) {
    .navbar { padding: 0.75rem 1rem !important; }
    .navbar.scrolled { padding: 0.5rem 1rem !important; }
    .nav-logo { font-size: 1.2rem !important; }
    .nav-logo img { height: 28px !important; }
    .nav-cta { gap: 0.5rem !important; }
    .nav-cta .btn-primary-custom, .nav-cta .btn-outline-custom { 
        padding: 0.5rem 0.85rem !important; 
        font-size: 0.85rem !important; 
    }
}
@media (max-width: 380px) {
    .nav-logo { font-size: 1.05rem !important; }
    .nav-logo img { height: 24px !important; }
    .nav-cta .btn-primary-custom, .nav-cta .btn-outline-custom { 
        padding: 0.4rem 0.6rem !important; 
        font-size: 0.75rem !important; 
    }
}
