/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #fff;
    overflow-x: hidden;
}

/* ===== Background ===== */
.bg-image {
    position: fixed;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

.overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(10, 12, 18, 0.85) 0%,
        rgba(15, 18, 28, 0.68) 40%,
        rgba(20, 24, 35, 0.50) 100%
    );
    z-index: -1;
}

/* ===== Layout ===== */
.content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
}

.hero {
    text-align: center;
    max-width: 680px;
    width: 100%;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Logo ===== */
.logo {
    width: clamp(100px, 20vw, 180px);
    height: auto;
    margin-bottom: 1.25rem;
    filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.4));
}

/* ===== Brand ===== */
.brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: clamp(3rem, 8vw, 5.5rem);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, #c8dff8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.04em;
    margin-bottom: 3rem;
}

/* ===== Countdown ===== */
.countdown {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 72px;
}

.countdown-value {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 0.6rem 0.8rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    width: 100%;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.countdown-label {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.5rem;
}

/* ===== Signup Card ===== */
.signup-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem 2rem 1.5rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.signup-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.25rem;
}

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

.input-group input {
    flex: 1;
    padding: 0.85rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.input-group input:focus {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.1);
}

.input-group button {
    padding: 0.85rem 1.6rem;
    border: none;
    border-radius: 12px;
    background: #fff;
    color: #0c1830;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.input-group button:hover {
    background: #e2eaf4;
    transform: translateY(-1px);
}

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

.input-group button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loading svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Form Message ===== */
.form-message {
    min-height: 1.5rem;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    transition: opacity 0.3s;
}

.form-message.success {
    color: #6ee7a0;
}

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

/* ===== Footer ===== */
.footer {
    position: absolute;
    bottom: 1.5rem;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
}

.footer .contact {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.4rem;
}

.footer .contact a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    transition: color 0.2s, border-color 0.2s;
}

.footer .contact a:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}

/* ===== Responsive ===== */
@media (max-width: 520px) {
    .countdown {
        gap: 0.5rem;
    }

    .countdown-item {
        min-width: 0;
    }

    .countdown-value {
        padding: 0.5rem 0.4rem;
        border-radius: 8px;
    }

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

    .input-group button {
        width: 100%;
        min-width: 0;
    }

    .signup-card {
        padding: 1.5rem 1.25rem 1.25rem;
    }
}
