/* SleepNest - Calm Dreamy Night Design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #7c3aed;
    --primary-light: #a78bfa;
    --secondary: #4f46e5;
    --night: #0f0a1e;
    --twilight: #1e1b4b;
    --dusk: #312e81;
    --cloud: #e0e7ff;
    --mist: #c7d2fe;
    --white: #ffffff;
    --gray: #6366f1;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--twilight);
    background: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navigation - Floating glass effect */
nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-radius: 100px;
    box-shadow: 0 4px 30px rgba(124, 58, 237, 0.15);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--twilight);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.9rem;
}

nav a:hover {
    color: var(--primary);
}

/* Hero - Night sky gradient */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 5% 6rem;
    background: linear-gradient(180deg, var(--night) 0%, var(--twilight) 50%, var(--dusk) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: var(--primary);
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.3;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 20%;
    right: 15%;
    width: 250px;
    height: 250px;
    background: var(--secondary);
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.25;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 1;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.15;
    color: var(--white);
    font-weight: 700;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--mist);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

/* Buttons - Soft pill shape */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: var(--white);
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    border: none;
}

.btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.5);
    color: var(--white);
    margin-left: 1rem;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

/* Sections */
section {
    padding: 6rem 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--twilight);
    font-weight: 700;
}

.section-title p {
    color: #64748b;
    max-width: 550px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Features - Soft floating cards */
.features {
    background: linear-gradient(180deg, var(--cloud) 0%, var(--white) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.1);
    transition: all 0.4s;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.2);
}

.feature-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: 600;
}

.feature-card p {
    color: #64748b;
    line-height: 1.8;
}

.feature-card ul {
    margin-top: 1.5rem;
    padding-left: 0;
    list-style: none;
}

.feature-card li {
    margin-bottom: 0.75rem;
    padding-left: 2rem;
    position: relative;
    color: #64748b;
}

.feature-card li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--primary-light);
}

/* Benefits */
.benefits {
    max-width: 900px;
    margin: 0 auto;
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--cloud), var(--white));
    border-radius: 16px;
    transition: all 0.3s;
}

.benefit-item:hover {
    background: linear-gradient(135deg, var(--mist), var(--cloud));
}

.benefit-item span {
    width: 28px;
    height: 28px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.75rem;
}

/* Testimonials - Deep night */
.testimonials {
    background: linear-gradient(180deg, var(--twilight), var(--night));
    color: var(--white);
}

.testimonials .section-title h2 {
    color: var(--white);
}

.testimonials .section-title p {
    color: var(--mist);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-card p {
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 2rem;
    color: var(--cloud);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary-light);
}

.testimonial-author h4 {
    font-size: 1rem;
    font-weight: 600;
}

.testimonial-author span {
    color: var(--mist);
    font-size: 0.9rem;
}

/* CTA - Glowing gradient */
.cta {
    text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    position: relative;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.15) 0%, transparent 70%);
}

.cta h2 {
    font-size: 2.75rem;
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
}

.cta p {
    margin-bottom: 2.5rem;
    font-size: 1.15rem;
    opacity: 0.9;
    position: relative;
}

.cta .btn {
    background: var(--white);
    color: var(--primary);
    position: relative;
}

/* Footer */
footer {
    background: var(--night);
    color: var(--cloud);
    padding: 5rem 5% 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto 3rem;
}

.footer-brand .logo {
    color: var(--primary-light);
}

.footer-brand p {
    color: #94a3b8;
    margin: 1.5rem 0;
    line-height: 1.8;
}

.footer-contact p {
    margin-bottom: 0.5rem;
    color: #94a3b8;
}

footer h4 {
    margin-bottom: 1.5rem;
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
}

footer ul {
    list-style: none;
}

footer li {
    margin-bottom: 0.75rem;
}

footer a {
    color: #94a3b8;
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #64748b;
}

/* Legal Pages */
.legal-content {
    padding-top: 8rem;
    max-width: 750px;
    margin: 0 auto;
    padding-left: 5%;
    padding-right: 5%;
    padding-bottom: 4rem;
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--twilight);
    font-weight: 700;
}

.legal-content .updated {
    color: #64748b;
    margin-bottom: 2.5rem;
}

.legal-content h2 {
    font-size: 1.35rem;
    margin: 2.5rem 0 1rem;
    color: var(--primary);
    font-weight: 600;
}

.legal-content p {
    margin-bottom: 1rem;
    color: #64748b;
    line-height: 1.8;
}

.legal-content ul {
    margin: 1rem 0 1rem 1.5rem;
    color: #64748b;
}

.legal-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

/* About Page */
.about-hero {
    padding-top: 10rem;
    padding-bottom: 5rem;
    background: linear-gradient(180deg, var(--twilight), var(--dusk));
    text-align: center;
}

.about-hero h1 {
    margin-bottom: 1.5rem;
    color: var(--white);
}

.about-hero p {
    color: var(--mist);
    max-width: 550px;
    margin: 0 auto;
    font-size: 1.2rem;
}

.about-content {
    max-width: 750px;
    margin: 0 auto;
    padding: 5rem 5%;
}

.about-content h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: 600;
}

.about-content p {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.9;
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        width: 95%;
        top: 10px;
        padding: 0.75rem 1.5rem;
    }

    nav ul {
        display: none;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .benefits-list {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .btn-outline {
        margin-left: 0;
        margin-top: 1rem;
        display: block;
        text-align: center;
    }
}
