/* ==========================================================================
   Premium Design Token System & Custom Properties
   ========================================================================== */
:root {
    /* Color Palette */
    --color-bg: #07060f;
    --color-text-main: #f3f4f6;
    --color-text-muted: #9ca3af;
    
    /* Neon Glows */
    --color-cyan: #00f2fe;
    --color-blue: #4facfe;
    --color-purple: #b927fc;
    --color-indigo: #6366f1;
    
    /* Glassmorphism Variables */
    --glass-bg: rgba(15, 14, 30, 0.55);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-border-glow: rgba(0, 242, 254, 0.2);
    
    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-snappy: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    height: -webkit-fill-available;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    min-height: 100vh;
    min-height: -webkit-fill-available;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Hide canvas and orbs scroll issues */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* ==========================================================================
   Futuristic Floating Ambient Orbs (Volumetric Lights)
   ========================================================================== */
.glow-container {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.45;
    mix-blend-mode: screen;
}

.glow-1 {
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.4) 0%, rgba(79, 172, 254, 0) 70%);
    top: -10%;
    left: -10%;
    animation: float-slow 25s infinite alternate ease-in-out;
}

.glow-2 {
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(185, 39, 252, 0.35) 0%, rgba(99, 102, 241, 0) 70%);
    bottom: -15%;
    right: -10%;
    animation: float-reverse 30s infinite alternate ease-in-out;
}

.glow-3 {
    width: 35vw;
    height: 35vw;
    background: radial-gradient(circle, rgba(79, 172, 254, 0.25) 0%, rgba(0, 242, 254, 0) 70%);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-glow 15s infinite alternate ease-in-out;
}

@keyframes float-slow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(8%, 10%) scale(1.1); }
}

@keyframes float-reverse {
    0% { transform: translate(0, 0) scale(1.1); }
    100% { transform: translate(-10%, -8%) scale(0.95); }
}

@keyframes pulse-glow {
    0% { opacity: 0.2; transform: translate(-50%, -50%) scale(0.9); }
    100% { opacity: 0.45; transform: translate(-45%, -48%) scale(1.15); }
}

/* ==========================================================================
   Page Layout & Header
   ========================================================================== */
.main-container {
    width: 100%;
    max-width: 1200px;
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    z-index: 2;
    gap: 2rem;
}

/* ==========================================================================
   Central Glassmorphic Dashboard Card
   ========================================================================== */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-radius: 24px;
    padding: 3.5rem 3rem;
    width: 100%;
    max-width: 680px;
    margin: auto 0;
    box-shadow: 
        0 24px 80px rgba(0, 0, 0, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.08),
        0 0 60px rgba(0, 242, 254, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: card-appear 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Glow reflection effect */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 300%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 242, 254, 0.03),
        rgba(185, 39, 252, 0.03),
        transparent
    );
    transform: rotate(-15deg);
    transition: 1.5s;
    pointer-events: none;
}

.glass-card:hover::before {
    left: 100%;
}

.badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--color-cyan);
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.2);
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
    animation: pulse-glow-badge 2s infinite alternate;
}

@keyframes pulse-glow-badge {
    0% { box-shadow: 0 0 5px rgba(0, 242, 254, 0.1); border-color: rgba(0, 242, 254, 0.2); }
    100% { box-shadow: 0 0 15px rgba(0, 242, 254, 0.3); border-color: rgba(0, 242, 254, 0.5); }
}

.headline {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4.5vw, 3rem);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-blue) 40%, var(--color-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.description {
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    color: var(--color-text-muted);
    max-width: 540px;
    margin-bottom: 0;
    font-weight: 400;
    line-height: 1.7;
}

/* ==========================================================================
   Countdown Grid System
   ========================================================================== */
.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    width: 100%;
    max-width: 520px;
    margin-bottom: 3.5rem;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 1.25rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: var(--transition-smooth);
}

.countdown-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 242, 254, 0.3), transparent);
    opacity: 0;
    transition: var(--transition-smooth);
}

.countdown-item:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.countdown-item:hover::after {
    opacity: 1;
}

.countdown-number {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

/* ==========================================================================
   Notify Me Interactive Form
   ========================================================================== */
.notify-form {
    width: 100%;
    max-width: 520px;
    display: flex;
    gap: 0.75rem;
    position: relative;
    z-index: 2;
}

.input-wrapper {
    position: relative;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.notify-input {
    width: 100%;
    padding: 1.1rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}

/* Float Label Styling */
.notify-label {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    font-size: 0.95rem;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.notify-input:focus,
.notify-input:not(:placeholder-shown) {
    background: rgba(7, 6, 15, 0.4);
    border-color: rgba(0, 242, 254, 0.5);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
}

.notify-input:focus ~ .notify-label,
.notify-input:not(:placeholder-shown) ~ .notify-label {
    top: 0;
    left: 1.25rem;
    transform: translateY(-50%) scale(0.85);
    background: var(--color-bg);
    padding: 0 0.4rem;
    color: var(--color-cyan);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.notify-btn {
    padding: 0 1.75rem;
    height: 100%;
    background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-blue) 100%);
    border: none;
    border-radius: 14px;
    color: #07060f;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 20px rgba(0, 242, 254, 0.25);
}

.notify-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 24px rgba(0, 242, 254, 0.4),
        0 0 20px rgba(185, 39, 252, 0.3);
    color: #ffffff;
}

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

.notify-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: 0.5s;
}

.notify-btn:hover::before {
    left: 100%;
}

.btn-icon {
    transition: var(--transition-smooth);
}

.notify-btn:hover .btn-icon {
    transform: translateX(4px);
}

/* Success & Error Messages styled nicely */
.form-status-msg {
    margin-top: 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    width: 100%;
    text-align: left;
    padding-left: 0.5rem;
    min-height: 20px;
    transition: var(--transition-smooth);
    opacity: 0;
    transform: translateY(-5px);
}

.form-status-msg.show {
    opacity: 1;
    transform: translateY(0);
}

.form-status-msg.success {
    color: #10b981;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
}

.form-status-msg.error {
    color: #f87171;
    text-shadow: 0 0 10px rgba(248, 113, 113, 0.1);
}

/* Input error state styling */
.notify-input.invalid {
    border-color: rgba(248, 113, 113, 0.5);
    box-shadow: 0 0 15px rgba(248, 113, 113, 0.1);
}

/* ==========================================================================
   Footer & Social Connections
   ========================================================================== */
.footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    animation: fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.footer-text {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    color: var(--color-text-muted);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.social-link:hover {
    color: var(--color-cyan);
    background: rgba(0, 242, 254, 0.06);
    border-color: rgba(0, 242, 254, 0.25);
    transform: translateY(-4px);
    box-shadow: 
        0 8px 20px rgba(0, 242, 254, 0.15),
        0 0 10px rgba(0, 242, 254, 0.05);
}

/* ==========================================================================
   Animation Timings & Keyframe Declarations
   ========================================================================== */
@keyframes card-appear {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.97);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fade-down {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-up {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Shake animation for input errors */
.shake {
    animation: shake-element 0.5s cubic-bezier(.36,.07,.19,.97) both;
    transform: translate3d(0, 0, 0);
}

@keyframes shake-element {
    10%, 90% { transform: translate3d(-2px, 0, 0); }
    20%, 80% { transform: translate3d(4px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-6px, 0, 0); }
    40%, 60% { transform: translate3d(6px, 0, 0); }
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 640px) {
    .main-container {
        padding: 1.5rem 1rem;
        gap: 2rem;
    }
    
    .glass-card {
        padding: 2.5rem 1.5rem;
        border-radius: 20px;
    }
    
    .badge {
        margin-bottom: 1.5rem;
    }
    
    .description {
        margin-bottom: 2rem;
    }
    
    .countdown-grid {
        gap: 0.75rem;
        margin-bottom: 2.5rem;
    }
    
    .countdown-item {
        padding: 1rem 0.5rem;
        border-radius: 12px;
    }
    
    .notify-form {
        flex-direction: column;
        gap: 1rem;
    }
    
    .notify-btn {
        width: 100%;
        padding: 1.1rem;
        justify-content: center;
    }
    
    .form-status-msg {
        text-align: center;
        padding-left: 0;
    }
}
