:root {
   
    --bg-color: #0d0d0d;
    --text-color: #ffffff;
    --text-muted: #a0a0a0;
    --brand-orange: #F5A02B;
    --brand-orange-hover: #df8c20;
    
   
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --glass-blur: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--brand-orange) var(--bg-color);
    width: 100%;
    overflow-x: hidden; 
    overflow-y: auto;   
    
   
    touch-action: pan-y; 
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    text-align: center;
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
}

.site-footer {
    background-color: #121212;
    color: #ffffff;
    width: 100%;
    padding: 50px 20px 30px;
    margin-top: auto;
    position: relative;
    z-index: 10;
}

body::before, body::after {
    content: '';
    position: absolute;
    border-radius: 25%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
    animation: float 10s infinite alternate ease-in-out;
    pointer-events: none; 
    
   
    max-width: 100vw;
    contain: paint; 
}

body::before, body::after {
    content: '';
    position: absolute;
    border-radius: 25%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
    animation: float 10s infinite alternate ease-in-out;
    pointer-events: none;
    max-width: 100%;      
}

.container {
    width: 100%;
    max-width: 800px;
    padding: 30px 20px;
   
    animation: fadeUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.logo {
    width: 60px;
    height: auto;
    margin-bottom: 30px;
   
    animation: pulseLogo 4s infinite alternate ease-in-out;
}


h1 {
    font-size: 2rem;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.error-code {
    font-size: 4rem;
    color: var(--brand-orange);
    margin-bottom: 10px;
    line-height: 1;
    text-shadow: 0 0 20px rgba(245, 160, 43, 0.4);
}

p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    line-height: 1.5;
}


.time-box, .signup-container {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}


.countdown-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.time-box {
    border-radius: 30px;
    padding: 15px;
    min-width: 75px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.time-box:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 160, 43, 0.3);
}

.time-box span:first-child {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--brand-orange);
    text-shadow: 0 2px 10px rgba(245, 160, 43, 0.3);
}

.label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-top: 8px;
    font-weight: 600;
}


.signup-container {
    padding: 30px 20px;
    border-radius: 30px;
}

.signup-container h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
}

#signup-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

input[type="email"] {
    width: 100%;
    padding: 16px 20px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.4);
    color: var(--text-color);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

input[type="email"]::placeholder {
    color: #666;
}

input[type="email"]:focus {
    border-color: var(--brand-orange);
    box-shadow: 0 0 15px rgba(245, 160, 43, 0.15);
    background: rgba(0, 0, 0, 0.6);
}

button, .btn-primary {
    width: 100%;
    padding: 16px 30px;
    border: none;
    border-radius: 30px;
   
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-hover));
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(245, 160, 43, 0.25);
}

button:hover, .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 160, 43, 0.4);
    filter: brightness(1.05);
}

button:active, .btn-primary:active {
    transform: translateY(1px);
}

#form-message {
    margin-top: 20px;
    font-size: 0.95rem;
    margin-bottom: 0;
    animation: fadeIn 0.4s ease;
}

.hidden { display: none; }
.success { color: #4CAF50; font-weight: 500; }
.error { color: #FF5252; font-weight: 500; }




@media (min-width: 600px) {
    .container { padding: 40px 20px; }
    
    .logo { width: 80px; margin-bottom: 40px; }
    
    h1 { font-size: 3rem; margin-bottom: 15px; }
    h2 { font-size: 2rem; }
    .error-code { font-size: 6rem; }
    p { font-size: 1.2rem; margin-bottom: 45px; }

    .countdown-container { gap: 20px; margin-bottom: 50px; }
    .time-box { min-width: 110px; padding: 30px 20px; }
    .time-box span:first-child { font-size: 2.8rem; }
    .label { font-size: 0.9rem; margin-top: 10px; }

    .signup-container { padding: 40px; }
    .signup-container h3 { font-size: 1.5rem; }
    
    #signup-form {
        flex-direction: row;
        gap: 15px;
        max-width: 550px;
        margin: 0 auto;
    }
    
    button, .btn-primary { width: auto; }
}




@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes pulseLogo {
    0% { filter: drop-shadow(0 0 0 rgba(245, 160, 43, 0)); }
    100% { filter: drop-shadow(0 0 15px rgba(245, 160, 43, 0.4)); }
}

@keyframes float {
    0% { transform: translate(0, 0); }
    50% { transform: translate(20px, -20px); }
    100% { transform: translate(-20px, 20px); }
}






html {
    scroll-behavior: smooth;
}


html {
    scrollbar-width: thin;
    scrollbar-color: var(--brand-orange) var(--bg-color);
}




::-webkit-scrollbar {
    width: 10px; 
    height: 10px;
}


::-webkit-scrollbar-track {
    background: var(--bg-color);
   
    border-left: 1px solid var(--glass-border); 
}


::-webkit-scrollbar-thumb {
   
    background: linear-gradient(180deg, var(--brand-orange), var(--brand-orange-hover));
    border-radius: 100px;
   
    border: 2px solid var(--bg-color);
    cursor: pointer;
}


::-webkit-scrollbar-thumb:hover {
   
    background: linear-gradient(180deg, var(--brand-orange-hover), #c97e18);
}


::-webkit-scrollbar-thumb:active {
    background: #af6b12;
}


.signup-container {
    padding: 35px 30px;
    border-radius: 30px;
    max-width: 600px;
    margin: 0 auto;
}

.signup-container h3 {
    margin-bottom: 8px;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.3px;
}


.signup-container p {
    font-size: 0.95rem;
    margin-bottom: 24px;
    color: var(--text-muted);
}

#signup-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

input[type="email"] {
    width: 100%;
    height: 52px;
    padding: 0 20px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.5);
    color: var(--text-color);
    font-size: 1rem;
    outline: none;
    transition: all 0.25s ease;
}

input[type="email"]::placeholder {
    color: #555;
}

input[type="email"]:focus {
    border-color: var(--brand-orange);
    box-shadow: 0 0 20px rgba(245, 160, 43, 0.1);
    background: rgba(0, 0, 0, 0.7);
}

button, .btn-primary {
    width: 100%;
    height: 52px;
    padding: 0 30px;
    border: none;
    border-radius: 30px; 
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-hover));
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(245, 160, 43, 0.2);
}

button:hover, .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(245, 160, 43, 0.35);
    filter: brightness(1.05);
}

button:active, .btn-primary:active {
    transform: translateY(0);
}


@media (min-width: 600px) {
    .signup-container {
        padding: 45px 40px;
    }

    #signup-form {
        flex-direction: row;
        gap: 10px;
        background: rgba(0, 0, 0, 0.3);
        padding: 6px;
        border-radius: 30px;
        border: 1px solid var(--glass-border);
    }

    input[type="email"] {
        border: none;
        background: transparent;
        height: 46px;
    }
    
    input[type="email"]:focus {
        background: transparent;
        box-shadow: none;
    }

    button, .btn-primary {
        width: auto;
        white-space: nowrap;
        height: 46px;
    }
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-logo {
    width: 150px;
    height: auto;
    opacity: 0.9;
    transition: filter 0.3s ease;
}

.footer-logo:hover {
    filter: drop-shadow(0 0 10px rgba(245, 160, 43, 0.3));
}

.footer-nav {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--brand-orange);
}

.footer-copyright {
    color: #666666;
    font-size: 0.85rem;
}

@media (min-width: 600px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer-copyright {
    color: #666666;
    font-size: 0.85rem;
    width: 100%;
    text-align: center;
    margin-top: 0px;
}

@media (min-width: 600px) {
    .footer-content {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
    }
}