/* ==================== Landing Page Styles ==================== */

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

:root {
    --primary-color: #4f46e5;
    --primary-dark: #4338ca;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

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

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

/* ==================== Navigation ==================== */
.navbar {
    padding: 1.25rem 0;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand i {
    font-size: 1.75rem;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.btn-login {
    background: var(--primary-color) !important;
    color: white !important;
    border-radius: 8px;
    padding: 0.5rem 1.5rem !important;
}

.btn-login:hover {
    background: var(--primary-dark) !important;
}

/* ==================== Hero Section ==================== */
.hero {
    padding: 140px 0 100px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.badge-beta {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

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

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
}

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

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

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

.btn-white:hover {
    background: #f8fafc;
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.stat-item i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    padding: 2rem;
}

.mockup-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
}

.primary-card {
    z-index: 3;
    animation: float 3s ease-in-out infinite;
}

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

.secondary-card {
    position: absolute;
    top: 10%;
    right: -10%;
    width: 200px;
    z-index: 2;
    animation: float 3s ease-in-out infinite 0.5s;
}

.tertiary-card {
    position: absolute;
    bottom: 10%;
    right: 5%;
    width: 200px;
    z-index: 1;
    animation: float 3s ease-in-out infinite 1s;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.card-header i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.card-amount {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.card-amount.positive {
    color: var(--success-color);
}

.card-subtitle {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.progress-bar {
    height: 8px;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success-color), var(--primary-color));
    border-radius: 10px;
    transition: width 0.3s;
}

.mini-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mini-stat i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.mini-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.mini-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* ==================== Section Headers ==================== */
.section-header {
    margin-bottom: 3rem;
}

.section-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-label-white {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

/* ==================== Problem Section ==================== */
.problem-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.problem-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    border: 1px solid var(--border-color);
}

.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.problem-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: var(--danger-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.problem-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

/* ==================== Solution Section ==================== */
.solution-section {
    padding: 100px 0;
    background: white;
}

.benefit-list {
    margin-top: 2rem;
}

.benefit-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.benefit-item i {
    font-size: 1.5rem;
    color: var(--success-color);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.benefit-item strong {
    display: block;
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.benefit-item p {
    color: var(--text-secondary);
    margin: 0;
}

.solution-visual {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.comparison-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    transition: all 0.3s;
}

.comparison-card.highlight {
    border-color: var(--success-color);
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.2);
}

.comparison-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.comparison-before .comparison-label {
    color: var(--danger-color);
}

.comparison-after .comparison-label {
    color: var(--success-color);
}

.comparison-label i {
    font-size: 1.125rem;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.875rem;
}

.metric-row:last-of-type {
    border-bottom: none;
    margin-bottom: 1rem;
}

.comparison-message {
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.75rem;
}

.comparison-message.success {
    background: #f0fdf4;
    color: #166534;
}

.comparison-note {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
    text-align: center;
}

/* ==================== Features Section ==================== */
.features-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    opacity: 0;
    transform: translateY(20px);
}

.feature-card.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

/* ==================== How It Works Section ==================== */
.how-it-works-section {
    padding: 100px 0;
    background: white;
}

.steps-container {
    max-width: 800px;
    margin: 0 auto;
}

.step-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    border: 2px solid var(--border-color);
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
}

.step-card.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 2.5rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
}

.step-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.step-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.step-visual {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1.5rem;
}

.input-preview {
    text-align: center;
}

.input-preview label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.input-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.settings-preview {
    display: flex;
    justify-content: space-around;
}

.setting-item {
    text-align: center;
}

.setting-item span {
    display: block;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.setting-item strong {
    font-size: 1.125rem;
    color: var(--primary-color);
}

.tracking-preview {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.expense-entry {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
}

.expense-entry i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.expense-entry > div {
    flex: 1;
}

.expense-entry strong:first-of-type {
    display: block;
    font-size: 0.875rem;
}

.expense-entry span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.expense-entry > strong:last-of-type {
    font-size: 1.125rem;
}

.balance-update {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 2px dashed var(--success-color);
}

.balance-update strong {
    font-size: 1.5rem;
}

.step-arrow {
    text-align: center;
    padding: 1.5rem 0;
    color: var(--primary-color);
    font-size: 2rem;
}

/* ==================== Early Access Section ==================== */
.early-access-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.early-access-card {
    background: var(--gradient-primary);
    border-radius: 24px;
    padding: 4rem;
    box-shadow: 0 20px 60px rgba(79, 70, 229, 0.3);
}

.text-white {
    color: white !important;
}

.text-white-70 {
    color: rgba(255, 255, 255, 0.9) !important;
}

.beta-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.beta-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    font-weight: 500;
}

.beta-feature i {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
}

.access-form-container {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.875rem;
    transition: border-color 0.2s;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-note {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    margin-bottom: 0;
}

/* ==================== Footer ==================== */
.footer {
    background: var(--text-primary);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 2rem;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-brand i {
    font-size: 1.75rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.footer h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.footer-text a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-text a:hover {
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* ==================== Responsive Design ==================== */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }

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

    .hero-visual {
        margin-top: 3rem;
    }

    .secondary-card,
    .tertiary-card {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        width: 100%;
        margin-top: 1rem;
    }

    .early-access-card {
        padding: 3rem 2rem;
    }
}

@media (max-width: 767px) {
    .hero {
        padding: 100px 0 60px;
    }

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

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

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

    .btn {
        width: 100%;
        justify-content: center;
    }

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

    .problem-section,
    .solution-section,
    .features-section,
    .how-it-works-section,
    .early-access-section {
        padding: 60px 0;
    }

    .step-card {
        padding: 2rem 1.5rem;
    }

    .step-number {
        left: 1.5rem;
    }

    .early-access-card {
        padding: 2rem 1.5rem;
    }

    .access-form-container {
        margin-top: 2rem;
    }
}

/* ==================== Animations ==================== */
.fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

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

/* Alert Styles for Flash Messages */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: none;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
}

.alert-danger {
    background: #fef2f2;
    color: #991b1b;
}

.alert-info {
    background: #eff6ff;
    color: #1e40af;
}

.btn-close {
    opacity: 0.5;
}

.btn-close:hover {
    opacity: 1;
}
