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

:root {
    /* Core Palette */
    --c1: #8FBFE0; /* Carolina blue – primary */
    --c2: #7C77B9; /* Tropical indigo – secondary */
    --c3: #1D8A99; /* Blue Munsell – link/CTA base */
    --c4: #0BC9CD; /* Robin egg blue – hover/active */
    --c5: #14FFF7; /* Fluorescent cyan – accents */
    
    /* Semantic roles */
    --color-primary: var(--c1);
    --color-secondary: var(--c2);
    --color-accent: var(--c4);
    --color-link: var(--c3);
    --color-ring: var(--c5);
    
    /* Backgrounds */
    --bg-page: #ffffff;
    --bg-surface: #f8fafc;
    
    /* Text colors */
    --text-body: #0f172a;
    --text-muted: #475569;
    --text-light: #64748b;
    
    /* Legacy mappings for compatibility */
    --primary-blue: var(--c3);
    --primary-purple: var(--c2);
    --light-blue: color-mix(in srgb, var(--c1) 30%, white);
    --light-purple: color-mix(in srgb, var(--c2) 30%, white);
    --dark-text: var(--text-body);
    --medium-text: var(--text-muted);
    --light-text: var(--text-light);
    --white: #FFFFFF;
    --background: var(--bg-surface);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-page: #0b1220;
        --bg-surface: #0f172a;
        --text-body: #e5e7eb;
        --text-muted: #94a3b8;
        --text-light: #cbd5e1;
        
        /* Slightly brighter in dark mode */
        --color-primary: color-mix(in oklab, var(--c1) 85%, white);
        --color-secondary: color-mix(in oklab, var(--c2) 85%, white);
        --color-link: color-mix(in oklab, var(--c3) 90%, white);
        --color-accent: var(--c4);
    }
}

html, body {
    background: var(--bg-page);
    color: var(--text-body);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Links */
a {
    color: var(--color-link);
    text-decoration-color: color-mix(in srgb, var(--color-link) 55%, transparent);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-accent);
    text-decoration-color: var(--color-accent);
}

/* Selection */
::selection {
    background: color-mix(in srgb, var(--c5) 30%, transparent);
    color: var(--text-body);
}

/* Focus states */
:focus-visible {
    outline: 2px solid var(--color-ring);
    outline-offset: 2px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.nav-header {
    background: var(--bg-page);
    padding: 15px 0;
    border-bottom: 1px solid var(--bg-surface);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-link);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-body);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--color-link);
}

/* Hero Section with new gradient */
.hero {
    background: linear-gradient(135deg, var(--c1) 0%, var(--c3) 50%, var(--c4) 100%);
    min-height: 600px;
    display: flex;
    align-items: center;
    padding: 80px 0;
}

.hero-with-images {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.baby-image {
    width: 180px;
    height: 180px;
    object-fit: contain;
    animation: gentleSway 6s ease-in-out infinite;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.baby-image.boy {
    animation-delay: 0s;
    transform: rotate(-5deg);
}

.baby-image.girl {
    animation-delay: 3s;
    transform: rotate(5deg);
}

@keyframes gentleSway {
    0%, 100% { transform: translateY(0px) rotate(-5deg); }
    25% { transform: translateY(-8px) rotate(-3deg); }
    50% { transform: translateY(0px) rotate(5deg); }
    75% { transform: translateY(-8px) rotate(3deg); }
}

.hero-content {
    max-width: 700px;
    text-align: center;
}

.hero-content h1, .hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-content .subheader {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-content .subheader strong {
    font-weight: 600;
    color: var(--c5);
    text-shadow: 0 0 20px rgba(20, 255, 247, 0.5);
}

.tagline {
    font-size: 1.5rem;
    color: white;
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.subheadline {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    font-weight: 300;
    letter-spacing: 0.01em;
}

.cta-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin-bottom: 30px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.hero-features {
    margin: 40px auto 50px;
    max-width: 900px;
}

.feature-line {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 15px 0;
    font-weight: 300;
}

.feature-line strong {
    font-weight: 600;
    color: white;
}

/* Buttons */
.cta-button {
    display: inline-block;
    padding: 18px 40px;
    background: white;
    color: var(--color-link);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.cta-button:hover {
    background: var(--c5);
    color: var(--text-body);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(20, 255, 247, 0.4);
}

.cta-button:focus-visible {
    outline: 2px solid var(--color-ring);
    outline-offset: 2px;
}

/* Secondary button */
.btn-secondary {
    display: inline-block;
    padding: 16px 36px;
    background: transparent;
    color: var(--color-secondary);
    border: 2px solid var(--color-secondary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--bg-surface);
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* Introduction Section */
.introduction {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(143, 191, 224, 0.05) 0%, rgba(124, 119, 185, 0.05) 100%);
    text-align: center;
}

.introduction h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--c3) 0%, var(--c2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.introduction p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Section styles */
.section {
    padding: 80px 0;
    background: var(--bg-page);
}

.section-alt {
    background: var(--bg-surface);
}

.section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-body);
}

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 50px;
    line-height: 1.7;
}

/* Cards */
.card {
    background: var(--bg-surface);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(143, 191, 224, 0.1);
    border: 1px solid rgba(143, 191, 224, 0.2);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(124, 119, 185, 0.15);
    border-color: var(--c2);
}

.card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-body);
    border-left: 4px solid var(--color-primary);
    padding-left: 12px;
}

.card p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* Feature grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.feature-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--bg-surface);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(124, 119, 185, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--c1) 0%, var(--c2) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-body);
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--c2) 0%, var(--c3) 100%);
    color: white;
    padding: 60px 0 40px;
    text-align: center;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

.footer-links span {
    color: rgba(255, 255, 255, 0.3);
}

.contact {
    color: rgba(255, 255, 255, 0.7);
    margin: 20px 0;
}

.powered-by {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* Form elements */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--bg-page);
    color: var(--text-body);
    transition: all 0.3s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--c5) 20%, transparent);
}

/* Badge */
.badge {
    display: inline-block;
    padding: 4px 12px;
    background: color-mix(in srgb, var(--c1) 20%, white);
    color: var(--text-body);
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 1200px) {
    .hero-with-images {
        gap: 40px;
    }
    .baby-image {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        gap: 15px;
        font-size: 0.9rem;
    }
    
    .hero-with-images {
        flex-direction: column;
        gap: 30px;
    }
    
    .baby-image {
        width: 120px;
        height: 120px;
    }
    
    .hero h1, .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .subheader {
        font-size: 1.2rem;
        margin-bottom: 30px;
    }
    
    .cta-button {
        padding: 16px 32px;
        font-size: 1rem;
    }
    
    .tagline {
        font-size: 1.25rem;
    }
    
    .section h2, .introduction h2 {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Utility classes */
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-accent { color: var(--color-accent); }
.bg-primary { background-color: var(--color-primary); }
.bg-secondary { background-color: var(--color-secondary); }
.bg-accent { background-color: var(--color-accent); }