/* ============================================
   QUYN — quyn.in Maintenance Page
   Matching Quyn brand: Dark Luxury Theme
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:ital@0;1&display=swap');

:root {
    --bg-dark:        #050505;
    --bg-card:        rgba(255, 255, 255, 0.02);
    --accent:         #c9a96e;
    --accent-light:   #dfc494;
    --accent-glow:    rgba(201, 169, 110, 0.25);
    --text-primary:   #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.65);
    --text-muted:     rgba(255, 255, 255, 0.35);
    --border-subtle:  rgba(255, 255, 255, 0.06);
    --border-accent:  rgba(201, 169, 110, 0.25);
    --font-heading:   'Inter', sans-serif;
    --font-accent:    'Playfair Display', serif;
    --ease-expo:      cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-heading);
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}

/* ============================================
   NOISE TEXTURE OVERLAY
   ============================================ */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

/* ============================================
   PHASE 1: VIDEO LOADER
   ============================================ */
#loader-phase {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.9s var(--ease-expo), visibility 0.9s;
}

#loader-phase.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#intro-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
}

#intro-video.visible {
    opacity: 1;
}

/* Dark overlay so video doesn't blind the user */
.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(5, 5, 5, 0.3) 0%,
        rgba(5, 5, 5, 0.1) 50%,
        rgba(5, 5, 5, 0.7) 100%
    );
    z-index: 2;
    pointer-events: none;
}

/* Quyn logo watermark during video — removed */


/* ============================================
   PHASE 2: MAINTENANCE PAGE
   ============================================ */
#maintenance-phase {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 24px 80px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s var(--ease-expo) 0.2s, visibility 1s;
    overflow: hidden;
}

#maintenance-phase.visible {
    opacity: 1;
    visibility: visible;
}

/* Ambient gold glow in background */
.ambient-glow {
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 500px;
    background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 70%);
    filter: blur(100px);
    z-index: -1;
    pointer-events: none;
    animation: ambientPulse 8s ease-in-out infinite;
}

@keyframes ambientPulse {
    0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
    50%       { opacity: 1;   transform: translateX(-50%) scale(1.1); }
}

/* The centered content wrapper */
.maintenance-wrap {
    width: 100%;
    max-width: 680px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    text-align: center;
    padding: 0 16px;
}

/* ---- Status Badge ---- */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border: 1px solid var(--border-accent);
    border-radius: 100px;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    background: rgba(201, 169, 110, 0.05);
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(-16px);
    transition: opacity 0.8s var(--ease-expo) 0.3s, transform 0.8s var(--ease-expo) 0.3s;
}

.status-badge.in {
    opacity: 1;
    transform: translateY(0);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

/* ---- Brand Logo Placeholder ---- */
.brand-logo-wrap {
    margin-bottom: 14px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s var(--ease-expo) 0.5s, transform 0.8s var(--ease-expo) 0.5s;
}

.brand-logo-wrap.in {
    opacity: 1;
    transform: translateY(0);
}

.brand-logo {
    height: 72px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: screen;
    filter: brightness(1.8) contrast(1.1);
}

/* ---- Headline ---- */
.headline {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s var(--ease-expo) 0.65s, transform 0.9s var(--ease-expo) 0.65s;
    margin-bottom: 12px;
}

.headline.in {
    opacity: 1;
    transform: translateY(0);
}

.headline h1 {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text-primary);
}

.headline h1 em {
    font-family: var(--font-accent);
    font-weight: 400;
    font-style: italic;
    color: var(--accent);
}

/* ---- Description ---- */
.description {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 16px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.9s var(--ease-expo) 0.8s, transform 0.9s var(--ease-expo) 0.8s;
}

.description.in {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Divider Line ---- */
.divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin: 0 auto 16px;
    opacity: 0;
    transition: opacity 0.8s var(--ease-expo) 0.9s;
}

.divider.in {
    opacity: 1;
}

/* ---- Countdown Timer ---- */
.countdown-wrap {
    width: 100%;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.9s var(--ease-expo) 1s, transform 0.9s var(--ease-expo) 1s;
}

.countdown-wrap.in {
    opacity: 1;
    transform: translateY(0);
}

.countdown-label {
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.countdown {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.time-number {
    font-size: clamp(32px, 5.5vw, 56px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s var(--ease-expo);
}

.time-number.tick {
    transform: scale(1.06);
}

.time-unit {
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.countdown-separator {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 300;
    color: var(--accent);
    margin-top: 4px;
    opacity: 0.6;
    animation: sepPulse 1s ease-in-out infinite;
}

@keyframes sepPulse {
    0%, 100% { opacity: 0.6; }
    50%       { opacity: 0.15; }
}

/* ---- Progress Bar ---- */
.progress-wrap {
    width: 100%;
    max-width: 440px;
    margin: 0 auto 16px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.9s var(--ease-expo) 1.15s, transform 0.9s var(--ease-expo) 1.15s;
}

.progress-wrap.in {
    opacity: 1;
    transform: translateY(0);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.progress-info span {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.progress-track {
    width: 100%;
    height: 2px;
    background: var(--border-subtle);
    border-radius: 1px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    border-radius: 1px;
    box-shadow: 0 0 10px var(--accent-glow);
    transition: width 0.5s ease;
}

/* ---- Contact & Footer ---- */
.contact-section {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.9s var(--ease-expo) 1.3s, transform 0.9s var(--ease-expo) 1.3s;
    width: 100%;
}

.contact-section.in {
    opacity: 1;
    transform: translateY(0);
}

.contact-line {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.contact-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding-bottom: 2px;
    transition: color 0.3s ease;
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.4s var(--ease-expo);
}

.contact-link:hover {
    color: var(--accent);
}

.contact-link:hover::after {
    width: 100%;
}

/* ---- Footer ---- */
.footer-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 40px;
    background: linear-gradient(to top, rgba(5, 5, 5, 0.95), transparent);
    opacity: 0;
    transition: opacity 0.8s var(--ease-expo) 1.5s;
}

.footer-bar.in {
    opacity: 1;
}



.footer-copy {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.footer-built {
    font-size: 11px;
    color: var(--text-muted);
}

.footer-built a {
    color: var(--accent);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.footer-built a:hover {
    opacity: 1;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .footer-bar {
        padding: 16px 24px;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }

    .footer-built {
        display: none;
    }

    .countdown {
        gap: 12px;
    }

    .countdown-separator {
        font-size: 28px;
    }

    #maintenance-phase {
        padding: 70px 20px 80px;
        justify-content: center;
    }

    .ambient-glow {
        width: 400px;
        height: 300px;
    }
}

@media (max-width: 480px) {
    .countdown {
        gap: 8px;
    }

    .headline h1 {
        font-size: 32px;
    }
}
