/* Material Design Waitlist Page */

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

/* Body */
.waitlist-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300;
    background:
        radial-gradient(circle at 20% 30%, rgba(251, 191, 36, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(4, 11, 89, 0.4) 0%, transparent 70%),
        linear-gradient(135deg, #0a1850 0%, #1e1b4b 30%, #312e81 60%, #3730a3 100%);
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #ffffff;
    position: relative;
    overflow-x: hidden;
}

/* Header */
.waitlist-header {
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border-bottom: none;
}

.waitlist-logo-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.waitlist-logo {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo-with-subtitle {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

.logo-image {
    height: 70px;
    width: auto;
    max-width: 400px;
    object-fit: contain;
    margin-right: auto;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.tagline-main {
    font-size: 1rem;
    font-weight: 400;
    color: #ffffff;
    line-height: 1.2;
    border-left: 1px solid rgba(251, 191, 36, 0.4);
    padding-left: 1.5rem;
}

.tagline-sub {
    font-size: 0.75rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    line-height: 1.2;
    padding-left: 4.2rem;
    margin-top: -1.1rem;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.get-access-btn {
    padding: 0.75rem 1.75rem;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #0a1850;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(4, 11, 89, 0.2);
}

.get-access-btn:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.5);
    transform: translateY(-2px);
}

.admin-access-link {
    padding: 0.625rem 1.5rem;
    background: transparent;
    color: #ffffff;
    text-decoration: none;
    border: 1px solid rgba(251, 191, 36, 0.5);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.2s ease;
}

.admin-access-link:hover {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.8);
}

/* Main Content */
.waitlist-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
}

.waitlist-content {
    max-width: 650px;
    width: 100%;
    text-align: center;
}

/* Title */
.waitlist-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 300;
    color: #ffffff;
    line-height: 1.4;
    margin-bottom: 1.25rem;
    min-height: 4.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Rotating text animation */
.rotating-text {
    display: inline-block;
    opacity: 0;
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
    transform: translateY(20px);
}

.title-highlight {
    color: #e89b43;
    font-weight: 500;
}

/* Subtitle */
.waitlist-subtitle {
    font-size: clamp(1rem, 2vw, 1.125rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.waitlist-cta {
    font-size: clamp(1rem, 2vw, 1.125rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.6) 0%, rgba(251, 191, 36, 0.3) 100%);
    background-size: 100% 2px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    padding-bottom: 0.25rem;
    display: inline-block;
}

/* Form */
.waitlist-form {
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    gap: 0;
    max-width: 550px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.form-group:focus-within {
    box-shadow: 0 4px 16px rgba(232, 155, 67, 0.2);
}

.email-input {
    flex: 1;
    padding: 1rem 1.25rem;
    border: none;
    outline: none;
    font-size: 1rem;
    font-weight: 300;
    color: #040b59;
    background: transparent;
}

.email-input::placeholder {
    color: #a0a8bd;
    font-weight: 300;
}

.submit-btn {
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #0a1850;
    border: none;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.submit-btn:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 6px 16px rgba(251, 191, 36, 0.5);
    transform: translateY(-1px);
}

.submit-btn:active {
    transform: scale(0.98);
}

.submit-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

/* Messages */
.message {
    padding: 1rem 1.5rem;
    border-radius: 6px;
    margin: 0 auto 1rem;
    max-width: 550px;
    font-size: 0.95rem;
    text-align: center;
    animation: slideDown 0.3s ease-out;
}

.success-message {
    background: #d5f4e6;
    color: #27ae60;
    border: 1px solid #a8e6cf;
}

.error-message {
    background: #fadbd8;
    color: #e74c3c;
    border: 1px solid #f5b7b1;
}

/* Counter */
.waitlist-counter {
    font-size: 0.9rem;
    color: #5b6c8d;
    margin-top: 1rem;
}

.waitlist-counter span {
    font-weight: 600;
    color: #e89b43;
}

/* Footer */
.waitlist-footer {
    padding: 2rem;
    background: transparent;
    border-top: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.waitlist-footer p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.waitlist-footer a {
    color: #fbbf24;
    text-decoration: none;
    transition: color 0.2s ease;
}

.waitlist-footer a:hover {
    color: #f59e0b;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 0.9rem;
    font-weight: 400;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.footer-links a:hover {
    background: rgba(251, 191, 36, 0.1);
    color: #ffffff;
}

/* Agent Selection Step */
.agent-selection-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-align: center;
}

.agent-selection-subtitle {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    text-align: center;
}

.agents-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .agents-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .agents-grid {
        grid-template-columns: 1fr;
    }
}

.agent-card {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.agent-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.agent-card-content {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.agent-card:hover .agent-card-content {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(251, 191, 36, 0.3);
    box-shadow: 0 8px 24px rgba(251, 191, 36, 0.2);
}

.agent-card input[type="checkbox"]:checked + .agent-card-content {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(245, 158, 11, 0.2) 100%);
    border-color: #fbbf24;
    box-shadow: 0 8px 24px rgba(251, 191, 36, 0.3);
}

.agent-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%);
    border-radius: 12px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.agent-icon svg {
    width: 28px;
    height: 28px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.agent-card:hover .agent-icon {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(245, 158, 11, 0.2) 100%);
    transform: scale(1.05);
}

.agent-card:hover .agent-icon svg {
    color: #fbbf24;
}

.agent-card input[type="checkbox"]:checked + .agent-card-content .agent-icon {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.agent-card input[type="checkbox"]:checked + .agent-card-content .agent-icon svg {
    color: #0a1850;
}

.agent-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.agent-description {
    font-size: 0.85rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.3;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.form-actions .submit-btn {
    border-radius: 12px;
}

.back-btn {
    padding: 1rem 2.5rem;
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.form-step {
    animation: fadeIn 0.4s ease;
}

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

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .waitlist-header {
        padding: 1.5rem 2rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .waitlist-logo-container {
        align-items: center;
    }

    .waitlist-logo {
        flex-direction: column;
        gap: 0.75rem;
    }

    .logo-with-subtitle {
        align-items: center;
    }

    .tagline-main {
        border-left: none;
        padding-left: 0;
        text-align: center;
    }

    .tagline-sub {
        text-align: center;
    }

    .header-actions {
        flex-direction: column;
        width: 100%;
    }

    .get-access-btn,
    .admin-access-link {
        width: 100%;
        text-align: center;
    }

    .waitlist-main {
        padding: 2rem 1.5rem;
    }

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

    .submit-btn {
        padding: 1rem;
    }

    .waitlist-footer {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .waitlist-header {
        padding: 1rem 1.5rem;
    }

    .waitlist-logo .logo-text {
        font-size: 1.25rem;
    }

    .waitlist-title {
        font-size: 1.75rem;
    }

    .waitlist-subtitle,
    .waitlist-cta {
        font-size: 0.95rem;
    }

    .email-input,
    .submit-btn {
        font-size: 0.95rem;
        padding: 0.875rem 1rem;
    }
}