/* ==========================================
   CSS Custom Properties - Design System
   ========================================== */
:root {
    /* Colors */
    --color-primary: #6366f1;
    --color-secondary: #8b5cf6;
    --color-accent: #ec4899;
    --color-success: #10b981;
    --color-warning: #f59e0b;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-warm: linear-gradient(135deg, #fa709a 0%, #fee140 100%);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 2rem;
    --font-size-3xl: 3rem;
    --font-size-4xl: 4rem;

    /* Effects */
    --blur-sm: 8px;
    --blur-md: 16px;
    --blur-lg: 24px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.4);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: #0f0f23;
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* ==========================================
   Animated Background
   ========================================== */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background: linear-gradient(180deg, #0f0f23 0%, #1a1a3e 50%, #0f0f23 100%);
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.8) 0%, transparent 70%);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.8) 0%, transparent 70%);
    bottom: -10%;
    right: -10%;
    animation-delay: -7s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.6) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 30px) scale(0.9);
    }
}

/* ==========================================
   Floating Particles
   ========================================== */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    animation: particle-float 15s infinite ease-in-out;
}

.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 40%;
    left: 30%;
    animation-delay: -3s;
}

.particle:nth-child(3) {
    top: 60%;
    left: 50%;
    animation-delay: -6s;
}

.particle:nth-child(4) {
    top: 80%;
    left: 70%;
    animation-delay: -9s;
}

.particle:nth-child(5) {
    top: 30%;
    left: 80%;
    animation-delay: -12s;
}

.particle:nth-child(6) {
    top: 50%;
    left: 20%;
    animation-delay: -2s;
}

.particle:nth-child(7) {
    top: 70%;
    left: 40%;
    animation-delay: -5s;
}

.particle:nth-child(8) {
    top: 10%;
    left: 60%;
    animation-delay: -8s;
}

@keyframes particle-float {

    0%,
    100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    50% {
        transform: translateY(-100px) translateX(50px);
    }
}

/* ==========================================
   Main Container
   ========================================== */
.container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
}

/* ==========================================
   Content Card - Glassmorphism with 3D
   ========================================== */
.content-card {
    position: relative;
    max-width: 800px;
    width: 100%;
    padding: var(--spacing-2xl);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(var(--blur-lg));
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg), inset 0 0 60px rgba(255, 255, 255, 0.03);
    animation: card-entrance 1s ease-out;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

@keyframes card-entrance {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ==========================================
   Logo Section
   ========================================== */
.logo-section {
    position: relative;
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, transparent 70%);
    filter: blur(60px);
    animation: pulse-glow 3s infinite ease-in-out;
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.3);
    }
}

.logo-icon {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto var(--spacing-md);
    animation: logo-entrance 1s ease-out 0.3s backwards;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.6));
}

.logo-circle {
    animation: rotate-circle 10s linear infinite;
    transform-origin: center;
}

.logo-text {
    animation: pulse-text 2s ease-in-out infinite;
}

@keyframes logo-entrance {
    from {
        opacity: 0;
        transform: scale(0.5) rotate(-180deg);
    }

    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes rotate-circle {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse-text {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.brand-url {
    position: relative;
    font-size: var(--font-size-xl);
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 5s ease infinite;
    letter-spacing: -0.02em;
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* ==========================================
   Main Heading
   ========================================== */
.main-heading {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.heading-line {
    display: block;
    font-size: var(--font-size-4xl);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    animation: fade-in-up 0.8s ease-out backwards;
}

.heading-line:first-child {
    animation-delay: 0.2s;
}

.heading-line:last-child {
    animation-delay: 0.4s;
}

.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 5s ease infinite, fade-in-up 0.8s ease-out backwards;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   Description
   ========================================== */
.description {
    text-align: center;
    font-size: var(--font-size-lg);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fade-in-up 0.8s ease-out 0.6s backwards;
}

/* ==========================================
   Countdown Timer
   ========================================== */
.countdown-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    margin: var(--spacing-xl) 0;
    animation: fade-in-up 0.8s ease-out 0.7s backwards;
}

.countdown-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-md) var(--spacing-lg);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(var(--blur-md));
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), inset 0 0 20px rgba(255, 255, 255, 0.05);
    transition: all var(--transition-base);
    transform-style: preserve-3d;
}

.countdown-item:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3), inset 0 0 30px rgba(255, 255, 255, 0.08);
}

.countdown-value {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 5s ease infinite, number-pulse 1s ease-in-out infinite;
    line-height: 1;
    min-width: 60px;
    text-align: center;
}

@keyframes number-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.countdown-label {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.countdown-separator {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.countdown-expired {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: celebrate 1s ease-in-out infinite;
}

@keyframes celebrate {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* ==========================================
   Status Indicator
   ========================================== */
.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 100px;
    width: fit-content;
    margin: 0 auto;
    animation: fade-in-up 0.8s ease-out 0.9s backwards;
    transition: all var(--transition-base);
}

.status-indicator:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.5);
    transform: translateY(-2px);
}

.pulse-dot {
    width: 12px;
    height: 12px;
    background: var(--color-success);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.8);
    animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

.status-indicator span {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-success);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================
   Decorative Lines
   ========================================== */
.decorative-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    border-radius: 32px;
}

.line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.6), transparent);
    animation: line-move 8s infinite linear;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.line-1 {
    width: 100%;
    height: 2px;
    top: 20%;
    left: -100%;
}

.line-2 {
    width: 100%;
    height: 2px;
    bottom: 30%;
    right: -100%;
    animation-delay: -4s;
    animation-direction: reverse;
}

.line-3 {
    width: 100%;
    height: 2px;
    top: 50%;
    left: -100%;
    background: linear-gradient(90deg, transparent, rgba(236, 72, 153, 0.6), transparent);
    animation-delay: -2s;
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.5);
}

@keyframes line-move {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(200%);
    }
}

/* ==========================================
   Corner Decorations
   ========================================== */
.corner-decoration {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid;
    border-image: linear-gradient(135deg, rgba(99, 102, 241, 0.6), rgba(236, 72, 153, 0.6)) 1;
    pointer-events: none;
    animation: corner-glow 3s ease-in-out infinite;
}

.corner-tl {
    top: 20px;
    left: 20px;
    border-right: none;
    border-bottom: none;
    border-top-left-radius: 8px;
}

.corner-tr {
    top: 20px;
    right: 20px;
    border-left: none;
    border-bottom: none;
    border-top-right-radius: 8px;
    animation-delay: -1.5s;
}

.corner-bl {
    bottom: 20px;
    left: 20px;
    border-right: none;
    border-top: none;
    border-bottom-left-radius: 8px;
    animation-delay: -0.75s;
}

.corner-br {
    bottom: 20px;
    right: 20px;
    border-left: none;
    border-top: none;
    border-bottom-right-radius: 8px;
    animation-delay: -2.25s;
}

@keyframes corner-glow {

    0%,
    100% {
        opacity: 0.4;
        filter: drop-shadow(0 0 5px rgba(99, 102, 241, 0.3));
    }

    50% {
        opacity: 1;
        filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.8));
    }
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    margin-top: var(--spacing-2xl);
    text-align: center;
    animation: fade-in-up 0.8s ease-out 1s backwards;
}

.footer p {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
}

/* ==========================================
   Responsive Design
   ========================================== */

/* Tablet */
@media (max-width: 768px) {
    :root {
        --font-size-4xl: 2.5rem;
        --font-size-3xl: 2rem;
        --font-size-2xl: 1.5rem;
        --font-size-xl: 1.25rem;
    }

    .content-card {
        padding: var(--spacing-xl);
    }

    .orb-1,
    .orb-2,
    .orb-3 {
        width: 300px;
        height: 300px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    :root {
        --font-size-4xl: 2rem;
        --font-size-3xl: 1.5rem;
        --font-size-2xl: 1.25rem;
        --font-size-xl: 1.125rem;
    }

    .container {
        padding: var(--spacing-md);
    }

    .content-card {
        padding: var(--spacing-lg);
        border-radius: 24px;
    }

    .logo-icon {
        width: 80px;
        height: 80px;
    }

    .brand-url {
        font-size: var(--font-size-lg);
    }

    .description {
        font-size: var(--font-size-base);
    }

    .countdown-container {
        gap: var(--spacing-xs);
        flex-wrap: wrap;
    }

    .countdown-item {
        padding: var(--spacing-sm) var(--spacing-md);
        min-width: 70px;
    }

    .countdown-value {
        font-size: var(--font-size-xl);
        min-width: 40px;
    }

    .countdown-label {
        font-size: 0.625rem;
    }

    .countdown-separator {
        font-size: var(--font-size-xl);
    }

    .status-indicator {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.75rem;
    }

    .corner-decoration {
        width: 40px;
        height: 40px;
    }

    .corner-tl,
    .corner-tr {
        top: 10px;
    }

    .corner-bl,
    .corner-br {
        bottom: 10px;
    }

    .corner-tl,
    .corner-bl {
        left: 10px;
    }

    .corner-tr,
    .corner-br {
        right: 10px;
    }

    .orb-1,
    .orb-2,
    .orb-3 {
        width: 200px;
        height: 200px;
    }
}

/* High-end displays */
@media (min-width: 1920px) {
    :root {
        --font-size-4xl: 5rem;
    }

    .content-card {
        max-width: 1000px;
    }
}