/* ===== CSS Reset & Variables ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #B388EB;
    --primary-light: #D4B8F0;
    --primary-dark: #9A6CD6;
    --secondary: #FFB3C6;
    --accent: #8BD3E6;
    --tertiary: #FFE6A7;
    --bg: #FFF5F7;
    --bg-white: #FFFFFF;
    --text: #5D4E6D;
    --text-secondary: #9B8FB0;
    --gradient-start: #FFB6C1;
    --gradient-middle: #DDA0DD;
    --gradient-end: #B0E0E6;
    --shadow: 0 4px 20px rgba(179, 136, 235, 0.15);
    --shadow-hover: 0 8px 32px rgba(179, 136, 235, 0.25);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', 'Quicksand', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 245, 247, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(179, 136, 235, 0.1);
    z-index: 1000;
    padding: 16px 0;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.logo-icon {
    font-size: 1.4rem;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 16px rgba(179, 136, 235, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(179, 136, 235, 0.5);
    color: white;
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* ===== Hero Section ===== */
.hero {
    padding: 140px 0 80px;
    position: relative;
    background: linear-gradient(170deg, var(--bg) 0%, rgba(179, 136, 235, 0.05) 50%, rgba(139, 211, 230, 0.08) 100%);
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(179, 136, 235, 0.12);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.hero-text h1 {
    font-family: 'Quicksand', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 500px;
    line-height: 1.8;
}

.hero-buttons {
    margin-bottom: 24px;
}

.hero-note {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Phone Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(179, 136, 235, 0.3);
    transform: perspective(800px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

.phone-mockup:hover {
    transform: perspective(800px) rotateY(0deg) rotateX(0deg);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg);
    border-radius: 30px;
    overflow: hidden;
    padding: 24px 16px;
}

.app-preview {
    height: 100%;
}

.preview-header {
    background: white;
    padding: 16px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.mood-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.mood-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    background: white;
    border-radius: 12px;
    font-size: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.mood-item:hover {
    transform: scale(1.05);
}

.mood-item span {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.mood-item.happy { border-bottom: 3px solid #FFE066; }
.mood-item.calm { border-bottom: 3px solid #A8E6CF; }
.mood-item.excited { border-bottom: 3px solid #FF9ECD; }
.mood-item.grateful { border-bottom: 3px solid #FFB347; }
.mood-item.neutral { border-bottom: 3px solid #D4B8E0; }
.mood-item.sad { border-bottom: 3px solid #A4C2F4; }

.preview-entry {
    background: white;
    padding: 16px;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.entry-date {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.entry-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Floating Emojis */
.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-emoji {
    position: absolute;
    left: var(--x);
    top: var(--y);
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
    animation-delay: var(--delay);
    opacity: 0.4;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    75% { transform: translateY(10px) rotate(-5deg); }
}

/* ===== Features Section ===== */
.features {
    padding: 100px 0;
    background: white;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-badge {
    display: inline-block;
    background: rgba(179, 136, 235, 0.12);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-header h2 {
    font-family: 'Quicksand', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(179, 136, 235, 0.08);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(179, 136, 235, 0.2);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== About Section ===== */
.about {
    padding: 100px 0;
    background: linear-gradient(170deg, rgba(179, 136, 235, 0.05) 0%, var(--bg) 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text .section-badge {
    margin-bottom: 16px;
}

.about-text h2 {
    font-family: 'Quicksand', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 32px;
    margin-top: 32px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-family: 'Quicksand', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.about-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid rgba(179, 136, 235, 0.1);
}

.about-emoji {
    font-size: 3rem;
    margin-bottom: 20px;
}

.about-card p {
    font-size: 1.1rem;
    color: var(--text);
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 16px;
}

.about-author {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ===== CTA Section ===== */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary), var(--gradient-middle), var(--accent));
    text-align: center;
}

.cta-content h2 {
    font-family: 'Quicksand', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.cta .btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    color: var(--primary-dark);
}

/* ===== Footer ===== */
.footer {
    background: #2D2540;
    padding: 60px 0 0;
    color: rgba(255, 255, 255, 0.7);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
    color: white;
    margin-bottom: 8px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-links h4 {
    color: white;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary);
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ===== Legal Pages ===== */
.legal-page {
    padding: 120px 0 80px;
    min-height: 100vh;
}

.legal-header {
    text-align: center;
    margin-bottom: 50px;
}

.legal-header h1 {
    font-family: 'Quicksand', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
}

.legal-date {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(179, 136, 235, 0.08);
}

.legal-section {
    margin-bottom: 36px;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(179, 136, 235, 0.15);
}

.legal-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin: 18px 0 10px;
}

.legal-section p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.8;
}

.legal-section ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 12px;
}

.legal-section ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.legal-section ul li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: var(--primary);
    font-weight: 700;
}

.contact-box {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid rgba(179, 136, 235, 0.12);
    margin-top: 12px;
}

.contact-box p {
    margin-bottom: 4px;
}

.contact-box a {
    color: var(--primary);
    font-weight: 600;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        gap: 20px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 2.4rem;
    }

    .hero-subtitle {
        max-width: 100%;
    }

    .hero-buttons {
        display: flex;
        justify-content: center;
    }

    .phone-mockup {
        width: 250px;
        height: 500px;
        transform: none;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-stats {
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .section-header h2,
    .about-text h2,
    .cta-content h2 {
        font-size: 1.8rem;
    }

    .legal-content {
        padding: 32px 24px;
    }

    .legal-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 14px;
        font-size: 0.85rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .mood-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
