@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #FF4B81;
    --primary-hover: #E0386C;
    --primary-glow: rgba(255, 75, 129, 0.4);
    --secondary: #FF85A2;
    --background: #0B0A0F;
    --surface: rgba(20, 19, 26, 0.7);
    --surface-hover: rgba(30, 29, 38, 0.9);
    --surface-variant: #161520;
    --text-primary: #FFFFFF;
    --text-secondary: #9EA3B0;
    --divider: rgba(255, 255, 255, 0.08);
    --neon-shadow: 0 8px 32px 0 rgba(255, 75, 129, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --border-radius-sm: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--background);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 75, 129, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 75, 129, 0.05) 0%, transparent 40%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 10, 15, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--divider);
    padding: 16px 0;
    transition: all 0.3s ease;
}

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

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 800;
    font-size: 1.25rem;
    transition: transform 0.2s ease;
}

.logo-link:hover {
    transform: scale(1.02);
}

.logo-img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(255, 75, 129, 0.3);
}

.nav-menu {
    display: flex;
    gap: 24px;
    align-items: center;
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

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

.nav-btn {
    background-color: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 75, 129, 0.2);
}

.nav-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 75, 129, 0.4);
}

/* Ambient Background Blobs */
.glow-blob {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(50px);
    z-index: -1;
    pointer-events: none;
}

.blob-1 {
    top: 15%;
    left: -5%;
}

.blob-2 {
    top: 55%;
    right: -5%;
}

/* Hero Section */
.hero {
    padding: 180px 0 80px;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.hero h1 span.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, #FF85A2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

.download-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: var(--border-radius-md);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 20px rgba(255, 75, 129, 0.25);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 75, 129, 0.45);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--divider);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--text-secondary);
    transform: translateY(-2px);
}

/* Features */
.features {
    padding: 100px 0;
    position: relative;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--divider);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--glass-shadow);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--neon-shadow);
    background: var(--surface-hover);
}

.feature-card i {
    font-size: 2.25rem;
    color: var(--primary);
    margin-bottom: 24px;
    display: inline-block;
    padding: 16px;
    background: rgba(255, 75, 129, 0.1);
    border-radius: var(--border-radius-md);
}

.feature-card h3 {
    margin-bottom: 16px;
    font-size: 1.6rem;
    font-weight: 700;
}

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

/* Screenshots / App Mockups Section */
.screenshots {
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.screenshots h2 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 50px;
    letter-spacing: -1px;
}

.screenshot-track {
    display: flex;
    gap: 32px;
    overflow-x: auto;
    padding: 24px;
    scrollbar-width: thin;
    scrollbar-color: var(--divider) transparent;
    snap-type: x mandatory;
}

.screenshot-track::-webkit-scrollbar {
    height: 8px;
}

.screenshot-track::-webkit-scrollbar-thumb {
    background-color: var(--divider);
    border-radius: 4px;
}

/* Mockup CSS Phone Frame */
.screenshot-item {
    min-width: 300px;
    width: 300px;
    height: 600px;
    background-color: #070709;
    border-radius: 40px;
    border: 10px solid #1a1a24;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 2px 2px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    snap-align: center;
    display: flex;
    flex-direction: column;
    text-align: left;
}

/* Phone status bar */
.phone-header {
    height: 35px;
    padding: 8px 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    z-index: 10;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 20px;
    background: #1a1a24;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 11;
}

/* Phone screen content container */
.phone-content {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* Phone App Mockups */

/* Screen 1: Dashboard UI */
.phone-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.phone-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.balance-card {
    background: linear-gradient(135deg, var(--primary) 0%, #E0386C 100%);
    border-radius: var(--border-radius-md);
    padding: 16px;
    color: white;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(255, 75, 129, 0.3);
}

.balance-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.balance-amount {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 4px 0;
}

.balance-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 8px;
}

.recent-spends-title {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.spend-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.spend-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--surface-variant);
    padding: 10px 12px;
    border-radius: var(--border-radius-sm);
    font-size: 0.8rem;
    border: 1px solid var(--divider);
}

.spend-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.spend-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(255, 75, 129, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.75rem;
}

.spend-name {
    font-weight: 600;
}

.spend-date {
    font-size: 0.65rem;
    color: var(--text-secondary);
}

.spend-value {
    font-weight: 700;
    color: #ff6b8b;
}

/* Screen 2: Expense Logger Form UI */
.logger-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

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

.form-input-box {
    background: var(--surface-variant);
    border: 1px solid var(--divider);
    border-radius: var(--border-radius-sm);
    padding: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.category-pills {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.cat-pill {
    background: var(--surface-variant);
    border: 1px solid var(--divider);
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cat-pill.active {
    background: rgba(255, 75, 129, 0.15);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-log {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    padding: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    text-align: center;
    margin-top: 16px;
    box-shadow: 0 4px 12px rgba(255, 75, 129, 0.3);
}

/* Screen 3: Love Analytics */
.analytics-chart {
    height: 140px;
    background: var(--surface-variant);
    border-radius: var(--border-radius-md);
    margin-bottom: 16px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding: 16px 8px;
    border: 1px solid var(--divider);
}

.chart-bar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 20%;
}

.chart-bar {
    width: 12px;
    border-radius: 6px;
    background: var(--divider);
    height: 0;
    transition: height 1s ease;
}

.chart-bar.pink {
    background: linear-gradient(180deg, var(--secondary) 0%, var(--primary) 100%);
}

.chart-label {
    font-size: 0.6rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.insight-card {
    background: rgba(255, 75, 129, 0.08);
    border: 1px solid rgba(255, 75, 129, 0.2);
    border-radius: var(--border-radius-md);
    padding: 14px;
    font-size: 0.75rem;
    line-height: 1.5;
}

/* Screen 4: Anniversaries/Important Days UI */
.countdown-card {
    background: var(--surface-variant);
    border-radius: var(--border-radius-md);
    padding: 16px;
    border: 1px solid var(--divider);
    margin-bottom: 16px;
    text-align: center;
}

.countdown-digits {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin: 8px 0;
    letter-spacing: 1px;
}

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

.day-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface-variant);
    border: 1px solid var(--divider);
    border-radius: var(--border-radius-sm);
    padding: 10px 12px;
    margin-bottom: 8px;
}

.day-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 75, 129, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.day-details {
    flex: 1;
    font-size: 0.75rem;
}

.day-title {
    font-weight: 700;
}

.day-date {
    font-size: 0.65rem;
    color: var(--text-secondary);
}

/* Phone navigation bar template */
.phone-navbar {
    height: 48px;
    border-top: 1px solid var(--divider);
    background: #0B0A0F;
    display: flex;
    justify-content: space-around;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    z-index: 10;
}

.phone-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.6rem;
    font-weight: 700;
    gap: 2px;
    color: var(--text-secondary);
}

.phone-nav-item.active {
    color: var(--primary);
}

/* Home Indicator at Bottom */
.phone-indicator {
    width: 100px;
    height: 4px;
    background: #1a1a24;
    border-radius: 2px;
    margin: 6px auto;
}

/* Legal Content Page Styling */
.legal-page-body {
    padding-top: 100px;
}

.legal-content {
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 48px;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--divider);
    box-shadow: var(--glass-shadow);
    margin: 40px auto 100px;
    max-width: 900px;
    position: relative;
}

.legal-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, #FF85A2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.legal-update-date {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    display: block;
}

.legal-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 36px 0 16px;
    color: var(--text-primary);
}

.legal-content p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Footer Section */
footer {
    padding: 80px 0;
    border-top: 1px solid var(--divider);
    background: rgba(11, 10, 15, 0.9);
    position: relative;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.footer-logo span {
    font-weight: 800;
    font-size: 1.25rem;
}

.footer-links {
    margin-bottom: 32px;
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

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

.footer-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0.7;
    margin-bottom: 12px;
}

.made-by {
    font-weight: 800;
    color: var(--primary);
    font-size: 1rem;
    display: inline-block;
    transition: transform 0.2s ease;
}

.made-by:hover {
    transform: scale(1.05);
}

/* Navigation Toggle button for mobile drawer */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s ease;
}

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

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 12px 0;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(11, 10, 15, 0.95);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border-bottom: 1px solid var(--divider);
        flex-direction: column;
        gap: 0;
        padding: 12px 0;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        visibility: hidden;
        transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.3s ease;
    }

    .nav-menu.active {
        max-height: 400px;
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-menu li a {
        display: block;
        padding: 12px 0;
        width: 100%;
    }

    .nav-menu li a.nav-btn {
        margin: 8px auto;
        width: 80%;
        max-width: 250px;
    }
    
    .hero {
        padding: 140px 0 60px;
    }
    
    .hero h1 {
        font-size: 2.75rem;
    }
    
    .hero p {
        font-size: 1.1rem;
        margin-bottom: 36px;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .download-buttons .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .feature-card {
        padding: 30px;
    }
    
    .legal-content {
        padding: 30px 20px;
        margin: 20px auto 60px;
    }
    
    .legal-content h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.20rem;
    }
    .hero p {
        font-size: 0.95rem;
    }
}
