/* ==========================================================================
   NEROX.BLOG - OFFICIAL WHATSAPP LANDING PAGE
   Ultra High-Converting, Mobile-First, Modern Glassmorphism
   ========================================================================== */

:root {
    --bg-dark: #060908;
    --bg-card: rgba(14, 23, 18, 0.78);
    --bg-card-border: rgba(37, 211, 102, 0.22);
    --primary-green: #25D366;
    --primary-hover: #2ee672;
    --primary-dark: #128C7E;
    --accent-emerald: #00E676;
    --text-white: #ffffff;
    --text-muted: #9bb3a5;
    --text-dim: #60796c;
    --gold: #FFD700;
    --font-ar: 'Cairo', system-ui, -apple-system, sans-serif;
    --font-en: 'Inter', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-ar);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    padding: 1.25rem 1rem;
}

/* Background Gradients & Grid */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(120px);
    opacity: 0.22;
}

.glow-top {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, #25D366 0%, transparent 70%);
    top: -160px;
    left: 50%;
    transform: translateX(-50%);
}

.glow-bottom {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, #128C7E 0%, transparent 70%);
    bottom: -180px;
    right: 5%;
}

.grid-overlay {
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(37, 211, 102, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(37, 211, 102, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 1;
}

/* Main Container */
.page-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 540px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

/* Top Utility Header */
.top-nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0.5rem;
}

.official-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.3);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-emerald);
    letter-spacing: 0.5px;
}

.live-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-emerald);
    box-shadow: 0 0 10px var(--accent-emerald);
    animation: blink-dot 1.5s infinite ease-in-out;
}

@keyframes blink-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    background: rgba(255, 255, 255, 0.06);
    padding: 0.2rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-en);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    color: var(--text-white);
}

.lang-btn.active {
    background: var(--primary-green);
    color: #060908;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.4);
    font-weight: 700;
}

/* Hero Card */
.card {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 28px;
    padding: 2.5rem 1.75rem 2rem;
    text-align: center;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 0 40px rgba(37, 211, 102, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: border-color 0.3s ease;
}

.card:hover {
    border-color: rgba(37, 211, 102, 0.4);
}

/* ==========================================================================
   FACEBOOK IN-APP BROWSER BREAKOUT GUIDE & FLOATING POINTER
   ========================================================================== */

/* Floating Arrow Pointing to Facebook 3 dots */
.fb-floating-arrow {
    position: fixed;
    top: 14px;
    left: 18px;
    z-index: 99999;
    pointer-events: none;
    animation: bounce-arrow 1.4s infinite ease-in-out;
}

[dir="rtl"] .fb-floating-arrow {
    left: auto;
    right: 18px;
}

.arrow-bounce {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    color: #060908;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.82rem;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.6);
    border: 2px solid #ffffff;
}

.arrow-icon {
    font-size: 1.15rem;
    font-weight: 900;
}

@keyframes bounce-arrow {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-8px) scale(1.08);
    }
}

/* Facebook Breakout Guide Card */
.fb-breakout-guide {
    width: 100%;
    background: rgba(16, 28, 22, 0.95);
    border: 2px solid var(--accent-emerald);
    border-radius: 24px;
    padding: 1.6rem 1.3rem;
    margin-bottom: 1.75rem;
    text-align: right;
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.7),
        0 0 35px rgba(37, 211, 102, 0.25);
    animation: guide-fade-in 0.4s ease-out;
}

[dir="ltr"] .fb-breakout-guide {
    text-align: left;
}

@keyframes guide-fade-in {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.guide-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    color: #FFD700;
    margin-bottom: 0.85rem;
}

.guide-pulse-dot {
    width: 7px;
    height: 7px;
    background: #FFD700;
    border-radius: 50%;
    box-shadow: 0 0 8px #FFD700;
    animation: blink-dot 1s infinite;
}

.guide-title {
    font-size: 1.35rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.35;
    margin-bottom: 0.45rem;
}

.guide-sub {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

/* Step Items */
.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.guide-step-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 0.85rem 1rem;
    transition: all 0.2s ease;
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.2);
    border: 1px solid var(--accent-emerald);
    color: var(--accent-emerald);
    font-size: 1rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: var(--font-en);
}

.step-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.step-info strong {
    font-size: 0.95rem;
    color: #ffffff;
    font-weight: 800;
}

.step-info span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.highlight-step {
    background: rgba(37, 211, 102, 0.12);
    border: 1.5px solid var(--accent-emerald);
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.25);
}

.highlight-step .step-num {
    background: var(--accent-emerald);
    color: #060908;
    box-shadow: 0 0 10px var(--accent-emerald);
}

.highlight-step .step-info strong {
    color: var(--accent-emerald);
}

/* Android 1-Tap Quick Breakout Button */
.android-quick-breakout {
    width: 100%;
    margin-top: 0.5rem;
}

.chrome-intent-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 1.2rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%);
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.4);
    transition: transform 0.2s ease;
}

.chrome-intent-btn:hover, .chrome-intent-btn:active {
    transform: scale(0.98);
}

/* Brand Avatar / WhatsApp Emblem */
.brand-avatar-wrapper {
    position: relative;
    width: 92px;
    height: 92px;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-glow {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 211, 102, 0.6) 0%, transparent 70%);
    filter: blur(14px);
    animation: avatar-breathe 3s infinite ease-in-out;
}

.avatar-ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px dashed rgba(37, 211, 102, 0.5);
    animation: spin-slow 20s linear infinite;
}

@keyframes spin-slow {
    100% { transform: rotate(360deg); }
}

@keyframes avatar-breathe {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.1); }
}

.avatar-icon {
    position: relative;
    z-index: 2;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wa-emblem-svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

/* Channel Meta */
.channel-meta {
    margin-bottom: 0.85rem;
}

.sub-badge {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    background: linear-gradient(90deg, rgba(37, 211, 102, 0.15), rgba(0, 230, 118, 0.15));
    border: 1px solid rgba(37, 211, 102, 0.35);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--accent-emerald);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Main Heading Above Button */
.main-title {
    font-size: 2.15rem;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 0.4rem;
    color: #ffffff;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
    letter-spacing: -0.5px;
}

.en-subtitle {
    font-family: var(--font-en);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--accent-emerald);
    margin-bottom: 1.1rem;
    text-transform: capitalize;
    letter-spacing: 0.5px;
}

.description-text {
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 440px;
    margin-bottom: 2rem;
}

.description-text strong {
    color: #ffffff;
    display: block;
    margin-top: 0.35rem;
    font-weight: 700;
}

/* ==========================================================================
   THE WHATSAPP CTA BUTTON - ULTRA HIGH CONVERSION
   ========================================================================== */
.cta-wrapper {
    position: relative;
    width: 100%;
    max-width: 460px;
    margin-bottom: 1.75rem;
    display: flex;
    justify-content: center;
}

/* Pulsing radar rings behind the button */
.pulse-ring {
    position: absolute;
    inset: -6px;
    border-radius: 999px;
    pointer-events: none;
    z-index: 1;
    border: 2px solid var(--primary-green);
    opacity: 0;
}

.ring-1 {
    animation: ring-pulse 2.2s infinite ease-out;
}

.ring-2 {
    animation: ring-pulse 2.2s 1.1s infinite ease-out;
}

@keyframes ring-pulse {
    0% {
        transform: scale(0.96);
        opacity: 0.75;
    }
    100% {
        transform: scale(1.15, 1.35);
        opacity: 0;
    }
}

.wa-cta-btn {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    padding: 1.15rem 1.6rem;
    border-radius: 999px;
    text-decoration: none;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff;
    box-shadow: 
        0 12px 30px rgba(37, 211, 102, 0.45),
        0 2px 0 rgba(255, 255, 255, 0.35) inset,
        0 -2px 0 rgba(0, 0, 0, 0.25) inset;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    cursor: pointer;
    user-select: none;
}

.wa-cta-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 18px 40px rgba(37, 211, 102, 0.6),
        0 2px 0 rgba(255, 255, 255, 0.45) inset;
    filter: brightness(1.06);
}

.wa-cta-btn:active {
    transform: translateY(1px) scale(0.985);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
    animation: icon-wiggle 3s infinite ease-in-out;
}

@keyframes icon-wiggle {
    0%, 80%, 100% { transform: rotate(0deg); }
    85% { transform: rotate(-12deg); }
    90% { transform: rotate(10deg); }
    95% { transform: rotate(-6deg); }
}

.btn-text-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
    gap: 0.1rem;
}

[dir="ltr"] .btn-text-group {
    align-items: flex-start;
    text-align: left;
}

.btn-main-text {
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.2px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.btn-sub-text {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 0.2px;
}

/* Light sweep shimmer across the button */
.btn-shine {
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        transparent, 
        rgba(255, 255, 255, 0.35), 
        transparent
    );
    transform: skewX(-25deg);
    animation: shine-sweep 3.5s infinite ease-in-out;
    pointer-events: none;
}

@keyframes shine-sweep {
    0% { left: -150%; }
    40%, 100% { left: 180%; }
}

/* Fallback Link for In-App Browsers */
.fallback-container {
    margin-top: -0.6rem;
    margin-bottom: 1.25rem;
    text-align: center;
    animation: fadeIn 0.35s ease;
}

.fallback-link {
    color: var(--accent-emerald);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: inline-block;
}

.fallback-link:hover, .fallback-link:active {
    color: #ffffff;
    background: rgba(37, 211, 102, 0.15);
}

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

/* Live Activity Bar */
.live-activity-bar {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(37, 211, 102, 0.25);
    border-radius: 999px;
    padding: 0.45rem 1rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.pulse-indicator {
    width: 7px;
    height: 7px;
    background: var(--accent-emerald);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-emerald);
    animation: blink-dot 1.2s infinite;
}

.activity-text strong {
    color: #ffffff;
    font-family: var(--font-en);
}

/* Footer */
.page-footer {
    text-align: center;
    padding: 0.75rem 0.5rem;
    color: var(--text-dim);
    font-size: 0.78rem;
    line-height: 1.6;
}

.footer-link {
    color: var(--accent-emerald);
    text-decoration: none;
    font-weight: 600;
}

.footer-link:hover {
    text-decoration: underline;
}

.footer-note {
    margin-top: 0.25rem;
    font-size: 0.72rem;
    opacity: 0.8;
}

/* LTR Support (English & French) */
[dir="ltr"] body {
    font-family: var(--font-en);
}

[dir="ltr"] .main-title {
    letter-spacing: -0.5px;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    body {
        padding: 0.75rem 0.75rem 1.5rem;
    }

    .card {
        padding: 2rem 1.25rem 1.75rem;
        border-radius: 24px;
    }

    .brand-avatar-wrapper {
        width: 82px;
        height: 82px;
        margin-bottom: 1rem;
    }

    .avatar-icon {
        width: 72px;
        height: 72px;
    }

    .main-title {
        font-size: 1.85rem;
    }

    .en-subtitle {
        font-size: 1.05rem;
    }

    .description-text {
        font-size: 0.92rem;
    }

    .wa-cta-btn {
        padding: 1.1rem 1.25rem;
        gap: 0.75rem;
    }

    .btn-main-text {
        font-size: 1.12rem;
    }

    .btn-sub-text {
        font-size: 0.72rem;
    }
}
