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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background animation - optimized for performance */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 212, 255, 0.02) 0%, transparent 70%),
        linear-gradient(135deg, transparent 0%, rgba(0, 212, 255, 0.03) 50%, transparent 100%);
    z-index: -2;
    will-change: transform;
    animation: background-pulse 8s ease-in-out infinite alternate;
}

@keyframes background-pulse {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

.background-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 20s linear infinite;
    z-index: -1;
}

.background-animation::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(0, 212, 255, 0.05) 0%, transparent 30%),
        radial-gradient(circle at 70% 70%, rgba(124, 58, 237, 0.05) 0%, transparent 30%);
    animation: float-animation 12s ease-in-out infinite alternate;
    z-index: -1;
}

@keyframes float-animation {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(20px, -20px) rotate(2deg); }
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding-top: 8rem; /* Add top padding to prevent header overlap */
}

/* Header */
header {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 10;
}

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

.logo-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.02em;
}

/* Hero section */
.hero {
    text-align: center;
    max-width: 900px;
    margin-bottom: 5rem;
    padding: 2rem 0;
    margin-top: 2rem; /* Add top margin for better spacing */
}

.headline {
    font-size: clamp(2.25rem, 5.5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 2.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.04em;
    padding: 0 1rem;
}

.sub-headline {
    font-size: 1.375rem;
    font-weight: 400;
    line-height: 1.65;
    color: #a0a0a0;
    margin-bottom: 3.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem;
}

/* CTA Section */
.cta-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.primary-button {
    background: linear-gradient(135deg, #00D4FF 0%, #7C3AED 100%);
    border: none;
    padding: 1.125rem 2.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
    will-change: transform;
    transform: translateZ(0);
}

.primary-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.primary-button:hover::before {
    left: 100%;
}

.primary-button:hover {
    transform: translateY(-2px) translateZ(0);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.3);
}

.secondary-link {
    color: #666666;
    text-decoration: none;
    font-size: 0.9rem;
    font-family: 'JetBrains Mono', monospace;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.secondary-link:hover {
    color: #00D4FF;
    border-bottom-color: #00D4FF;
}

/* Preview card */
.preview-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    max-width: 400px;
    width: 100%;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.preview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.5), transparent);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-dots {
    display: flex;
    gap: 0.5rem;
}

.card-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.card-dots span:first-child {
    background: #ff5f57;
}

.card-dots span:nth-child(2) {
    background: #ffbd2e;
}

.card-dots span:last-child {
    background: #28ca42;
}

.card-title {
    font-size: 0.8rem;
    color: #a0a0a0;
    font-family: 'JetBrains Mono', monospace;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.alert-badge {
    display: inline-block;
    background: linear-gradient(135deg, #00D4FF, #7C3AED);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    width: fit-content;
    font-family: 'JetBrains Mono', monospace;
}

.alert-text {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0.5rem 0;
}

.alert-details {
    font-size: 0.85rem;
    color: #a0a0a0;
    font-family: 'JetBrains Mono', monospace;
}

/* Responsive design */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero {
        margin-bottom: 3rem;
    }
    
    .headline {
        margin-bottom: 2rem;
    }
    
    .sub-headline {
        margin-bottom: 2.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
        justify-content: flex-start;
        padding-top: 6rem;
    }
    
    header {
        top: 1.5rem;
        left: 1.25rem;
        right: 1.25rem;
        display: flex;
        justify-content: center;
    }
    
    .logo {
        gap: 0.5rem;
    }
    
    .logo svg {
        width: 40px;
        height: 40px;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .hero {
        margin-bottom: 2.5rem;
        padding: 0 0.5rem;
    }
    
    .headline {
        font-size: 2.75rem;
        margin-bottom: 2rem;
        line-height: 1.05;
    }
    
    .sub-headline {
        font-size: 1.125rem;
        margin-bottom: 2.5rem;
        line-height: 1.5;
        padding: 0 1rem;
    }
    
    .primary-button {
        padding: 1rem 2.25rem;
        font-size: 1rem;
        width: 100%;
        max-width: 280px;
    }
    
    .secondary-link {
        font-size: 0.875rem;
        text-align: center;
        padding: 0 1rem;
    }
    
    .preview-card {
        margin-top: 2rem;
        max-width: 100%;
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }
    
    .cta-section {
        width: 100%;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
        padding-top: 5rem;
    }
    
    header {
        top: 1rem;
        left: 1rem;
        right: 1rem;
    }
    
    .hero {
        padding: 0;
        margin-bottom: 2rem;
    }
    
    .headline {
        font-size: 2.25rem;
        margin-bottom: 1.75rem;
        line-height: 1.1;
    }
    
    .sub-headline {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 0.5rem;
        line-height: 1.4;
    }
    
    .cta-section {
        gap: 1.25rem;
        padding: 0 0.5rem;
    }
    
    .primary-button {
        padding: 0.875rem 1.75rem;
        font-size: 0.95rem;
        max-width: 100%;
    }
    
    .secondary-link {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .preview-card {
        padding: 1.25rem;
        margin-left: 0;
        margin-right: 0;
    }
    
    .card-content {
        gap: 0.75rem;
    }
    
    .alert-text {
        font-size: 0.95rem;
    }
    
    .alert-details {
        font-size: 0.8rem;
    }
}

@media (max-width: 360px) {
    .headline {
        font-size: 2rem;
    }
    
    .sub-headline {
        font-size: 0.95rem;
    }
    
    .primary-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .primary-button {
        padding: 1.25rem 2.75rem;
        font-size: 1.125rem;
    }
    
    .secondary-link {
        padding: 0.5rem;
        font-size: 1rem;
    }
    
    .preview-card {
        padding: 2rem 1.5rem;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .background-animation::before {
        animation: none;
    }
    
    .primary-button {
        transition: none;
    }
    
    .preview-card {
        transition: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .headline {
        background: #ffffff;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .sub-headline {
        color: #cccccc;
    }
    
    .preview-card {
        border-color: rgba(255, 255, 255, 0.3);
    }
}

/* Waitlist Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    backdrop-filter: blur(20px);
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.5), transparent);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: #a0a0a0;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.modal-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.modal-description {
    color: #a0a0a0;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #ffffff;
    font-family: 'JetBrains Mono', monospace;
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    font-size: 1rem;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00D4FF;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666666;
}

.submit-button {
    background: linear-gradient(135deg, #00D4FF 0%, #7C3AED 100%);
    border: none;
    padding: 1.125rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
    margin-top: 0.5rem;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.3);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.button-loading {
    display: none;
}

.submit-button.loading .button-text {
    display: none;
}

.submit-button.loading .button-loading {
    display: inline;
}

.form-success {
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00D4FF 0%, #7C3AED 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ffffff;
    margin: 0 auto 1rem;
    font-weight: bold;
}

.form-success h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.form-success p {
    color: #a0a0a0;
    font-size: 1rem;
}

/* Mobile responsiveness for modal */
@media (max-width: 768px) {
    .modal-content {
        padding: 1.5rem;
        width: 95%;
        margin: 1rem;
    }
    
    .modal-header h3 {
        font-size: 1.25rem;
    }
    
    .modal-description {
        font-size: 0.95rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.875rem;
        font-size: 0.95rem;
    }
    
    .submit-button {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 1.25rem;
        width: 98%;
        margin: 0.5rem;
    }
    
    .waitlist-form {
        gap: 1.25rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.75rem;
    }
}