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

:root {
    --primary-purple: #a855f7;
    --secondary-pink: #ec4899;
    --dark-bg: #0f0820;
    --dark-purple: #1a0d2e;
    --mid-purple: #2d1b4e;
    --card-bg: rgba(45, 27, 78, 0.6);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-purple) 50%, var(--mid-purple) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary-purple);
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 0 0 8px 0;
    z-index: 10000;
    font-weight: 600;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    backdrop-filter: blur(10px);
    background: rgba(15, 8, 32, 0.8);
    border-bottom: 1px solid rgba(168, 85, 247, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-icon {
    width: 32px;
    height: 32px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-pink));
    color: var(--text-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.3);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* Dashboard Card */
.hero-dashboard {
    position: relative;
}

.dashboard-card {
    background: rgba(45, 27, 78, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid rgba(168, 85, 247, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.dashboard-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.dashboard-badge {
    background: rgba(168, 85, 247, 0.2);
    color: var(--primary-purple);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.dashboard-header h3 {
    font-size: 1.25rem;
    flex: 1;
}

.insights-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-pink));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: none;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.metric-card {
    background: rgba(30, 15, 50, 0.6);
    padding: 1.25rem;
    border-radius: 16px;
    border: 1px solid rgba(168, 85, 247, 0.15);
}

.metric-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.metric-header svg {
    width: 20px;
    height: 20px;
    color: var(--primary-purple);
}

.metric-value {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.metric-unit {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.metric-phase {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.sleep-graph {
    height: 30px;
    margin-top: 0.5rem;
}

.sleep-graph svg {
    width: 100%;
    height: 100%;
}

.progress-ring {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0.5rem;
}

.heart-rate .metric-value {
    color: var(--secondary-pink);
}

.cycle-card {
    grid-column: span 2;
}

/* Self-Care Card */
.self-care-card {
    background: rgba(30, 15, 50, 0.6);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(168, 85, 247, 0.15);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.self-care-icon {
    width: 40px;
    height: 40px;
    background: rgba(236, 72, 153, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.self-care-content {
    flex: 1;
}

.self-care-content h4 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.self-care-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.self-care-arrow {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
}

/* Features Section */
.features {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

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

.feature-card {
    background: rgba(45, 27, 78, 0.4);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(168, 85, 247, 0.15);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 12px 40px rgba(168, 85, 247, 0.2);
}

.feature-icon {
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

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

/* How It Works Section */
.how-it-works {
    padding: 6rem 0;
}

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

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.step-card {
    text-align: center;
    background: rgba(45, 27, 78, 0.4);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(168, 85, 247, 0.15);
    transition: all 0.3s;
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 12px 40px rgba(168, 85, 247, 0.2);
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(45, 27, 78, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(168, 85, 247, 0.3);
}

.step-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

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

/* Security Section */
.security {
    padding: 6rem 0;
    background: rgba(15, 8, 32, 0.5);
}

.security-container {
    text-align: center;
    max-width: 900px;
}

.security-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.7;
}

.security-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.security-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.security-feature svg {
    flex-shrink: 0;
}

/* Waitlist Section */
.waitlist {
    padding: 6rem 0;
}

.waitlist-container {
    text-align: center;
    max-width: 700px;
}

.waitlist-container h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.waitlist-container > p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
    align-items: center;
}

.waitlist-form-row {
    display: flex;
    gap: 1rem;
    width: 100%;
    align-items: stretch;
}

.waitlist-form input[type="email"] {
    flex: 1;
    min-width: 0;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(168, 85, 247, 0.3);
    background: rgba(45, 27, 78, 0.4);
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

.waitlist-form input[type="email"]::placeholder {
    color: var(--text-muted);
}

.waitlist-form input[type="email"]:focus {
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

/* hCaptcha Container Styling */
.waitlist-form .h-captcha {
    align-self: center;
}

/* Button Styling */
.waitlist-form .btn {
    flex: 0 0 auto;
    min-width: 180px;
    white-space: nowrap;
}

.form-success {
    display: none;
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    color: #86efac;
    font-weight: 600;
}

.form-success.show {
    display: block;
}

/* Footer */
.footer {
    padding: 3rem 0;
    border-top: 1px solid rgba(168, 85, 247, 0.1);
    background: rgba(15, 8, 32, 0.5);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .features-grid,
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Adjust waitlist form for tablet screens */
    .waitlist-form {
        max-width: 550px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(15, 8, 32, 0.98);
        padding: 2rem;
        gap: 1rem;
        display: none;
        border-top: 1px solid rgba(168, 85, 247, 0.2);
    }

    .nav-menu.active {
        display: flex;
    }

    .hero {
        padding: 4rem 0;
    }

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

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2,
    .section-title,
    .waitlist-container h2 {
        font-size: 2rem;
    }

    .waitlist-form {
        max-width: 100%;
    }

    .waitlist-form-row {
        flex-direction: column;
        width: 100%;
    }

    .waitlist-form input[type="email"],
    .waitlist-form .btn {
        width: 100%;
        min-width: unset;
    }

    .waitlist-form .h-captcha {
        align-self: center;
    }

    .footer-container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-links {
        gap: 1rem;
    }

    .security-features {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }

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

    .hero-description {
        font-size: 1rem;
    }

    .dashboard-card {
        padding: 1.5rem;
    }

    .metric-value {
        font-size: 1.5rem;
    }
}
