:root {
    --clr-background: #050505;
    --clr-surface: rgba(15, 15, 20, 0.65);
    --clr-surface-border: rgba(255, 255, 255, 0.08);
    --clr-text-primary: #ffffff;
    --clr-text-secondary: rgba(255, 255, 255, 0.7);
    --clr-accent-1: #3b82f6;
    --clr-accent-2: #8b5cf6;
    --clr-accent-3: #ec4899;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --ease-fluid: cubic-bezier(0.25, 1, 0.5, 1);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--clr-background);
    color: var(--clr-text-primary);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Background elements */
.background-wrapper {
    position: fixed;
    inset: 0;
    background-image: url('assets/bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
    filter: brightness(0.6) saturate(1.2);
    transform: scale(1.2); /* Provide extra room for panning */
    animation: panBackAndForth 20s alternate infinite ease-in-out;
}

@keyframes panBackAndForth {
    0% { transform: scale(1.2) translateX(-5%); }
    100% { transform: scale(1.2) translateX(5%); }
}

.ambient-light {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, transparent 20%, rgba(0, 0, 0, 0.8) 100%);
    z-index: -1;
}

/* Layout container */
.container {
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--clr-surface);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--clr-surface-border);
    border-radius: 24px;
    padding: clamp(1.5rem, 4vh, 4rem) clamp(2rem, 5vw, 4rem);
    width: 100%;
    max-width: 800px;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5), 
                0 0 0 1px inset rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 4vh, 3rem);
    transform: translateY(20px);
    opacity: 0;
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.logo svg {
    color: var(--clr-text-primary);
}

/* Content Area */
.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: clamp(0.75rem, 2vh, 1.5rem);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ping {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    position: relative;
}

.ping::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #4ade80;
    border-radius: 50%;
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    75%, 100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--clr-text-primary) 0%, var(--clr-text-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: var(--clr-text-secondary);
    line-height: 1.6;
    max-width: 560px;
    margin-bottom: 1rem;
}


/* Form Styles */
.notify-form {
    display: flex;
    gap: 0.75rem;
    width: 100%;
    max-width: 480px;
    position: relative;
}

.input-wrapper {
    flex: 1;
    position: relative;
    border-radius: 12px;
}

.input-wrapper::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(255,255,255,0.1), transparent);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.input-wrapper:focus-within::before {
    opacity: 1;
}

input[type="email"] {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--clr-surface-border);
    border-radius: 12px;
    color: var(--clr-text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

input[type="email"]:focus {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.4);
}

input[type="email"]::placeholder {
    color: var(--clr-text-secondary);
}

.btn-primary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1.5rem;
    background: var(--clr-text-primary);
    color: var(--clr-background);
    border: none;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s var(--ease-fluid);
    white-space: nowrap;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(255, 255, 255, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary svg {
    transition: transform 0.3s var(--ease-fluid);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.success-message {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    text-align: center;
    color: #4ade80;
    font-size: 0.875rem;
    margin-top: 0.75rem;
    animation: fadeIn 0.3s ease;
}

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

/* Premium Floating Side Popup */
.side-popup-overlay {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(40px) scale(0.95);
}

.side-popup-overlay.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.side-popup-panel {
    background: rgba(18, 18, 18, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 340px;
    padding: 1.75rem;
    position: relative;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.4), 0 0 0 1px inset rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.close-popup {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--clr-text-secondary);
    cursor: pointer;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
    padding: 0;
}

.close-popup:hover {
    color: var(--clr-text-primary);
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.popup-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
    animation: pulseActive 2s infinite;
}

@keyframes pulseActive {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.popup-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--clr-text-primary);
    margin: 0;
}

.popup-text {
    color: var(--clr-text-secondary);
    line-height: 1.5;
    font-size: 0.9rem;
    margin: 0;
}

.popup-text strong {
    color: var(--clr-text-primary);
    font-weight: 600;
}

.popup-actions {
    display: flex;
    gap: 0.75rem;
}

.popup-actions > a {
    flex: 1;
}

.btn-popup-call, .btn-popup-wa {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 0.5rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-popup-call {
    background: rgba(255, 255, 255, 0.03);
    color: var(--clr-text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-popup-call:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-popup-wa {
    background: #25D366;
    color: #000;
    border: 1px solid transparent;
}

.btn-popup-wa:hover {
    background: #20C25D;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(37, 211, 102, 0.6);
}

/* Footer */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: clamp(1rem, 3vh, 2rem);
    border-top: 1px solid var(--clr-surface-border);
    font-size: 0.875rem;
    color: var(--clr-text-secondary);
}

.social-links {
    display: flex;
    gap: 1.25rem;
}

.social-links a {
    color: var(--clr-text-secondary);
    transition: color 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    color: var(--clr-text-primary);
    transform: translateY(-2px);
}

.social-links a[aria-label="Instagram"] {
    color: #ffffff !important;
}

/* Domestic Redirect Popup */
.redirect-popup {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 90;
    background: rgba(15, 15, 20, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.25);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 20px -5px rgba(139, 92, 246, 0.15);
    border-radius: 100px;
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: var(--clr-text-primary);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    animation: slideDownToast 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.5s;
    opacity: 0;
    transform: translateY(-40px);
    overflow: hidden;
}

.redirect-popup::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: skewX(-20deg);
    animation: shimmerToken 4s infinite 2s;
    z-index: -1;
}

@keyframes shimmerToken {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

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

.redirect-popup:hover {
    background: rgba(20, 20, 25, 0.9);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.6), 0 0 25px -5px rgba(139, 92, 246, 0.25);
}

.redirect-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
    animation: pulseGlow 2s infinite alternate ease-in-out;
}

@keyframes pulseGlow {
    from { box-shadow: 0 0 10px rgba(139, 92, 246, 0.2); }
    to { box-shadow: 0 0 20px rgba(139, 92, 246, 0.6); }
}

.redirect-content {
    display: flex;
    align-items: center;
    padding: 0.1rem 0;
}

.redirect-desc {
    font-size: 0.9rem;
    color: var(--clr-text-secondary);
    letter-spacing: 0.01em;
}

.redirect-desc strong {
    background: linear-gradient(135deg, #a78bfa, #f472b6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    margin-left: 0.1rem;
}

.redirect-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    margin-left: 0.5rem;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.redirect-popup:hover .redirect-arrow {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    color: #ffffff;
    border-color: transparent;
    transform: scale(1.1) translateX(2px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .glass-panel {
        padding: 2.5rem 2rem;
        gap: 2rem;
    }

    .notify-form {
        flex-direction: column;
    }

    .btn-primary {
        padding: 1rem 1.5rem;
        justify-content: center;
    }

    .footer {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        padding-top: 1.5rem;
    }

    .redirect-popup {
        width: calc(100% - 2rem);
        max-width: 400px;
        top: 1rem;
        border-radius: 16px;
        padding: 0.75rem 1rem;
    }

    .redirect-arrow {
        margin-left: auto;
    }
}
