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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #000000;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated grid background */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    z-index: 1;
}

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

/* Glowing orbs */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

.orb-1 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #00ffff, transparent);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, #ff00ff, transparent);
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.orb-3 {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #00ff88, transparent);
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.1); }
}

/* Improved focus styles for accessibility */
*:focus {
    outline: 2px solid #00ffff;
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

*:focus-visible {
    outline: 2px solid #00ffff;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero-title .highlight {
        background: #ffffff;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .submit-btn {
        background: #ffffff;
        color: #000000;
        border: 2px solid #ffffff;
    }
    
    .email-form {
        border-color: #ffffff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip link accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #00ffff;
    color: #000000;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
    border-radius: 4px;
}

.skip-link:focus {
    top: 6px;
}

.container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 3rem;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease-out;
}

.badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #00ffff;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    letter-spacing: -0.02em;
}

.hero-title .highlight {
    background: linear-gradient(135deg, #00ffff 0%, #0080ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-style: italic;
}

.subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    max-width: 480px;
    line-height: 1.6;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.form-container {
    width: 100%;
    max-width: 420px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.email-form {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 12px;
    padding: 4px;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    overflow: hidden;
}

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

.email-form:focus-within::before {
    left: 100%;
}

.email-form:focus-within {
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

.form-inner {
    display: flex;
    gap: 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    position: relative;
    z-index: 2;
}

.email-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 18px 20px;
    color: #ffffff;
    font-size: 16px;
    outline: none;
    border-radius: 8px;
    min-height: 44px;
    font-family: inherit;
}

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

.submit-btn {
    background: linear-gradient(135deg, #00ffff 0%, #0080ff 100%);
    border: none;
    padding: 18px 28px;
    border-radius: 8px;
    color: #000000;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    min-height: 44px;
    min-width: 44px;
    font-family: inherit;
    letter-spacing: 0.5px;
}

.submit-btn::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.3s;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 255, 255, 0.3);
}

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

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

.loading {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.message {
    margin-top: 1rem;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    display: none;
    border: 1px solid;
}

.success-message {
    background: rgba(0, 255, 136, 0.1);
    border-color: rgba(0, 255, 136, 0.3);
    color: #00ff88;
}

.error-message {
    background: rgba(255, 0, 136, 0.1);
    border-color: rgba(255, 0, 136, 0.3);
    color: #ff0088;
}

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

/* Tech accent elements */
.tech-accent {
    position: absolute;
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, #00ffff, transparent);
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.6;
}

.tech-accent-2 {
    position: absolute;
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, transparent, #ff00ff, transparent);
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.6;
}

/* FAQ Section Styles - FIXED FOR TEXT READJUSTMENT */
.faq-section {
    width: 100%;
    max-width: 800px;
    margin-top: 4rem;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.faq-title {
    font-size: 2rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 2rem;
    color: rgba(6, 154, 243, 0.9);
    letter-spacing: -0.02em;
}

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(6, 154, 243, 0.1);
    border-radius: 12px;
    margin-bottom: 1rem;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.faq-item:hover {
    border-color: rgba(6, 154, 243, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: #ffffff;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: left;
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    line-height: 1.4;
}

.faq-question:hover {
    color: #069AF3;
}

.faq-question:focus {
    outline: 2px solid #069AF3;
    outline-offset: -2px;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: #069AF3;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-question[aria-expanded="true"]::after {
    transform: rotate(45deg);
}

/* FIXED: Accordion animation that prevents text readjustment */
.faq-answer {
    overflow: hidden;
    height: 0;
    transition: height 0.3s ease-out;
    /* Removed opacity transition and max-height */
    will-change: height;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.faq-answer.expanded {
    height: auto;
    /* Removed opacity and max-height properties */
}

.faq-answer-content {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 0.95rem;
    padding: 0 2rem 1.5rem 2rem;
    /* Added padding directly to content instead of container */
    /* Added properties to prevent text shifting */
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .form-inner {
        flex-direction: column;
        gap: 8px;
    }
    
    .email-input {
        border-radius: 8px;
    }
    
    .submit-btn {
        border-radius: 8px;
    }

    .orb {
        display: none;
    }

    /* Mobile responsive for FAQ */
    .faq-section {
        margin-top: 3rem;
    }
    
    .faq-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .faq-question {
        padding: 1.25rem 1.5rem;
        font-size: 1rem;
    }
    
    .faq-answer-content {
        padding: 0 1.5rem 1.25rem 1.5rem;
    }
    
    .faq-question::after {
        font-size: 1.25rem;
        margin-left: 0.75rem;
    }
}
