/* =========================================
   Nanufy Landing Page Styles
   Modern, maintainable CSS with animations
   ========================================= */

/* ---------- Base & Reset ---------- */
:root {
    /* Brand Colors */
    --brand-primary: #7c3aed;
    --brand-primary-light: #a78bfa;
    --brand-gradient-start: #3F31D6;
    --brand-gradient-end: #5B4FEF;
    
    /* Semantic Colors */
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    
    /* Background Colors */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    
    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Border Colors */
    --border-primary: #334155;
    --border-secondary: #475569;
    
    /* Spacing */
    --section-padding: 5rem 0;
    --container-max: 1200px;
    
    /* Animation Timing */
    --transition-fast: 150ms;
    --transition-normal: 300ms;
    --transition-slow: 500ms;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
}

.text-gradient {
    background: linear-gradient(135deg, var(--brand-gradient-start), var(--brand-gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Layout ---------- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--section-padding);
}

.section-alt {
    background: rgba(30, 41, 59, 0.5);
}

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 0;
    transition: all var(--transition-normal) ease;
}

.nav.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-primary);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
}

.nav-logo img {
    width: 40px;
    height: 40px;
    border-radius: 12px;
}

.nav-links {
    display: none;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-cta {
    display: none;
    gap: 1rem;
    align-items: center;
}

.nav-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
}

@media (min-width: 1024px) {
    .nav-links {
        display: flex;
    }
    .nav-cta {
        display: flex;
    }
    .nav-mobile-toggle {
        display: none;
    }
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 99;
    display: flex;
    flex-direction: column;
    padding: 5rem 1.5rem 2rem;
    transform: translateX(100%);
    transition: transform var(--transition-normal) ease;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-menu-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-gradient-start), var(--brand-gradient-end));
    color: white;
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 50px rgba(124, 58, 237, 0.4);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-secondary);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* ---------- Hero Section ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124, 58, 237, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(124, 58, 237, 0.1), transparent);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.hero-text {
    text-align: center;
}

@media (min-width: 1024px) {
    .hero-text {
        text-align: left;
    }
}

.hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 100px;
    font-size: 0.875rem;
    color: var(--brand-primary-light);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 2rem;
}

@media (min-width: 1024px) {
    .hero-subtitle {
        margin: 0 0 2rem;
    }
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
    .hero-cta {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 1024px) {
    .hero-cta {
        justify-content: flex-start;
    }
}

/* Value Props in Hero */
.hero-value-props {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

@media (min-width: 1024px) {
    .hero-value-props {
        justify-content: flex-start;
    }
}

.value-prop {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.value-prop-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.15);
    border-radius: 50%;
    color: var(--color-success);
    font-size: 0.75rem;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.phone-mockup {
    position: relative;
    width: 280px;
}

@media (min-width: 640px) {
    .phone-mockup {
        width: 320px;
    }
}

.phone-frame {
    position: relative;
    background: linear-gradient(180deg, #334155, #1e293b);
    border-radius: 48px;
    padding: 12px;
    box-shadow: 
        0 50px 100px -20px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.phone-screen {
    background: var(--bg-primary);
    border-radius: 40px;
    overflow: hidden;
    position: relative;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 28px;
    background: black;
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

.phone-content {
    padding: 48px 16px 24px;
    min-height: 520px;
}

/* App UI in Phone */
.app-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.app-greeting {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.app-balance-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.app-balance {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 0.25rem;
}

.app-summary-card {
    background: linear-gradient(135deg, var(--brand-gradient-start), var(--brand-gradient-end));
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    justify-content: space-around;
    margin-bottom: 1rem;
}

.app-summary-item {
    text-align: center;
}

.app-summary-label {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.7;
}

.app-summary-value {
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

.app-summary-value.income {
    color: #6ee7b7;
}

.app-summary-value.expense {
    color: #fca5a5;
}

.app-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.app-section-title {
    font-size: 0.875rem;
    font-weight: 600;
}

.app-section-link {
    font-size: 0.75rem;
    color: var(--brand-primary-light);
}

.app-transaction {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 12px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
}

.app-transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.app-transaction-icon.green { background: rgba(16, 185, 129, 0.2); }
.app-transaction-icon.purple { background: rgba(124, 58, 237, 0.2); }
.app-transaction-icon.amber { background: rgba(245, 158, 11, 0.2); }

.app-transaction-details {
    flex: 1;
    min-width: 0;
}

.app-transaction-name {
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-transaction-category {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.app-transaction-amount {
    font-size: 0.875rem;
    font-weight: 600;
}

.app-transaction-amount.negative { color: #f87171; }
.app-transaction-amount.positive { color: #34d399; }

/* Floating Cards */
.floating-card {
    position: absolute;
    padding: 1rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    display: none;
}

@media (min-width: 1024px) {
    .floating-card {
        display: block;
    }
}

.floating-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.floating-card-label {
    font-size: 0.75rem;
    opacity: 0.8;
}

.floating-card-value {
    font-size: 0.875rem;
    font-weight: 700;
}

.floating-card.automation {
    top: 80px;
    left: -80px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(234, 88, 12, 0.2));
    border: 1px solid rgba(245, 158, 11, 0.3);
    animation: float 6s ease-in-out infinite;
}

.floating-card.automation .floating-card-icon {
    background: rgba(245, 158, 11, 0.3);
}

.floating-card.savings {
    top: 40%;
    right: -80px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(91, 79, 239, 0.2));
    border: 1px solid rgba(124, 58, 237, 0.3);
    animation: float 6s ease-in-out 1s infinite;
}

.floating-card.savings .floating-card-icon {
    background: rgba(124, 58, 237, 0.3);
}

.floating-card.task {
    bottom: 120px;
    right: -60px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(20, 184, 166, 0.2));
    border: 1px solid rgba(16, 185, 129, 0.3);
    animation: float 6s ease-in-out 2s infinite;
}

.floating-card.task .floating-card-icon {
    background: rgba(16, 185, 129, 0.3);
}

/* ---------- Problem Section ---------- */
.problem-section {
    padding: 6rem 0;
}

.problem-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .problem-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.problem-card {
    text-align: center;
    padding: 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 20px;
    transition: all var(--transition-normal);
}

.problem-card:hover {
    border-color: var(--brand-primary);
    transform: translateY(-4px);
}

.problem-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.problem-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.problem-description {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.problem-solution {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-primary);
    font-size: 0.875rem;
    color: var(--color-success);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* ---------- Features Section ---------- */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 100px;
    font-size: 0.875rem;
    color: var(--brand-primary-light);
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 20px;
    padding: 2rem;
    transition: all var(--transition-normal);
}

.feature-card:hover {
    border-color: rgba(124, 58, 237, 0.5);
    transform: translateY(-4px);
}

.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;
}

.feature-icon.purple { background: rgba(124, 58, 237, 0.15); }
.feature-icon.green { background: rgba(16, 185, 129, 0.15); }
.feature-icon.amber { background: rgba(245, 158, 11, 0.15); }
.feature-icon.pink { background: rgba(236, 72, 153, 0.15); }
.feature-icon.blue { background: rgba(59, 130, 246, 0.15); }
.feature-icon.cyan { background: rgba(6, 182, 212, 0.15); }

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-description {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ---------- Automation Demo Section ---------- */
.automation-section {
    padding: 6rem 0;
}

.automation-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .automation-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.automation-demo {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.automation-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    padding: 1rem;
    transition: transform var(--transition-fast);
}

.automation-item:hover {
    transform: translateX(8px);
}

.automation-item-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.automation-item-icon.blue { background: rgba(59, 130, 246, 0.2); }
.automation-item-icon.amber { background: rgba(245, 158, 11, 0.2); }
.automation-item-icon.pink { background: rgba(236, 72, 153, 0.2); }

.automation-item-content {
    flex: 1;
    min-width: 0;
}

.automation-item-title {
    font-weight: 600;
}

.automation-item-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.automation-arrow {
    font-size: 1.5rem;
    color: var(--brand-primary-light);
}

.automation-result {
    background: linear-gradient(135deg, var(--brand-gradient-start), var(--brand-gradient-end));
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.3);
}

.automation-result-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.automation-result-text {
    font-weight: 600;
}

.automation-result-badge {
    margin-left: auto;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
}

.automation-text h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}

.automation-text p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.automation-benefits {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.automation-benefit {
    display: flex;
    gap: 1rem;
}

.automation-benefit-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-success);
    flex-shrink: 0;
    margin-top: 2px;
}

.automation-benefit-content h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.automation-benefit-content p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

/* ---------- How It Works Section ---------- */
.steps-section {
    padding: 6rem 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 640px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .steps-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.step-item {
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--border-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-primary-light);
    transition: all var(--transition-normal);
}

.step-item:hover .step-number {
    background: linear-gradient(135deg, var(--brand-gradient-start), var(--brand-gradient-end));
    border-color: transparent;
    color: white;
}

.step-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-description {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Step connector lines */
@media (min-width: 1024px) {
    .step-item:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 40px;
        left: 60%;
        width: 80%;
        height: 2px;
        background: linear-gradient(90deg, var(--border-primary), transparent);
    }
}

/* ---------- Pricing Section ---------- */
.pricing-section {
    padding: 6rem 0;
}

/* Wrapper enables horizontal scrolling when cards overflow */
.pricing-grid-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

/* Horizontal flex row — cards sit side-by-side */
.pricing-grid {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem; /* room for scrollbar */
    /* Hide scrollbar but keep functionality */
    scrollbar-width: thin;
    scrollbar-color: var(--border-primary) transparent;
}

/* Each card takes a fixed min-width so they don't shrink */
.pricing-grid > .pricing-card {
    flex: 0 0 auto;
    width: 280px;
    scroll-snap-align: start;
}

/* On desktop (≥1024px), center cards if they fit, allow scroll if >5 */
@media (min-width: 1024px) {
    .pricing-grid {
        justify-content: center;
    }
    .pricing-grid > .pricing-card {
        width: 320px;
    }
}

/* On mobile, make cards slightly narrower to hint at next card */
@media (max-width: 767px) {
    .pricing-grid > .pricing-card {
        width: 260px;
    }
    .pricing-grid {
        /* Add horizontal padding so first/last cards aren't flush with edge */
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Right-side fade to indicate more cards are scrollable */
.pricing-scroll-fade {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 1rem;
    width: 60px;
    background: linear-gradient(to right, transparent, var(--bg-primary));
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

/* Show fade only when there's overflow to scroll */
.pricing-grid-wrapper.has-overflow .pricing-scroll-fade {
    opacity: 1;
}

/* Hide fade when scrolled to the end */
.pricing-grid-wrapper.scrolled-end .pricing-scroll-fade {
    opacity: 0;
}

.pricing-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 24px;
    padding: 2rem;
    position: relative;
}

.pricing-card.popular {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.2);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    padding: 0.25rem 1rem;
    background: linear-gradient(135deg, var(--brand-gradient-start), var(--brand-gradient-end));
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.pricing-currency {
    font-size: 1.5rem;
    font-weight: 600;
}

.pricing-amount {
    font-size: 3rem;
    font-weight: 800;
}

.pricing-period {
    font-size: 1rem;
    color: var(--text-muted);
}

.pricing-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
}

.pricing-features li span {
    color: var(--color-success);
}

.pricing-cta {
    width: 100%;
}

/* ---------- CTA Section ---------- */
.cta-section {
    padding: 6rem 0;
}

.cta-box {
    background: linear-gradient(135deg, var(--brand-gradient-start), var(--brand-gradient-end));
    border-radius: 32px;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .cta-box {
        padding: 4rem;
    }
}

.cta-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1), transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1), transparent 40%);
}

.cta-content {
    position: relative;
}

.cta-title {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
    }
}

.cta-buttons .btn-primary {
    background: white;
    color: var(--brand-gradient-start);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.cta-buttons .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* ---------- Footer ---------- */
.footer {
    border-top: 1px solid var(--border-primary);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr repeat(3, 1fr);
    }
}

.footer-brand {
    grid-column: span 2;
}

@media (min-width: 768px) {
    .footer-brand {
        grid-column: span 1;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    width: 40px;
    height: 40px;
    border-radius: 12px;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.875rem;
    max-width: 280px;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--brand-primary);
    color: white;
}

.footer-column h4 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-column a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-primary);
}

@media (min-width: 640px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-legal a:hover {
    color: var(--text-secondary);
}

/* ---------- Animations ---------- */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation Classes */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
    opacity: 0;
}

.animate-slide-left {
    animation: slideInLeft 0.6s ease forwards;
    opacity: 0;
}

.animate-slide-right {
    animation: slideInRight 0.6s ease forwards;
    opacity: 0;
}

/* Animation Delays */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }
.delay-600 { animation-delay: 600ms; }

/* Intersection Observer: Initially hidden */
[data-animate] {
    opacity: 0;
}

[data-animate].visible {
    animation-play-state: running;
}

/* ---------- Utility Classes ---------- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.grid { display: grid; }

.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.w-full { width: 100%; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }

.mx-auto { margin-left: auto; margin-right: auto; }
.my-4 { margin-top: 1rem; margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =========================================
   Screenshot & App Preview Styles
   ========================================= */

/* ---------- Hero Screenshot Placeholder ---------- */
.screenshot-placeholder {
    padding: 40px 12px 20px;
    min-height: 480px;
    background: var(--bg-primary);
}

.screenshot-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.screenshot-header {
    text-align: center;
    padding-bottom: 8px;
}

.screenshot-greeting {
    display: block;
    font-size: 0.625rem;
    color: var(--text-muted);
}

.screenshot-balance-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.screenshot-balance {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.screenshot-summary-card {
    background: linear-gradient(135deg, var(--brand-gradient-start), var(--brand-gradient-end));
    border-radius: 12px;
    padding: 12px;
    display: flex;
    justify-content: space-around;
}

.summary-item {
    text-align: center;
}

.summary-label {
    display: block;
    font-size: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.7;
}

.summary-value {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 2px;
}

.summary-value.income { color: #6ee7b7; }
.summary-value.expense { color: #fca5a5; }

.screenshot-chart {
    background: rgba(30, 41, 59, 0.5);
    border-radius: 12px;
    padding: 12px;
}

.chart-bars {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 60px;
    gap: 4px;
}

.chart-bar {
    flex: 1;
    background: var(--brand-primary);
    border-radius: 4px 4px 0 0;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.chart-bar.active {
    opacity: 1;
    background: linear-gradient(180deg, var(--brand-gradient-start), var(--brand-gradient-end));
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
}

.chart-labels span {
    font-size: 0.5rem;
    color: var(--text-muted);
    flex: 1;
    text-align: center;
}

.screenshot-transactions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.transaction-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 10px;
    padding: 8px 10px;
}

.tx-icon {
    font-size: 1rem;
}

.tx-name {
    flex: 1;
    font-size: 0.75rem;
    font-weight: 500;
}

.tx-amount {
    font-size: 0.75rem;
    font-weight: 600;
}

.tx-amount.income { color: #34d399; }
.tx-amount.expense { color: #f87171; }

/* ---------- Floating Cards (Updated positions) ---------- */
.floating-card.chart-card {
    top: 80px;
    left: -70px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(91, 79, 239, 0.2));
    border: 1px solid rgba(124, 58, 237, 0.3);
    animation: float 6s ease-in-out infinite;
}

.floating-card.chart-card .floating-card-icon {
    background: rgba(124, 58, 237, 0.3);
}

.floating-card.sync-card {
    top: 80px;
    right: -70px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.2));
    border: 1px solid rgba(59, 130, 246, 0.3);
    animation: float 6s ease-in-out 1s infinite;
}

.floating-card.sync-card .floating-card-icon {
    background: rgba(59, 130, 246, 0.3);
}

.floating-card.offline-card {
    bottom: 120px;
    right: -50px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.2));
    border: 1px solid rgba(16, 185, 129, 0.3);
    animation: float 6s ease-in-out 2s infinite;
}

.floating-card.offline-card .floating-card-icon {
    background: rgba(16, 185, 129, 0.3);
}

/* ---------- Screenshots Carousel Section ---------- */
.screenshots-section {
    overflow-x: hidden;
}

.screenshots-carousel {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 0 2rem;
    margin: 0 -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Hide scrollbar but keep functionality */
.screenshots-carousel::-webkit-scrollbar {
    height: 8px;
}

.screenshots-carousel::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

.screenshots-carousel::-webkit-scrollbar-thumb {
    background: var(--brand-primary);
    border-radius: 4px;
}

.screenshot-card {
    flex: 0 0 auto;
    width: 220px;
    scroll-snap-align: center;
    text-align: center;
}

@media (min-width: 640px) {
    .screenshot-card {
        width: 240px;
    }
}

@media (min-width: 1024px) {
    .screenshots-carousel {
        justify-content: center;
        overflow-x: visible;
        flex-wrap: wrap;
    }
    
    .screenshot-card {
        width: 260px;
    }
}

.screenshot-phone {
    position: relative;
}

.screenshot-phone-frame {
    background: linear-gradient(180deg, #334155, #1e293b);
    border-radius: 32px;
    padding: 8px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.screenshot-phone-notch {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 20px;
    background: black;
    border-radius: 0 0 12px 12px;
    z-index: 10;
}

.screenshot-placeholder-content {
    background: var(--bg-primary);
    border-radius: 26px;
    min-height: 400px;
    padding: 32px 12px 16px;
    display: flex;
    flex-direction: column;
}

.screenshot-label {
    margin-top: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.screenshots-note {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

/* ---------- Mock Screen Styles ---------- */
.mock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.mock-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
}

.mock-filter {
    font-size: 0.625rem;
    color: var(--brand-primary-light);
    background: rgba(124, 58, 237, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
}

/* Dashboard Screen */
.dashboard-screen .mock-balance-card {
    background: linear-gradient(135deg, var(--brand-gradient-start), var(--brand-gradient-end));
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    margin-bottom: 16px;
}

.mock-balance-label {
    font-size: 0.625rem;
    opacity: 0.8;
    display: block;
}

.mock-balance-amount {
    font-size: 1.75rem;
    font-weight: 800;
    display: block;
    margin: 4px 0;
}

.mock-balance-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 0.625rem;
}

.mock-income { color: #6ee7b7; }
.mock-expense { color: #fca5a5; }

.mock-chart {
    display: flex;
    justify-content: center;
    margin: 16px 0;
}

.mock-pie {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: conic-gradient(
        var(--brand-primary) 0deg 126deg,
        #10b981 126deg 270deg,
        #f59e0b 270deg 360deg
    );
    position: relative;
}

.mock-pie::after {
    content: '';
    position: absolute;
    inset: 25px;
    background: var(--bg-primary);
    border-radius: 50%;
}

.mock-legend {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.625rem;
    color: var(--text-secondary);
}

/* Transactions Screen */
.transactions-screen {
    gap: 8px;
}

.mock-date-header {
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 8px;
}

.mock-transaction {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 10px;
    padding: 8px;
}

.mock-tx-icon {
    font-size: 1rem;
}

.mock-tx-details {
    flex: 1;
    min-width: 0;
}

.mock-tx-name {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mock-tx-cat {
    display: block;
    font-size: 0.5rem;
    color: var(--text-muted);
}

.mock-tx-amount {
    font-size: 0.75rem;
    font-weight: 600;
}

.mock-tx-amount.income { color: #34d399; }
.mock-tx-amount.expense { color: #f87171; }

/* Categories Screen */
.categories-screen {
    gap: 12px;
}

.mock-tab-bar {
    display: flex;
    gap: 8px;
}

.mock-tab {
    flex: 1;
    text-align: center;
    padding: 6px;
    font-size: 0.625rem;
    font-weight: 600;
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-muted);
}

.mock-tab.active {
    background: linear-gradient(135deg, var(--brand-gradient-start), var(--brand-gradient-end));
    color: white;
}

.mock-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.mock-category {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 4px;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.mock-category span {
    font-size: 1.25rem;
}

.mock-category small {
    font-size: 0.5rem;
    color: var(--text-muted);
}

.mock-category.add {
    background: rgba(124, 58, 237, 0.1);
    border: 1px dashed var(--brand-primary);
}

.mock-category.add span {
    color: var(--brand-primary);
}

/* Add Transaction Screen */
.add-screen {
    gap: 16px;
    align-items: center;
}

.mock-amount-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin: 16px 0;
}

.mock-currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.mock-amount-value {
    font-size: 2.5rem;
    font-weight: 800;
}

.mock-selected-category {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-secondary);
    border-radius: 20px;
}

.mock-cat-icon {
    font-size: 1.25rem;
}

.mock-cat-name {
    font-size: 0.875rem;
    font-weight: 500;
}

.mock-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
    margin-top: auto;
}

.mock-key {
    aspect-ratio: 1.5;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
}

.mock-save-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--brand-gradient-start), var(--brand-gradient-end));
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    margin-top: 8px;
}

/* ---------- Mobile Optimizations ---------- */
@media (max-width: 639px) {
    :root {
        --section-padding: 3rem 0;
    }
    
    .hero {
        padding-top: 70px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-content {
        gap: 2rem;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .phone-mockup {
        width: 240px;
    }
    
    .floating-card {
        display: none;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .features-grid {
        gap: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .problem-grid {
        gap: 1rem;
    }
    
    .problem-card {
        padding: 1.5rem;
    }
    
    .steps-grid {
        gap: 1.5rem;
    }
    
    .pricing-card {
        padding: 1.5rem;
    }
    
    .cta-box {
        padding: 2rem 1.5rem;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .footer-grid {
        gap: 2rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }
}

/* Medium screens (tablets) */
@media (min-width: 640px) and (max-width: 1023px) {
    .hero-content {
        text-align: center;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-value-props {
        justify-content: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .phone-mockup {
        width: 280px;
    }
    
    .floating-card {
        display: none;
    }
}
