/* ================================
   Reset & Base Styles
   ================================ */

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

html {
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #18175A 0%, #2F2DAB 100%);
    background-attachment: fixed;
    color: #FFFFFF;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Subtle background decorations */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(91, 82, 230, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(0, 255, 165, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(79, 70, 229, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* ================================
   Logo
   ================================ */

.logo {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 10;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.logo:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 6px 20px rgba(0, 255, 165, 0.3));
}

.logo img {
    display: block;
    height: 32px;
    width: auto;
}

/* ================================
   Main Container
   ================================ */

.container {
    max-width: 520px;
    margin: 0 auto;
    padding: 40px;
    padding-top: 100px;
    padding-bottom: 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.content {
    width: 100%;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 48px 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.05) inset,
                0 4px 60px rgba(91, 82, 230, 0.15);
    position: relative;
    overflow: hidden;
}

/* Translucent background image */
.content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/lumina.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.03;
    z-index: 0;
    pointer-events: none;
}

/* Ensure content is above background */
.content > * {
    position: relative;
    z-index: 1;
}

/* ================================
   Typography
   ================================ */

h1 {
    font-size: 58px;
    font-weight: 700;
    background: linear-gradient(135deg, #FFFFFF 0%, #00FFA5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(0, 255, 165, 0.2);
    animation: float 3s ease-in-out infinite;
}

.product-tagline {
    font-size: 20px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.2);
    line-height: 1.2;
    margin-bottom: 32px;
    letter-spacing: 0.02em;
    text-transform: none;
}

.subheading {
    font-size: 24px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.3;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.description {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.cta-text {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* Legacy support for .subtitle */
.subtitle {
    font-size: 18px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 48px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

/* ================================
   Form Container
   ================================ */

.form-container {
    width: 100%;
}

.waitlist-form {
    width: 100%;
}

/* ================================
   Form Grid Layout
   ================================ */

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 8px;
}

.form-field {
    position: relative;
}

.form-field.full-width {
    grid-column: 1 / -1;
}

.form-field.half-width {
    grid-column: span 1;
}

/* ================================
   Form Inputs
   ================================ */

.form-input,
#emailInput,
#studioNameInput,
#firstNameInput,
#lastNameInput {
    width: 100%;
    height: 48px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0 20px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    color: #FFFFFF;
    margin-bottom: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-input::placeholder,
#emailInput::placeholder,
#studioNameInput::placeholder,
#firstNameInput::placeholder,
#lastNameInput::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-input:focus,
#emailInput:focus,
#studioNameInput:focus,
#firstNameInput:focus,
#lastNameInput:focus {
    border: 2px solid #00FFA5;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    box-shadow: 0 0 0 4px rgba(0, 255, 165, 0.2),
                0 8px 24px rgba(0, 255, 165, 0.15);
    transform: translateY(-2px);
}

.form-input.error,
#emailInput.error,
#studioNameInput.error,
#firstNameInput.error,
#lastNameInput.error {
    border: 2px solid #FF4444;
}

/* ================================
   Error Message
   ================================ */

.error-message {
    font-size: 14px;
    color: #FF6B6B;
    text-align: left;
    min-height: 20px;
    margin-bottom: 8px;
    padding-left: 4px;
}

/* ================================
   Submit Button
   ================================ */

.submit-button {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #00FFA5 0%, #00E696 100%);
    color: #1E1B4B;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    box-shadow: 0 4px 12px rgba(0, 255, 165, 0.3),
                0 0 40px rgba(0, 255, 165, 0.1);
    position: relative;
    overflow: hidden;
}

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

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

.submit-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #00FFAF 0%, #00F0A0 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 255, 165, 0.4),
                0 0 60px rgba(0, 255, 165, 0.2);
}

.submit-button:active:not(:disabled) {
    transform: translateY(-1px);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ================================
   Small Text
   ================================ */

.small-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 16px;
}

/* ================================
   Success Container
   ================================ */

.success-container {
    background: rgba(0, 255, 165, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 255, 165, 0.4);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 255, 165, 0.2);
}

.success-icon {
    font-size: 48px;
    color: #00FFA5;
    margin-bottom: 16px;
    animation: pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(0, 255, 165, 0.6));
}

.success-title {
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.success-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

/* ================================
   Footer
   ================================ */

.footer {
    position: absolute;
    bottom: 24px;
    width: 100%;
    text-align: center;
    z-index: 2;
}

.footer p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s ease;
}

.footer a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
}

/* ================================
   Animations
   ================================ */

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

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

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

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

/* Fade-in animation classes */
.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.fade-in-down {
    animation: fadeInDown 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

/* ================================
   Responsive - Mobile
   ================================ */

@media (max-width: 767px) {
    .logo {
        top: 16px;
        left: 16px;
    }

    .logo img {
        height: 28px;
    }

    .container {
        padding: 20px;
        padding-top: 80px;
        padding-bottom: 60px;
    }

    .content {
        padding: 36px 24px;
        border-radius: 20px;
    }

    h1 {
        font-size: 42px;
    }

    .product-tagline {
        font-size: 18px;
        margin-bottom: 24px;
    }

    .subheading {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .description {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .cta-text {
        font-size: 15px;
        margin-bottom: 32px;
    }

    .subtitle {
        font-size: 15px;
        margin-bottom: 32px;
    }

    .form-grid {
        gap: 10px;
    }

    .form-field.half-width {
        grid-column: 1 / -1;
    }

    .form-input,
    #emailInput,
    #studioNameInput,
    #firstNameInput,
    #lastNameInput {
        height: 46px;
    }

    .submit-button {
        height: 46px;
    }

    .success-container {
        padding: 32px 24px;
    }

    .success-icon {
        font-size: 40px;
    }

    .success-title {
        font-size: 20px;
    }

    .footer {
        bottom: 16px;
    }
}

@media (max-width: 480px) {
    .content {
        padding: 28px 20px;
    }

    h1 {
        font-size: 36px;
    }

    .product-tagline {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .subheading {
        font-size: 18px;
    }

    .description {
        font-size: 14px;
    }

    .cta-text {
        font-size: 14px;
    }

    .subtitle {
        font-size: 14px;
    }
}

/* ================================
   Loading State
   ================================ */

.submit-button.loading {
    position: relative;
    color: transparent;
}

.submit-button.loading::after {
    content: "Joining...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #1E1B4B;
}
