/*
 * ULTRA BACKGROUNDS - THE "REMBRANDT" STANDARD v4
 *
 * Design Philosophy: "Chiaroscuro & Precision"
 * Goal: Dramatic lighting, deep voids, and exquisite contrast.
 *
 * UI/UX UPDATE: Reduced grid/constellation opacity to de-tech the aesthetic
 * Per critique: "Fade the constellation lines to ~20-30% opacity"
 */

:root {
    --void-bg: #020c1b;
    --void-deepest: #01060f;
    /* REDUCED: Grid opacity from 0.04 to 0.02 (50% reduction) */
    --grid-color: rgba(100, 255, 218, 0.02);
    /* REDUCED: Light source from 0.15 to 0.08 */
    --light-source: rgba(100, 255, 218, 0.08);
    --glass-surface: rgba(17, 34, 64, 0.7);
    --glass-highlight: rgba(255, 255, 255, 0.05);
    --shadow-depth: 0 20px 50px -10px rgba(0, 0, 0, 0.7);
    /* REDUCED: Divider beam from 0.2 to 0.1 */
    --divider-beam: linear-gradient(90deg, transparent 0%, rgba(100, 255, 218, 0.1) 50%, transparent 100%);
}

/*
   1. THE ABYSS (Background)
   Use multiple gradients to create a "Vignette" effect.
   The center is illuminated, the edges fall into total darkness.

   UI/UX UPDATE: Grid lines significantly reduced for less "tech/SaaS" feel
*/
.ultra-fluid-zone,
.ultra-footer {
    position: relative;
    background-color: var(--void-bg);
    /*
       Layer 1: The Grid (Base) - REMOVED per critique ("cyber netting")
       Layer 2: The Vignette (Overlay - forces edges to black)
    */
    background-image:
        /* The Vignette: Darkens the corners/edges significantly */
        radial-gradient(circle at 50% 50%, transparent 40%, var(--void-deepest) 100%);
    background-size: 100% 100%;
    background-position: center center;
    overflow: hidden;
    z-index: 1;
}

/*
   2. THE ATMOSPHERE (Volumetric Lighting)
   A subtle top-down "wash" of light that fades as it goes down.
   This unifies the vertical space.
*/
.ultra-fluid-zone::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(23, 55, 85, 0.3) 0%,
        transparent 40%
    );
    pointer-events: none;
    z-index: -1;
}

/*
   3. THE LIGHT BEAMS (Separators)
   Sharper, more intense center, fading quickly.
*/
.ultra-fluid-zone section {
    position: relative;
    background: transparent;
    margin: 0;
    padding: 9rem 0; /* More dramatic spacing */
    border: none;
}

.ultra-fluid-zone section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15%;
    width: 70%;
    height: 1px;
    background: var(--divider-beam);
    box-shadow: 0 0 15px rgba(100, 255, 218, 0.1); /* Glow effect */
    opacity: 0.5;
}

.ultra-fluid-zone section:last-of-type::after { display: none; }


/*
   4. THE SUBJECT (Cards with Rim Lighting)
   Simulate a light source coming from the Top-Center.
   Top borders are brighter. Bottom borders recede.

   UI/UX UPDATE: Reduced glow effects for less "tech" feel
*/
.ultra-fluid-zone .ultra-card,
.ultra-fluid-zone .industry-card,
.ultra-fluid-zone .testimonial-memo {
    background: var(--glass-surface);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);

    /* The Rim Light: Gradient Border - REDUCED opacity */
    border: 1px solid transparent;
    border-top-color: rgba(100, 255, 218, 0.15); /* Reduced from 0.3 */
    border-bottom-color: rgba(100, 255, 218, 0.03); /* Reduced from 0.05 */
    border-left-color: rgba(100, 255, 218, 0.06); /* Reduced from 0.1 */
    border-right-color: rgba(100, 255, 218, 0.06);

    box-shadow: var(--shadow-depth);

    /* Inner Sheen - subtle */
    background-image: linear-gradient(
        145deg,
        var(--glass-highlight) 0%,
        transparent 40%
    );

    transition: transform 0.3s ease,
                box-shadow 0.3s ease,
                border-color 0.3s ease;
}

/* Hover State: Subtle lift, minimal glow */
.ultra-fluid-zone .ultra-card:hover,
.ultra-fluid-zone .industry-card:hover {
    background-color: rgba(23, 42, 69, 0.95);
    transform: translateY(-4px); /* Reduced from -6px scale(1.01) */
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.8);
    /* Removed the teal glow bloom - too "tech" */
    border-top-color: rgba(100, 255, 218, 0.25);
}


/*
   5. COMPOSITION TWEAKS
*/

/* Tech Stack: The Darkened Band */
.ultra-fluid-zone .tech-stack-section {
    background: rgba(1, 6, 15, 0.6) !important; /* Darker than background for contrast */
    box-shadow: inset 0 0 50px rgba(0,0,0,0.5);
}

/* Final CTA: The Horizon */
.ultra-fluid-zone .final-cta-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* A rising mist from the footer */
    background: radial-gradient(
        ellipse at bottom center,
        rgba(100, 255, 218, 0.08) 0%,
        transparent 60%
    );
    pointer-events: none;
}

/* Footer: The Foundation */
.ultra-footer {
    margin-top: 0 !important;
    background-color: var(--void-deepest) !important;
    border-top: 1px solid rgba(100, 255, 218, 0.08);
}
