/* ========================================
   LullaBook Landing Page Styles
   Colors from app + mockup
   ======================================== */

:root {
    /* App Colors */
    --accent: #F4A76C;
    --accent-dark: #D98B52;
    --bg-cream: #FEF6EB;
    --bg-white: #FFFFFF;
    --bg-dark: #0B0C0F;
    --text-primary: #2A2A2A;
    --text-secondary: #7E7E7E;
    --text-light: #EDEAE4;
    
    /* Additional */
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-accent: rgba(244, 167, 108, 0.3);
    
    /* Spacing */
    --container-width: 1200px;
    --section-padding: 80px;
    --border-radius: 16px;
}

/* ========================================
   Reset & Base
   ======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul, ol {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    box-shadow: 0 4px 20px var(--shadow-accent);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px var(--shadow-accent);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--text-primary);
    border: 2px solid var(--text-primary);
}

.btn-secondary:hover {
    background: var(--text-primary);
    color: var(--bg-white);
}

.btn-appstore {
    background: #000;
    color: white;
    padding: 12px 24px;
    gap: 12px;
}

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

.apple-icon {
    width: 24px;
    height: 24px;
}

.appstore-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.appstore-small {
    font-size: 10px;
    font-weight: 400;
}

.appstore-big {
    font-size: 18px;
    font-weight: 700;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(254, 246, 235, 0.95);
    backdrop-filter: blur(10px);
    padding: 16px 0;
    transition: all 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-secondary);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-switcher {
    display: flex;
    gap: 4px;
    background: rgba(0, 0, 0, 0.05);
    padding: 4px;
    border-radius: 8px;
}

.lang-btn {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    color: var(--text-primary);
}

.lang-btn.active {
    background: var(--accent);
    color: white;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    background: var(--bg-cream);
    padding: 140px 0 0;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    padding-bottom: 80px;
}

.hero-badge {
    display: inline-block;
    background: rgba(244, 167, 108, 0.2);
    color: var(--accent-dark);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
}

.teddy-image {
    width: 100%;
    max-width: 500px;
}

.floating-star {
    position: absolute;
    font-size: 32px;
    animation: twinkle 3s ease-in-out infinite;
}

.star-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.star-2 {
    top: 5%;
    right: 15%;
    animation-delay: 1s;
    font-size: 40px;
}

.star-3 {
    bottom: 20%;
    right: 5%;
    animation-delay: 2s;
}

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

@keyframes twinkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 80px;
}

/* ========================================
   Section Styles
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    background: rgba(244, 167, 108, 0.15);
    color: var(--accent-dark);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-title {
    font-size: 40px;
    font-weight: 800;
    color: var(--text-primary);
    max-width: 600px;
    margin: 0 auto;
}
/* ========================================
   Features Section
   ======================================== */
.features {
    padding: var(--section-padding) 0;
    background: var(--bg-white);
}


.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}


.feature-card {
    background: var(--bg-cream);
    padding: 24px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1024 / 1400;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}


.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px var(--shadow);
}


.feature-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    z-index: 0;
}


.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}


.feature-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}




/* ========================================
   About Section
   ======================================== */
.about {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-cream) 100%);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.phone-mockup {
    position: relative;
    max-width: 300px;
    margin: 0 auto;
}

.app-screenshot {
    position: relative;
    border-radius: 32px;
}

.about-content {
    padding: 20px 0;
}

.about-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin: 20px 0 30px;
    line-height: 1.8;
}

.about-list {
    margin-bottom: 32px;
}

.about-list li {
    padding: 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* ========================================
   Download Section
   ======================================== */
.download {
    padding: var(--section-padding) 0;
    background: var(--bg-cream);
    position: relative;
    overflow: hidden;
}

.download-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    flex-direction: column;
    gap: 40px;
}

.download-content {
    max-width: 600px;
}

.download-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin: 20px 0 32px;
}

.download-bear {
    font-size: 120px;
    animation: float 4s ease-in-out infinite;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--text-primary);
    color: var(--text-light);
    padding: 60px 0 30px;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-brand-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-brand-text {
    text-align: left;
}

.footer-logo {
    width: 60px;
    height: 60px;
    border-radius: 14px;
}

.footer-name {
    font-size: 24px;
    font-weight: 800;
    display: block;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 4px;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 14px;
    transition: color 0.3s ease;
}

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

.footer-social {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.footer-copyright {
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 20px;
}

/* ========================================
   Mobile Menu Overlay
   ======================================== */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: center;
}

.mobile-menu-content a {
    font-size: 28px;
    font-weight: 700;
    color: white;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        order: 1;
    }
    
    .hero-image {
        order: 0;
        margin-bottom: 40px;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-description {
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-image {
        order: 0;
    }
    
    .about-content {
        order: 1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding: 120px 0 0;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        flex-direction: row;
        gap: 24px;
        justify-content: center;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    :root {
        --section-padding: 60px;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .lang-switcher {
        gap: 2px;
    }
    
    .lang-btn {
        padding: 4px 8px;
        font-size: 11px;
    }
}

/* ========================================
   Legal Pages (Privacy, Terms, Support)
   ======================================== */
.legal-page {
    padding: 140px 0 80px;
    background: var(--bg-cream);
    min-height: 100vh;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 60px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px var(--shadow);
}

.legal-title {
    font-size: 40px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 16px 0 32px;
}

.legal-meta {
    background: var(--bg-cream);
    padding: 20px 24px;
    border-radius: 12px;
    margin-bottom: 40px;
}

.legal-meta p {
    margin: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.legal-meta a {
    color: var(--accent);
}

.legal-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.legal-section h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.legal-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 20px 0 12px;
}

.legal-section p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

.legal-section ul,
.legal-section ol {
    margin: 16px 0;
    padding-left: 24px;
}

.legal-section li {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 8px;
    list-style: disc;
}

.legal-section ol li {
    list-style: decimal;
}

.legal-section a {
    color: var(--accent);
    text-decoration: underline;
}

.legal-section a:hover {
    color: var(--accent-dark);
}

/* Support Page Specific */
.support-intro {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.support-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.support-list {
    padding-left: 24px;
}

.support-list li {
    list-style: decimal;
}

.faq-item {
    background: var(--bg-cream);
    padding: 20px 24px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.faq-item h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.faq-item p {
    margin: 0;
    font-size: 15px;
}

.text-muted {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-links a.active {
    color: var(--accent);
}

/* Legal Pages Responsive */
@media (max-width: 768px) {
    .legal-content {
        padding: 32px 24px;
    }
    
    .legal-title {
        font-size: 28px;
    }
    
    .legal-section h2 {
        font-size: 18px;
    }
    
    .support-buttons {
        flex-direction: column;
    }
}