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

:root {
    --bg-primary: #080c14;
    --bg-secondary: #0b101b;
    --bg-card: #0f172a;
    --accent-emerald: #10b981;
    --accent-glow: #00d084;
    --accent-cyan: #06b6d4;
    --border-subtle: rgba(255, 255, 255, 0.08);

    /* WhatsApp Official Dark Theme Palette */
    --wa-dark-bg: #0b141a;
    --wa-header-bg: #202c33;
    --wa-bubble-in: #202c33;
    --wa-bubble-out: #005c4b;
    --wa-green-action: #00a884;
    --wa-subtext: #8696a0;
    --wa-text: #e9edef;
    --wa-blue-tick: #53bdeb;
}

html {
    scroll-behavior: smooth;
    background-color: #080c14;
    color: #e2e8f0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #080c14;
    overflow-x: hidden;
}

/* Glassmorphism helpers */
.glass-panel {
    background: rgba(11, 16, 27, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: rgba(16, 185, 129, 0.35);
    box-shadow: 0 10px 30px -10px rgba(16, 185, 129, 0.15);
    transform: translateY(-2px);
}

/* Text gradients */
.gradient-text-emerald {
    background: linear-gradient(135deg, #34d399 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-glow {
    background: linear-gradient(135deg, #10b981 0%, #38bdf8 50%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glow effects */
.glow-emerald {
    box-shadow: 0 0 40px -10px rgba(16, 185, 129, 0.3);
}

.glow-cyan {
    box-shadow: 0 0 40px -10px rgba(6, 182, 212, 0.25);
}

/* Custom scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #080c14;
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* Animated radial backgrounds */
.hero-glow-bg {
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.15), transparent 45%),
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.08), transparent 40%),
        radial-gradient(circle at 20% 30%, rgba(16, 185, 129, 0.06), transparent 35%);
}

.features-glow-bg {
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.08), transparent 60%);
}

/* Code and mockups */
.font-mono-code {
    font-family: 'JetBrains Mono', monospace;
}

/* ======================================================== */
/* WHATSAPP AUTHENTIC CHAT SIMULATOR STYLES                 */
/* ======================================================== */

.wa-doodle-bg {
    background-color: #0b141a;
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
                      radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    background-position: 0 0, 12px 12px;
}

.wa-bubble-incoming {
    background-color: #202c33;
    color: #e9edef;
    border-radius: 14px 14px 14px 4px;
    box-shadow: 0 1px 1.5px rgba(0, 0, 0, 0.35);
}

.wa-bubble-outgoing {
    background-color: #005c4b;
    color: #e9edef;
    border-radius: 14px 14px 4px 14px;
    box-shadow: 0 1px 1.5px rgba(0, 0, 0, 0.35);
}

.wa-quote-box {
    background-color: rgba(0, 0, 0, 0.22);
    border-left: 4px solid #00a884;
    border-radius: 6px;
    padding: 6px 10px;
    margin-bottom: 6px;
}

/* Official WhatsApp Native In-Chat Order Card */
.wa-order-card {
    background-color: #202c33;
    color: #e9edef;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.wa-order-btn {
    color: #00a884;
    font-weight: 600;
    transition: background-color 0.15s ease, transform 0.1s ease;
}

.wa-order-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.wa-order-btn:active {
    background-color: rgba(0, 168, 132, 0.15);
}

/* Authentic WhatsApp Bottom-Anchored Chat Stream & Mechanics */
#waChatStream {
    display: flex !important;
    flex-direction: column !important;
    min-height: 480px !important;
    max-height: 520px !important;
    overflow-y: auto !important;
}

#waChatInner {
    margin-top: auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    width: 100% !important;
}

.wa-input-active {
    box-shadow: 0 0 0 2px rgba(0, 168, 132, 0.4);
    background-color: #32434d !important;
}

.wa-send-active {
    transform: scale(1.08);
    background-color: #00d084 !important;
    box-shadow: 0 0 12px rgba(0, 208, 132, 0.6);
}

/* Simulated Tap Pulse Effect for Auto-Play Walkthrough */
@keyframes waTapPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 168, 132, 0.7);
    }
    50% {
        transform: scale(0.97);
        box-shadow: 0 0 0 8px rgba(0, 168, 132, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 168, 132, 0);
    }
}

.wa-simulated-tap {
    animation: waTapPulse 0.45s ease-out;
    border-color: #00a884 !important;
    background-color: rgba(0, 168, 132, 0.28) !important;
}
