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

:root {
    --primary-color: #000000;
    --secondary-color: #86868b;
    --background: #ffffff;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --border-color: #d2d2d7;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.logo-container {
    margin-bottom: 60px;
    animation: fadeIn 1s ease-in;
}

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

.title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: var(--text-primary);
    animation: fadeIn 1s ease-in 0.2s both;
}

.subtitle {
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 60px;
    animation: fadeIn 1s ease-in 0.4s both;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: clamp(20px, 4vw, 40px);
    margin-bottom: 60px;
    flex-wrap: wrap;
    animation: fadeIn 1s ease-in 0.6s both;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.time-value {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.time-label {
    font-size: clamp(14px, 2vw, 18px);
    font-weight: 400;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.newsletter-container {
    animation: fadeIn 1s ease-in 0.8s both;
    max-width: 500px;
    margin: 0 auto;
}

/* MailerLite embedded form - No styling, user will style manually */
.ml-embedded {
    width: 100%;
}

.form-message {
    margin-top: 12px;
    font-size: 14px;
    text-align: center;
    min-height: 20px;
    transition: all 0.3s ease;
}

.form-message.success {
    color: #34c759;
}

.form-message.error {
    color: #ff3b30;
}

.thank-you-message {
    text-align: center;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    animation: thankYouAppear 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.thank-you-title {
    font-size: clamp(32px, 4.5vw, 48px);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(10px);
    animation: thankYouTitleAppear 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.thank-you-text {
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.5;
    opacity: 0;
    transform: translateY(10px);
    animation: thankYouTextAppear 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

@keyframes thankYouAppear {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes thankYouTitleAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes thankYouTextAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

button.primary {
    width: 100%;
    padding: 16px 32px;
    font-size: 17px;
    font-weight: 500;
    font-family: inherit;
    background: #6B5CFF;
    color: var(--background);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: -0.01em;
}

button.primary:hover {
    background: #5A4DE6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 92, 255, 0.3);
}

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

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .logo {
        max-width: 150px;
    }
    
    .countdown {
        gap: 16px;
    }
    
    .time-unit {
        min-width: 60px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 16px;
    }
    
    .logo-container {
        margin-bottom: 40px;
    }
    
    .subtitle {
        margin-bottom: 40px;
    }
    
    .countdown {
        margin-bottom: 40px;
        gap: 12px;
    }
    
    .time-unit {
        min-width: 50px;
    }
}

/* Hide MailerLite default styling */
.ml-form-embedContainer .ml-form-embedWrapper {
    background: transparent;
    border: none;
    padding: 0;
}

.ml-form-embedContainer .ml-form-embedBody {
    background: transparent;
}

/* Email Widget */
.email-widget {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #6B5CFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(107, 92, 255, 0.3);
    overflow: visible;
}

.email-widget:hover {
    background: #5A4DE6;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(107, 92, 255, 0.4);
}

.email-widget:active {
    transform: scale(1.05);
}

.gmail-icon {
    width: 28px;
    height: 28px;
    color: #ffffff;
    z-index: 1;
}

.email-popup {
    position: absolute;
    bottom: 75px;
    right: 0;
    background: #ffffff;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-width: 200px;
    z-index: 1001;
}

.email-popup.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.email-popup::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #ffffff;
}

.email-popup-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.email-address {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.email-address:hover {
    color: #6B5CFF;
}

.email-address.copied {
    animation: copyAnimation 0.5s ease;
}

@keyframes copyAnimation {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive adjustments for email widget */
@media (max-width: 768px) {
    .email-widget {
        right: 20px;
        bottom: 20px;
        width: 55px;
        height: 55px;
    }
    
    .gmail-icon {
        width: 24px;
        height: 24px;
    }
    
    .email-popup {
        bottom: 70px;
        min-width: 180px;
        padding: 14px 18px;
    }
    
    .email-address {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .email-widget {
        right: 15px;
        bottom: 15px;
        width: 50px;
        height: 50px;
    }
    
    .gmail-icon {
        width: 22px;
        height: 22px;
    }
    
    .email-popup {
        bottom: 65px;
        right: -10px;
        min-width: 160px;
        padding: 12px 16px;
    }
    
    .email-address {
        font-size: 13px;
    }
}

