:root {
    --container-padding: clamp(1rem, 5vw, 3rem);
    --heading-size: clamp(2rem, 8vw, 3.5rem);
    --subtitle-size: clamp(1rem, 4vw, 1.2rem);
    --countdown-number-size: clamp(1.5rem, 6vw, 2.5rem);
    --countdown-gap: clamp(0.5rem, 3vw, 2rem);
    --social-icon-size: clamp(1.25rem, 5vw, 1.5rem);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}

body {
    background: linear-gradient(-45deg, #b6e3f3, #125770, #23a6d5, #237ad5);
    background-size: 400% 400%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    overflow: hidden;
    padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}

.container {
    text-align: center;
    padding: var(--container-padding);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.3s ease;
    max-width: min(800px, 95%);
    width: 100%;
    margin: auto;
}

.glass-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px 0 rgba(31, 38, 135, 0.37),
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.3);
    padding: 60px 50px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-align: center;
    padding: var(--container-padding);
    max-width: min(800px, 95%);
    width: 100%;
    margin: auto;
}

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

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

.glass-box:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 12px 48px 0 rgba(31, 38, 135, 0.5),
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.4);
}
h1 {
    font-size: var(--heading-size);
    margin-bottom: 1rem;
    position: relative;
    line-height: 1.2;
}

.subtitle {
    font-size: var(--subtitle-size);
    margin-bottom: 2rem;
    line-height: 1.4;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* High contrast mode support */
@media (prefers-contrast: more) {
    .container {
        background: rgba(255, 255, 255, 0.2);
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .container {
        background: rgba(0, 0, 0, 0.2);
    }
}
