/* Modern CSS Variables for Premium Look */
:root {
    --bg-color: #03001e;
    --card-bg: rgba(10, 10, 31, 0.6);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --cyan-glow: #00e5ff;
    --purple-glow: #8b5cf6;
    --neon-pink: #d500f9;
    --font-heading: 'Outfit', 'Noto Sans SC', sans-serif;
    --font-body: 'Noto Sans SC', 'Outfit', sans-serif;
}

/* Reset and Core Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    font-family: var(--font-body);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow-x: hidden;
    padding: 2rem 1rem;
}

/* Background Canvas */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: auto;
}

/* Background Glowing Orbs */
.background-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    opacity: 0.45;
    pointer-events: none;
    animation: floatGlow 15s infinite alternate ease-in-out;
}

.glow-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--cyan-glow) 0%, rgba(0,0,0,0) 70%);
    top: -100px;
    left: -100px;
}

.glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--purple-glow) 0%, rgba(0,0,0,0) 70%);
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes floatGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(80px, 50px) scale(1.1);
    }
}

/* Main Content Area */
.construction-container {
    width: 100%;
    max-width: 650px;
    margin: auto;
    z-index: 10;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Glassmorphism Card styling */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-align: center;
    transform: translateY(20px);
    opacity: 0;
    animation: cardEntrance 0.8s forwards cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes cardEntrance {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Brand Logo Styling */
.logo-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--cyan-glow) 0%, rgba(0, 229, 255, 0) 70%);
    border-radius: 50%;
    animation: pulseGlow 3s infinite;
}

.logo-icon {
    position: relative;
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--cyan-glow);
    box-shadow: 0 8px 32px rgba(0, 229, 255, 0.15);
}

.logo-icon svg {
    width: 32px;
    height: 32px;
    animation: rotateIcon 6s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(0.9);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.9;
    }
}

@keyframes rotateIcon {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(15deg); }
}

/* Headings and Typography */
.title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 0.8rem;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* Progress Bar */
.progress-container {
    width: 100%;
    margin-bottom: 2.5rem;
    text-align: left;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.progress-label {
    color: var(--text-secondary);
}

.progress-percent {
    color: var(--cyan-glow);
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.progress-bar-bg {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-bar-fill {
    height: 100%;
    width: 0;
    border-radius: 20px;
    background: linear-gradient(90deg, var(--purple-glow) 0%, var(--cyan-glow) 100%);
    box-shadow: 0 0 15px var(--cyan-glow);
    animation: fillProgress 1.8s 0.3s forwards cubic-bezier(0.65, 0, 0.35, 1);
}

@keyframes fillProgress {
    to {
        width: 85%;
    }
}

/* Countdown Section */
.countdown-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1rem 0.5rem;
    transition: all 0.3s ease;
}

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

.countdown-val {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    display: block;
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    margin-bottom: 0.2rem;
}

.countdown-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Subscription Form */
.subscribe-form {
    width: 100%;
}

.input-group {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 4px;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.input-group:focus-within {
    border-color: var(--cyan-glow);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.2),
                inset 0 2px 4px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.input-group input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #ffffff;
    padding: 0.8rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.input-group input::placeholder {
    color: #4b5563;
}

.input-group button {
    background: linear-gradient(135deg, var(--cyan-glow) 0%, var(--purple-glow) 100%);
    border: none;
    outline: none;
    color: #0b0b1e;
    font-weight: 700;
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 0 1.8rem;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
}

.input-group button:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.5);
    background: linear-gradient(135deg, var(--purple-glow) 0%, var(--cyan-glow) 100%);
    color: #ffffff;
}

.btn-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.input-group button:hover .btn-arrow {
    transform: translateX(4px);
}

.form-feedback {
    font-size: 0.85rem;
    margin-top: 0.8rem;
    min-height: 20px;
    transition: all 0.3s ease;
    font-weight: 400;
}

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

/* Footer Section */
.footer-container {
    text-align: center;
    width: 100%;
    z-index: 10;
    position: relative;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    margin-top: 3rem;
}

.copyright {
    font-size: 0.8rem;
    color: #4b5563;
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.beian a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.beian a:hover {
    color: var(--cyan-glow);
    border-color: rgba(0, 229, 255, 0.2);
    background: rgba(0, 229, 255, 0.03);
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.08);
}

.beian-icon {
    font-size: 0.95rem;
}

/* Responsive Media Queries */
@media (max-width: 600px) {
    .glass-card {
        padding: 2rem 1.5rem;
    }
    
    .title {
        font-size: 1.8rem;
    }
    
    .countdown-val {
        font-size: 1.6rem;
    }
    
    .input-group {
        flex-direction: column;
        background: none;
        border: none;
        box-shadow: none;
        gap: 12px;
        padding: 0;
    }
    
    .input-group:focus-within {
        box-shadow: none;
        background: none;
    }
    
    .input-group input {
        width: 100%;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 50px;
        padding: 0.9rem 1.5rem;
    }
    
    .input-group input:focus {
        border-color: var(--cyan-glow);
        box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
        background: rgba(255, 255, 255, 0.05);
    }
    
    .input-group button {
        width: 100%;
        padding: 0.9rem 2rem;
        justify-content: center;
    }
}
