:root {
    /* Lovemoe App Colors (Pastel Kawaii) */
    --love-pink: #FFBFCC;
    --deep-pink: #FF99B3;
    --sky-blue: #AEE9E6;
    --sunny-yellow: #FFF299;
    --dream-purple: #D9BFF2;
    --mint-green: #B3E6BF;
    --cream-bg: #FFFAF2;
    --text-dark: #4D404D;

    /* Futuristic / Neo-Kawaii Tweaks */
    --primary-color: var(--deep-pink);
    --secondary-color: var(--dream-purple);
    --accent-color: var(--sky-blue);

    --bg-dark: #120E26;
    /* Darker purple for contrast */
    --bg-gradient: linear-gradient(135deg, #120E26 0%, #2A1B3D 50%, #1A1633 100%);

    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-highlight: rgba(255, 255, 255, 0.3);

    --glow-pink: 0 0 20px rgba(255, 153, 179, 0.5);
    --glow-blue: 0 0 20px rgba(174, 233, 230, 0.4);

    --text-main: #FFFFFF;
    /* Keep white for dark mode legibility */
    --text-muted: #E0D4E0;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Quicksand', sans-serif;
    --font-hand: 'Gochi Hand', cursive;
}

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

body {
    font-family: var(--font-body);
    background: var(--bg-gradient);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Background Elements */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 15s infinite ease-in-out;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--dream-purple), transparent 70%);
    animation-delay: 0s;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, var(--deep-pink), transparent 70%);
    animation-delay: -5s;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    /* Fade edges */
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(18, 14, 38, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, var(--love-pink), var(--dream-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.heart-dot {
    color: var(--deep-pink);
    -webkit-text-fill-color: var(--deep-pink);
    /* Override transparent */
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--love-pink);
    text-shadow: 0 0 10px rgba(255, 191, 204, 0.5);
}

.btn-primary {
    background: linear-gradient(135deg, var(--deep-pink), var(--love-pink));
    color: #fff !important;
    /* Ensure white text */
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(255, 153, 179, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 153, 179, 0.6);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8rem 10% 4rem;
    position: relative;
    /* overflow: hidden; Removed to allow floating elements to partially exit safely if needed */
}

.hero-content {
    max-width: 50%;
    z-index: 2;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.badge-pill {
    display: inline-block;
    background: rgba(255, 153, 179, 0.15);
    color: var(--love-pink);
    border: 1px solid var(--deep-pink);
    padding: 0.4rem 1.2rem;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 15px rgba(255, 153, 179, 0.2);
}

.gradient-text {
    background: linear-gradient(to right, var(--sky-blue), var(--dream-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(174, 233, 230, 0.3));
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

/* App Store Button */
.app-store-btn {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    padding: 0.8rem 1.8rem;
    border-radius: 16px;
    text-decoration: none;
    border: 1px solid var(--glass-highlight);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.app-store-btn:hover {
    transform: translateY(-3px) scale(1.02);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.app-store-btn i {
    font-size: 2.2rem;
    margin-right: 1rem;
}

.app-store-btn .btn-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.2;
}

.app-store-btn .btn-text span:first-child {
    font-size: 0.75rem;
    text-transform: uppercase;
    opacity: 0.8;
}

.app-store-btn .btn-text .store-name {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Hero Visual & Mockup */
.hero-visual {
    position: relative;
    width: 45%;
    height: 650px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.phone-mockup {
    width: 320px;
    background: #1a1a1a;
    border-radius: 50px;
    border: 8px solid #2a2a2a;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 153, 179, 0.1);
    /* Subtle pink glow */
    z-index: 2;
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.phone-mockup:hover {
    transform: rotateY(0) rotateX(0) scale(1.02);
}

.screen-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Widgets Logic - Removed as we use img now */

/* Floating Elements */
.floating-element {
    position: absolute;
    font-size: 4rem;
    animation: float 4s infinite ease-in-out;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    z-index: 3;
}

.heart-1 {
    top: 15%;
    right: 5%;
    animation-delay: 0.5s;
    font-size: 5rem;
    text-shadow: 0 0 30px rgba(255, 0, 0, 0.4);
}

.note-1 {
    bottom: 25%;
    left: -5%;
    animation-delay: 1.2s;
    font-size: 4rem;
}

/* Feature Sections */
.live-note-section,
.feature-detail-section {
    padding: 8rem 10%;
    position: relative;
    z-index: 2;
}

.live-note-section,
.feature-detail-section:nth-of-type(even) {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
}

.section-content {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.section-title-left {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    background: linear-gradient(to right, #fff, var(--dream-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.features-list {
    margin-top: 2.5rem;
    display: grid;
    gap: 1.8rem;
}

.list-item {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid transparent;
    transition: all 0.3s;
}

.list-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--glass-border);
    transform: translateX(10px);
}

.list-item i {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, rgba(255, 153, 179, 0.2), rgba(217, 191, 242, 0.2));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--love-pink);
    margin-right: 1.2rem;
    font-size: 1.2rem;
}

/* Visual Sides */
.visual-side {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

/* Glass Frame for Images */
.glass-frame {
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-highlight);
    border-radius: 40px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    transform: rotateX(5deg) rotateY(-5deg);
    transition: all 0.5s ease;
}

.glass-frame:hover {
    transform: rotateX(0) rotateY(0) scale(1.03);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), var(--glow-pink);
    border-color: var(--love-pink);
}

.feature-image {
    max-width: 300px;
    border-radius: 28px;
    display: block;
}

/* Live Note Demo */
.live-note-demo {
    width: 100%;
    max-width: 400px;
    height: 280px;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    animation: floating 6s infinite ease-in-out;
}

.typing-container {
    font-family: var(--font-hand);
    font-size: 3rem;
    background: linear-gradient(to right, var(--love-pink), var(--deep-pink));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    transform: rotate(-3deg);
}

.typing-text {
    border-right: 3px solid var(--love-pink);
    white-space: nowrap;
    overflow: hidden;
    animation: typing 3.5s steps(30, end) infinite;
}

/* Features Grid */
.features {
    padding: 8rem 10%;
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 4rem;
    color: var(--text-main);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

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

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    border-radius: 30px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.glass-card:hover {
    transform: translateY(-15px);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--sky-blue);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), var(--glow-blue);
}

.glass-card:hover::before {
    opacity: 1;
}

.icon-wrapper {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}

.glass-card h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--love-pink);
}

.glass-card:nth-child(2) h3 {
    color: var(--sky-blue);
}

.glass-card:nth-child(3) h3 {
    color: var(--sunny-yellow);
}

.glass-card:nth-child(4) h3 {
    color: var(--mint-green);
}

.glass-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Quote Section */
.quote-section {
    padding: 6rem 10%;
    text-align: center;
}

.glass-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    padding: 4rem;
    border-radius: 40px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.glass-container::after {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 20rem;
    opacity: 0.05;
    font-family: serif;
    color: var(--love-pink);
}

blockquote {
    font-size: 1.8rem;
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.4;
    background: linear-gradient(to bottom, #fff, #ddd);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

cite {
    color: var(--love-pink);
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Footer */
.glass-footer {
    background: rgba(10, 8, 25, 0.95);
    backdrop-filter: blur(20px);
    padding: 4rem 10%;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-logo {
    font-size: 2rem;
    background: linear-gradient(to right, var(--love-pink), var(--dream-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

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

.copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    33% {
        transform: translate(30px, -50px);
    }

    66% {
        transform: translate(-20px, 20px);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes wobble {

    0%,
    100% {
        transform: rotate(-2deg);
    }

    50% {
        transform: rotate(2deg);
    }
}

@keyframes typing {
    0% {
        width: 0;
    }

    50% {
        width: 100%;
    }

    80% {
        width: 100%;
        border-right-color: transparent;
    }

    100% {
        width: 0;
        border-right-color: transparent;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 107, 149, 0.7);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 15px rgba(255, 107, 149, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 107, 149, 0);
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.165, 0.84, 0.44, 1), transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: opacity, transform;
}

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

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 6rem;
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: 4rem;
    }

    .hero-visual {
        width: 100%;
        height: 500px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .glass-nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        display: flex;
        align-items: center;
        gap: 1.5rem;
    }

    .nav-links a {
        margin-left: 0;
    }

    .section-content,
    .feature-detail-section.reverse .section-content {
        flex-direction: column;
    }

    .section-title-left {
        text-align: center;
    }
}