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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #FFFFFF;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Gradient Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0C0F2F 0%, #1A1F4A 25%, #2A4A3A 75%, #3DBB7A 100%);
    z-index: -1;
}

/* Spotlight effect */
body::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vh;
    background: radial-gradient(circle, rgba(61, 187, 122, 0.1) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    align-items: center;
    padding: 2rem 0;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.2s forwards;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 40px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

/* Logo white filter effect */
.mono-dark {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

/* Navigation */
.nav-link {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

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

/* Main Content */
.main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.4s forwards;
}

.hero {
    max-width: 600px;
    margin: 0;
}

/* Hero Title */
.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.subtitle {
    display: block;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    opacity: 0.8;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

/* Hero Description */
.hero-description {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 3rem;
    max-width: 500px;
}

/* Signup Form */
.signup-form {
    max-width: 400px;
    margin: 0;
}

.form-group {
    position: relative;
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    /* Ensure inner focus/selection/backgrounds do not bleed past rounded corners */
    overflow: hidden;
}

.form-group:focus-within {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.email-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1rem 1.25rem;
    color: #FFFFFF;
    font-size: 1rem;
    outline: none;
    /* Match parent rounding on the left so selections don't square the corner */
    border-radius: 12px 0 0 12px;
    -webkit-appearance: none;
    appearance: none;
    background-clip: padding-box;
}

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

/* Softer selection color inside input to avoid harsh OS blue */
.email-input::selection {
    background: rgba(255, 255, 255, 0.2);
}

.signup-button {
    background: #FFFFFF;
    color: #0C0F2F;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.signup-button:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.signup-button:active {
    transform: translateY(0);
}

/* Messages */
.error-message,
.success-message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    /* Ensure inner focus/selection/backgrounds do not bleed past rounded corners */
    overflow: hidden;
}

.error-message.show,
.success-message.show {
    opacity: 1;
    transform: translateY(0);
}

.error-message {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #FCA5A5;
}

.success-message {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86EFAC;
}

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

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

@keyframes pulse {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .header {
        padding: 1.5rem 0;
    }
    
    .logo-image {
        height: 32px;
        max-width: 160px;
    }
    
    .hero-title {
        margin-bottom: 1rem;
    }
    
    .hero-description {
        margin-bottom: 2rem;
    }
    
    .main {
        justify-content: center;
        text-align: center;
    }
    
    .hero {
        margin: 0 auto;
    }
    
    .signup-form {
        margin: 0 auto;
    }
    
    .form-group {
        flex-direction: column;
        background: rgba(255, 255, 255, 0.05);
    }
    
    .email-input {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px 8px 0 0;
    }
    
    .signup-button {
        margin: 0;
        border-radius: 0 0 8px 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .header {
        padding: 1rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 0.875rem;
    }
    
    .hero-description {
        font-size: 0.875rem;
    }
    
    .main {
        justify-content: center;
        text-align: center;
    }
    
    .hero {
        margin: 0 auto;
    }
    
    .signup-form {
        margin: 0 auto;
    }
} /* Footer */
.site-footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    pointer-events: none;
}

.site-footer > span {
    pointer-events: auto;
}

.footer-version {
    opacity: 0.8;
}
