/* -------------------------------------------------------------
 * CORE DESIGN SYSTEM & VARIABLES
 * ------------------------------------------------------------- */
:root {
    --bg-color: #0b0f19;
    --card-bg: rgba(13, 20, 38, 0.45);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Harmonious gradients & branding colors */
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --primary-glow: rgba(99, 102, 241, 0.35);
    --secondary-glow: rgba(168, 85, 247, 0.35);
    
    /* Animation Easing */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* -------------------------------------------------------------
 * RESET & GENERAL STYLES
 * ------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* -------------------------------------------------------------
 * FLOATING BACKGROUND GLOWS (Mesh Effect)
 * ------------------------------------------------------------- */
.bg-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -2;
    opacity: 0.65;
    pointer-events: none;
    transition: transform 1.5s ease-out; /* For mouse-parallax */
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.35) 0%, rgba(99, 102, 241, 0) 70%);
    top: -10%;
    left: -10%;
    animation: float-blob-1 25s infinite alternate ease-in-out;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.3) 0%, rgba(168, 85, 247, 0) 70%);
    bottom: -5%;
    right: -5%;
    animation: float-blob-2 20s infinite alternate ease-in-out 2s;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.2) 0%, rgba(20, 184, 166, 0) 70%);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float-blob-3 30s infinite alternate ease-in-out 4s;
}

.bg-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(11, 15, 25, 0.8) 100%);
    z-index: -1;
    pointer-events: none;
}

@keyframes float-blob-1 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(80px, 60px) scale(1.1); }
    100% { transform: translate(-40px, 120px) scale(0.95); }
}

@keyframes float-blob-2 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-90px, -70px) scale(0.9); }
    100% { transform: translate(50px, -130px) scale(1.15); }
}

@keyframes float-blob-3 {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    50% { transform: translate(-40%, -60%) rotate(180deg) scale(1.1); }
    100% { transform: translate(-60%, -40%) rotate(360deg) scale(0.9); }
}

/* -------------------------------------------------------------
 * MAIN LAYOUT & CONTAINER (GLASSMORPHISM)
 * ------------------------------------------------------------- */
.main-wrapper {
    width: 100%;
    max-width: 720px;
    padding: 2.5rem 1.5rem;
    z-index: 10;
}

.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-radius: 28px;
    padding: 3.5rem 3rem;
    box-shadow: 
        0 10px 40px -10px rgba(0, 0, 0, 0.5),
        0 0 50px 0 rgba(99, 102, 241, 0.03),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle glowing border glow effect */
.glass-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.03),
        transparent
    );
    transform: rotate(30deg);
    transition: transform 0.8s ease;
    pointer-events: none;
}

.glass-card:hover::after {
    transform: translate(50%, 50%) rotate(30deg);
}

/* Entrance Animations */
.animate-fade-in {
    animation: card-appear 1.2s var(--ease-out-expo) forwards;
}

@keyframes card-appear {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* -------------------------------------------------------------
 * LOGO
 * ------------------------------------------------------------- */
.header {
    margin-bottom: 2.5rem;
}

.logo-wrapper {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.logo-wrapper:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.3);
}

.main-logo {
    max-width: 170px;
    height: auto;
    display: block;
    object-fit: contain;
    /* Clean rendering of transparent logos */
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
    transition: var(--transition-smooth);
}

.logo-wrapper:hover .main-logo {
    filter: drop-shadow(0 6px 12px var(--primary-glow));
}

/* -------------------------------------------------------------
 * HERO TEXT CONTENT
 * ------------------------------------------------------------- */
.content-section {
    margin-bottom: 2.5rem;
}

.badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    background: rgba(99, 102, 241, 0.12);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.25);
    margin-bottom: 1.75rem;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.1);
    animation: pulse-glow 3s infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(99, 102, 241, 0.05); border-color: rgba(99, 102, 241, 0.25); }
    50% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.25); border-color: rgba(99, 102, 241, 0.5); }
}

h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
    background: linear-gradient(to bottom right, #ffffff 30%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto 2.5rem;
    line-height: 1.65;
}

/* -------------------------------------------------------------
 * PROGRESS BAR
 * ------------------------------------------------------------- */
.progress-container {
    max-width: 480px;
    margin: 0 auto 2.5rem;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.progress-value {
    color: #c084fc;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 100px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    width: 0%; /* Will animate in from 0 to 85% */
    border-radius: 100px;
    background: var(--primary-gradient);
    box-shadow: 0 0 15px var(--secondary-glow);
    transition: width 1.8s cubic-bezier(0.76, 0, 0.24, 1) 0.5s;
}

/* -------------------------------------------------------------
 * COUNTDOWN SYSTEM
 * ------------------------------------------------------------- */
.countdown-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 520px;
    margin: 0 auto 3rem;
}

.countdown-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 18px;
    padding: 1.25rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: var(--transition-smooth);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.countdown-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateY(-5px);
    box-shadow: 
        0 15px 30px -10px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(99, 102, 241, 0.05);
}

.countdown-number {
    font-family: 'Outfit', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: opacity 0.3s ease;
}

.countdown-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* -------------------------------------------------------------
 * INTERACTIVE EMAIL SUBSCRIPTION FORM
 * ------------------------------------------------------------- */
.form-wrapper {
    max-width: 480px;
    margin: 0 auto;
}

.form-intro {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.input-group {
    display: flex;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 0.35rem;
    transition: var(--transition-smooth);
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.input-group:focus-within {
    border-color: #818cf8;
    box-shadow: 
        0 0 0 4px rgba(99, 102, 241, 0.15),
        0 10px 25px -10px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.03);
}

.email-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    width: 100%;
}

.email-input::placeholder {
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.email-input:focus::placeholder {
    opacity: 0.6;
    transform: translateX(4px);
}

.submit-btn {
    background: var(--primary-gradient);
    border: none;
    outline: none;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(99, 102, 241, 0.45),
        0 0 10px rgba(168, 85, 247, 0.2);
}

.submit-btn:active {
    transform: translateY(0);
}

.btn-icon {
    transition: transform 0.4s var(--ease-out-expo);
}

.submit-btn:hover .btn-icon {
    transform: translate(2px, -2px) scale(1.05);
}

/* Interactive form message block */
.form-message {
    font-size: 0.85rem;
    margin-top: 0.75rem;
    min-height: 20px;
    transition: var(--transition-smooth);
    opacity: 0;
    transform: translateY(-5px);
}

.form-message.success {
    color: #10b981;
    opacity: 1;
    transform: translateY(0);
}

.form-message.error {
    color: #ef4444;
    opacity: 1;
    transform: translateY(0);
}

/* -------------------------------------------------------------
 * FOOTER & SOCIAL ICONS
 * ------------------------------------------------------------- */
.footer {
    margin-top: 3.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.social-icon-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-4px);
    box-shadow: 
        0 8px 20px -6px rgba(0, 0, 0, 0.4),
        0 0 10px rgba(99, 102, 241, 0.1);
}

.social-icon-btn:active {
    transform: translateY(-1px);
}

.social-icon-btn svg {
    transition: transform 0.4s var(--ease-out-expo);
}

.social-icon-btn:hover svg {
    transform: scale(1.1);
}

.copyright {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* -------------------------------------------------------------
 * RESPONSIVE ADAPTATIONS (MEDIA QUERIES)
 * ------------------------------------------------------------- */
@media (max-width: 640px) {
    .main-wrapper {
        padding: 1.5rem 1rem;
    }
    
    .glass-card {
        padding: 2.5rem 1.5rem;
        border-radius: 24px;
    }
    
    h1 {
        font-size: 1.85rem;
    }
    
    .subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    
    .countdown-wrapper {
        gap: 0.75rem;
        margin-bottom: 2.5rem;
    }
    
    .countdown-card {
        padding: 1rem 0.25rem;
        border-radius: 14px;
    }
    
    .countdown-number {
        font-size: 1.75rem;
    }
    
    .countdown-label {
        font-size: 0.65rem;
        letter-spacing: 0.05em;
    }
    
    .input-group {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
        gap: 0.75rem;
    }
    
    .input-group:focus-within {
        box-shadow: none;
        border: none;
        background: transparent;
    }
    
    .email-input {
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 14px;
        padding: 0.85rem 1rem;
    }
    
    .email-input:focus {
        border-color: #818cf8;
        box-shadow: 
            0 0 0 4px rgba(99, 102, 241, 0.15),
            0 8px 20px -8px rgba(0, 0, 0, 0.3);
    }
    
    .submit-btn {
        width: 100%;
        justify-content: center;
        padding: 0.85rem;
        border-radius: 14px;
    }
    
    .bg-blob {
        filter: blur(80px);
    }
    
    .blob-1 { width: 350px; height: 350px; }
    .blob-2 { width: 300px; height: 300px; }
}

@media (max-width: 400px) {
    h1 {
        font-size: 1.6rem;
    }
    
    .countdown-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}

.subtitle-highlight {
    display: block;
    margin-top: 1.25rem;
    font-weight: 600;
    color: #a855f7;
    background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
