/* ==========================================================================
   Greetly - Under Construction (Orbits & Interactive Confetti)
   ========================================================================== */

:root {
    --bg-main: #090c16;
    --card-bg: rgba(17, 24, 40, 0.72);
    --border-line: rgba(255, 255, 255, 0.08);
    
    --primary-grad: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    --accent-indigo: #6366f1;
    --accent-pink: #ec4899;
    --accent-cyan: #06b6d4;
    --accent-emerald: #10b981;
    --whatsapp-green: #25d366;
    --whatsapp-hover: #1eaa52;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    
    --font-sans: 'Plus Jakarta Sans', -apple-system, sans-serif;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Canvas & Background Orbs */
.bg-active-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

#bg-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.35;
    animation: orbMove 16s infinite alternate ease-in-out;
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #6366f1, #ec4899);
}

.orb-2 {
    bottom: -10%;
    right: -10%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, #06b6d4, #6366f1);
    animation-delay: -6s;
}

.orb-3 {
    top: 40%;
    right: 30%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #a855f7, #ec4899);
    animation-delay: -11s;
}

@keyframes orbMove {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, 80px) scale(1.15); }
}

/* App Container */
.app-container {
    position: relative;
    z-index: 5;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Header */
.header {
    padding: 32px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: var(--primary-grad);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.logo .dot {
    color: var(--accent-pink);
}

/* Hero Layout */
.hero-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
    padding: 40px 0 60px;
}

/* Left Text Side */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #a5b4fc;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-cyan);
    animation: badgePulse 1.5s infinite alternate;
}

@keyframes badgePulse {
    0% { opacity: 0.5; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1.2); }
}

.title {
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.2px;
    margin-bottom: 20px;
}

.gradient-text {
    background: var(--primary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 540px;
}

/* Glass Box & Interactive Progress Card */
.glass-box {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-line);
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
}

.interactive-build-card {
    padding: 24px;
    margin-bottom: 32px;
    max-width: 520px;
    border: 1px solid rgba(99, 102, 241, 0.25);
}

.build-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.build-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.build-title i {
    color: var(--accent-pink);
}

.build-percent {
    font-size: 1rem;
    font-weight: 800;
    color: #a5b4fc;
    transition: all 0.3s ease;
}

.progress-track {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 9999px;
    overflow: hidden;
    margin-bottom: 18px;
}

.progress-fill {
    width: 75%;
    height: 100%;
    background: var(--primary-grad);
    border-radius: 9999px;
    transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-interactive {
    width: 100%;
    padding: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.25s ease;
}

.btn-interactive:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* WhatsApp Button */
.cta-wrapper {
    margin-top: 10px;
}

.btn-whatsapp-glow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 18px 36px;
    background: var(--whatsapp-green);
    color: #fff;
    border-radius: 9999px;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35);
    transition: all 0.3s ease;
}

.btn-whatsapp-glow:hover {
    background: var(--whatsapp-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.5);
}

.wa-icon {
    font-size: 1.4rem;
}

/* Right Animation Side & Orbits */
.lottie-card {
    height: 460px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.lottie-box-stage {
    width: 100%;
    height: 100%;
    max-width: 440px;
    max-height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lottie-box-stage svg {
    width: 100% !important;
    height: 100% !important;
}

.orbit-animation-container {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Orbit Rings */
.orbit-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.12);
}

.ring-1 { width: 180px; height: 180px; animation: spinClockwise 20s linear infinite; }
.ring-2 { width: 250px; height: 250px; animation: spinCounter 28s linear infinite; }
.ring-3 { width: 310px; height: 310px; animation: spinClockwise 36s linear infinite; }

@keyframes spinClockwise { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes spinCounter { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }

/* Orbiting Items */
.orbit-item {
    position: absolute;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.item-envelope {
    top: 20px;
    left: 40px;
    background: rgba(236, 72, 153, 0.2);
    border: 1px solid var(--accent-pink);
    color: var(--accent-pink);
    animation: floatItem 3s infinite alternate ease-in-out;
}

.item-heart {
    bottom: 30px;
    right: 40px;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid var(--accent-indigo);
    color: #a5b4fc;
    animation: floatItem 3.5s infinite alternate ease-in-out -1s;
}

.item-sparkle {
    top: 50px;
    right: 20px;
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid #f59e0b;
    color: #f59e0b;
    animation: floatItem 2.8s infinite alternate ease-in-out -0.5s;
}

.item-star {
    bottom: 40px;
    left: 30px;
    background: rgba(6, 182, 212, 0.2);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    animation: floatItem 4s infinite alternate ease-in-out -1.5s;
}

@keyframes floatItem {
    0% { transform: translateY(0) scale(0.95); }
    100% { transform: translateY(-10px) scale(1.1); }
}

/* Center Digital Invitation Preview */
.center-card-preview {
    width: 140px;
    height: 180px;
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.9), rgba(88, 28, 135, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 16px;
    z-index: 5;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-inner {
    text-align: center;
}

.preview-mini-header {
    font-size: 1.5rem;
    color: var(--accent-pink);
    margin-bottom: 6px;
}

.preview-mini-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.preview-mini-sub {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-top: 2px;
}

.preview-mini-bar {
    width: 40px;
    height: 3px;
    background: var(--primary-grad);
    border-radius: 9999px;
    margin: 10px auto 0;
}

.glow-pulse-ring {
    position: absolute;
    inset: -10px;
    border-radius: 24px;
    border: 1px solid rgba(236, 72, 153, 0.4);
    animation: ringPulse 2s infinite ease-out;
    pointer-events: none;
}

@keyframes ringPulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    100% { transform: scale(1.15); opacity: 0; }
}

/* Footer */
.footer {
    padding: 32px 0;
    text-align: center;
    border-top: 1px solid var(--border-line);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer strong {
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 900px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .status-badge {
        margin-left: auto;
        margin-right: auto;
    }

    .subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .interactive-build-card {
        margin-left: auto;
        margin-right: auto;
    }

    .title {
        font-size: 2.5rem;
    }
}
