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

:root {
    --primary-color: #0ea5e9;
    --primary-hover: #0284c7;
    --success-color: #10b981;
    --error-color: #ef4444;
    --text-dark: #1f2937;
    --text-medium: #4b5563;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --background: #ffffff;
    --background-alt: #f9fafb;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.5;
    color: var(--text-dark);
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.container {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.content {
    background: var(--background);
    border-radius: 16px;
    padding: 40px 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    overflow-y: auto;
}

/* Brand */
.brand {
    text-align: center;
}

.logo {
    height: 40px;
    width: auto;
}

/* Hero Section */
.hero {
    text-align: center;
}

.hero h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.description {
    font-size: 16px;
    color: var(--text-medium);
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

/* Waitlist Form */
.waitlist-form {
    width: 100%;
}

.form-group {
    margin-bottom: 12px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.2s;
    background: var(--background);
    color: var(--text-dark);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.form-group input::placeholder {
    color: #9ca3af;
}

.error-message {
    display: block;
    color: var(--error-color);
    font-size: 13px;
    margin-top: 6px;
    min-height: 18px;
}

/* Honeypot field - hidden from users but not from bots */
.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.submit-btn {
    width: 100%;
    padding: 14px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.submit-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

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

.submit-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.success-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    background: #ecfdf5;
    border: 2px solid var(--success-color);
    border-radius: 10px;
    color: #065f46;
}

.success-message i {
    color: var(--success-color);
    width: 24px;
    height: 24px;
}

.success-message p {
    font-weight: 500;
    margin: 0;
    font-size: 15px;
}

/* Features Section */
.features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: var(--background-alt);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.feature-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 8px;
}

.feature-icon i {
    color: var(--primary-color);
    width: 20px;
    height: 20px;
}

.feature-content h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.feature-content p {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.4;
    margin: 0;
}

/* Footer */
footer {
    text-align: center;
    padding: 16px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: rgba(255, 255, 255, 1);
    text-decoration: underline;
}

.footer-divider {
    color: rgba(255, 255, 255, 0.6);
}

/* Mobile Responsive */
@media (max-width: 640px) {
    html, body {
        overflow: auto;
    }

    body {
        align-items: flex-start;
    }

    .container {
        height: auto;
        min-height: 100vh;
        padding: 16px;
    }

    .content {
        padding: 32px 24px;
        gap: 24px;
        overflow-y: visible;
    }

    .logo {
        height: 32px;
    }

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

    .description {
        font-size: 15px;
    }

    .feature {
        padding: 12px;
    }

    .feature-icon {
        width: 36px;
        height: 36px;
    }

    .feature-content h3 {
        font-size: 14px;
    }

    .feature-content p {
        font-size: 13px;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background-color: var(--background);
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-light);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
    line-height: 1;
    padding: 0;
}

.modal-close:hover {
    background-color: var(--background-alt);
    color: var(--text-dark);
}

.modal-body {
    padding: 24px 28px;
    overflow-y: auto;
    flex: 1;
}

.modal-date {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 24px;
}

.modal-body h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 24px;
    margin-bottom: 12px;
}

.modal-body h3:first-of-type {
    margin-top: 0;
}

.modal-body h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 16px;
    margin-bottom: 8px;
}

.modal-body p {
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 16px;
}

.modal-body ul {
    margin: 12px 0 16px 20px;
    padding: 0;
}

.modal-body li {
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 8px;
}

.modal-body a {
    color: var(--primary-color);
    text-decoration: none;
}

.modal-body a:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.content {
    animation: fadeIn 0.6s ease-out;
}
