body {
    font-family: "ivystyle-sans", sans-serif;
    background-color: #f9f9fb;
    color: #374151;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/** HEADER SECTION **/

.app-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.header-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

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

/** Login Button **/

.login-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.login-button:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
    transform: translateY(-1px);
}

/** MAIN CONTENT & SECTIONS **/

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

section {
    padding: 80px 0;
    border-bottom: 1px solid #e5e7eb;
}

section:last-of-type {
    border-bottom: none;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px;
}

.section-subtitle {
    font-size: 18px;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/** HERO SECTION **/

.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    padding: 60px 0 100px;
}

.hero-headline {
    font-size: 48px;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
    margin: 0 0 16px;
}

.hero-subheadline {
    font-size: 18px;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 32px;
}

.cta-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #4f46e5;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
}

.cta-button:hover {
    background-color: #4338ca;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.3);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 300px;
}

.blob {
    position: absolute;
    width: 100%;
    height: 100%;
    max-width: 350px;
    max-height: 350px;
    background: linear-gradient(135deg, #a78bfa, #4f46e5);
    border-radius: 42% 56% 72% 28% / 42% 42% 56% 48%;
    animation: morph 8s ease-in-out infinite both alternate;
    opacity: 0.8;
}

@keyframes morph {
    0% {
        border-radius: 42% 56% 72% 28% / 42% 42% 56% 48%;
    }

    100% {
        border-radius: 28% 72% 38% 62% / 58% 62% 38% 42%;
        transform: rotate(10deg) scale(1.05);
    }
}

/** FEATURES SECTION **/

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.feature-card {
    background-color: #fff;
    padding: 32px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: #d1d5db;
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eef2ff;
    color: #4f46e5;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

.feature-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px;
}

.feature-description {
    font-size: 15px;
    line-height: 1.6;
    color: #6b7280;
    margin: 0;
}

/** CTA SECTION **/

.cta-section {
    background: linear-gradient(45deg, #4f46e5, #7c3aed);
    color: #fff;
    padding: 80px 40px;
    text-align: center;
    border-radius: 16px;
    margin: 80px 0;
}

.cta-section .section-title {
    color: #fff;
}

.cta-section .section-subtitle {
    color: #e0e7ff;
    margin-bottom: 32px;
}

.cta-button-large {
    padding: 16px 32px;
    font-size: 18px;
    background-color: #fff;
    color: #4f46e5;
    box-shadow: 0 4px 14px 0 rgb(0 0 0 / 10%);
}

.cta-button-large:hover {
    background-color: #f3f4f6;
    color: #4338ca;
    box-shadow: 0 6px 20px 0 rgb(0 0 0 / 15%);
}

/** FOOTER **/

.app-footer {
    text-align: center;
    padding: 40px;
    color: #9ca3af;
    font-size: 14px;
}

/** SCROLL ANIMATIONS **/
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll:nth-child(2) {
    transition-delay: 0.1s;
}

.animate-on-scroll:nth-child(3) {
    transition-delay: 0.2s;
}


/** RESPONSIVE DESIGN **/
@media (max-width: 768px) {
    body {
        padding: 0;
    }

    .header-content,
    .main-content {
        padding: 0 20px;
    }

    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-visual {
        grid-row: 1;
        min-height: 250px;
    }

    .blob {
        max-width: 300px;
    }

    .hero-headline {
        font-size: 36px;
    }

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

    .section-subtitle {
        font-size: 16px;
    }
}


/** DARK MODE STYLES **/
@media (prefers-color-scheme: dark) {
    body {
        background-color: #111827;
        color: #9ca3af;
    }

    .app-header {
        background: rgba(31, 41, 55, 0.9);
        /* #1f2937 with opacity */
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        border-bottom-color: #374151;
    }

    .header-title,
    .section-title,
    .hero-headline,
    .feature-title {
        color: #f9fafb;
    }

    .hero-subheadline,
    .feature-description {
        color: #9ca3af;
    }

    .section-subtitle {
        color: #d1d5db;
    }

    .login-button {
        background: #374151;
        border-color: #4b5563;
        color: #e5e7eb;
    }

    .login-button:hover {
        background: #4b5563;
        border-color: #6b7280;
    }

    section {
        border-bottom-color: #374151;
    }

    .feature-card {
        background-color: #1f2937;
        border-color: #374151;
        box-shadow: none;
    }

    .feature-card:hover {
        background-color: #374151;
        border-color: #4b5563;
        box-shadow: none;
    }

    /* Feature icon colors are already well-suited for dark mode */
    .feature-icon {
        background-color: #374151;
        color: #a78bfa;
    }

    .app-footer {
        color: #6b7280;
    }
}