/* ================================================================
   CYBER GRID WOW — Advanced Geometric Background
   Multi-layered technical grid with pulses and floating shapes.
   ================================================================ */

:root {
    --bg-light: #fcfdfd;
    --grid-light: rgba(16, 185, 129, 0.15);
    --line-light: rgba(16, 185, 129, 0.08);
    --accent-light: #10b981;
    --glow-light: rgba(16, 185, 129, 0.04);

    --bg-dark: #0a0a0a;
    --grid-dark: rgba(16, 185, 129, 0.15);
    --line-dark: rgba(255, 255, 255, 0.02);
    --accent-dark: #10b981;
}

.force-bg-transparency {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

/* ----------------------------------------------------------------
   1. BASE SETUP
   ---------------------------------------------------------------- */
html {
    background-color: var(--bg-light);
    min-height: 100%;
}

body {
    background-color: var(--bg-light) !important;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    position: relative;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ----------------------------------------------------------------
   2. THE GRID (Layer 1)
   ---------------------------------------------------------------- */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        radial-gradient(var(--grid-light) 1.5px, transparent 1.5px),
        linear-gradient(var(--line-light) 1.2px, transparent 1.2px),
        linear-gradient(90deg, var(--line-light) 1.2px, transparent 1.2px);
    background-size: 50px 50px;
    background-position: center center;
}

/* --- LIGHT MODE AMBIENT GLOWS --- */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 15% 15%, var(--glow-light) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, var(--glow-light) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.02) 0%, transparent 60%);
}


/* ----------------------------------------------------------------
   4. FLOATING TECH SHAPES (Layer 3)
   Using pseudo-elements of the site wrapper
   ---------------------------------------------------------------- */
.site-wrapper::before,
.site-wrapper::after {
    content: "";
    position: fixed;
    width: 300px;
    height: 300px;
    border: 1px solid var(--accent-light);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.1);
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
}

.site-wrapper::before {
    top: 10%;
    left: 10%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: floatShape 25s infinite alternate ease-in-out;
}

.site-wrapper::after {
    bottom: 10%;
    right: 15%;
    width: 400px;
    height: 400px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: floatShape 35s infinite alternate-reverse ease-in-out;
}

@keyframes floatShape {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    100% {
        transform: translate(100px, 50px) rotate(90deg) scale(1.1);
    }
}

/* ----------------------------------------------------------------
   5. TRANSPARENCY & CONTENT
   ---------------------------------------------------------------- */
.app-main,
.main-body,
.main-content,
.site-wrapper,
section,
.section,
.ls-section,
.ls-section-bg {
    background: transparent !important;
    position: relative;
    z-index: 2;
}

.content-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(16, 185, 129, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

/* ----------------------------------------------------------------
   6. DARK MODE
   ---------------------------------------------------------------- */
.lagom-dark-mode,
html.lagom-dark-mode {
    background-color: var(--bg-dark) !important;
}

.lagom-dark-mode body {
    background-color: var(--bg-dark) !important;
}

.lagom-dark-mode body::before {
    background-image:
        radial-gradient(var(--grid-dark) 1.5px, transparent 1.5px),
        linear-gradient(var(--line-dark) 1px, transparent 1px),
        linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
}


.lagom-dark-mode .site-wrapper::before,
.lagom-dark-mode .site-wrapper::after {
    opacity: 0.1;
    border-color: var(--accent-dark);
}

.lagom-dark-mode .content-card {
    background: rgba(20, 20, 23, 0.75);
    border-color: rgba(16, 185, 129, 0.15);
    color: #f8fafc;
}

/* Cleanup */
.page-bg,
.page-bg-grid,
.page-bg-orb {
    display: none !important;
}

/* ----------------------------------------------------------------
   7. PRICING SECTION DECORATIONS (SVG)
   Apply ".pricing-side-decor" to the Section in CMS.
   ---------------------------------------------------------------- */
.pricing-side-decor {
    position: relative !important;
}

.pricing-side-decor .container {
    position: relative !important;
    z-index: 1;
}

/* Staggered SVG Backgrounds - Anchored to Container */
.pricing-side-decor .container::before,
.pricing-side-decor .container::after {
    content: "";
    position: absolute;
    width: 450px;
    height: 450px;
    pointer-events: none;
    z-index: -1;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.05;
    transition: all 0.6s ease;
}

/* LEFT: SHIELD (Higher) */
.pricing-side-decor .container::before {
    left: -280px;
    top: -50px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2310b981'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1' d='M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z'/%3E%3C/svg%3E");
    transform: rotate(-15deg);
}

/* RIGHT: SERVER/TECH (Lower) */
.pricing-side-decor .container::after {
    right: -280px;
    bottom: -50px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2310b981'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1' d='M5 12h14M5 12a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v4a2 2 0 01-2 2M5 12a2 2 0 00-2 2v4a2 2 0 002 2h14a2 2 0 002-2v-4a2 2 0 00-2-2m-2-4h.01M17 16h.01'/%3E%3C/svg%3E");
    transform: rotate(15deg);
}

/* Dark Mode: Emerald Glow */
.lagom-dark-mode .pricing-side-decor .container::before,
.lagom-dark-mode .pricing-side-decor .container::after {
    opacity: 0.12;
    filter: drop-shadow(0 0 15px rgba(16, 185, 129, 0.3));
}

/* Responsiveness */
@media (max-width: 1700px) {
    .pricing-side-decor .container::before {
        left: -220px;
    }

    .pricing-side-decor .container::after {
        right: -220px;
    }
}

@media (max-width: 1400px) {

    .pricing-side-decor .container::before,
    .pricing-side-decor .container::after {
        width: 350px;
        height: 350px;
    }

    .pricing-side-decor .container::before {
        left: -150px;
    }

    .pricing-side-decor .container::after {
        right: -150px;
    }
}

@media (max-width: 1250px) {

    .pricing-side-decor .container::before,
    .pricing-side-decor .container::after {
        display: none !important;
    }
}

/* ----------------------------------------------------------------
   8. FAQ SECTION DECORATIONS (SVG)
   Apply ".faq-side-decor" to the Section in CMS.
   ---------------------------------------------------------------- */
.faq-side-decor {
    position: relative !important;
}

.faq-side-decor .container {
    position: relative !important;
    z-index: 1;
}

/* Staggered SVG Backgrounds - Anchored to Container */
.faq-side-decor .container::before,
.faq-side-decor .container::after {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    pointer-events: none;
    z-index: -1;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.05;
    transition: all 0.6s ease;
}

/* LEFT: QUESTION MARK (Higher) */
.faq-side-decor .container::before {
    left: -250px;
    top: -30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2310b981'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1' d='M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E");
    transform: rotate(-10deg);
}

/* RIGHT: CHAT BUBBLES (Lower) */
.faq-side-decor .container::after {
    right: -250px;
    bottom: -30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2310b981'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1' d='M8 10h.01M12 10h.01M16 10h.01M9 16H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-5l-5 5v-5z'/%3E%3C/svg%3E");
    transform: rotate(10deg);
}

/* Dark Mode Tint */
.lagom-dark-mode .faq-side-decor .container::before,
.lagom-dark-mode .faq-side-decor .container::after {
    opacity: 0.12;
    filter: drop-shadow(0 0 15px rgba(16, 185, 129, 0.3));
}

/* Responsiveness */
@media (max-width: 1700px) {
    .faq-side-decor .container::before {
        left: -200px;
    }

    .faq-side-decor .container::after {
        right: -200px;
    }
}

@media (max-width: 1400px) {

    .faq-side-decor .container::before,
    .faq-side-decor .container::after {
        width: 300px;
        height: 300px;
    }

    .faq-side-decor .container::before {
        left: -120px;
    }

    .faq-side-decor .container::after {
        right: -120px;
    }
}

@media (max-width: 1250px) {

    .faq-side-decor .container::before,
    .faq-side-decor .container::after {
        display: none !important;
    }
}