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

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.3s ease-in;
}

body.fade-out {
    animation: fadeOut 0.2s ease-out;
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Navigation */
.navbar {
    background: transparent;
    padding: 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 1rem;
}

.navbar .nav-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.navbar.scrolled .nav-wrapper {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(229, 231, 235, 0.8);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

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

.nav-brand {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.nav-brand a {
    color: #2c3e50;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-family: 'Space Grotesk', sans-serif;
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #2c3e50;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    flex: 1;
}

/* Coming Soon Page */
.coming-soon {
    text-align: center;
    padding: 8rem 2rem;
    background: white;
}

.app-icon {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.app-icon-img {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    border: 1px solid #d1d5db;
    display: block;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.coming-soon h1 {
    font-family: 'Libre Baskerville', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.coming-soon p {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    color: #666;
    max-width: 550px;
    margin: 0 auto;
}

/* Waitlist Signup */
.waitlist-signup {
    margin-top: 4rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.waitlist-signup h2 {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.75rem;
}

.waitlist-description {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.waitlist-form {
    width: 100%;
}

.form-group {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.waitlist-form input[type="email"] {
    flex: 1;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    padding: 0.875rem 1.25rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: white;
}

.waitlist-form input[type="email"]:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.waitlist-form input[type="email"]::placeholder {
    color: #999;
}

.submit-btn {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.875rem 2rem;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.submit-btn:hover {
    background: #1a252f;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.2);
}

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

.form-message {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 0.5rem;
    min-height: 1.5rem;
}

.form-message.success {
    color: #059669;
}

.form-message.error {
    color: #dc2626;
}

/* Content Pages (Privacy, Terms) */
.content-page {
    background: white;
    border-radius: 8px;
    padding: 3rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.content-page h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.content-page h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-page .last-updated {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.content-page section {
    margin-bottom: 2rem;
}

.content-page p {
    color: #555;
    line-height: 1.8;
}

.content-page ul {
    color: #555;
    line-height: 1.8;
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.content-page li {
    margin-bottom: 0.5rem;
}

.content-page a {
    color: #2c3e50;
    text-decoration: underline;
}

.content-page a:hover {
    color: #1a252f;
}

/* Footer */
.footer {
    background: white;
    border-top: 1px solid #e0e0e0;
    padding: 2rem 0;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer p {
    font-family: 'Space Grotesk', sans-serif;
    color: #999;
    font-size: 0.9rem;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-links a {
    font-family: 'Space Grotesk', sans-serif;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #2c3e50;
}

.footer-links span {
    color: #ccc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .coming-soon {
        padding: 4rem 1rem;
    }

    .coming-soon h1 {
        font-size: 2rem;
    }

    .content-page {
        padding: 2rem 1.5rem;
    }

    .content-page h1 {
        font-size: 2rem;
    }

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

    .waitlist-signup {
        margin-top: 3rem;
        padding: 0 1rem;
    }

    .waitlist-signup h2 {
        font-size: 1.5rem;
    }

    .form-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .submit-btn {
        width: 100%;
    }
}
