/* Reset and Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-50: #eef2ff;
    --primary-100: #e0e7ff;
    --primary-500: #6366f1;
    --primary-600: #4f46e5;
    --primary-700: #4338ca;
    --primary-800: #3730a3;
    --income: #10b981;
    --expense: #f43f5e;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-600);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-700);
    transform: translateY(-1px);
}

.btn-secondary {
    background: white;
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}

.btn-secondary:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-xl {
    padding: 20px 40px;
    font-size: 18px;
    border-radius: 16px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-100);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 24px;
    font-weight: 800;
    color: var(--gray-900);
}

.logo-icon {
    font-size: 28px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 500;
    transition: color 0.2s;
}

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

/* Hero Section */
.hero {
    position: relative;
    padding: 160px 0 120px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-50) 0%, white 50%, var(--primary-100) 100%);
    z-index: -1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-text h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--gray-900);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-600), #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    color: var(--gray-600);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-600);
}

.stat-label {
    font-size: 14px;
    color: var(--gray-500);
}

/* Phone Mockup */
.hero-image {
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 280px;
    height: 580px;
    background: var(--gray-900);
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--gray-50);
    border-radius: 32px;
    overflow: hidden;
}

.app-preview {
    padding: 20px;
}

.app-header {
    margin-bottom: 20px;
}

.app-title {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
}

.app-date {
    font-size: 12px;
    color: var(--gray-500);
}

.balance-card {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
    border-radius: 20px;
    padding: 20px;
    color: white;
    margin-bottom: 20px;
}

.balance-label {
    display: block;
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 4px;
}

.balance-amount {
    display: block;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.balance-stats {
    display: flex;
    gap: 16px;
}

.balance-stats .income {
    font-size: 14px;
    font-weight: 600;
    color: #86efac;
}

.balance-stats .expense {
    font-size: 14px;
    font-weight: 600;
    color: #fda4af;
}

.transactions-preview {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.transaction {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.tx-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.tx-icon.food {
    background: #fff7ed;
}

.tx-icon.salary {
    background: #ecfdf5;
}

.tx-info {
    flex: 1;
}

.tx-name {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-900);
}

.tx-date {
    font-size: 12px;
    color: var(--gray-500);
}

.tx-amount {
    font-weight: 700;
    font-size: 14px;
}

.tx-amount.income {
    color: var(--income);
}

.tx-amount.expense {
    color: var(--expense);
}

/* Features Section */
.features {
    padding: 120px 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--gray-900);
}

.section-header p {
    font-size: 18px;
    color: var(--gray-600);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: var(--gray-50);
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--gray-900);
}

.feature-card p {
    font-size: 15px;
    color: var(--gray-600);
}

/* Premium Section */
.premium {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
}

.premium-card {
    background: linear-gradient(135deg, var(--primary-600), #7c3aed, #ec4899);
    border-radius: 32px;
    padding: 64px;
    text-align: center;
    color: white;
}

.premium-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.premium-card h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
}

.premium-card>p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.premium-price {
    margin-bottom: 32px;
}

.premium-price .price {
    font-size: 64px;
    font-weight: 800;
}

.premium-price .period {
    font-size: 18px;
    opacity: 0.8;
    margin-left: 8px;
}

.premium-features {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 32px;
}

.premium-features li {
    font-size: 16px;
    font-weight: 500;
}

/* Download Section */
.download {
    padding: 120px 0;
    background: white;
}

.download-content {
    text-align: center;
}

.download h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--gray-900);
}

.download p {
    font-size: 18px;
    color: var(--gray-600);
    margin-bottom: 32px;
}

/* Footer */
.footer {
    padding: 48px 0;
    background: var(--gray-900);
    color: white;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 800;
}

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

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    color: var(--gray-500);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }

    .hero-text h1 {
        font-size: 40px;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .premium-features {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 640px) {
    .hero-text h1 {
        font-size: 32px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .premium-card {
        padding: 40px 24px;
    }

    .premium-card h2 {
        font-size: 32px;
    }

    .premium-price .price {
        font-size: 48px;
    }

    .nav-links a:not(.btn) {
        display: none;
    }
}