/*
--- MAPHRODITE - Website Stylesheet (v2.2 - FINAL CORRECTED) ---
*/

/* --- Base & Variables --- */
:root {
    --bg-color: #FFFBFB;
    --surface-color: rgba(255, 255, 255, 0.45);
    --surface-color-solid: #FFFFFF;
    --text-primary: #2d2d2d;
    --text-secondary: #5a5a5a;
    --accent-pink: #E8A0BF;
    --accent-pink-darker: #d187a6;
    --border-color: rgba(234, 234, 234, 0.7);
    --glow-color: rgba(232, 160, 191, 0.5);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Manrope', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    background-image:
        radial-gradient(at 0% 0%, hsla(330, 80%, 95%, 1) 0px, transparent 50%),
        radial-gradient(at 98% 2%, hsla(289, 80%, 90%, 1) 0px, transparent 50%),
        radial-gradient(at 80% 90%, hsla(320, 84%, 80%, 1) 0px, transparent 50%),
        radial-gradient(at 10% 85%, hsla(278, 80%, 90%, 1) 0px, transparent 50%);
    color: var(--text-secondary);
    font-family: var(--font-body);
    margin: 0;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* --- Cursor Light Effect --- */
.cursor-light {
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--glow-color) 0%, rgba(232, 160, 191, 0) 60%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: left 0.1s ease-out, top 0.1s ease-out;
    filter: blur(40px);
}

@media (max-width: 768px) {
    .cursor-light {
        display: none;
    }
}

/* --- Fade-in Animation on Scroll --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
.feature-item.fade-in:nth-child(2) { transition-delay: 0.2s; }
.feature-item.fade-in:nth-child(3) { transition-delay: 0.4s; }


.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 120px 0;
    position: relative;
}

#showcase {
    padding-top: 140px;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}
.hero-title { font-size: 4.2rem; text-align: center; margin-bottom: 20px; }
.hero-subtitle { font-size: 1.25rem; font-family: var(--font-body); max-width: 600px; margin: 0 auto 40px auto; text-align: center; }
.section-title { font-size: 3rem; text-align: center; margin-bottom: 15px; }
.section-intro { font-size: 1.1rem; text-align: center; max-width: 600px; margin: 0 auto 80px auto; }

/* --- Navigation Bar --- */
.main-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
}
.main-nav .container { display: flex; justify-content: space-between; align-items: center; }
.nav-brand { font-family: var(--font-body); font-weight: 700; font-size: 1.2rem; color: var(--text-primary); text-decoration: none; }
.nav-links a { font-family: var(--font-body); color: var(--text-secondary); text-decoration: none; margin-left: 30px; font-size: 0.95rem; transition: color 0.3s ease; }
.nav-links a:hover { color: var(--text-primary); }
.btn-nav { font-size: 0.9rem !important; padding: 8px 18px; background-color: rgba(255,255,255,0.3); backdrop-filter: blur(5px); border: 1px solid rgba(221,221,221,0.5); color: var(--text-secondary); }
.btn-nav:hover { background-color: var(--accent-pink); border-color: var(--accent-pink); color: #fff; }

/* --- Buttons & Links --- */
.btn { display: inline-block; padding: 14px 32px; border-radius: 50px; text-decoration: none; font-weight: 700; font-family: var(--font-body); transition: all 0.3s ease; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: linear-gradient(45deg, var(--accent-pink), var(--accent-pink-darker)); color: #FFF; box-shadow: 0 4px 20px var(--glow-color); }
.btn-primary:hover { transform: translateY(-4px); box-shadow: 0 8px 30px var(--glow-color); }
.btn-secondary { background-color: var(--surface-color-solid); color: var(--text-primary); border-color: var(--border-color); }
.btn-secondary:hover { background-color: var(--text-primary); color: var(--surface-color-solid); border-color: var(--text-primary); transform: translateY(-3px); }

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.hero .container { display: flex; flex-direction: column; align-items: center; }
.scroll-down-indicator { position: absolute; bottom: 40px; color: var(--text-secondary); animation: bounce 2s infinite; z-index: 3; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-10px); } 60% { transform: translateY(-5px); } }

/* --- App Showcase Section --- */
#showcase { background-color: rgba(255, 251, 251, 0.7); backdrop-filter: blur(10px); }
.showcase-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.showcase-text h2 { font-size: 2.8rem; margin-bottom: 20px; }
.showcase-text p { font-size: 1.1rem; margin-bottom: 20px; }
.companion-text { font-size: 1rem !important; padding-left: 20px; border-left: 3px solid var(--accent-pink); }
.showcase-image { text-align: center; }
.showcase-img { max-width: 320px; width: 100%; filter: drop-shadow(0px 25px 40px rgba(0,0,0,0.1)); }

/* --- Features Section --- */
#features { background-color: transparent; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.feature-item {
    background-color: var(--surface-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
}
.feature-item:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 15px 30px var(--glow-color);
    border-color: rgba(255, 255, 255, 0.8);
}
.feature-icon svg { width: 40px; height: 40px; color: var(--accent-pink); margin-bottom: 20px; }
.feature-title { font-size: 1.5rem; margin-bottom: 10px; }

/* --- Book Companion Section --- */
#book { background-color: rgba(255, 251, 251, 0.7); backdrop-filter: blur(10px); }
.book-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 60px; align-items: center; }
.book-image img { width: 100%; max-width: 300px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.book-title { font-size: 2.8rem; margin-bottom: 20px; }
.book-details p { font-size: 1.1rem; max-width: 500px; }
.book-details strong { color: var(--text-primary); font-weight: 700; }
.book-buttons { margin-top: 30px; display: flex; gap: 15px; }

/* --- Final CTA Section --- */
.final-cta { text-align: center; background-color: transparent; }
.cta-title { font-size: 3.5rem; }
.cta-subtitle { font-size: 1.2rem; margin: -10px auto 40px auto; }

/* --- Footer --- */
footer {
    padding: 40px 0;
    background-color: rgba(253, 246, 248, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 5;
}
footer .container { display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; }
.footer-nav a { color: var(--text-secondary); text-decoration: none; margin-left: 20px; transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--accent-pink); }

/* --- Responsive Design --- */
@media (max-width: 768px) {
    section { padding: 80px 0; }
    #showcase { padding-top: 80px; }
    .hero-title { font-size: 3rem; }
    .section-title, .book-title, .showcase-text h2, .cta-title { font-size: 2.5rem; }
    .nav-links a:not(.btn-nav) { display: none; }
    .showcase-grid, .book-grid { grid-template-columns: 1fr; text-align: center; }
    .showcase-image { grid-row: 1; margin-bottom: 40px; }
    .showcase-text { max-width: 500px; margin: 0 auto; }
    .book-grid { gap: 40px; }
    .book-image { margin-top: 30px; justify-self: center; }
    .book-details p, .book-buttons { margin-left: auto; margin-right: auto; justify-content: center; }
    footer .container { flex-direction: column; gap: 20px; }
    .footer-nav a { margin: 0 10px; }

    /* --- Text alignment for mobile readability --- */
    .hero .container,
    .showcase-text,
    .book-details,
    .final-cta .container,
    .section-header {
        text-align: left;
    }
    .hero-subtitle,
    .section-intro {
        margin-left: 0;
        margin-right: 0;
    }
    .book-buttons {
        justify-content: flex-start;
    }
    .hero .btn-primary {
        margin-left: 0;
        margin-right: 0;
    }
}

/* --- LEGAL PAGES STYLES --- */
.legal-container { max-width: 800px; margin: 60px auto; padding: 30px 40px; background-color: var(--surface-color-solid); border-radius: 12px; border: 1px solid var(--border-color); }
.legal-container h1 { font-size: 2.8rem; margin-bottom: 5px; }
.legal-container h2 { font-size: 2rem; margin-top: 40px; margin-bottom: 10px; }
.legal-container p, .legal-container li { font-size: 1rem; color: var(--text-secondary); }
.legal-container ul { padding-left: 25px; }
.legal-container a:not(.back-link) { color: var(--accent-pink); font-weight: 600; text-decoration: none; }
.legal-container a:not(.back-link):hover { text-decoration: underline; }
.legal-container strong { font-weight: 700; color: var(--text-primary); }
.back-link { display: inline-block; margin-bottom: 30px; font-weight: 700; color: var(--accent-pink); text-decoration: none; transition: transform 0.2s ease; }
.back-link:hover { transform: translateX(-5px); }
.last-updated { font-style: italic; color: #999; margin-bottom: 40px; }
.important-box { background-color: #fdf6f8; border-left: 4px solid var(--accent-pink); padding: 20px 30px; margin: 40px 0; border-radius: 0 8px 8px 0; }
.important-box h3 { font-family: var(--font-body); font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin-top: 0; }
.footer-brand { color: var(--text-secondary); text-decoration: none; transition: color 0.2s ease; }
.footer-brand:hover { color: var(--text-primary); }
@media (max-width: 768px) {
    .legal-container { margin: 20px; padding: 20px; }
    .legal-container h1 { font-size: 2.2rem; }
    .legal-container h2 { font-size: 1.8rem; }
}