/* ===================================
   ILoveMe Landing Page Styles
   Soft, warm, illustrated aesthetic
   =================================== */

/* CSS Variables */
:root {
    /* Colors - matching app theme */
    --deep-rose: #C4938A;
    --deep-rose-dark: #9B6B5A;
    --soft-peach: #F5E6E0;
    --evening-lavender: #F0E4F4;
    --soft-sage: #E8F0E8;
    --warm-brown: #5D4E4A;
    --warm-brown-light: #8B7B75;
    --cream: #FFFAF8;
    --white: #FFFFFF;

    /* Gradients */
    --bg-gradient: linear-gradient(180deg, #FFFAF8 0%, #F5E6E0 50%, #F0E4F4 100%);
    --card-gradient: linear-gradient(135deg, #FFFFFF 0%, #FDF9F7 100%);

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --section-padding: 100px 0;
    --container-width: 1200px;

    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--warm-brown);
    background: var(--bg-gradient);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Shapes */
.bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.4;
    filter: blur(60px);
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--soft-peach);
    top: -100px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--evening-lavender);
    bottom: 20%;
    left: -100px;
    animation: float 25s ease-in-out infinite reverse;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: var(--soft-sage);
    top: 40%;
    right: 10%;
    animation: float 18s ease-in-out infinite 5s;
}

.shape-4 {
    width: 200px;
    height: 200px;
    background: var(--deep-rose);
    opacity: 0.2;
    bottom: 10%;
    right: 30%;
    animation: float 22s ease-in-out infinite 3s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(20px, -30px) scale(1.05); }
    50% { transform: translate(-10px, 20px) scale(0.95); }
    75% { transform: translate(30px, 10px) scale(1.02); }
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(255, 250, 248, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(196, 147, 138, 0.1);
    transition: var(--transition-smooth);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--warm-brown);
    font-weight: 600;
    font-size: 18px;
}

.nav-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(196, 147, 138, 0.2);
}

.nav-cta {
    padding: 10px 24px;
    background: var(--deep-rose);
    color: white;
    text-decoration: none;
    border-radius: 100px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition-smooth);
}

.nav-cta:hover {
    background: var(--deep-rose-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 147, 138, 0.3);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 100px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: var(--warm-brown);
    color: white;
    box-shadow: 0 4px 20px rgba(93, 78, 74, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(93, 78, 74, 0.3);
}

.btn-large {
    padding: 20px 40px;
    font-size: 18px;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    padding: 120px 24px 80px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    max-width: 560px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 5vw, 56px);
    font-weight: 500;
    line-height: 1.2;
    color: var(--warm-brown);
    margin-bottom: 24px;
}

.hero-title .highlight {
    color: var(--deep-rose);
    font-style: italic;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--warm-brown-light);
    line-height: 1.7;
    margin-bottom: 40px;
}

.hero-cta {
    margin-bottom: 16px;
}

.hero-note {
    font-size: 14px;
    color: var(--warm-brown-light);
    opacity: 0.8;
}

.hero-android,
.download-android {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--warm-brown-light);
    background: rgba(255, 255, 255, 0.6);
    border-radius: 100px;
    border: 1px dashed var(--warm-brown-light);
}

.hero-android svg,
.download-android svg {
    opacity: 0.7;
}

.download-android {
    margin-top: 20px;
}

.hero-phone {
    flex: 0 0 auto;
    position: relative;
}

.phone-frame {
    position: relative;
    width: 280px;
    border-radius: 40px;
    overflow: hidden;
    box-shadow:
        0 25px 80px rgba(93, 78, 74, 0.15),
        0 10px 30px rgba(93, 78, 74, 0.1);
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: var(--transition-smooth);
}

.phone-frame:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) translateY(-10px);
}

.phone-screen {
    width: 100%;
    display: block;
}

.phone-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--soft-peach) 0%, transparent 70%);
    opacity: 0.5;
    z-index: -1;
    filter: blur(40px);
}

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 60px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 42px);
    font-weight: 500;
    color: var(--warm-brown);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--warm-brown-light);
}

/* Features Section */
.features {
    padding: var(--section-padding);
}

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

.feature-card {
    background: var(--card-gradient);
    padding: 32px;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(93, 78, 74, 0.06);
    border: 1px solid rgba(196, 147, 138, 0.1);
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(93, 78, 74, 0.12);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    color: var(--warm-brown);
    margin-bottom: 12px;
}

.feature-desc {
    font-size: 15px;
    color: var(--warm-brown-light);
    line-height: 1.6;
}

/* Preview Section */
.preview {
    padding: var(--section-padding);
    background: linear-gradient(180deg, transparent 0%, var(--soft-peach) 50%, transparent 100%);
}

.preview-carousel {
    overflow: hidden;
    margin: 0 -24px;
    padding: 40px 0;
}

.preview-track {
    display: flex;
    gap: 30px;
    padding: 0 24px;
    animation: scroll 30s linear infinite;
}

.preview-slide {
    flex: 0 0 auto;
    width: 220px;
    text-align: center;
}

.preview-slide img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(93, 78, 74, 0.15);
    transition: var(--transition-smooth);
}

.preview-slide:hover img {
    transform: scale(1.05);
}

.preview-caption {
    margin-top: 16px;
    font-size: 14px;
    color: var(--warm-brown-light);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 5)); }
}

/* Philosophy Section */
.philosophy {
    padding: var(--section-padding);
}

.philosophy-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.philosophy-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--soft-peach) 0%, var(--evening-lavender) 100%);
    border-radius: 50%;
}

.philosophy-icon svg {
    width: 40px;
    height: 40px;
    color: var(--deep-rose);
}

.philosophy-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.5vw, 36px);
    font-weight: 500;
    color: var(--warm-brown);
    margin-bottom: 32px;
}

.philosophy-text {
    font-size: 17px;
    color: var(--warm-brown-light);
    line-height: 1.8;
    margin-bottom: 24px;
}

.philosophy-quote {
    font-family: var(--font-display);
    font-size: 24px;
    font-style: italic;
    color: var(--deep-rose);
    margin-top: 40px;
    padding: 32px;
    background: var(--card-gradient);
    border-radius: 20px;
    border-left: 4px solid var(--deep-rose);
}

/* Privacy Section */
.privacy {
    padding: 60px 0;
}

.privacy-card {
    display: flex;
    align-items: center;
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: var(--card-gradient);
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(93, 78, 74, 0.06);
    border: 1px solid rgba(196, 147, 138, 0.1);
}

.privacy-icon {
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--soft-sage);
    border-radius: 20px;
}

.privacy-icon svg {
    width: 32px;
    height: 32px;
    color: #6B8E6B;
}

.privacy-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 500;
    color: var(--warm-brown);
    margin-bottom: 8px;
}

.privacy-text {
    font-size: 16px;
    color: var(--warm-brown-light);
    line-height: 1.6;
}

/* Download Section */
.download {
    padding: var(--section-padding);
    text-align: center;
}

.download-content {
    max-width: 560px;
    margin: 0 auto;
}

.download-icon {
    width: 100px;
    height: 100px;
    border-radius: 24px;
    box-shadow: 0 8px 30px rgba(196, 147, 138, 0.25);
    margin-bottom: 32px;
    animation: gentle-bounce 3s ease-in-out infinite;
}

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

.download-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 42px);
    font-weight: 500;
    color: var(--warm-brown);
    margin-bottom: 16px;
}

.download-subtitle {
    font-size: 18px;
    color: var(--warm-brown-light);
    margin-bottom: 40px;
}

/* Footer */
.footer {
    padding: 60px 0 40px;
    background: linear-gradient(180deg, transparent 0%, var(--evening-lavender) 100%);
}

.footer-content {
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
}

.footer-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.footer-name {
    font-weight: 600;
    font-size: 18px;
    color: var(--warm-brown);
}

.footer-tagline {
    font-size: 14px;
    color: var(--warm-brown-light);
    margin-bottom: 24px;
}

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

.footer-links a {
    color: var(--warm-brown-light);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition-smooth);
}

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

.footer-copy {
    font-size: 13px;
    color: var(--warm-brown-light);
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 60px;
        padding-top: 100px;
    }

    .hero-content {
        max-width: 100%;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 70px 0;
    }

    .hero {
        min-height: auto;
        padding: 100px 24px 60px;
    }

    .phone-frame {
        width: 240px;
        transform: none;
    }

    .phone-frame:hover {
        transform: translateY(-10px);
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 24px;
    }

    .privacy-card {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }

    .preview-slide {
        width: 180px;
    }

    .btn {
        padding: 14px 28px;
        font-size: 15px;
    }

    .btn-large {
        padding: 16px 32px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }

    .section-title {
        font-size: 28px;
    }

    .philosophy-quote {
        font-size: 20px;
        padding: 24px;
    }

    .footer-links {
        flex-direction: column;
        gap: 16px;
    }
}

/* Animations on scroll - applied via JS */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
