/* CSS Design System & Custom Properties */
:root {
    --bg-dark: #07080c;
    --card-bg: rgba(13, 16, 27, 0.65);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(0, 242, 254, 0.3);
    
    /* Gradients */
    --primary-grad: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    --accent-grad: linear-gradient(135deg, #bf55ec 0%, #00f2fe 100%);
    --bg-grad-1: #15102a;
    --bg-grad-2: #050a18;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --text-muted: #718096;
    
    /* Shadows */
    --neon-glow: 0 8px 32px 0 rgba(0, 242, 254, 0.15);
    --card-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* Background Ambient Orbs */
.glowing-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    mix-blend-mode: screen;
    animation: floating-orbs 25s infinite alternate ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(191, 85, 236, 0.4) 0%, rgba(0, 0, 0, 0) 70%);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.3) 0%, rgba(0, 0, 0, 0) 70%);
    bottom: -15%;
    right: -10%;
    animation-delay: 5s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(79, 172, 254, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes floating-orbs {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(50px, -50px) scale(1.1) rotate(60deg);
        opacity: 0.5;
    }
    100% {
        transform: translate(-30px, 40px) scale(0.9) rotate(-40deg);
        opacity: 0.3;
    }
}

/* Container */
.container {
    width: 100%;
    max-width: 800px;
    padding: 20px;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Glassmorphic Card */
.card {
    width: 100%;
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 50px 45px;
    box-shadow: var(--card-shadow), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
    will-change: transform;
}

.card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--card-shadow), 0 0 40px rgba(0, 242, 254, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

/* Header & Badge */
.header-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 28px;
}

.gear-svg {
    width: 60px;
    height: 60px;
    color: #00f2fe;
    filter: drop-shadow(0 0 15px rgba(0, 242, 254, 0.5));
    animation: spin-slow 20s infinite linear;
    margin-bottom: 18px;
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.badge {
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.2);
    color: #00f2fe;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    padding: 6px 16px;
    border-radius: 50px;
    display: inline-block;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.05);
}

/* Typography */
.title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.gradient-text {
    background: var(--accent-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 35px auto;
    font-weight: 300;
}

/* Progress Bar */
.progress-section {
    max-width: 500px;
    margin: 0 auto 40px auto;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.progress-label {
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.progress-percentage {
    color: #00f2fe;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

.progress-bar-container {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2px;
}

.progress-bar {
    height: 100%;
    background: var(--primary-grad);
    border-radius: 50px;
    position: relative;
    transition: width 1.8s cubic-bezier(0.1, 0.8, 0.2, 1);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Countdown */
.countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 45px;
}

.countdown-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    width: 90px;
    height: 95px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.countdown-box:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.countdown-num {
    font-size: 34px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 6px;
}

.countdown-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.countdown-separator {
    font-size: 28px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.15);
    line-height: 1;
    margin-top: -16px;
}

/* Subscribe Section */
.subscribe-section {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 35px;
    margin-bottom: 35px;
}

.subscribe-title {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 18px;
    font-weight: 400;
}

.subscribe-form {
    max-width: 500px;
    margin: 0 auto;
}

.input-group {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px;
    border-radius: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-group:focus-within {
    border-color: rgba(0, 242, 254, 0.5);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
}

.subscribe-form input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    padding: 10px 16px;
}

.subscribe-form input::placeholder {
    color: var(--text-muted);
}

.subscribe-form button {
    background: var(--primary-grad);
    border: none;
    outline: none;
    color: #07080c;
    font-family: inherit;
    font-weight: 700;
    font-size: 14px;
    padding: 0 24px;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-width: 120px;
}

.subscribe-form button:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.4);
}

.subscribe-form button:active {
    transform: scale(0.98);
}

.subscribe-form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Spinner inside button */
.btn-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    border-top-color: #000000;
    animation: spin 0.8s infinite linear;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading .btn-text {
    display: none;
}

.loading .btn-spinner {
    display: block;
}

/* Form feedback messages */
.form-feedback {
    font-size: 13px;
    margin-top: 12px;
    text-align: left;
    padding-left: 10px;
    min-height: 20px;
    transition: color 0.3s ease;
}

.form-feedback.success {
    color: #00ffd0;
    text-shadow: 0 0 8px rgba(0, 255, 208, 0.2);
}

.form-feedback.error {
    color: #ff6b6b;
    text-shadow: 0 0 8px rgba(255, 107, 107, 0.2);
}

/* Footer Section */
.card-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.social-links {
    display: flex;
    gap: 16px;
}

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

.social-icon:hover {
    color: #00f2fe;
    border-color: rgba(0, 242, 254, 0.3);
    background: rgba(0, 242, 254, 0.05);
    transform: translateY(-2px);
}

.footer-note {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-note a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-note a:hover {
    color: #00f2fe;
}

/* Responsive Rules */
@media (max-width: 600px) {
    .card {
        padding: 35px 20px;
        border-radius: 20px;
    }
    
    .title {
        font-size: 28px;
    }
    
    .subtitle {
        font-size: 14px;
        margin-bottom: 25px;
    }
    
    .countdown-container {
        gap: 8px;
    }
    
    .countdown-box {
        width: 70px;
        height: 75px;
    }
    
    .countdown-num {
        font-size: 24px;
    }
    
    .countdown-label {
        font-size: 9px;
    }
    
    .countdown-separator {
        font-size: 20px;
        margin-top: -10px;
    }
    
    .input-group {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
        gap: 10px;
    }
    
    .input-group:focus-within {
        box-shadow: none;
    }
    
    .subscribe-form input {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 12px;
        width: 100%;
    }
    
    .subscribe-form input:focus {
        border-color: rgba(0, 242, 254, 0.5);
    }
    
    .subscribe-form button {
        width: 100%;
        padding: 12px 24px;
        border-radius: 12px;
        height: 46px;
    }
}
