@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&family=Raleway:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #0EA5E9;
    --primary-light: #E0F2FE;
    --secondary: #38BDF8;
    --cta: #F97316;
    --bg: #F0F9FF;
    --card-bg: #FFFFFF;
    --text-main: #0C4A6E;
    --text-muted: #475569;
    --dark-section: #1E293B;
    --glass: rgba(255, 255, 255, 0.7);
    --shadow: 0 10px 30px -5px rgba(14, 165, 233, 0.1);
}

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

body {
    font-family: 'Raleway', sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Lora', serif;
    font-weight: 700;
}

/* Navbar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10%;
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--glass);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--primary-light);
}

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

.nav-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

select {
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid var(--primary-light);
    background: white;
    font-family: 'Raleway', sans-serif;
    color: var(--text-main);
    cursor: pointer;
}

/* Hero */
.hero {
    padding: 150px 10% 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark-section);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 600px;
}

.btn-primary {
    display: inline-block;
    background: var(--cta);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
}

.hero-image {
    flex: 1;
    position: relative;
}

.mockup-container {
    position: relative;
    max-width: 320px;
    margin: 0 auto;
}

.hero-image img {
    width: 100%;
    border-radius: 40px;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.25);
    display: block;
}

.floating-badge {
    position: absolute;
    background: white;
    padding: 12px 20px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 2;
    font-size: 0.9rem;
    white-space: nowrap;
    animation: float 3s ease-in-out infinite;
}

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

.app-screenshot-frame {
    border: 8px solid #1e293b;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #1e293b;
}

/* Features Grid Enhancement */
.feature-rich-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.feature-rich-card {
    background: white;
    border-radius: 24px;
    padding: 30px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-rich-card:hover {
    transform: translateY(-10px);
}

.feature-img-small {
    width: 100%;
    max-width: 220px; /* Controlled size for phone screens */
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border: 4px solid #1e293b;
}

.feature-img-wide {
    width: 100%;
    max-width: 350px; /* Controlled size for landscape/charts */
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.rich-text {
    margin-top: 15px;
}

.rich-text h4 {
    font-family: 'Lora', serif;
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--dark-section);
}

.rich-text p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Category Headers */
.category-header {
    margin: 80px 0 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-light);
    display: flex;
    align-items: center;
    gap: 15px;
}

.category-header h3 {
    font-size: 2rem;
    color: var(--primary);
}

.stats-cards-mini {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.mini-card {
    background: #f8fafc;
    padding: 15px;
    border-radius: 12px;
    flex: 1;
}

.mini-card small {
    display: block;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-bottom: 5px;
}

.mini-card p {
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0;
}

/* Features */
.features {
    padding: 80px 10%;
    background: white;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

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

.feature-card {
    padding: 40px;
    background: var(--bg);
    border-radius: 24px;
    transition: transform 0.3s ease, background 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

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

.feature-card:hover {
    background: var(--primary-light);
}

.feature-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    margin-bottom: 15px;
}

/* Showcase - Add Entry Demo */
/* Showcase - Add Entry Demo */
.showcase {
    padding: 100px 10%;
    background: var(--bg);
}

.showcase-container {
    display: flex;
    align-items: center;
    gap: 100px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.showcase-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.demo-form {
    flex: 0.8;
    background: white;
    padding: 40px;
    border-radius: 32px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid var(--primary-light);
    outline: none;
    font-family: 'Raleway', sans-serif;
}

.mood-selector {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.mood-btn {
    flex: 1;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 10px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.mood-btn.active {
    background: var(--primary-light);
    border-color: var(--primary);
    transform: scale(1.1);
}

.btn-save {
    width: 100%;
    background: var(--dark-section);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-weight: 600;
    margin-top: 20px;
    cursor: pointer;
}

.showcase-text {
    flex: 1.2;
}

.showcase-text h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--dark-section);
}

.showcase-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

/* Testimonials */
.testimonials {
    padding: 80px 10%;
    background: white;
}

.testimonial-card {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 60px;
    border-radius: 40px;
    background: var(--bg);
    position: relative;
}

.testimonial-card blockquote {
    font-family: 'Lora', serif;
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 30px;
}

.testimonial-card p {
    font-weight: 700;
    color: var(--primary);
}

/* Footer */
footer {
    padding: 60px 10%;
    background: var(--dark-section);
    color: white;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.app-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.app-badge {
    height: 45px;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 1024px) {
    nav {
        padding: 10px 5%;
    }
    .logo span {
        font-size: 1.1rem;
    }
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 100px; /* Adjusted for smaller nav */
    }
    .hero p {
        margin: 0 auto 30px;
    }
    .showcase-container {
        flex-direction: column-reverse;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 10px 15px;
        height: 70px;
    }
    .logo span {
        font-size: 1rem;
    }
    .nav-controls {
        gap: 8px;
    }
    .btn-primary.small {
        padding: 8px 12px !important;
        font-size: 0.8rem !important;
        border-radius: 12px;
        white-space: nowrap;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        height: 40px;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero {
        padding: 140px 5% 50px; /* Increased padding to prevent overlap */
    }
    .floating-badge {
        display: none;
    }
    .feature-rich-grid {
        grid-template-columns: 1fr;
    }
    .feature-rich-card {
        padding: 20px;
    }
}
