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

:root {
    /* Colors - Based on Debits app color scheme */
    --primary: #007AFF;
    --primary-dark: #0051D5;
    --secondary: #AF52DE;
    --logo-purple: #8B44AC;
    --success: #34C759;
    --warning: #FF9500;
    --error: #FF3B30;

    /* Neutrals */
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --background: #ffffff;
    --background-secondary: #f5f5f7;
    --border: #d2d2d7;

    /* Gradients */
    --gradient-purple: linear-gradient(135deg, #A855F7 0%, #5856D6 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-primary);
    background: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.logo-image {
    height: 60px;
    width: 60px;
    object-fit: contain;
    border-radius: 8px;
}

.logo-text {
    color: var(--logo-purple);
}

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.cta-button {
    background: var(--primary);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: var(--gradient-purple);
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(80px);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.button {
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

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

.button.primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.button.secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.button.secondary:hover {
    background: var(--primary);
    color: white;
}

.hero-features {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.5rem 1rem;
    background: white;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
}

.feature-badge svg {
    color: var(--warning);
}

/* Hero Screenshot */
.hero-screenshot {
    max-width: 400px;
    width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.15));
    animation: float 6s ease-in-out infinite;
}

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

/* Mockup Content */
.mockup-content {
    padding: 0 16px 20px;
}

.mockup-nav {
    margin-bottom: 20px;
}

.mockup-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0;
}

.mockup-stats-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.mockup-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mockup-stat-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 12px;
    border-radius: 16px;
    position: relative;
    border: 1.5px solid;
}

.mockup-stat-card.income {
    border-color: rgba(52, 199, 89, 0.3);
    background: rgba(52, 199, 89, 0.05);
}

.mockup-stat-card.bills {
    border-color: rgba(255, 149, 0, 0.3);
    background: rgba(255, 149, 0, 0.05);
}

.mockup-stat-card .stat-label {
    font-size: 0.65rem;
    color: #6e6e73;
    margin-bottom: 6px;
    line-height: 1.2;
}

.mockup-stat-card .stat-value {
    font-size: 1.1rem;
    font-weight: 600;
}

.mockup-stat-card.income .stat-value {
    color: #34C759;
}

.mockup-stat-card.bills .stat-value {
    color: #FF9500;
}

.mockup-stat-card .chevron {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: #c7c7cc;
    font-weight: 600;
}

.mockup-stat-card-large {
    background: rgba(52, 199, 89, 0.05);
    backdrop-filter: blur(10px);
    padding: 14px;
    border-radius: 20px;
    border: 2px solid rgba(52, 199, 89, 0.4);
}

.mockup-stat-card-large .balance-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.mockup-stat-card-large .stat-label {
    font-size: 0.7rem;
    color: #6e6e73;
}

.balance-amount {
    font-size: 2rem;
    font-weight: 700;
    color: #34C759;
    text-align: right;
}

.mockup-picker {
    display: flex;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 9px;
    padding: 2px;
    margin-bottom: 16px;
}

.picker-option {
    flex: 1;
    text-align: center;
    padding: 6px 0;
    font-size: 0.7rem;
    font-weight: 500;
    color: #1d1d1f;
    border-radius: 7px;
    transition: all 0.2s;
}

.picker-option.active {
    background: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.mockup-section {
    margin-top: 4px;
}

.section-header-mock {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.section-header-mock h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0;
}

.view-all {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
}

.mockup-bills {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.bill-icon {
    font-size: 1.2rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.bill-icon.housing {
    background: linear-gradient(135deg, #FF9500 0%, #FF7A00 100%);
}

.bill-icon.utilities {
    background: linear-gradient(135deg, #34C759 0%, #30B350 100%);
}

.bill-icon.subscription {
    background: linear-gradient(135deg, #007AFF 0%, #0051D5 100%);
}

.bill-info {
    flex: 1;
    min-width: 0;
}

.bill-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: #1d1d1f;
    margin-bottom: 2px;
}

.bill-date {
    font-size: 0.65rem;
    color: #6e6e73;
}

.bill-amount {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1d1d1f;
    white-space: nowrap;
}

/* Screenshots Section */
.screenshots {
    padding: var(--spacing-2xl) 0;
    background: var(--background-secondary);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-2xl);
    margin-top: var(--spacing-2xl);
}

.screenshot-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

.screenshot-img {
    max-width: 320px;
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

.screenshot-caption {
    text-align: center;
    max-width: 280px;
}

.screenshot-caption h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.screenshot-caption p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.premium-badge {
    display: inline-block;
    background: white;
    color: var(--logo-purple);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.75rem;
    border: 2px solid var(--logo-purple);
    box-shadow: 0 2px 6px rgba(139, 68, 172, 0.15);
}

/* Features Section */
.features {
    padding: var(--spacing-2xl) 0;
    background: white;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-2xl);
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.feature-card {
    padding: var(--spacing-xl);
    background: var(--background-secondary);
    border-radius: var(--radius-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Premium Section */
.premium {
    padding: var(--spacing-2xl) 0;
    background: var(--gradient-hero);
    color: white;
}

.premium-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.premium-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.premium-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.premium-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: var(--spacing-xl);
}

.premium-features-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.premium-feature {
    display: flex;
    gap: var(--spacing-md);
}

.check-icon {
    flex-shrink: 0;
    color: var(--success);
    background: white;
    border-radius: 50%;
    padding: 4px;
}

.premium-feature h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.premium-feature p {
    opacity: 0.9;
    font-size: 0.95rem;
}

.premium-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-xl);
    padding: var(--spacing-xl);
    position: relative;
    overflow: hidden;
}

.card-gradient {
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
}

.card-content {
    position: relative;
    z-index: 1;
}

.card-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
}

.card-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    font-size: 1.125rem;
}

/* How It Works Section */
.how-it-works {
    padding: var(--spacing-2xl) 0;
    background: var(--background-secondary);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

.step {
    text-align: center;
    padding: var(--spacing-lg);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-purple);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto var(--spacing-md);
}

.step h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.step p {
    color: var(--text-secondary);
}

/* Download Section */
.download {
    padding: var(--spacing-2xl) 0;
    background: white;
}

.download-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.download-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.download-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.app-store-link {
    display: inline-block;
    transition: all 0.3s ease;
}

.app-store-link:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.app-store-badge {
    height: 60px;
    width: auto;
}

.download-note {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: var(--spacing-2xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-xl);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: var(--spacing-sm);
}

.footer-links {
    display: flex;
    gap: var(--spacing-2xl);
}

.footer-column h4 {
    margin-bottom: var(--spacing-md);
    font-size: 1rem;
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: var(--spacing-xs);
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

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

    .hero-title {
        font-size: 2.5rem;
    }

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

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

    .premium-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .nav-links {
        gap: var(--spacing-sm);
    }

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

@media (max-width: 640px) {
    .hero {
        padding: 6rem 0 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

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

    .button {
        width: 100%;
        text-align: center;
    }

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

    .phone-mockup {
        width: 280px;
        height: 580px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

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

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

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

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

.feature-card,
.step,
.premium-feature {
    animation: fadeInUp 0.6s ease-out;
}
