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

html {
    scroll-behavior: smooth;
}


body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #000;
    background-color: #000;
    overflow-x: hidden;
    position: relative;
    font-weight: 400;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: var(--scroll-offset, 0px) var(--scroll-offset, 0px);
    z-index: -1;
    animation: gridPulse 8s ease-in-out infinite alternate;
    pointer-events: none;
    transition: background-position 0.1s ease-out;
}

@keyframes gridPulse {
    0% {
        opacity: 0.3;
        background-size: 50px 50px;
    }
    100% {
        opacity: 0.8;
        background-size: 60px 60px;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 60px;
}

.logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    object-position: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 100%;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    opacity: 0.6;
}

/* Authentication Status Styles */
.auth-status {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: 1.5rem;
    height: 100%;
    flex-shrink: 0;
    min-width: 0;
}

.auth-btn {
    border-radius: 25px;
    padding: 0.5rem 1.2rem;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    height: auto;
}

.auth-btn.primary {
    background: #fff;
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.auth-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.9);
}

.auth-btn.secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.auth-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-1px);
}

.user-welcome {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.welcome-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    font-weight: 400;
    margin-right: 0.3rem;
}

.user-name {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

.auth-signed-in {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-direction: row;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.auth-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s linear infinite;
}

.auth-loading-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 0 2rem;
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 248, 248, 0.98) 100%);
    color: #000;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
}

.hero-beta-notice {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
}

.beta-text {
    font-size: 1rem;
    color: #333;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
}

.cta-button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.cta-button.primary {
    background: linear-gradient(135deg, #000 0%, #333 100%);
    color: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button.primary::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;
}

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

.cta-button.primary:hover {
    background: linear-gradient(135deg, #333 0%, #555 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.cta-button.secondary {
    background: transparent;
    color: #000;
    border: 2px solid #000;
}

.cta-button.secondary:hover {
    background: #000;
    color: #fff;
    transform: translateY(-2px);
}

.cta-button.large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

/* Beta Notice Styling */
.beta-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.beta-icon {
    width: 1.2rem;
    height: 1.2rem;
    stroke: currentColor;
    opacity: 0.8;
}

.inline-icon {
    width: 1.2rem;
    height: 1.2rem;
    stroke: currentColor;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.3rem;
}

/* DAW Access CTA (for everyone except signed-in users who submitted beta request) */
#beta-access-cta {
    margin-bottom: 1.5rem;
}

#beta-access-cta .cta-button {
    background: linear-gradient(135deg, #000 0%, #333 100%);
    position: relative;
    overflow: hidden;
}

#beta-access-cta .cta-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;
}

#beta-access-cta .cta-button:hover::before {
    left: 100%;
}

/* Chat Interface */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-visual::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.02) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

.chat-interface {
    max-width: 400px;
    width: 100%;
    position: relative;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.chat-bubble {
    background: #f8f8f8;
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    animation: fadeInUp 0.6s ease;
}

.chat-bubble.user {
    background: #000;
    color: #fff;
    margin-left: 2rem;
}

.chat-bubble.user::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #000;
}

.chat-bubble.ai {
    margin-right: 2rem;
    border: 1px solid #eee;
}

.chat-bubble.ai::before {
    content: '';
    position: absolute;
    bottom: -11px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #f8f8f8;
}

.chat-bubble p {
    margin: 0;
    font-weight: 500;
}

/* Waveform Animation */
.waveform {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 1rem;
    height: 40px;
}

.waveform-bar {
    width: 4px;
    background: #000;
    border-radius: 2px;
    animation: waveform 1.5s ease-in-out infinite;
}

.waveform-bar:nth-child(1) { animation-delay: 0s; }
.waveform-bar:nth-child(2) { animation-delay: 0.1s; }
.waveform-bar:nth-child(3) { animation-delay: 0.2s; }
.waveform-bar:nth-child(4) { animation-delay: 0.3s; }
.waveform-bar:nth-child(5) { animation-delay: 0.4s; }
.waveform-bar:nth-child(6) { animation-delay: 0.3s; }
.waveform-bar:nth-child(7) { animation-delay: 0.2s; }
.waveform-bar:nth-child(8) { animation-delay: 0.1s; }

@keyframes waveform {
    0%, 100% { height: 8px; }
    50% { height: 40px; }
}

.generating-text {
    color: #666;
    font-style: italic;
}

/* Sections */
.section-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.98) 0%, rgba(20, 20, 20, 0.98) 100%);
    color: #fff;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    z-index: -1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.feature-icon {
    margin-bottom: 1.5rem;
    height: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-icon .icon {
    width: 3rem;
    height: 3rem;
    stroke: #fff;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon .icon {
    stroke: #fff;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8));
    transform: scale(1.1);
}

.feature-card h4 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 250, 250, 0.98) 100%);
    color: #000;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(0, 0, 0, 0.02) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(0, 0, 0, 0.02) 0%, transparent 50%);
    z-index: -1;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.step-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: #000;
    flex-shrink: 0;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ddd;
    position: relative;
    overflow: hidden;
}

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

.step:hover .step-number::before {
    left: 100%;
}

.step-content h4 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.step-content p {
    color: #666;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: rgba(0, 0, 0, 0.98);
    color: #fff;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content h3 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

.cta-content p {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 2rem;
}

.cta-section .cta-button.primary {
    background: #fff;
    color: #000;
}

.cta-section .cta-button.primary:hover {
    background: #eee;
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
    background: rgba(0, 0, 0, 0.98);
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    object-position: center;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.footer-column h5 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #fff;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .auth-status {
        margin-left: 0;
        gap: 1rem;
    }
    
    .auth-btn {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
    
    .user-welcome {
        align-items: center;
    }
    
    .welcome-text {
        font-size: 0.7rem;
    }
    
    .user-name {
        font-size: 0.8rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-cta {
        justify-content: center;
        align-items: center;
    }
    
    .hero-beta-notice {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .chat-bubble {
        margin-left: 0;
        margin-right: 0;
    }
    
    .chat-bubble.user {
        margin-left: 1rem;
    }
    
    .chat-bubble.ai {
        margin-right: 1rem;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .step {
        text-align: center;
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 1rem;
    }
    
    .logo {
        height: 45px;
    }
    
    .footer-logo {
        height: 40px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
    }
    

} 