/* CSS Reset & Variable Definitions */
:root {
    --bg-color: #ffffff;
    --card-bg: #f8fafc;
    --card-border: #e2e8f0;
    --text-primary: #0b0f19;
    --text-secondary: #64748b;
    --accent-orange: #ff5500;
    --accent-orange-hover: #e04b00;
    --accent-orange-light: rgba(255, 85, 0, 0.08);
    --navy-dark: #0b0f19;
    --navy-card: #151a28;
    
    --font-anton: 'Anton', sans-serif;
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    
    --shadow-sm: 0 2px 8px rgba(11, 15, 25, 0.04);
    --shadow-md: 0 8px 24px rgba(11, 15, 25, 0.06);
    --shadow-orange: 0 10px 28px rgba(255, 85, 0, 0.22);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    width: 100%;
    height: -webkit-fill-available;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

/* Background Accents optimized for mobile performance */
.bg-glow {
    position: fixed;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(80px);
    opacity: 0.3;
    will-change: transform;
}

@media (min-width: 768px) {
    .bg-glow {
        width: 600px;
        height: 600px;
        filter: blur(120px);
        opacity: 0.35;
    }
}

.bg-glow.top-left {
    top: -120px;
    left: -100px;
    background: radial-gradient(circle, rgba(255, 85, 0, 0.25) 0%, rgba(255, 255, 255, 0) 70%);
}

.bg-glow.bottom-right {
    bottom: -120px;
    right: -100px;
    background: radial-gradient(circle, rgba(11, 15, 25, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
}

.grid-overlay {
    position: fixed;
    inset: 0;
    background-image: radial-gradient(rgba(11, 15, 25, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 0;
}

/* Main Container Layout */
.main-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

/* Header & Logo */
.logo-header {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 0.5rem;
    padding-bottom: 0.75rem;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    transition: transform 0.2s ease;
}

.logo-link:active {
    transform: scale(0.96);
}

.logo-img {
    height: 70px;
    max-height: 12vh;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(11, 15, 25, 0.05));
}

/* Hero Section */
.hero-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 1.5rem 0;
    flex: 1;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--accent-orange-light);
    border: 1px solid rgba(255, 85, 0, 0.25);
    padding: 0.45rem 1rem;
    border-radius: 9999px;
    margin-bottom: 1.75rem;
    animation: fadeInDown 0.6s ease-out;
    max-width: 90vw;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    background-color: var(--accent-orange);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(255, 85, 0, 0.6);
    animation: pulse 2s infinite;
}

.badge-text {
    font-size: clamp(0.72rem, 3vw, 0.85rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--accent-orange);
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Countdown Grid Container */
.countdown-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 850px;
    animation: fadeInUp 0.6s ease-out 0.15s backwards;
}

.time-block {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 1.15rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    touch-action: manipulation;
}

.time-block:active {
    transform: scale(0.97);
}

.seconds-block {
    background: #ffffff;
    border: 2px solid var(--accent-orange);
    box-shadow: var(--shadow-orange);
}

.number-wrapper {
    height: auto;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.number {
    font-family: var(--font-anton);
    font-size: clamp(2.2rem, 8vw, 4.2rem);
    font-weight: 700;
    line-height: 1;
    color: var(--navy-dark);
    letter-spacing: 0.02em;
}

.seconds-block .number {
    color: var(--accent-orange);
}

.label {
    font-size: clamp(0.65rem, 2.2vw, 0.78rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    text-transform: uppercase;
}

.separator {
    display: none;
}

/* Main Statement: YOU'LL KNOW WHY */
.main-statement {
    font-family: var(--font-anton);
    font-size: clamp(2.8rem, 11vw, 6.5rem);
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--navy-dark);
    line-height: 1.05;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    padding: 0 0.5rem;
    animation: fadeInUp 0.6s ease-out 0.3s backwards;
    word-break: break-word;
}

.main-statement::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent-orange);
    border-radius: 999px;
}

/* Action Bar & Mobile Button Optimization */
.action-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    width: 100%;
    animation: fadeInUp 0.6s ease-out 0.45s backwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.85rem 2.25rem;
    border-radius: 9999px;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    touch-action: manipulation;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    width: auto;
    max-width: 280px;
}

.btn-primary {
    background-color: var(--navy-dark);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(11, 15, 25, 0.18);
}

.btn-primary:active {
    transform: scale(0.96);
    background-color: var(--accent-orange);
}

@media (hover: hover) {
    .btn-primary:hover {
        background-color: var(--accent-orange);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(255, 85, 0, 0.35);
    }

    .logo-link:hover {
        transform: scale(1.04);
    }

    .time-block:hover {
        transform: translateY(-3px);
        border-color: rgba(255, 85, 0, 0.4);
    }
}

/* Toast Message */
.toast {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--navy-dark);
    color: #ffffff;
    padding: 0.65rem 1.25rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
    z-index: 10;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Footer */
.site-footer {
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    width: 100%;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.825rem;
    font-weight: 500;
}

/* Keyframe Animations */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 85, 0, 0.6);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(255, 85, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 85, 0, 0);
    }
}

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

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

/* Responsive Micro Breakpoints for Mobile Perfection */

/* Tablet & Desktop */
@media (min-width: 640px) {
    .countdown-container {
        gap: 1.25rem;
    }

    .time-block {
        padding: 1.5rem 1rem;
        border-radius: var(--radius-lg);
    }

    .number-wrapper {
        min-height: 70px;
    }

    .logo-img {
        height: 85px;
    }

    .main-container {
        padding: 2.25rem 2rem;
    }
}

/* Small mobile devices (<360px) */
@media (max-width: 360px) {
    .countdown-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
        max-width: 280px;
    }

    .time-block {
        padding: 0.85rem 0.4rem;
    }

    .number {
        font-size: 2.2rem;
    }

    .main-statement {
        font-size: 2.4rem;
    }

    .logo-img {
        height: 55px;
    }
}
