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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #FFFFFF;
    color: #000000;
    line-height: 1.6;
    min-height: 100vh;
}

/* Preloader Styles */
.preloader {
    position: fixed;
    inset: 0;
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    overflow: hidden;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.preloader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-backdrop {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #FFFFFF 0%, #FAFAFA 100%);
    opacity: 0;
    animation: fadeInBackdrop 0.6s ease-out forwards;
}

.preloader-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    animation: fadeInContent 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

.preloader-logo-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-logo {
    width: 160px;
    max-width: 50vw;
    height: auto;
    display: block;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.08));
    animation: logoPulse 2s ease-in-out infinite;
    transform-origin: center;
}

.preloader-progress {
    width: 200px;
    max-width: 60vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.preloader-progress-track {
    width: 100%;
    height: 2px;
    background-color: rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.preloader-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #FFE000 0%, #FFD700 50%, #FFE000 100%);
    background-size: 200% 100%;
    border-radius: inherit;
    animation: progressFill 2s ease-in-out infinite,
               progressShimmer 2s linear infinite;
    box-shadow: 0 0 10px rgba(255, 224, 0, 0.4);
}

@keyframes fadeInBackdrop {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.08));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 6px 30px rgba(255, 224, 0, 0.15));
    }
}

@keyframes progressFill {
    0% {
        width: 0%;
        left: 0%;
    }
    50% {
        width: 70%;
        left: 0%;
    }
    100% {
        width: 0%;
        left: 100%;
    }
}

@keyframes progressShimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Preloader exit animation */
.preloader.preloader-hidden .preloader-content {
    animation: fadeOutContent 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeOutContent {
    to {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    gap: 3rem;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    gap: 2rem;
}

.logo {
    max-width: 200px;
    width: 100%;
    height: auto;
    display: block;
}

.headline-ticker {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin: 0;
    padding: 0.5rem 0;
}

.headline-ticker-content {
    display: inline-flex;
    white-space: nowrap;
    animation: ticker-scroll 20s linear infinite;
    gap: 4rem;
}

@media (min-width: 768px) {
    .headline-ticker-content {
        gap: 6rem;
        animation-duration: 25s;
    }
}

@media (min-width: 1024px) {
    .headline-ticker-content {
        gap: 8rem;
        animation-duration: 30s;
    }
}

.headline-ticker-content .headline {
    display: inline-block;
    flex-shrink: 0;
}

.headline {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #000000;
    margin: 0;
    display: inline-block;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.subheadline-wrapper {
    min-height: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 400px;
    margin: 0 auto;
}

.subheadline {
    font-size: 1rem;
    font-weight: 400;
    color: #000000;
    opacity: 0.7;
    max-width: 400px;
    margin: 0;
    text-align: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(0);
}

/* Main Content */
.main-content {
    width: 100%;
    display: flex;
    justify-content: center;
}

.email-form {
    width: 100%;
    max-width: 400px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.email-input {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    border: 2px solid #000000;
    background-color: #FFFFFF;
    color: #000000;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease;
    animation: inputShake 3s ease-in-out infinite;
    animation-delay: 2s;
}

.email-input:focus,
.email-input.has-value {
    animation: none;
    border-color: #FFE000;
}

.email-input::placeholder {
    color: #000000;
    opacity: 0.5;
}

@keyframes inputShake {
    0%, 90%, 100% {
        transform: translateX(0);
        border-color: #000000;
    }
    92% {
        transform: translateX(-4px);
        border-color: #FFE000;
    }
    94% {
        transform: translateX(4px);
        border-color: #FFE000;
    }
    96% {
        transform: translateX(-4px);
        border-color: #FFE000;
    }
    98% {
        transform: translateX(4px);
        border-color: #FFE000;
    }
}

.submit-btn {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    background-color: #000000;
    color: #FFFFFF;
    border: 2px solid #000000;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.submit-btn:hover:not(:disabled) {
    background-color: #FFE000;
    color: #000000;
    border-color: #FFE000;
}

.submit-btn:active:not(:disabled) {
    transform: scale(0.98);
}

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

/* Footer */
.footer {
    width: 100%;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .footer {
        padding-top: 3rem;
        gap: 0.75rem;
    }

    .footer p {
        font-size: 1rem;
    }

    .footer-email a {
        font-size: 1rem;
    }
}

.footer p {
    font-size: 0.875rem;
    color: #000000;
    opacity: 0.5;
    margin: 0;
}

.footer-email {
    margin-top: 0.25rem;
}

.footer-email a {
    color: #000000;
    text-decoration: none;
    font-size: 0.875rem;
    opacity: 0.7;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.footer-email a:hover {
    opacity: 1;
    color: #FFE000;
}

/* Tablet and Desktop Styles */
@media (min-width: 768px) {
    .container {
        max-width: 700px;
        padding: 4rem 3rem;
        gap: 5rem;
    }

    .hero {
        gap: 3rem;
    }

    .logo {
        max-width: 280px;
    }

    .headline-ticker {
        padding: 1rem 0;
    }

    .headline-ticker .headline {
        font-size: 4rem;
    }

    .subheadline-wrapper {
        max-width: 500px;
    }

    .subheadline {
        font-size: 1.25rem;
    }

    .form-group {
        flex-direction: row;
        gap: 0;
    }

    .email-input {
        flex: 1;
        border-right: none;
        border-radius: 0;
        padding: 1.25rem 1.5rem;
        font-size: 1.125rem;
    }

    .submit-btn {
        width: auto;
        padding: 1.25rem 2.5rem;
        border-radius: 0;
        white-space: nowrap;
        font-size: 1.125rem;
    }

    .email-form {
        max-width: 600px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 800px;
        padding: 5rem 4rem;
        gap: 6rem;
    }

    .hero {
        gap: 3.5rem;
    }

    .logo {
        max-width: 320px;
    }

    .headline-ticker {
        padding: 1.5rem 0;
    }

    .headline-ticker .headline {
        font-size: 5rem;
    }

    .subheadline-wrapper {
        max-width: 600px;
    }

    .subheadline {
        font-size: 1.375rem;
    }

    .email-form {
        max-width: 650px;
    }

    .email-input {
        padding: 1.5rem 2rem;
        font-size: 1.25rem;
    }

    .submit-btn {
        padding: 1.5rem 3rem;
        font-size: 1.25rem;
    }
}

@media (min-width: 1440px) {
    .container {
        max-width: 900px;
        padding: 6rem 4rem;
    }

    .logo {
        max-width: 360px;
    }

    .headline-ticker .headline {
        font-size: 5.5rem;
    }

    .subheadline {
        font-size: 1.5rem;
    }
}

/* Mobile-specific adjustments for 390x844 */
@media (max-width: 390px) {
    .container {
        padding: 1.5rem 1rem;
        gap: 2.5rem;
    }

    .logo {
        max-width: 180px;
    }

    .headline-ticker .headline {
        font-size: 2rem;
    }

    .subheadline {
        font-size: 0.9375rem;
    }
}

