/* Nuvira Landing Page - Following Design System */

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

:root {
    /* Primary Colors */
    --primary-blue: #007AFF;
    --accent-blue: #3B82F6;

    /* Background Colors */
    --background: #F8F9FA;
    --background-alt: #FFFFFF;

    /* Text Colors */
    --text-primary: #1F2937;
    --text-secondary: #6B7280;

    /* Status Colors */
    --success-optimal: #6BCF7F;
    --success-dark: #10B981;
    --warning-caution: #FFD93D;
    --warning-orange: #F59E0B;
    --error-critical: #FF6B6B;
    --error-dark: #EF4444;

    /* Activity Colors */
    --color-calories: #FF9800;
    --color-protein: #E91E63;
    --color-water: #00BCD4;
    --color-steps: #2196F3;
    --color-weight: #9C27B0;

    /* Neutral Colors */
    --white: #FFFFFF;
    --black: #000000;
    --border: #E5E7EB;

    /* Layout */
    --max-width: 1200px;
    --border-radius-button: 12px;
    --border-radius-card: 16px;
    --card-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Roboto', 'Segoe UI', 'Oxygen',
        'Ubuntu', 'Cantarell', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--text-primary);
    background: var(--background);
    line-height: 1.6;
    font-size: 16px;
    font-weight: 400;
}

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

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 16px 0;
}

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

.logo {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-nav {
    padding: 12px 24px;
    background: var(--primary-blue);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--border-radius-button);
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
}

.btn-nav:hover {
    background: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0px 4px 12px rgba(0, 122, 255, 0.3);
}

/* Hero Section */
.hero {
    padding: 140px 0 100px;
    text-align: center;
    background: var(--background-alt);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
    font-weight: 400;
}

/* Waitlist Form */
.waitlist-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.email-input {
    flex: 1;
    padding: 16px 20px;
    border: 1px solid var(--border);
    border-radius: var(--border-radius-button);
    font-size: 16px;
    background: var(--white);
    transition: all 0.3s ease;
    font-family: inherit;
}

.email-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.btn-primary {
    padding: 16px 32px;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius-button);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: var(--card-shadow);
}

.btn-primary:hover {
    background: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0px 4px 12px rgba(0, 122, 255, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.form-note {
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
}

#waitlist-count {
    font-weight: 600;
    color: var(--primary-blue);
}

/* Problem/Solution Section */
.problem-solution {
    padding: 80px 0;
    background: var(--background);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 400;
}

.solution-box {
    max-width: 700px;
    margin: 0 auto;
    padding: 32px;
    background: var(--white);
    border-radius: var(--border-radius-card);
    box-shadow: var(--card-shadow);
}

.solution-box h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--primary-blue);
}

.solution-box p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 400;
}

/* Screenshots Section */
.screenshots {
    padding: 100px 0;
    background: var(--background-alt);
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 64px;
    color: var(--text-primary);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.screenshot-item {
    text-align: center;
}

.screenshot-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: top;
}

.screenshot-placeholder {
    width: 100%;
    aspect-ratio: 9 / 16;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    border-radius: var(--border-radius-card);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--card-shadow);
    padding: 20px;
}

.screenshot-placeholder.nutrition {
    background: linear-gradient(135deg, var(--color-protein) 0%, var(--color-calories) 100%);
}

.screenshot-placeholder.goals {
    background: linear-gradient(135deg, var(--success-optimal) 0%, var(--success-dark) 100%);
}

.screenshot-placeholder.gamification {
    background: linear-gradient(135deg, var(--color-weight) 0%, var(--accent-blue) 100%);
}

.screenshot-item:hover .screenshot-placeholder {
    transform: translateY(-8px);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.15);
}

.screenshot-item h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.screenshot-item p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    font-weight: 400;
}

/* Demo Video Section */
.demo-video {
    padding: 100px 0;
    background: var(--background);
}

.video-container {
    max-width: 1100px;
    margin: 0 auto;
}

.video-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--text-primary) 0%, #374151 100%);
    border-radius: var(--border-radius-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    gap: 16px;
    box-shadow: var(--card-shadow);
}

.video-placeholder p {
    font-size: 18px;
    opacity: 0.8;
}

.video-container iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--border-radius-card);
}

/* Social Proof Section */
.social-proof {
    padding: 100px 0;
    background: var(--background-alt);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.testimonial {
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-card);
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
}

.testimonial:hover {
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-weight: 400;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 15px;
    flex-shrink: 0;
}

.author-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
}

.author-title {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Timeline Section */
.timeline {
    padding: 100px 0;
    background: var(--background);
}

.timeline-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.timeline-item {
    display: flex;
    gap: 24px;
    margin-bottom: 48px;
    position: relative;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 15px;
    top: 40px;
    width: 2px;
    height: calc(100% + 8px);
    background: var(--border);
}

.timeline-marker {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 3px solid var(--border);
    background: var(--white);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.timeline-marker.completed {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    border-color: var(--primary-blue);
}

.timeline-marker.current {
    border-color: var(--primary-blue);
    background: var(--white);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 122, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(0, 122, 255, 0);
    }
}

.timeline-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.timeline-date {
    font-size: 14px;
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 8px;
}

.timeline-info p {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
}

/* Final CTA Section */
.final-cta {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--text-primary) 0%, #374151 100%);
    color: var(--white);
}

.cta-content h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--white);
}

.cta-content > p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 40px;
}

.final-cta .email-input {
    background: var(--white);
}

.final-cta .form-note {
    color: rgba(255, 255, 255, 0.8);
}

/* Footer */
.footer {
    padding: 48px 0;
    border-top: 1px solid var(--border);
    background: var(--background-alt);
}

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

.footer-left p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 8px;
    font-weight: 400;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    font-weight: 400;
}

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

/* Success Message */
.success-message {
    padding: 16px;
    background: var(--success-dark);
    color: var(--white);
    border-radius: var(--border-radius-button);
    margin-top: 16px;
    font-weight: 600;
    display: none;
    font-size: 15px;
}

.success-message.show {
    display: block;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 120px 0 80px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-description {
        font-size: 16px;
    }

    .waitlist-form {
        flex-direction: column;
    }

    .btn-primary {
        width: 100%;
    }

    .section-title {
        font-size: 28px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .screenshots-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

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

    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .nav-content {
        gap: 16px;
    }

    .logo {
        font-size: 20px;
    }

    .btn-nav {
        padding: 10px 20px;
        font-size: 14px;
    }

    .cta-content h2 {
        font-size: 32px;
    }

    .timeline-item {
        gap: 16px;
    }

    .timeline-item:not(:last-child)::after {
        left: 15px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 28px;
    }

    .section-title {
        font-size: 24px;
    }

    .cta-content h2 {
        font-size: 28px;
    }

    .solution-box {
        padding: 24px;
    }
}
