/* ===================================
   CSS Reset & Base Styles
   =================================== */

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

html {
    overflow: hidden;
    height: 100%;
}

:root {
    /* Color Palette */
    --bg-primary: #E8DED3;
    --bg-secondary: #E6E2DE;
    --text-dark: #2C2C2C;
    --accent-red: #CE3937;
    --accent-gold: #C8A44C;
    --white: #FFFFFF;
    
    /* Typography */
    --font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
}

body {
    font-family: var(--font-family);
    background: 
        linear-gradient(to right, rgba(44, 44, 44, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(44, 44, 44, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 20% 20%, rgba(200, 164, 76, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(206, 57, 55, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #E8DED3 0%, #E6E2DE 100%);
    background-size: 
        60px 60px,
        60px 60px,
        100% 100%,
        100% 100%,
        100% 100%;
    background-attachment: fixed;
    color: var(--text-dark);
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    overflow: hidden;
    position: relative;
}

/* Animated gradient orbs */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(206, 57, 55, 0.06) 0%, transparent 70%);
    animation: floatOrb 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    bottom: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(200, 164, 76, 0.06) 0%, transparent 70%);
    animation: floatOrb 25s ease-in-out infinite reverse;
    pointer-events: none;
    z-index: 0;
}

/* ===================================
   Main Container
   =================================== */

.container {
    width: 100%;
    max-width: 1200px;
    text-align: center;
    animation: fadeIn 1s ease-in-out;
    position: relative;
    z-index: 1;
    max-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ===================================
   Header Section
   =================================== */

.header {
    margin-bottom: clamp(1.5rem, 4vh, 3rem);
    animation: slideDown 0.8s ease-out;
}

.logo-container {
    margin-bottom: clamp(1rem, 2vh, 2rem);
    animation: fadeIn 1.2s ease-in-out;
}

.logo {
    max-width: clamp(100px, 12vw, 150px);
    height: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.main-heading {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--accent-red) 50%, var(--accent-gold) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--spacing-sm);
    line-height: 1.1;
    animation: gradientShift 8s ease infinite;
}

.subheading {
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 500;
    color: var(--text-dark);
    opacity: 0.9;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 10px rgba(206, 57, 55, 0.1);
}

/* ===================================
   Main Section - Countdown
   =================================== */

.main-section {
    margin-bottom: clamp(1.5rem, 4vh, 3rem);
}

.countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(0.75rem, 3vw, 2rem);
    flex-wrap: wrap;
    margin-bottom: clamp(1.5rem, 3vh, 2.5rem);
    animation: slideUp 1s ease-out 0.3s backwards;
}

.countdown-item {
    background: var(--white);
    border-radius: 16px;
    padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2rem);
    min-width: clamp(100px, 15vw, 140px);
    box-shadow: 0 4px 20px rgba(44, 44, 44, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.countdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-red) 0%, var(--accent-gold) 50%, var(--accent-red) 100%);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
    border-radius: 16px 16px 0 0;
}

.countdown-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(44, 44, 44, 0.12);
}

.countdown-value {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-red), var(--accent-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: var(--spacing-xs);
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(206, 57, 55, 0.2));
}

.countdown-item:hover .countdown-value {
    filter: drop-shadow(0 4px 8px rgba(206, 57, 55, 0.4));
    transform: scale(1.05);
}

.countdown-label {
    font-size: clamp(0.75rem, 1.5vw, 1rem);
    font-weight: 600;
    color: var(--text-dark);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.launch-text {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-dark);
    opacity: 0.8;
    font-weight: 500;
    animation: fadeIn 1.5s ease-in-out 0.6s backwards;
    position: relative;
}

.launch-text::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-gold));
    border-radius: 2px;
}

/* ===================================
   Footer Section
   =================================== */

.footer {
    margin-top: clamp(1.5rem, 4vh, 3rem);
    animation: fadeIn 1.8s ease-in-out 0.8s backwards;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 2vw, 2rem);
    margin-bottom: 0;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--white);
    border-radius: 50%;
    color: var(--text-dark);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(44, 44, 44, 0.06);
}

.social-link:hover {
    background: linear-gradient(135deg, var(--accent-red), var(--accent-gold));
    color: var(--white);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 25px rgba(206, 57, 55, 0.4);
}

.social-link svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.social-link:hover svg {
    transform: scale(1.1);
}

/* ===================================
   Animations
   =================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth number transition for countdown */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.countdown-value.update {
    animation: pulse 0.3s ease;
}

/* Floating orb animation */
@keyframes floatOrb {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Gradient shift animation */
@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Shimmer animation for countdown borders */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* ===================================
   Responsive Design - Mobile First
   =================================== */

/* Mobile devices (up to 480px) */
@media (max-width: 480px) {
    body {
        padding: clamp(0.5rem, 2vw, 1rem);
    }
    
    .countdown-container {
        gap: 0.5rem;
    }
    
    .countdown-item {
        min-width: 70px;
        padding: 0.75rem 0.5rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
    
    .social-link svg {
        width: 18px;
        height: 18px;
    }
}

/* Small height screens */
@media (max-height: 700px) {
    .header {
        margin-bottom: 1rem;
    }
    
    .logo-container {
        margin-bottom: 0.75rem;
    }
    
    .logo {
        max-width: 100px;
    }
    
    .main-heading {
        font-size: clamp(2rem, 6vw, 3rem);
        margin-bottom: 0.5rem;
    }
    
    .subheading {
        font-size: clamp(0.875rem, 2.5vw, 1.125rem);
    }
    
    .countdown-container {
        margin-bottom: 1rem;
        gap: 0.75rem;
    }
    
    .countdown-item {
        padding: 1rem 0.875rem;
        min-width: 90px;
    }
    
    .countdown-value {
        font-size: clamp(1.75rem, 4vw, 2.5rem);
    }
    
    .countdown-label {
        font-size: clamp(0.625rem, 1.25vw, 0.875rem);
    }
    
    .launch-text {
        font-size: clamp(0.875rem, 1.75vw, 1rem);
    }
    
    .main-section {
        margin-bottom: 1rem;
    }
    
    .footer {
        margin-top: 1rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
}

/* Tablets (481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .countdown-item {
        min-width: 110px;
    }
}

/* Very small height screens */
@media (max-height: 600px) {
    .container {
        padding: 0.5rem 0;
    }
    
    .header {
        margin-bottom: 0.75rem;
    }
    
    .logo {
        max-width: 80px;
    }
    
    .logo-container {
        margin-bottom: 0.5rem;
    }
    
    .main-heading {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
        margin-bottom: 0.25rem;
    }
    
    .subheading {
        font-size: clamp(0.75rem, 2vw, 1rem);
    }
    
    .countdown-item {
        padding: 0.75rem 0.625rem;
        min-width: 75px;
    }
    
    .countdown-value {
        font-size: clamp(1.5rem, 3.5vw, 2rem);
        margin-bottom: 0.25rem;
    }
    
    .countdown-label {
        font-size: 0.625rem;
    }
    
    .countdown-container {
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }
    
    .main-section {
        margin-bottom: 0.75rem;
    }
    
    .footer {
        margin-top: 0.75rem;
    }
    
    .launch-text {
        font-size: 0.875rem;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
    }
    
    .social-link svg {
        width: 16px;
        height: 16px;
    }
}

/* Desktop (769px and above) */
@media (min-width: 769px) {
    .container {
        padding: var(--spacing-lg);
    }
}

/* Large screens - prevent excessive scaling */
@media (min-width: 1440px) {
    .main-heading {
        font-size: 5rem;
    }
    
    .subheading {
        font-size: 1.5rem;
    }
    
    .countdown-value {
        font-size: 4rem;
    }
}

/* ===================================
   Accessibility & Print Styles
   =================================== */

/* Focus states for keyboard navigation */
a:focus,
button:focus,
input:focus {
    outline: 3px solid var(--accent-red);
    outline-offset: 2px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .countdown-item {
        border: 2px solid var(--text-dark);
    }
}
