/* --- Root Variables & Reset --- */
:root {
    --primary: #EB1D1D;
    --white: #FFFFFF;
    --dark-bg: #1A1A1A;
    --light-gray: #F5F5F5;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-muted: #A0A0A0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
input::placeholder {
    color: white !important;
}
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-bg);
    color: var(--white);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Premium Background Components --- */
.bg-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1920&q=80') center center / cover no-repeat;
    z-index: -3;
    transform: scale(1.05);
    transition: transform 0.2s ease-out;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.6) 0%, rgba(10, 10, 10, 0.9) 100%);
    z-index: -2;
}

/* Ambient Lighting Orbs (SaaS Aesthetic) */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    z-index: -1;
    animation: floatingOrbs 12s infinite alternate ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -10%;
    left: -10%;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    bottom: -15%;
    right: -10%;
    animation-delay: -3s;
}

/* --- Container & Layout --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: space-between;
    align-items: center;
    z-index: 1;
    opacity: 0;
    animation: fadeInPage 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* --- Header --- */
.header {
    width: 100%;
    text-align: center;
    margin-bottom: 40px;
}

.logo img {
    width: 250px;
}

/* --- Hero Section --- */
.hero-section {
    max-width: 750px;
    text-align: center;
    margin: auto 0;
}

.main-heading {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 20px;
    background: linear-gradient(180deg, #FFFFFF 0%, #D1D1D1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sub-heading {
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.6;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 48px;
    padding: 0 10%;
}

/* --- Countdown Timer --- */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 56px;
    flex-wrap: wrap;
}

.countdown-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 20px 0;
    width: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.countdown-card:hover {
    transform: translateY(-4px);
    border-color: rgba(235, 29, 29, 0.4);
}

.countdown-card .time {
    font-family: 'Manrope', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--white);
}

.countdown-card .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
    margin-top: 4px;
    font-weight: 600;
}

/* --- Newsletter Subscription --- */
.newsletter-container {
    background: #00000047;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.newsletter-title {
    font-family: 'Manrope', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.newsletter-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* PHP Status Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-align: left;
    font-weight: 500;
}

.alert-success {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #2ecc71;
}

.alert-error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}

.subscription-form {
    width: 100%;
}

.input-group {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 6px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(235, 29, 29, 0.15);
}

.input-group input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 12px 16px;
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.input-group input::placeholder {
    color: #666;
}

.btn-submit {
    background: var(--primary);
    color: var(--white);
    border: none;
    outline: none;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease;
}

.btn-submit:hover {
    background-color: #d11616;
    transform: scale(1.03);
}

/* --- Footer --- */
.footer {
    width: 100%;
    text-align: center;
    margin-top: 40px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    color: var(--white);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(255, 255, 255, 0.01);
}

.social-icons a:hover {
    color: var(--white);
    background-color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(235, 29, 29, 0.3);
}

.copyright {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 6px;
}

.footer-email {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-email:hover {
    color: var(--primary);
}

/* --- Performance Animations --- */
@keyframes fadeInPage {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatingOrbs {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(40px, 30px) scale(1.1);
    }
}

/* --- Responsive Adjustments --- */
@media (max-width: 600px) {
    .container {
        padding: 30px 16px;
    }
    
    .sub-heading {
        padding: 0;
    }

    .countdown-container {
        gap: 10px;
    }

    .countdown-card {
        width: 75px;
        padding: 14px 0;
    }

    .countdown-card .time {
        font-size: 1.6rem;
    }

    .newsletter-container {
        padding: 24px 16px;
    }

    .input-group {
        flex-direction: column;
        background: transparent;
        border: none;
        gap: 12px;
        padding: 0;
    }

    .input-group input {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid var(--glass-border);
        border-radius: 10px;
        padding: 14px;
    }

    .btn-submit {
        padding: 14px;
        border-radius: 10px;
    }
}
