/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors from the app */
    --purple-primary: #7048E9;
    --purple-dark: #3B2B52;
    --orange-primary: #EF8354;
    --background-color: #DCD7ED;
    --white: #FFFFFF;
    --black: #000000;
    --gray-light: #F8F9FA;
    --gray-medium: #6C757D;
    --gray-dark: #343A40;
    
    /* Typography */
    --font-title: 'Fredoka', sans-serif;
    --font-body: 'ABeeZee', sans-serif;
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-padding: 0 20px;
    --container-max-width: 1200px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--black);
    background: var(--background-color);
    min-height: 100vh;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: 600;
    line-height: 1.2;
}

.text-highlight {
    color: var(--orange-primary) !important;
}

.text-orange {
    color: var(--orange-primary);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 500;
    color: #3B2B52;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--background-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 32px;
    height: auto;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 600;
    color: #3B2B52;
}

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

.nav-link {
    text-decoration: none;
    color: #3B2B52;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--purple-primary);
}

.download-btn {
    background: var(--purple-primary);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: var(--purple-dark);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: 120px 0 60px;
    background: var(--background-color);
    min-height: 1100px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    width: 100%;
    height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background {
    position: absolute;
    left: 3%;
    top: 30%;
    transform: translateY(-50%);
    z-index: 1;
}

.hero-main {
    width: 700px;
    height: 458px;
    border-radius: 30px;
}

.hero-text-top {
    position: absolute;
    top: 10%;
    right: 5%;
    z-index: 3;
    display: block;
    font-family: var(--font-title);
    font-size: 2.8rem;
    font-weight: 600;
    line-height: 1.1;
    color: #3B2B52;
}

.hero-created,
.hero-moms {
    color: #3B2B52;
}

.hero-help {
    color: var(--orange-primary) !important;
}

.hero-text-bottom {
    position: absolute;
    bottom: 15%;
    left: 5%;
    z-index: 3;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 600;
    line-height: 1.1;
    color: #3B2B52;
    margin-bottom: 1rem;
}

.hero-decorative {
    position: relative;
    margin-top: 1rem;
}

.hero-phones {
    position: absolute;
    left: 30%;
    top: 35%;
    z-index: 4;
}

.hero-screenshots {
    width: auto;
    height: 750px;
    flex-shrink: 0;
}

/* What is it Section */
.what-is-it {
    padding: var(--section-padding);
    background: var(--background-color);
}

.what-is-it-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.highlight-text {
    font-family: var(--font-title);
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: #3B2B52;
}

.description {
    font-size: 1rem;
    color: var(--gray-medium);
    line-height: 1.6;
}

/* Features Grid */
.features-grid {
    padding: var(--section-padding);
    background: var(--background-color);
}

.features-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #3B2B52;
}

.feature-card p {
    color: var(--gray-medium);
    font-size: 0.875rem;
}

/* How it Works */
.how-it-works {
    padding: var(--section-padding);
    background: var(--background-color);
}

.how-it-works-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.how-it-works-subtitle {
    font-family: var(--font-title);
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    line-height: 1.1;
    color: #3B2B52;
}

.how-it-works-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.details-text {
    background: #FFF5F2;
    border-radius: 20px;
    padding: 1.5rem;
    border-left: 4px solid var(--orange-primary);
}

.details-text p {
    font-style: italic;
    color: var(--gray-dark);
    line-height: 1.6;
}

.details-images {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.timeline-image,
.sleep-chart-image {
    width: 150px;
    height: auto;
    border-radius: 15px;
}

/* Feature Cards */
.feature-cards {
    padding: var(--section-padding);
    background: var(--background-color);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2rem;
    align-items: stretch;
}

.card {
    background: var(--white);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #3B2B52;
}

.card p {
    color: var(--gray-medium);
    margin-bottom: 1rem;
    flex-grow: 0;
}

.card-image {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 15px;
    max-height: 100%;
}

/* Footer */
.footer {
    padding: var(--section-padding);
    background: var(--background-color);
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-logo-icon {
    width: 80px;
    height: auto;
    margin-bottom: 2rem;
    object-fit: contain;
}

.footer-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #3B2B52;
}

.app-store-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.app-store-btn {
    display: block;
    transition: transform 0.3s ease;
}

.app-store-btn:hover {
    transform: scale(1.05);
}

.app-store-btn img {
    height: 60px;
    width: 180px;
    object-fit: contain;
}

/* Responsive Design */
@media (max-width: 1024px) and (min-width: 769px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 100px 0 40px;
    }
    
    .hero-content {
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        position: relative;
    }
    
    .hero-background {
        position: static;
        order: 2;
        transform: none;
    }
    
    .hero-main {
        width: 280px;
        height: 183px;
    }
    
    .hero-text-top {
        position: static;
        order: 1;
        font-size: 1.8rem;
        text-align: center;
        margin-bottom: 0;
    }
    
    .hero-text-bottom {
        position: static;
        order: 3;
        text-align: center;
        margin-top: 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-phones {
        display: none;
    }
    
    .what-is-it-content,
    .how-it-works-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .features-row {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .how-it-works-details {
        grid-template-columns: 1fr;
    }
    
    .details-images {
        flex-direction: column;
        align-items: center;
    }
    
    .timeline-image,
    .sleep-chart-image {
        width: 200px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, 1fr);
    }
    
    .nav {
        display: none;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .highlight-text {
        font-size: 1.8rem;
    }
    
    .how-it-works-subtitle {
        font-size: 1.8rem;
    }
    
    .feature-card h3 {
        font-size: 1.1rem;
    }
    
    .card h3 {
        font-size: 1.2rem;
    }
    
    .footer-title {
        font-size: 2rem;
    }
    
    .app-store-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-text-top {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-main {
        width: 240px;
        height: 157px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .highlight-text {
        font-size: 1.5rem;
    }
    
    .how-it-works-subtitle {
        font-size: 1.5rem;
    }
    
    .feature-card h3 {
        font-size: 1rem;
    }
    
    .card h3 {
        font-size: 1.1rem;
    }
    
    .footer-title {
        font-size: 1.5rem;
    }
    
    .feature-card,
    .card {
        padding: 1.5rem;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-light);
}

::-webkit-scrollbar-thumb {
    background: var(--purple-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--purple-dark);
}

/* Header scrolled state */
.header.scrolled {
    background: var(--background-color);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header.scrolled .logo-text,
.header.scrolled .nav-link {
    color: #3B2B52;
}

.header.scrolled .nav-link:hover {
    color: var(--purple-primary);
}

/* Enhanced animations */
.animate {
    opacity: 1;
    transform: translateY(0);
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Pulse animation for download button */
.download-btn {
    position: relative;
    overflow: hidden;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.download-btn:hover::before {
    left: 100%;
}

/* Loading animation for images */
.lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy.loaded {
    opacity: 1;
}

/* Enhanced card shadows */
.feature-card,
.card {
    box-shadow: 0 10px 30px rgba(112, 72, 233, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover,
.card:hover {
    box-shadow: 0 20px 40px rgba(112, 72, 233, 0.2);
}

/* Mobile menu styles (for future use) */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--black);
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        padding: 1rem 0;
        border-bottom: 1px solid var(--gray-light);
    }
}

/* Progress bar animation */
.scroll-progress {
    transition: width 0.3s ease;
}

/* Typing cursor effect */
.typing-cursor::after {
    content: '|';
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* Smooth transitions for all interactive elements */
button, a, .feature-card, .card, .nav-link {
    transition: all 0.3s ease;
}

/* Focus states for accessibility */
button:focus,
a:focus,
.nav-link:focus {
    outline: 2px solid var(--purple-primary);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header,
    .app-store-buttons,
    .download-btn {
        display: none;
    }
    
    .hero,
    .what-is-it,
    .features-grid,
    .how-it-works,
    .feature-cards,
    .footer {
        page-break-inside: avoid;
    }
} 