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

html, body {
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
}

/* Main Container */
.container {
    min-height: 100vh;
    position: relative;
    background: radial-gradient(
        ellipse at 46.4% 56.8%,
        rgba(167, 167, 167, 1) 0%,
        rgba(14, 14, 14, 1) 100%
    );
    display: flex;
    flex-direction: column;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    min-height: calc(100vh - 60px);
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    width: 100%;
    align-items: center;
}

/* Text Content */
.text-content {
    max-width: 600px;
}

.main-heading {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: white;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

/* Email Form */
.email-form {
    margin-top: 2rem;
}

.input-container {
    position: relative;
    display: flex;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 4px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.input-container:focus-within {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

#email {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1rem 1.25rem;
    color: white;
    font-size: 1rem;
    outline: none;
    border-radius: 8px;
}

#email::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.submit-btn {
    background: white;
    border: none;
    border-radius: 8px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
}

.submit-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(2px);
}

.submit-btn:active {
    transform: scale(0.95);
}

.error-message {
    color: #ff6b6b;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
}

/* Hero Image */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: #1a1a1a;
    border-radius: 32px;
    padding: 8px;
    box-shadow: 
        0 16px 32px rgba(0, 0, 0, 0.3),
        0 32px 64px rgba(0, 0, 0, 0.2),
        0 64px 128px rgba(0, 0, 0, 0.15);
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.3s ease;
}

.phone-mockup:hover {
    transform: rotateY(-5deg) rotateX(2deg) scale(1.02);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    padding: 2rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.chat-preview {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
    justify-content: center;
}

.chat-bubble {
    padding: 0.875rem 1.125rem;
    border-radius: 18px;
    font-size: 0.875rem;
    line-height: 1.4;
    max-width: 85%;
    animation: fadeInUp 0.6s ease;
}

.chat-bubble.user {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    align-self: flex-end;
    margin-left: auto;
}

.chat-bubble.ai {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    align-self: flex-start;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Scrolling Banner */
.scrolling-banner {
    height: 60px;
    background: rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.banner-content {
    display: flex;
    align-items: center;
    height: 100%;
    animation: scroll 30s linear infinite;
    white-space: nowrap;
}

.banner-content span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-right: 3rem;
    flex-shrink: 0;
}

/* Success Page Styles */
.success-content {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: rgba(34, 197, 94, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    animation: scaleIn 0.5s ease;
}

.success-icon svg {
    color: #22c55e;
    width: 40px;
    height: 40px;
}

.success-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s ease;
}

.success-message {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.6s ease 0.4s both;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Animations */
@keyframes scroll {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .main-heading {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.125rem;
    }
    
    .phone-mockup {
        width: 240px;
        height: 480px;
        transform: none;
    }
    
    .phone-mockup:hover {
        transform: scale(1.02);
    }
    
    .input-container {
        max-width: 100%;
    }
    
    .main-content {
        padding: 1rem;
        min-height: calc(100vh - 60px);
    }
    
    .banner-content span {
        margin-right: 2rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .main-heading {
        font-size: 2rem;
    }
    
    .phone-mockup {
        width: 200px;
        height: 400px;
    }
    
    .chat-bubble {
        font-size: 0.75rem;
        padding: 0.75rem 1rem;
    }
}

/* Loading State */
.loading {
    pointer-events: none;
}

.loading .submit-btn {
    animation: spin 1s linear infinite;
}

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

/* Focus States for Accessibility */
.submit-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

#email:focus {
    outline: none;
}

.back-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
} 