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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #FEFBF6;
    color: #0F1628;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.container {
    max-width: 42rem;
    width: 100%;
    text-align: center;
}

/* Logo Container */
.logo-container {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    animation: scaleDown 1.2s cubic-bezier(0.43, 0.13, 0.23, 0.96) 1.8s forwards;
    transform: scale(2.5);
}

@keyframes scaleDown {
    from {
        transform: scale(2.5);
    }
    to {
        transform: scale(1);
    }
}

.logo-wrapper {
    width: 280px;
    display: flex;
    align-items: center;
    gap: 24px;
}

/* SVG Animations */
.logo-icon {
    width: 39.516px;
}

.logo-text {
    width: 192.5px;
}

@keyframes drawPath {
    from {
        stroke-dashoffset: 1000;
        opacity: 0;
    }
    to {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

.logo-icon path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawPath 0.8s ease-in-out forwards;
    fill: #0F1628;
}

.logo-icon path:nth-child(1) {
    animation-delay: 0.2s;
}

.logo-icon path:nth-child(2) {
    animation-delay: 0.4s;
}

.logo-icon path:nth-child(3) {
    animation-delay: 0.6s;
}

.logo-text path {
    opacity: 0;
    fill: #0F1628;
}

.logo-text path:nth-child(1) {
    animation: fadeInUp 0.5s ease-out 0.8s forwards;
}

.logo-text path:nth-child(2) {
    animation: fadeInUp 0.5s ease-out 0.9s forwards;
}

.logo-text path:nth-child(3) {
    animation: fadeInUp 0.5s ease-out 1s forwards;
}

.logo-text path:nth-child(4) {
    animation: fadeInUp 0.5s ease-out 1.1s forwards;
}

.logo-text path:nth-child(5) {
    animation: fadeInUp 0.5s ease-out 1.2s forwards;
}

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

/* Content */
.content {
    opacity: 0;
    animation: fadeIn 0.8s ease-out 3s forwards;
}

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

h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.125rem;
    color: #6B7280;
    max-width: 32rem;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* Email Form */
.email-form {
    max-width: 28rem;
    margin: 0 auto 4rem;
}

.input-group {
    display: flex;
    gap: 0.75rem;
}

.input-wrapper {
    position: relative;
    flex: 1;
}

.mail-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    color: #9CA3AF;
    pointer-events: none;
}

input[type="email"] {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 1px solid #E5E7EB;
    border-radius: 0.5rem;
    background-color: white;
    font-size: 1rem;
    transition: all 0.3s;
    outline: none;
}

input[type="email"]:focus {
    border-color: #0F1628;
    box-shadow: 0 0 0 3px rgba(15, 22, 40, 0.1);
}

input[type="email"]::placeholder {
    color: #9CA3AF;
}

button[type="submit"] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: #0F1628;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

button[type="submit"]:hover {
    background-color: #1a2333;
}

button[type="submit"]:active {
    transform: scale(0.95);
}

button[type="submit"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.arrow-icon {
    width: 1rem;
    height: 1rem;
}

/* Success Message */
.success-message {
    display: none;
    color: #059669;
    font-weight: 500;
    margin-top: 1rem;
}

.success-message.show {
    display: block;
}

.error-message {
    display: none;
    color: #DC2626;
    font-weight: 500;
    margin-top: 1rem;
}

.error-message.show {
    display: block;
}

/* Footer */
footer {
    margin-top: 5rem;
    color: #9CA3AF;
    font-size: 0.875rem;
    opacity: 0;
    animation: fadeIn 0.6s ease-out 3.8s forwards;
}

/* Responsive */
@media (max-width: 640px) {
    h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .input-group {
        flex-direction: column;
    }

    button[type="submit"] {
        justify-content: center;
        width: 100%;
    }

    .logo-wrapper {
        width: 200px;
    }

    .logo-container {
        animation: scaleDown 1.2s cubic-bezier(0.43, 0.13, 0.23, 0.96) 1.8s forwards;
        transform: scale(1.6);
    }

    @keyframes scaleDown {
        from {
            transform: scale(1.6);
        }
        to {
            transform: scale(1);
        }
    }
}