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

:root {
    --primary-color: #6B46C1;
    --primary-light: #8B5CF6;
    --primary-dark: #553C9A;
    --secondary-color: #EC4899;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --bg-light: #F9FAFB;
    --bg-white: #FFFFFF;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-baby {
    position: absolute;
    width: 600px;
    height: 600px;
    opacity: 0.15;
    z-index: 0;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    pointer-events: none;
    animation: babyCrawl 20s infinite linear;
    filter: blur(2px);
    overflow: hidden;
}

.baby-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.2);
}

@keyframes babyCrawl {
    0% {
        left: -30%;
        top: 50%;
    }
    25% {
        top: 48%;
    }
    50% {
        left: 50%;
        top: 52%;
    }
    75% {
        top: 48%;
    }
    100% {
        left: 130%;
        top: 50%;
    }
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: floatShape 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -150px;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: -100px;
    animation-delay: 5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 10%;
    animation-delay: 10s;
}

@keyframes floatShape {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    50% { 
        transform: translate(30px, -30px) scale(1.1);
        opacity: 0.5;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: var(--spacing-md);
    animation: fadeInUp 1s ease-out;
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: var(--spacing-md);
    animation: fadeInUp 1s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.03em;
    line-height: 1.1;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-tagline {
    font-size: 1.5rem;
    font-weight: 400;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.stat-item {
    text-align: center;
    padding: var(--spacing-sm);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    animation: iconFloat 3s infinite ease-in-out;
}

.stat-item:nth-child(1) .stat-icon {
    animation-delay: 0s;
}

.stat-item:nth-child(2) .stat-icon {
    animation-delay: 0.5s;
}

.stat-item:nth-child(3) .stat-icon {
    animation-delay: 1s;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-color));
    color: white;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-sm);
}

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* About Section */
.about {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.about-card {
    background: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: 30px 20px 25px 35px;
    box-shadow: 0 4px 15px rgba(107, 70, 193, 0.15), 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 3px solid rgba(107, 70, 193, 0.2);
    position: relative;
    overflow: visible;
}

.about-card:nth-child(1) {
    transform: rotate(-1.5deg);
}

.about-card:nth-child(2) {
    transform: rotate(1deg);
}

.about-card:nth-child(3) {
    transform: rotate(-0.5deg);
}

.about-card::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 30px 20px 25px 35px;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.about-card:hover {
    transform: translateY(-8px) rotate(0deg) scale(1.02);
    box-shadow: 0 8px 25px rgba(107, 70, 193, 0.25), 0 4px 10px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-light);
}

.about-card:hover::before {
    opacity: 0.1;
}

.about-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    display: block;
    animation: bounce 2s infinite;
}

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

.about-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    font-style: italic;
    letter-spacing: -0.01em;
}

.about-card-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-light);
    font-weight: 400;
}

/* Apps Showcase Section */
.apps {
    padding: var(--spacing-xl) 0;
    background: var(--bg-light);
    position: relative;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.app-card {
    background: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: 35px 25px 30px 20px;
    box-shadow: 0 5px 20px rgba(107, 70, 193, 0.2), 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid rgba(107, 70, 193, 0.15);
    position: relative;
    overflow: visible;
}

.app-card:nth-child(1) {
    transform: rotate(1deg);
}

.app-card:nth-child(2) {
    transform: rotate(-1.5deg);
}

.app-card::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 35px 25px 30px 20px;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.app-card > * {
    position: relative;
    z-index: 1;
}

.app-card:hover {
    transform: translateY(-10px) rotate(0deg) scale(1.03);
    box-shadow: 0 10px 30px rgba(107, 70, 193, 0.3), 0 5px 15px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-light);
}

.app-card:hover::after {
    opacity: 0.15;
}

.app-card.featured {
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.08), rgba(236, 72, 153, 0.08));
    border: 3px solid var(--primary-light);
    box-shadow: 0 6px 25px rgba(107, 70, 193, 0.25), 0 3px 10px rgba(0, 0, 0, 0.15);
}

.app-card.coming-soon {
    opacity: 0.85;
}

.app-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-sm);
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.app-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: 25px 15px 20px 18px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: lowercase;
    letter-spacing: 0.02em;
    margin-bottom: var(--spacing-sm);
    box-shadow: 0 2px 8px rgba(107, 70, 193, 0.3);
    transform: rotate(-2deg);
}

.app-card:hover .app-badge {
    transform: rotate(0deg);
}

.coming-soon-badge {
    background: linear-gradient(135deg, var(--text-light), var(--text-dark));
    transform: rotate(1deg);
}

.app-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
    font-style: italic;
    letter-spacing: -0.02em;
}

.app-description {
    font-size: 1.0625rem;
    line-height: 1.9;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    font-weight: 400;
}

.app-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
}

.feature-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: white;
    border-radius: 20px 15px 18px 22px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(107, 70, 193, 0.3);
    transform: rotate(0deg);
    transition: transform 0.2s ease;
}

.feature-tag:nth-child(odd) {
    transform: rotate(-1deg);
}

.feature-tag:nth-child(even) {
    transform: rotate(1deg);
}

.app-card:hover .feature-tag {
    transform: rotate(0deg);
}

.app-highlight {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: var(--spacing-sm);
    border-top: 1px solid rgba(107, 70, 193, 0.1);
}

.highlight-text {
    font-size: 0.9375rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* Footer Section */
.footer {
    padding: var(--spacing-lg) 0;
    background: linear-gradient(135deg, var(--text-dark) 0%, #111827 100%);
    color: white;
    text-align: center;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
}

.footer-text {
    font-size: 0.9375rem;
    opacity: 0.8;
    font-weight: 400;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-baby {
        width: 400px;
        height: 400px;
        opacity: 0.12;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .hero-tagline {
        font-size: 1.25rem;
    }

    .hero-stats {
        gap: var(--spacing-md);
    }

    .stat-icon {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2.25rem;
    }

    .about-grid,
    .apps-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    .about,
    .apps {
        padding: var(--spacing-lg) 0;
    }

    .about-card,
    .app-card {
        padding: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .hero-baby {
        width: 300px;
        height: 300px;
        opacity: 0.1;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-tagline {
        font-size: 1.125rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .stat-icon {
        font-size: 1.75rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.875rem;
    }

    .app-icon {
        font-size: 3rem;
    }

    .about-icon {
        font-size: 2.5rem;
    }
}

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

/* Additional polish */
.about-card,
.app-card {
    will-change: transform;
}

.app-card:hover .app-icon {
    transform: scale(1.1) rotate(5deg);
    transition: transform 0.3s ease;
}

.app-card .app-icon {
    transition: transform 0.3s ease;
}
