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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8f9fa;
    color: #1f2937;
    line-height: 1.6;
    min-height: 100vh;
}

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

/* Header */
.header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 32px 0 20px 0;
}

.theme-toggle-container {
    cursor: pointer;
}

.toggle-track {
    position: relative;
    width: 120px;
    height: 56px;
    background: #f1f5f9;
    border-radius: 28px;
    padding: 4px;
    transition: background-color 0.3s ease;
}

.toggle-thumb {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 48px;
    height: 48px;
    background: #1e293b;
    border-radius: 24px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(30, 41, 59, 0.3);
}

.theme-toggle-container.light-mode .toggle-thumb {
    transform: translateX(64px);
}

.toggle-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    color: #64748b;
    transition: color 0.3s ease;
}

.dark-icon {
    left: 19px;
}

.light-icon {
    right: 19px;
}

.theme-toggle-container.light-mode .light-icon {
    color: #ffffff;
}

.theme-toggle-container:not(.light-mode) .dark-icon {
    color: #ffffff;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 80px;
}

.brand-text {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    letter-spacing: 0.025em;
}

.main-heading {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    color: #1f2937;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 48px;
    max-width: 750px;
    line-height: 1.6;
}

/* Waitlist Section */
.waitlist-section {
    margin-bottom: 32px;
}

.waitlist-btn {
    background: #1f2937;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 18px 36px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(31, 41, 55, 0.25);
}

.waitlist-btn:hover {
    background: #374151;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(31, 41, 55, 0.35);
}

.waitlist-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(31, 41, 55, 0.25);
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    font-size: 14px;
}

.avatar-group {
    display: flex;
    align-items: center;
}

.avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid white;
    overflow: hidden;
    margin-left: -6px;
    position: relative;
    z-index: 1;
}

.avatar:first-child {
    margin-left: 0;
}

.avatar:hover {
    z-index: 10;
    transform: scale(1.1);
    transition: all 0.2s ease;
}

.avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.trust-text {
    font-weight: 500;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: auto;
    padding: 60px 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
    position: relative;
}

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

.feature-icon {
    width: 56px;
    height: 56px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-bottom: 20px;
    position: absolute;
    border: 1px solid #1f2937;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
}

.feature-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
    margin-bottom: 8px;
    margin-top: 40px;
}

.feature-card p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .header {
        padding: 24px 0 60px 0;
    }
    
    .main-heading {
        font-size: 40px;
    }
    
    .subtitle {
        font-size: 16px;
    }
    
    .features {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 40px 0;
    }
    
    .feature-card {
        padding: 40px 20px 24px;
    }
    
    .waitlist-btn {
        width: 100%;
        max-width: 280px;
    }
    
    .trust-indicators {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .main-heading {
        font-size: 32px;
    }
    
    .waitlist-btn {
        padding: 16px 28px;
        font-size: 15px;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

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

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 40px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
    padding: 24px 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
}

.close-btn {
    font-size: 28px;
    font-weight: bold;
    color: #6b7280;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.close-btn:hover {
    color: #1f2937;
}

.waitlist-form {
    padding: 24px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 50px;
    font-size: 16px;
    transition: border-color 0.2s ease;
    background: white;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
}

.form-group select:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2310b981' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.submit-btn {
    width: 100%;
    background: #1f2937;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-btn:hover {
    background: #374151;
    transform: translateY(-1px);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Success Modal */
.success-modal {
    text-align: center;
    padding: 24px 16px;
    position: relative;
}

.success-icon {
    margin-bottom: 16px;
}

.success-modal h2 {
    margin-bottom: 8px;
    font-size: 28px;
    color: #1f2937;
}

.success-modal p {
    color: #6b7280;
    margin-bottom: 10px;
    line-height: 1.6;
}

.waitlist-position {
    background: #1f2937;
    border-radius: 50px;
    padding: 16px;
    margin-bottom: 16px;
    font-size: 18px;
    color: #ffffff;
}

.close-success-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    transition: color 0.2s ease;
}

.close-success-btn:hover {
    font-weight: 800;
    transform: translateY(-1px);
}

/* Responsive line breaks */
.large-break {
    display: none;
}

.mobile-break {
    display: inline;
}

@media (min-width: 768px) {
    .large-break {
        display: inline;
    }
    
    .mobile-break {
        display: none;
    }
}

/* Footer */
.footer {
    background: #1f2937;
    color: #9ca3af;
    padding: 24px 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
    font-size: 14px;
}

.footer-content p {
    margin: 4px 0;
}

.footer-content a {
    color: #10b981;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-content a:hover {
    color: #059669;
}

@media (max-width: 480px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .modal-header h2 {
        font-size: 20px;
    }
    
    .success-modal h2 {
        font-size: 24px;
    }
}
