:root {
    --primary: #2f6feb;
    --dark: #0b1220;
    --primary-rgb: 47, 111, 235;
    --dark-rgb: 11, 18, 32;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: 'Plus Jakarta Sans', 'Poppins', Arial, sans-serif;
    background: var(--dark);
    color: #f5f7fb;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

.bg-decor {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
    animation: float 18s ease-in-out infinite;
    will-change: transform;
}

.blob-a {
    width: 480px;
    height: 480px;
    background: rgba(var(--primary-rgb), 0.55);
    top: -160px;
    left: -140px;
}

.blob-b {
    width: 420px;
    height: 420px;
    background: rgba(var(--primary-rgb), 0.32);
    bottom: -180px;
    right: -120px;
    animation-duration: 22s;
    animation-delay: -4s;
}

.blob-c {
    width: 320px;
    height: 320px;
    background: rgba(255, 255, 255, 0.07);
    top: 45%;
    left: 62%;
    animation-duration: 15s;
    animation-delay: -8s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -26px) scale(1.08); }
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(circle at 50% 30%, black 0%, transparent 72%);
    mask-image: radial-gradient(circle at 50% 30%, black 0%, transparent 72%);
}

.wrapper {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.card {
    width: 100%;
    max-width: 720px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 28px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    padding: clamp(32px, 6vw, 64px) clamp(22px, 6vw, 56px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: cardIn 0.7s ease both;
}

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

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

.brand {
    margin-bottom: 30px;
}

.logo {
    max-height: 52px;
    max-width: 240px;
    width: auto;
    object-fit: contain;
}

.brand-mark {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), rgba(var(--primary-rgb), 0.55));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    color: #fff;
    box-shadow: 0 10px 22px rgba(var(--primary-rgb), 0.4);
    flex-shrink: 0;
}

.brand-name {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: 0.1px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cfd8ee;
    padding: 8px 18px 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    margin-bottom: 26px;
    animation: fadeUp 0.6s ease both;
    animation-delay: 0.05s;
}

.badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6fe3a0;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(111, 227, 160, 0.55); }
    70% { box-shadow: 0 0 0 9px rgba(111, 227, 160, 0); }
    100% { box-shadow: 0 0 0 0 rgba(111, 227, 160, 0); }
}

h1 {
    font-size: clamp(28px, 4.6vw, 48px);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.5px;
    margin: 0 0 16px;
    max-width: 560px;
    background: linear-gradient(180deg, #ffffff 30%, #c9d5f0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: fadeUp 0.6s ease both;
    animation-delay: 0.12s;
}

.subheading {
    max-width: 520px;
    font-size: clamp(14.5px, 1.8vw, 16.5px);
    color: #aab4cc;
    line-height: 1.75;
    margin: 0 0 38px;
    animation: fadeUp 0.6s ease both;
    animation-delay: 0.18s;
}

.countdown {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 36px;
    animation: fadeUp 0.6s ease both;
    animation-delay: 0.24s;
}

.countdown .box {
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px 18px;
    min-width: 78px;
    overflow: hidden;
}

.countdown .box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.countdown .num {
    display: block;
    font-size: clamp(22px, 3.6vw, 32px);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(180deg, #ffffff, rgba(var(--primary-rgb), 0.9));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.countdown .label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: #7c87a3;
    margin-top: 4px;
}

.subscribe {
    display: flex;
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 6px;
    gap: 6px;
    margin-bottom: 30px;
    animation: fadeUp 0.6s ease both;
    animation-delay: 0.3s;
}

.subscribe input[type="email"] {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    color: #fff;
    padding: 12px 16px;
    font-size: 14px;
    font-family: inherit;
}

.subscribe input[type="email"]:focus {
    outline: none;
}

.subscribe input[type="email"]::placeholder {
    color: #7c87a3;
}

.subscribe button {
    border: none;
    border-radius: 999px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary), rgba(var(--primary-rgb), 0.75));
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(var(--primary-rgb), 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.subscribe button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(var(--primary-rgb), 0.45);
}

.form-message {
    font-size: 13.5px;
    margin: -14px 0 20px;
    padding: 10px 18px;
    border-radius: 999px;
}

.form-message.success {
    background: rgba(46, 204, 113, 0.14);
    color: #6fe3a0;
}

.form-message.error {
    background: rgba(231, 76, 60, 0.14);
    color: #ff8a7a;
}

.divider {
    width: 100%;
    max-width: 280px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    margin-bottom: 26px;
}

.contact {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 22px;
}

.contact a,
.contact span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 14px;
    border-radius: 999px;
    color: #c3cbe0;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
}

.contact a:hover {
    color: #fff;
    border-color: rgba(var(--primary-rgb), 0.5);
    background: rgba(var(--primary-rgb), 0.1);
}

.social {
    display: flex;
    gap: 12px;
    margin-bottom: 4px;
}

.social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #d7dcec;
    text-decoration: none;
    transition: all 0.25s ease;
    font-size: 15px;
}

.social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(var(--primary-rgb), 0.4);
}

footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 20px;
    font-size: 12.5px;
    color: #5c6684;
}

@media (max-width: 480px) {
    .card {
        border-radius: 22px;
    }

    .countdown {
        gap: 8px;
    }

    .countdown .box {
        padding: 12px 12px;
        min-width: 64px;
    }

    .contact {
        flex-direction: column;
        align-items: center;
    }

    .subscribe {
        flex-direction: column;
        border-radius: 18px;
    }

    .subscribe button {
        width: 100%;
    }
}
