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

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a25;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --accent: #6366f1;
    --accent-hover: #818cf8;
    --gradient-start: #6366f1;
    --gradient-end: #8b5cf6;
    --border-color: #2a2a35;
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --success: #10b981;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

.video-section {
    text-align: center;
    width: 100%;
}

/* Video Container */
.video-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.video-player {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    min-height: 600px;
    background: #000;
}

/* CTA Section */
.cta-section {
    margin-top: 2.5rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.3);
}

/* Footer */
.footer {
    padding: 2rem 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

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

    .video-container {
        border-radius: 12px;
    }

    .cta-button {
        padding: 0.875rem 2rem;
        width: 100%;
        max-width: 300px;
    }
}

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

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

/* ================================
   WAITLIST MODAL STYLES
   ================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1rem;
    padding-top: 2rem;
    overflow-y: auto;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.modal-container {
    position: relative;
    width: 100%;
    max-width: 300px;
    background: linear-gradient(to bottom, #12122a, #0a0a1a);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    padding: 0.875rem;
    overflow: hidden;
    animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-close {
    position: absolute;
    top: 0.625rem;
    right: 0.625rem;
    width: 26px;
    height: 26px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Animated blobs */
.modal-blob {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    filter: blur(60px);
    animation: pulseSlow 4s ease-in-out infinite;
}

.modal-blob-1 {
    top: -100px;
    right: -100px;
    background: rgba(99, 102, 241, 0.2);
}

.modal-blob-2 {
    bottom: -100px;
    left: -100px;
    background: rgba(168, 85, 247, 0.2);
    animation-delay: 1s;
}

@keyframes pulseSlow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* Progress Bar */
.progress-container {
    margin-bottom: 0.625rem;
}

.progress-track {
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, #6366f1, #a855f7, #ec4899);
    border-radius: 999px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    padding: 0 0.25rem;
}

.progress-step {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s;
}

.progress-step.active {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: white;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

.progress-step.completed {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: white;
}

/* Step Content */
.step-content {
    display: none;
    animation: fadeInUp 0.4s ease-out;
}

.step-content.active {
    display: block;
}

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

.modal-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.125rem;
    text-align: center;
}

.modal-subtitle {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    margin-bottom: 0.625rem;
}

.selection-hint {
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    margin-bottom: 0.5rem;
}

/* Form Inputs */
.form-group {
    margin-bottom: 0.5rem;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

.form-input {
    width: 100%;
    padding: 0.5rem 0.625rem;
    padding-left: 1.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 0.75rem;
    font-family: inherit;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-input.error {
    border-color: rgba(239, 68, 68, 0.5);
}

.form-select {
    width: 100%;
    padding: 0.5rem 0.625rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 0.75rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff60' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.625rem center;
}

.form-select:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.5);
    background-color: rgba(255, 255, 255, 0.08);
}

.form-select option {
    background: #1a1a2e;
    color: white;
}

.error-text {
    display: block;
    font-size: 0.6875rem;
    color: #f87171;
    margin-top: 0.125rem;
    min-height: 0.875rem;
}

/* Checkbox */
.checkbox-group {
    margin-top: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.checkbox-input {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.checkbox-input:checked + .checkbox-custom {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border-color: transparent;
}

.checkbox-input:checked + .checkbox-custom::after {
    content: '✓';
    color: white;
    font-size: 12px;
}

.checkbox-text a {
    color: var(--accent);
    text-decoration: none;
}

.checkbox-text a:hover {
    text-decoration: underline;
}

/* Feature Cards */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.feature-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.feature-card.selected {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--accent);
}

.feature-icon {
    font-size: 1.25rem;
}

.feature-text {
    flex: 1;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
}

.feature-check {
    display: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border-radius: 50%;
    color: white;
    font-size: 11px;
    align-items: center;
    justify-content: center;
}

.feature-card.selected .feature-check {
    display: flex;
}

/* Tools Grid */
.tools-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tool-chip {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.2s;
}

.tool-chip:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.tool-chip.selected {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(168, 85, 247, 0.2));
    border-color: var(--accent);
    color: white;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

.custom-tool-input {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.custom-tool-input .form-input {
    padding-left: 1rem;
    flex: 1;
}

.add-tool-btn {
    padding: 0 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.add-tool-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Beta Options */
.beta-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.beta-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.beta-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.beta-card.selected {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--accent);
}

.beta-icon {
    font-size: 1.5rem;
}

.beta-text {
    flex: 1;
    font-size: 1rem;
    font-weight: 500;
    color: white;
}

.beta-check {
    display: none;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border-radius: 50%;
    color: white;
    font-size: 12px;
    align-items: center;
    justify-content: center;
}

.beta-card.selected .beta-check {
    display: flex;
}

/* Navigation Buttons */
.modal-nav {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.625rem;
}

.btn-primary {
    flex: 1;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    opacity: 0.9;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Loading State */
.loading-state {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 26, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    border-radius: 24px;
    z-index: 20;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-state p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

/* Success State */
.success-content {
    text-align: center;
    padding: 1rem 0;
}

.success-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
}

.success-icon-ping {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(5, 150, 105, 0.3));
    border-radius: 50%;
    animation: ping 1.5s ease-out infinite;
}

@keyframes ping {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.success-icon {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

.success-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.success-text {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.5rem;
}

.success-details {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.success-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.5rem 0;
}

.success-item:first-child {
    padding-top: 0;
}

.success-item:last-child {
    padding-bottom: 0;
}

.success-check {
    color: #10b981;
}

.success-item strong {
    color: white;
}

.success-item .highlight {
    color: var(--accent);
    font-weight: 500;
}

/* Responsive Modal */
@media (max-width: 480px) {
    .modal-container {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .modal-title {
        font-size: 1.25rem;
    }

    .feature-grid {
        gap: 0.5rem;
    }

    .feature-card {
        padding: 0.75rem;
    }

    .tool-chip {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
    }
}
