:root {
    --bg-primary: #030014;
    --bg-secondary: #0a0a1a;
    --primary: #6366f1;
    --primary-light: #818cf8;
    --accent: #8b5cf6;
    --accent-pink: #ec4899;
    --accent-cyan: #22d3ee;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --glow-primary: rgba(99, 102, 241, 0.5);
    --glow-accent: rgba(139, 92, 246, 0.5);
}

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* ===== GRID BACKGROUND ===== */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    pointer-events: none;
}

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

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.6;
    animation: float-particle 15s infinite ease-in-out;
}

@keyframes float-particle {

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

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

/* ===== GRADIENT ORBS ===== */
.background-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

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

.orb-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    top: -150px;
    left: -150px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent));
    bottom: -100px;
    right: -100px;
    animation-delay: 5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--primary));
    top: 50%;
    left: 60%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

.orb-4 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-pink));
    bottom: 30%;
    left: -80px;
    animation-delay: 15s;
}

@keyframes orb-float {

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

    25% {
        transform: translate(50px, -80px) scale(1.1);
    }

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

    75% {
        transform: translate(40px, 30px) scale(1.05);
    }
}

/* ===== GLOW LINES ===== */
.glow-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.glow-line {
    position: absolute;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom,
            transparent 0%,
            var(--primary) 50%,
            transparent 100%);
    opacity: 0.3;
    animation: glow-line-move 8s infinite ease-in-out;
}

.glow-line-1 {
    left: 20%;
    animation-delay: 0s;
}

.glow-line-2 {
    right: 25%;
    animation-delay: 4s;
}

@keyframes glow-line-move {

    0%,
    100% {
        opacity: 0.1;
        transform: scaleY(0.5);
    }

    50% {
        opacity: 0.4;
        transform: scaleY(1);
    }
}

/* ===== MAIN CONTAINER ===== */
.container {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
    max-width: 600px;
    width: 90%;
    position: relative;
    z-index: 10;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            var(--primary-light),
            transparent);
}

/* ===== BRAND ===== */
.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.logo-wrapper {
    position: relative;
    width: 48px;
    height: 48px;
}

.logo-ring {
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 3s linear infinite;
}

.logo-icon {
    position: absolute;
    inset: 4px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    box-shadow: 0 0 30px var(--glow-primary);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
}

/* ===== STATUS BADGE ===== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 1.25rem;
}

.status-dot {
    width: 7px;
    height: 7px;
    background: var(--accent-cyan);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
    box-shadow: 0 0 10px var(--accent-cyan);
}

@keyframes pulse-dot {

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

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

/* ===== HEADINGS ===== */
h1 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.heading-line {
    display: block;
    color: var(--text-primary);
}

.heading-highlight {
    display: block;
    background: linear-gradient(135deg, #60a5fa, #a78bfa, #f472b6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient-shift 5s ease-in-out infinite;
    background-size: 200% 200%;
}

@keyframes gradient-shift {

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

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

.subtitle {
    font-size: clamp(0.85rem, 2.5vw, 1rem);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== COUNTDOWN TIMER ===== */
.countdown-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.6rem 0.9rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    min-width: 60px;
    transition: all 0.3s ease;
}

.countdown-item:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}

.countdown-number {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-variant-numeric: tabular-nums;
}

.countdown-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.15rem;
}

.countdown-separator {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    font-weight: 700;
    color: var(--text-muted);
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* ===== PROGRESS SECTION ===== */
.progress-section {
    margin-bottom: 0;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.progress-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.progress-value {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-light);
}

.progress-container {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    height: 8px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--accent-pink));
    background-size: 200% 100%;
    width: 0%;
    border-radius: 100px;
    transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    animation: shimmer 3s infinite linear;
}

.progress-glow {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    filter: blur(6px);
    opacity: 0.6;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ===== SUCCESS MESSAGE ===== */
.success-message {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    margin-top: 1rem;
    color: #4ade80;
    font-weight: 500;
    font-size: 0.85rem;
    animation: fade-in 0.5s ease;
}

.success-message.show {
    display: flex;
}

.success-message i {
    font-size: 1rem;
}

/* ===== ANIMATIONS ===== */
.animate-fade-in {
    animation: fade-in 0.8s ease forwards;
}

.animate-fade-in-delay-1 {
    opacity: 0;
    animation: fade-in 0.8s ease 0.1s forwards;
}

.animate-fade-in-delay-2 {
    opacity: 0;
    animation: fade-in 0.8s ease 0.2s forwards;
}

.animate-fade-in-delay-3 {
    opacity: 0;
    animation: fade-in 0.8s ease 0.3s forwards;
}

.animate-fade-in-delay-4 {
    opacity: 0;
    animation: fade-in 0.8s ease 0.4s forwards;
}

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

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

/* ===== RESPONSIVE ===== */
@media (max-height: 700px) {
    .container {
        padding: 1.5rem;
    }

    .brand {
        margin-bottom: 0.75rem;
    }

    .logo-wrapper {
        width: 40px;
        height: 40px;
    }

    .logo-icon {
        font-size: 1rem;
    }

    .brand-name {
        font-size: 1.25rem;
    }

    .status-badge {
        padding: 0.3rem 0.75rem;
        font-size: 0.7rem;
        margin-bottom: 0.75rem;
    }

    h1 {
        margin-bottom: 0.75rem;
    }

    .subtitle {
        margin-bottom: 1rem;
        font-size: 0.8rem;
    }

    .countdown-wrapper {
        margin-bottom: 1rem;
    }

    .countdown-item {
        padding: 0.5rem 0.7rem;
        min-width: 50px;
    }

    .countdown-number {
        font-size: 1.1rem;
    }

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

    .countdown-separator {
        font-size: 1.1rem;
    }
}

@media (max-height: 550px) {
    .container {
        padding: 1rem 1.25rem;
        border-radius: 16px;
    }

    .brand {
        margin-bottom: 0.5rem;
        gap: 0.5rem;
    }

    .logo-wrapper {
        width: 32px;
        height: 32px;
    }

    .logo-icon {
        font-size: 0.85rem;
        inset: 3px;
    }

    .brand-name {
        font-size: 1.1rem;
    }

    .status-badge {
        padding: 0.25rem 0.6rem;
        font-size: 0.65rem;
        margin-bottom: 0.5rem;
    }

    .status-dot {
        width: 5px;
        height: 5px;
    }

    h1 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .subtitle {
        margin-bottom: 0.75rem;
        font-size: 0.7rem;
        line-height: 1.4;
    }

    .countdown-wrapper {
        margin-bottom: 0.75rem;
        gap: 0.3rem;
    }

    .countdown-item {
        padding: 0.35rem 0.5rem;
        min-width: 42px;
        border-radius: 8px;
    }

    .countdown-number {
        font-size: 0.95rem;
    }

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

    .countdown-separator {
        font-size: 0.95rem;
    }

    .progress-header {
        margin-bottom: 0.35rem;
    }

    .progress-label,
    .progress-value {
        font-size: 0.7rem;
    }

    .progress-container {
        height: 6px;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 1.5rem 1.25rem;
    }

    .countdown-item {
        min-width: 50px;
        padding: 0.5rem 0.6rem;
    }
}

/* Landscape on mobile */
@media (max-height: 450px) and (orientation: landscape) {
    .container {
        padding: 0.75rem 1.5rem;
        max-width: 80%;
    }

    .brand {
        margin-bottom: 0.4rem;
    }

    .status-badge {
        margin-bottom: 0.4rem;
    }

    h1 {
        font-size: 1.1rem;
        margin-bottom: 0.4rem;
    }

    .subtitle {
        display: none;
    }

    .countdown-wrapper {
        margin-bottom: 0.5rem;
    }

    .countdown-item {
        padding: 0.3rem 0.5rem;
        min-width: 40px;
    }

    .countdown-number {
        font-size: 0.9rem;
    }

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

    .orb-3,
    .orb-4 {
        display: none;
    }
}