/* CSS Variables */
:root {
    /* Green Glass Design System - OLED + LCD Safe */
    --charcoal: #14171a;   /* card base - no pure black */
    --lime-base: #10ac84;  /* fixed background */
    --primary-green: #80EF80;
    --dark-green: #173317;
    --teal-button: #1dd1a1;
    --teal-hover: #10ac84;
    --light-grey: #6B7280;
    --off-white: #e6f4ef;  /* soft off-white for text on glass */
    --white: #FFFFFF;
    --gradient-green: linear-gradient(135deg, #80EF80 0%, #66CC66 100%);
    --gradient-teal: linear-gradient(135deg, #1dd1a1 0%, #10ac84 100%);

    /* Scroll-responsive variable */
    --scroll: 0;

    /* Legacy mappings for compatibility */
    --gray-solid: #14171a;
    --text-dark: #14171a;
    --text-light: #e6f4ef;
}

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

body, html {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: #000000;
    min-height: 100%;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* Deep black foundational layer - sits beneath everything as ultimate fallback */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000000;
    z-index: -999;
    pointer-events: none;
}

/* Headings use Poppins */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Parallax Wrapper */
.parallax-wrapper {
    position: relative;
    z-index: 0;
    background: transparent;
}

/* FIXED BACKGROUND LAYERS - Truly stationary */

/* Sticky containers create scroll space and control visibility */
.sticky-container {
    position: relative;
    height: 100vh;
    z-index: 1;
}

.sticky-parallax-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: opacity 0.5s ease;
}

/* Layer visibility - controlled by JavaScript */
.layer-1 {
    z-index: 1;
    opacity: 1;
}

.layer-2 {
    z-index: 1;
    opacity: 0;
}

.layer-3 {
    z-index: 1;
    opacity: 0;
}

/* Spacers to create scroll distance between sections */
.layer-spacer {
    height: 100vh;
    position: relative;
    z-index: 0;
}

/* Scroll spacer to create total document height */
.scroll-spacer {
    height: 10vh;
    position: relative;
    z-index: 0;
}

/* Mobile adjustments for scroll spacer */
@media (max-width: 768px) {
    .scroll-spacer {
        height: 50vh;
    }

    /* Make hero title brighter on mobile for better visibility */
    .hero-title {
        color: #3d7a3d;  /* Much brighter green for iPhone visibility */
    }

    /* Brighten background layers on mobile */
    .base-section {
        background:
            repeating-linear-gradient(
                135deg,
                rgba(160, 255, 90, 0.15),  /* Increased from 0.07 */
                rgba(160, 255, 90, 0.15) 1px,
                transparent 1px,
                transparent 8px
            ),
            linear-gradient(
                to bottom,
                rgba(120, 200, 120, 0.12),  /* Increased from 0.06 */
                rgba(0, 0, 0, 0.1)  /* Lighter than 0.2 */
            ),
            #3d7a3d;  /* Lighter base than var(--lime-base) */
    }

    /* Brighten all text on mobile */
    .hero-tagline,
    .cta-section h2,
    .base-section p,
    .base-section h2 {
        color: #e6f4ef !important;
        opacity: 1 !important;
    }
}

/* Base sections with lime energy background - fixed and alive */
.base-section {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 20px;
    text-align: center;
    color: var(--text-light);
    position: relative;
    background:
        repeating-linear-gradient(
            135deg,
            rgba(160, 255, 90, 0.12),  /* Increased from 0.07 for brighter effect */
            rgba(160, 255, 90, 0.12) 1px,
            transparent 1px,
            transparent 8px
        ),
        linear-gradient(
            to bottom,
            rgba(120, 200, 120, 0.10),  /* Increased from 0.06 */
            rgba(0, 0, 0, 0.15)  /* Lighter from 0.2 */
        ),
        #111612;  /* Slightly lighter than var(--lime-base) #0f1411 */
    box-shadow: 0 12px 32px rgba(128, 239, 128, 0.3), 0 6px 16px rgba(128, 239, 128, 0.25), 0 3px 8px rgba(0, 0, 0, 0.15);
}

/* Vignette / depth fade for lime energy */
.base-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at center,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.35) 70%,
            rgba(0, 0, 0, 0.65) 100%
        );
    pointer-events: none;
    z-index: 0;
}

/* Optional animated sheen (very subtle) */
.base-section::before {
    content: "";
    position: absolute;
    inset: -50%;
    background:
        linear-gradient(
            120deg,
            transparent 45%,
            rgba(180, 255, 120, 0.08) 50%,
            transparent 55%
        );
    animation: limeSheen 18s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes limeSheen {
    from { transform: translateX(-30%) translateY(-30%); }
    to   { transform: translateX(30%) translateY(30%); }
}

/* Ensure base section content is above background effects */
.base-section > * {
    position: relative;
    z-index: 1;
}

/* HERO Section */
.hero-section {
    padding: 180px 20px;
    justify-content: flex-start;
    padding-top: 15vh;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    margin-bottom: 24px;
    line-height: 1.1;
    max-width: 900px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: #036666;
}

.hero-tagline {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    margin-bottom: 48px;
    max-width: 600px;
    opacity: 0.95;
    color: var(--light-grey);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-buttons .btn {
    pointer-events: auto;
}

/* CTA Section */
.cta-section {
    padding: 140px 20px;
}

.cta-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);  /* Reduced from 2rem/4vw/3.5rem */
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    max-width: 700px;
    color: #036666;
}

.cta-tagline {
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    margin-bottom: 40px;
    max-width: 500px;
    opacity: 0.95;
    color: var(--light-grey);
}

/* CTA Bridge Content */
.cta-bridge-intro {
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    margin-bottom: 20px;
    max-width: 600px;
    color: var(--light-grey);
}

.pain-points {
    list-style: none;
    margin: 0 auto 30px;
    max-width: 600px;
    text-align: left;
}

.pain-points li {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    padding: 12px 0 12px 30px;
    position: relative;
    color: var(--light-grey);
}

.pain-points li:before {
    content: "×";
    position: absolute;
    left: 0;
    font-size: 1.5rem;
    color: var(--light-grey);
    font-weight: bold;
}

.cta-bridge-closing {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    margin: 30px auto 20px;
    max-width: 600px;
    color: var(--light-grey);
    font-weight: 500;
}

.cta-bridge-message {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    margin-bottom: 40px;
    max-width: 700px;
    color: var(--light-grey);
    line-height: 1.6;
}

.cta-bridge-message strong {
    color: #036666;
    font-weight: 700;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.cta-buttons .btn {
    pointer-events: auto;
}

/* ACTION Section */
.action-section {
    padding: 140px 20px;
    justify-content: flex-start;
    padding-top: 10vh;
    position: relative;
    padding-bottom: 800px;
}

.action-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    max-width: 700px;
    color: var(--dark-green);
}

.action-tagline {
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    margin-bottom: 40px;
    max-width: 500px;
    opacity: 0.95;
    color: var(--light-grey);
}

.action-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.action-buttons .btn {
    pointer-events: auto;
}

/* Buttons - Authority Elements (solid, confident, readable on glass) */
.btn {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #1dd1a1, #10ac84);
    color: #0b1a14;
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.35),
        inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.45),
        inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.btn-secondary {
    background: rgba(29, 209, 161, 0.15);
    color: #1dd1a1;
    border: 2px solid rgba(29, 209, 161, 0.5);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(29, 209, 161, 0.25);
    border-color: #1dd1a1;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(29, 209, 161, 0.3);
}

/* NAVIGATION BAR */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--charcoal);
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--off-white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--off-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-links a:hover {
    color: var(--primary-green);
    transform: translateY(-1px);
    text-shadow: 0 3px 8px rgba(128, 239, 128, 0.4);
}

.cta-btn-small {
    background: var(--teal-button);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(4, 118, 118, 0.3);
}

.cta-btn-small:hover {
    background: var(--teal-hover);
    transform: translateY(-2px);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(4, 118, 118, 0.5);
    text-shadow: none;
}

/* Mobile nav menu */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--charcoal);
        flex-direction: column;
        gap: 0;
        padding: 20px;
        display: none;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 12px 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .logo-img {
        height: 35px;
    }
}

/* TOP LAYER - Fast moving foreground (normal scroll speed) */
.top-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    pointer-events: none;
}

/* Re-enable pointer events for content sections */
.top-section {
    pointer-events: auto;
}

/* Clear Windows - transparent sections that reveal base layer */
.clear-window {
    height: 60vh;
    background: transparent;
    pointer-events: none;
}

/* First clear window for HERO - sized to show hero content with cards peeking out */
.clear-window:first-of-type {
    height: 85vh;
}

/* Clear window before action layer - taller to allow pricing cards to scroll */
.clear-window:nth-of-type(2) {
    height: 120vh;
}

/* Clear window before ACTION - extended so "Start Your Website Management" only appears after pricing scrolls past */
.clear-window:nth-of-type(3) {
    height: 200vh;
}

/* Mobile clear window adjustments */
@media (max-width: 768px) {
    .clear-window:first-of-type {
        height: 95vh;  /* Increased from 70vh to prevent first card from covering hero button */
    }

    .clear-window:nth-of-type(3) {
        height: 450vh;  /* Increased from 350vh to delay footer/management section appearing */
    }

    .clear-window:nth-last-of-type(2) {
        height: 200vh;  /* Increased from 150vh for more spacing */
    }

    /* Make hero title more condensed on mobile */
    .hero-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
        line-height: 1.05;
        letter-spacing: -0.02em;
    }

    /* Match hero-section and cta-section heights on mobile */
    .hero-section {
        padding: 180px 20px;
        padding-top: 15vh;
        min-height: 100vh;
    }

    .cta-section {
        padding: 60px 16px 50px;
        padding-top: 12vh;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    /* Reduce spacing and font sizes for cta-section content on mobile */
    .cta-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 12px;
    }

    .cta-bridge-intro {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }

    .pain-points {
        margin-bottom: 12px;
        padding: 0 12px;
    }

    .pain-points li {
        font-size: 0.9rem;
        padding: 4px 0 4px 20px;
        line-height: 1.4;
    }

    .pain-points li:before {
        font-size: 1.2rem;
        left: 0;
    }

    .cta-bridge-closing {
        font-size: 1rem;
        margin: 12px auto 10px;
    }

    .cta-bridge-message {
        font-size: 0.95rem;
        margin-bottom: 20px;
        line-height: 1.5;
    }

    .cta-buttons {
        gap: 12px;
    }

    .cta-section .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    /* Action section mobile adjustments - shift content down */
    .action-section {
        padding: 60px 16px;
        padding-top: 20vh;
    }

    .action-title {
        margin-top: 40px;
    }
}


/* Top Layer Sections - charcoal base with green glass overlay */
.top-section {
    position: relative;
    /* Deep charcoal background with extra black layer to completely block lime beneath */
    background: linear-gradient(to bottom, var(--charcoal), var(--charcoal)), #000000;
    color: var(--off-white);
    padding: 80px 20px;
    pointer-events: auto;
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.55),
        inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    overflow: hidden;
    border-radius: 18px;
    /* Ensure this creates its own stacking context and stays opaque during transforms */
    transform: translateZ(0);
    backface-visibility: hidden;
    /* Add a solid black base layer */
    background-clip: padding-box;
}

/* Enhanced green glass overlay effect - with subtle gradient, inner glow, and scroll-responsive opacity */
.top-section::before {
    content: "";
    position: absolute;
    inset: 0;

    /* Layered gradient for depth with subtle noise effect */
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.01) 2px,
            rgba(255, 255, 255, 0.01) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.01) 2px,
            rgba(255, 255, 255, 0.01) 4px
        ),
        linear-gradient(
            135deg,
            rgba(120, 220, 140, 0.16),
            rgba(120, 220, 140, 0.05)
        );

    background-blend-mode: overlay;

    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);

    border-radius: inherit;
    pointer-events: none;

    /* Inner glow to suggest glass thickness and depth */
    box-shadow: inset 0 0 12px rgba(200, 255, 180, 0.08);

    /* Scroll-responsive opacity for alive, dimensional feel */
    opacity: calc(0.9 + var(--scroll) * 0.08);

    /* Subtle micro-depth movement */
    transform: translateY(calc(var(--scroll) * -6px));
    transition: transform 0.1s ease-out, opacity 0.1s ease-out;
}

/* Ensure content sits above glass overlay */
.top-section > * {
    position: relative;
    z-index: 1;
}

/* Fallback for browsers without backdrop-filter support (LCD/Firefox) */
@supports not (backdrop-filter: blur(10px)) {
    .top-section::before {
        background:
            repeating-linear-gradient(
                0deg,
                transparent,
                transparent 2px,
                rgba(255, 255, 255, 0.01) 2px,
                rgba(255, 255, 255, 0.01) 4px
            ),
            repeating-linear-gradient(
                90deg,
                transparent,
                transparent 2px,
                rgba(255, 255, 255, 0.01) 2px,
                rgba(255, 255, 255, 0.01) 4px
            ),
            linear-gradient(
                135deg,
                rgba(120, 220, 140, 0.22),
                rgba(120, 220, 140, 0.08)
            );
        background-blend-mode: overlay;
    }
}

/* Container */
.container {
    max-width: 840px;
    margin: 0 auto;
}

/* PROBLEM/SOLUTION Section - Apple-style flow with visual breathing room */
.problem-solution-section {
    padding: 200px 20px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    cursor: pointer;
    box-shadow:
        0px 3px 6px rgba(0, 0, 0, 0.05),
        0px 8px 15px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(120, 220, 160, 0.1);
    transition: box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
    backface-visibility: hidden;
    border-radius: 18px;
}

/* Full-width deep black backdrop to completely block lime background */
.problem-solution-section::after {
    content: "";
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: calc(100% + 200px);
    background: #0a0c0d;
    z-index: -3;
    pointer-events: none;
}

/* Section-wide Card Shine Effect */
.problem-solution-section .section-card-shine {
    border-radius: inherit;
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.problem-solution-section .section-card-shine::before {
    content: '';
    width: 150%;
    padding-bottom: 150%;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    bottom: 55%;
    filter: blur(35px);
    opacity: 0.1;
    transform: translateX(-50%);
    background-image: conic-gradient(
        from 205deg at 50% 50%,
        rgba(120, 220, 140, 0) 0deg,
        #1dd1a1 25deg,
        rgba(52, 211, 153, 0.18) 295deg,
        rgba(120, 220, 140, 0) 360deg
    );
}

/* Mirrored shine for bottom-right diagonal */
.problem-solution-section .section-card-shine::after {
    content: '';
    width: 150%;
    padding-bottom: 150%;
    border-radius: 50%;
    position: absolute;
    right: 50%;
    top: 55%;
    filter: blur(35px);
    opacity: 0.1;
    transform: translateX(50%);
    background-image: conic-gradient(
        from 25deg at 50% 50%,
        rgba(120, 220, 140, 0) 0deg,
        #1dd1a1 25deg,
        rgba(52, 211, 153, 0.18) 295deg,
        rgba(120, 220, 140, 0) 360deg
    );
}

/* Section-wide Card Background Animation */
.problem-solution-section .section-card-background {
    border-radius: inherit;
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    -webkit-mask-image: radial-gradient(circle at 60% 5%, black 0%, black 15%, transparent 60%);
    mask-image: radial-gradient(circle at 60% 5%, black 0%, black 15%, transparent 60%);
}

.problem-solution-section .section-card-tiles {
    opacity: 0;
    transition: opacity 0.25s;
}

.problem-solution-section .section-tile {
    position: absolute;
    background-color: rgba(120, 220, 140, 0.05);
    animation-duration: 8s;
    animation-iteration-count: infinite;
    opacity: 0;
}

.problem-solution-section .section-tile-4, .problem-solution-section .section-tile-6, .problem-solution-section .section-tile-10 { animation-delay: -2s; }
.problem-solution-section .section-tile-3, .problem-solution-section .section-tile-5, .problem-solution-section .section-tile-8 { animation-delay: -4s; }
.problem-solution-section .section-tile-2, .problem-solution-section .section-tile-9 { animation-delay: -6s; }

.problem-solution-section .section-tile-1 { top: 0; left: 0; height: 10%; width: 22.5%; }
.problem-solution-section .section-tile-2 { top: 0; left: 22.5%; height: 10%; width: 27.5%; }
.problem-solution-section .section-tile-3 { top: 0; left: 50%; height: 10%; width: 27.5%; }
.problem-solution-section .section-tile-4 { top: 0; left: 77.5%; height: 10%; width: 22.5%; }
.problem-solution-section .section-tile-5 { top: 10%; left: 0; height: 22.5%; width: 22.5%; }
.problem-solution-section .section-tile-6 { top: 10%; left: 22.5%; height: 22.5%; width: 27.5%; }
.problem-solution-section .section-tile-7 { top: 10%; left: 50%; height: 22.5%; width: 27.5%; }
.problem-solution-section .section-tile-8 { top: 10%; left: 77.5%; height: 22.5%; width: 22.5%; }
.problem-solution-section .section-tile-9 { top: 32.5%; left: 50%; height: 22.5%; width: 27.5%; }
.problem-solution-section .section-tile-10 { top: 32.5%; left: 77.5%; height: 22.5%; width: 22.5%; }

/* Hover State for entire section */
.problem-solution-section:hover {
    box-shadow:
        0px 5px 10px rgba(0, 0, 0, 0.04),
        0px 15px 25px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(120, 220, 160, 0.2);
}

.problem-solution-section:hover .section-card-shine {
    opacity: 1;
}

.problem-solution-section:hover .section-card-tiles {
    opacity: 1;
    transition-delay: 0.25s;
}

.problem-solution-section:hover .section-tile {
    animation-name: tile;
}

.card-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 200px;
    position: relative;
    isolation: isolate;
}

/* Create visual separation with elegant divider */
.card-row::after {
    content: "";
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 2px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(120, 220, 160, 0.3),
        rgba(29, 209, 161, 0.5),
        rgba(120, 220, 160, 0.3),
        transparent
    );
    box-shadow:
        0 0 8px rgba(120, 220, 160, 0.2),
        0 1px 0 rgba(255, 255, 255, 0.03);
    border-radius: 2px;
}

/* Add subtle dot accents on each end */
.card-row::before {
    content: "•";
    position: absolute;
    bottom: -103px;
    left: calc(50% - 70px);
    color: rgba(120, 220, 160, 0.4);
    font-size: 8px;
    z-index: 1;
}

.card-row:last-child::after,
.card-row:last-child::before {
    display: none;
}

/* Break uniformity with varied proportions */
.card-row:nth-child(1) {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 120px;
    margin-bottom: 240px;
}

.card-row:nth-child(2) {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 100px;
    margin-bottom: 220px;
}

.card-row:nth-child(3) {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 110px;
}

.card-row:last-child {
    margin-bottom: 0;
}

.card-row.reverse {
    direction: rtl;
}

.card-row.reverse > * {
    direction: ltr;
}

/* Headline as standalone statement with whisper-light backing */
.card-content {
    position: relative;
    padding: 3rem 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    cursor: pointer;
    box-shadow:
        0px 3px 6px rgba(0, 0, 0, 0.05),
        0px 8px 15px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(120, 220, 160, 0.1);
    transition: box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Varied vertical alignment and visual weight for natural flow */
.card-row:nth-child(1) .card-content {
    align-items: flex-start;
    padding-top: 4rem;
    min-height: 240px;
}

.card-row:nth-child(2) .card-content {
    align-items: flex-end;
    padding-bottom: 4rem;
    min-height: 220px;
}

.card-row:nth-child(3) .card-content {
    align-items: center;
    min-height: 200px;
}

/* Ultra-subtle frosted backing - barely there */
.card-content::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(20, 40, 35, 0.15);
    backdrop-filter: blur(8px) saturate(105%);
    -webkit-backdrop-filter: blur(8px) saturate(105%);
    border-radius: 16px;
    box-shadow: inset 0 0 0 0.5px rgba(120, 220, 160, 0.06);
    pointer-events: none;
    opacity: 0.7;
}

/* Vary glass presence for hierarchy */
.card-row:nth-child(1) .card-content::before {
    opacity: 0.85;
    background: rgba(20, 40, 35, 0.18);
}

.card-row:nth-child(2) .card-content::before {
    opacity: 0.6;
    background: rgba(20, 40, 35, 0.12);
}

.card-row:nth-child(3) .card-content::before {
    opacity: 0.75;
    background: rgba(20, 40, 35, 0.15);
}

/* Card Shine Effect */
.card-content .card-shine {
    border-radius: inherit;
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.card-content .card-shine::before {
    content: '';
    width: 150%;
    padding-bottom: 150%;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    bottom: 55%;
    filter: blur(35px);
    opacity: 0.1;
    transform: translateX(-50%);
    background-image: conic-gradient(
        from 205deg at 50% 50%,
        rgba(120, 220, 140, 0) 0deg,
        #1dd1a1 25deg,
        rgba(52, 211, 153, 0.18) 295deg,
        rgba(120, 220, 140, 0) 360deg
    );
}

/* Card Background Animation */
.card-content .card-background {
    border-radius: inherit;
    position: absolute;
    inset: 0;
    overflow: hidden;
    -webkit-mask-image: radial-gradient(circle at 60% 5%, black 0%, black 15%, transparent 60%);
    mask-image: radial-gradient(circle at 60% 5%, black 0%, black 15%, transparent 60%);
}

.card-content .card-tiles {
    opacity: 0;
    transition: opacity 0.25s;
}

.card-content .tile {
    position: absolute;
    background-color: rgba(120, 220, 140, 0.05);
    animation-duration: 8s;
    animation-iteration-count: infinite;
    opacity: 0;
}

.card-content .tile-4, .card-content .tile-6, .card-content .tile-10 { animation-delay: -2s; }
.card-content .tile-3, .card-content .tile-5, .card-content .tile-8 { animation-delay: -4s; }
.card-content .tile-2, .card-content .tile-9 { animation-delay: -6s; }

.card-content .tile-1 { top: 0; left: 0; height: 10%; width: 22.5%; }
.card-content .tile-2 { top: 0; left: 22.5%; height: 10%; width: 27.5%; }
.card-content .tile-3 { top: 0; left: 50%; height: 10%; width: 27.5%; }
.card-content .tile-4 { top: 0; left: 77.5%; height: 10%; width: 22.5%; }
.card-content .tile-5 { top: 10%; left: 0; height: 22.5%; width: 22.5%; }
.card-content .tile-6 { top: 10%; left: 22.5%; height: 22.5%; width: 27.5%; }
.card-content .tile-7 { top: 10%; left: 50%; height: 22.5%; width: 27.5%; }
.card-content .tile-8 { top: 10%; left: 77.5%; height: 22.5%; width: 22.5%; }
.card-content .tile-9 { top: 32.5%; left: 50%; height: 22.5%; width: 27.5%; }
.card-content .tile-10 { top: 32.5%; left: 77.5%; height: 22.5%; width: 22.5%; }

/* Card Lines */
.card-content .card-line {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.35s;
}

.card-content .card-line::before,
.card-content .card-line::after {
    content: '';
    position: absolute;
    background-color: rgba(120, 220, 160, 0.2);
    transition: transform 0.35s;
}

.card-content .card-line::before {
    left: 0;
    right: 0;
    height: 1px;
    transform-origin: 0 50%;
    transform: scaleX(0);
}

.card-content .card-line::after {
    top: 0;
    bottom: 0;
    width: 1px;
    transform-origin: 50% 0;
    transform: scaleY(0);
}

.card-content .line-1::before { top: 10%; }
.card-content .line-1::after { left: 22.5%; }
.card-content .line-1::before, .card-content .line-1::after { transition-delay: 0.3s; }

.card-content .line-2::before { top: 32.5%; }
.card-content .line-2::after { left: 50%; }
.card-content .line-2::before, .card-content .line-2::after { transition-delay: 0.15s; }

.card-content .line-3::before { top: 55%; }
.card-content .line-3::after { right: 22.5%; }

/* Hover State */
.card-content:hover {
    box-shadow:
        0px 5px 10px rgba(0, 0, 0, 0.04),
        0px 15px 25px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(120, 220, 160, 0.2);
}

.card-content:hover .card-shine {
    opacity: 1;
}

.card-content:hover .card-tiles {
    opacity: 1;
    transition-delay: 0.25s;
}

.card-content:hover .tile {
    animation-name: tile;
}

.card-content:hover .card-line {
    opacity: 1;
    transition-duration: 0.15s;
}

.card-content:hover .card-line::before {
    transform: scaleX(1);
}

.card-content:hover .card-line::after {
    transform: scaleY(1);
}

.card-content:hover .line-1::before,
.card-content:hover .line-1::after {
    transition-delay: 0s;
}

.card-content:hover .line-2::before,
.card-content:hover .line-2::after {
    transition-delay: 0.15s;
}

.card-content:hover .line-3::before,
.card-content:hover .line-3::after {
    transition-delay: 0.3s;
}

.card-content h3 {
    position: relative;
    z-index: 1;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0;
    font-weight: 500;
    line-height: 1.3;
    color: var(--off-white);
    text-align: center;
    letter-spacing: -0.01em;
}

/* Vary text weight for visual rhythm */
.card-row:nth-child(1) .card-content h3 {
    font-size: clamp(1.7rem, 3.4vw, 2.3rem);
    font-weight: 600;
    line-height: 1.2;
}

.card-row:nth-child(2) .card-content h3 {
    font-size: clamp(1.4rem, 2.8vw, 1.9rem);
    font-weight: 500;
    opacity: 0.95;
}

.card-row:nth-child(3) .card-content h3 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 550;
}

.card-content p {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.7;
    opacity: 0.9;
    color: var(--off-white);
}

/* Images as independent atmospheric elements - varied scale and position */
.card-image {
    border-radius: 14px;
    overflow: visible;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.card-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.5),
        0 2px 6px rgba(0, 0, 0, 0.3),
        0 0 0 0.5px rgba(255, 255, 255, 0.08);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Varied image treatments for natural rhythm */
.card-row:nth-child(1) .card-image img {
    transform: scale(1.08) translateY(-8px);
}

.card-row:nth-child(2) .card-image img {
    transform: scale(0.96) translateY(12px);
}

.card-row:nth-child(3) .card-image img {
    transform: scale(1.03) translateY(-4px);
}

.card-image img:hover {
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.6),
        0 4px 10px rgba(0, 0, 0, 0.35),
        0 0 0 0.5px rgba(255, 255, 255, 0.12);
}

.card-row:nth-child(1) .card-image img:hover {
    transform: scale(1.1) translateY(-12px);
}

.card-row:nth-child(2) .card-image img:hover {
    transform: scale(0.98) translateY(8px);
}

.card-row:nth-child(3) .card-image img:hover {
    transform: scale(1.05) translateY(-8px);
}

/* Fallback for browsers without backdrop-filter */
@supports not (backdrop-filter: blur(10px)) {
    .card-content::before {
        background: rgba(20, 40, 35, 0.65);
    }
}

/* Responsive for cards - maintain generous spacing on mobile */
@media (max-width: 768px) {
    .problem-solution-section {
        padding: 200px 24px;  /* Increased from 100px to make section longer */
    }

    .card-row,
    .card-row.reverse {
        grid-template-columns: 1fr;
        gap: 80px;  /* Increased from 60px */
        direction: ltr;
        margin-bottom: 180px;  /* Increased from 100px to extend section height */
    }

    /* Reset varied spacing on mobile for consistency */
    .card-row:nth-child(1),
    .card-row:nth-child(2),
    .card-row:nth-child(3) {
        grid-template-columns: 1fr;
        gap: 80px;  /* Increased from 60px */
        margin-bottom: 180px;  /* Increased from 100px to extend section height */
    }

    .card-content {
        order: 1;
        padding: 2rem 2rem;
        min-height: 180px;
        align-items: center !important;
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .card-content h3 {
        font-size: clamp(1.4rem, 5vw, 1.8rem);
    }

    .card-image {
        order: 2;
    }

    /* Reset image transforms on mobile */
    .card-row:nth-child(1) .card-image img,
    .card-row:nth-child(2) .card-image img,
    .card-row:nth-child(3) .card-image img {
        transform: none;
    }

    .card-row:nth-child(1) .card-image img:hover,
    .card-row:nth-child(2) .card-image img:hover,
    .card-row:nth-child(3) .card-image img:hover {
        transform: translateY(-4px) scale(1.01);
    }
}

/* PRICE Section - Apple-style flow matching problem/solution cards */
.price-section {
    padding: 200px 20px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* Full-width deep black backdrop for pricing section too */
.price-section::after {
    content: "";
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: calc(100% + 200px);
    background: #0a0c0d;
    z-index: -3;
    pointer-events: none;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 100px;
    font-weight: 700;
    color: #036666;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.price-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 120px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.price-card {
    position: relative;
    padding: 3.5rem 3rem;
    text-align: left;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

/* Enhanced glass backing for all pricing cards with green glow */
.price-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(20, 40, 35, 0.18);
    backdrop-filter: blur(10px) saturate(110%);
    -webkit-backdrop-filter: blur(10px) saturate(110%);
    border-radius: 18px;
    box-shadow:
        inset 0 0 0 1px rgba(120, 220, 160, 0.12),
        0 12px 40px rgba(120, 220, 160, 0.12);
    pointer-events: none;
    opacity: 0.85;
}

.price-card:hover::before {
    opacity: 0.95;
    background: rgba(20, 40, 35, 0.24);
    box-shadow:
        inset 0 0 0 1px rgba(120, 220, 160, 0.18),
        0 16px 48px rgba(120, 220, 160, 0.18);
}

/* Featured card - same glass treatment, distinction comes from badge */
.price-card.featured::before {
    /* Inherits the same enhanced glass as all cards */
}

.price-card.featured {
    padding-top: 4.5rem;
}

.badge {
    position: absolute;
    top: 1.5rem;
    left: 3rem;
    background: linear-gradient(135deg, #1dd1a1, #10ac84);
    color: #0b1a14;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 12px rgba(29, 209, 161, 0.3);
}

.price-card h3 {
    position: relative;
    z-index: 1;
    font-size: clamp(1.6rem, 3vw, 2rem);
    margin-bottom: 24px;
    font-weight: 600;
    color: var(--off-white);
    line-height: 1.2;
}

.price {
    position: relative;
    z-index: 1;
    font-size: clamp(3rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 32px;
    color: var(--primary-green);
    line-height: 1;
}

.price span {
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 500;
    color: var(--off-white);
    opacity: 0.75;
}

.features {
    position: relative;
    z-index: 1;
    list-style: none;
    margin-bottom: 40px;
    text-align: left;
}

.features li {
    padding: 14px 0 14px 28px;
    border-bottom: 1px solid rgba(120, 220, 160, 0.08);
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    color: var(--off-white);
    opacity: 0.9;
    line-height: 1.5;
    position: relative;
}

.features li:last-child {
    border-bottom: none;
}

.features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: 700;
    font-size: 1.1rem;
}

.price-card .btn {
    position: relative;
    z-index: 1;
    width: 100%;
    margin-top: 20px;
}

/* Section subtitle and notes */
.section-subtitle {
    position: relative;
    z-index: 1;
    text-align: center;
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    color: var(--off-white);
    opacity: 0.85;
    margin-bottom: 80px;
    margin-top: -60px;
}

.launch-offer-text,
.pricing-note,
.capacity-notice-text {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-top: 80px;
    color: var(--off-white);
}

.launch-offer-text {
    font-size: clamp(1rem, 2vw, 1.2rem);
    padding: 16px 24px;
    background: rgba(29, 209, 161, 0.08);
    border-radius: 12px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(29, 209, 161, 0.15);
}

.pricing-details-link {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.pricing-details-link:hover {
    opacity: 0.8;
}

.setup-fee-card {
    position: relative;
    z-index: 1;
    margin-bottom: 24px;
    font-size: 1rem;
    color: var(--off-white);
    opacity: 0.8;
}

.strike-price {
    text-decoration: line-through;
    opacity: 0.5;
    margin-right: 8px;
}

/* Responsive for price cards */
@media (max-width: 768px) {
    .price-section {
        padding: 100px 24px;
    }

    .price-cards {
        grid-template-columns: 1fr;
        gap: 80px;
    }

    .section-title {
        margin-bottom: 60px;
    }

    .section-subtitle {
        margin-bottom: 50px;
    }
}

/* FOOTER on Green Background */
.footer-on-green {
    width: 100%;
    padding: 80px 20px 40px;
    margin-top: auto;
    background: var(--charcoal);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.6);
}

.footer-on-green.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer on mobile */
@media (max-width: 768px) {
    .footer-on-green {
        padding: 40px 20px 20px;
    }
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .footer-content {
        gap: 20px;
        margin-bottom: 30px;
    }
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--primary-green);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--off-white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease, color 0.3s ease;
    font-size: 1rem;
}

.footer-col ul li a:hover {
    opacity: 1;
    color: var(--primary-green);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* Responsive for footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* ================================================
   STICKY FOOTER BAR WITH EXPANDABLE MENU
   ================================================ */

/* Footer Bar - At end of page */
.footer-bar {
    position: relative;
    height: 48px;
    margin-top: 80px;
    background: rgba(20, 40, 35, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(120, 220, 160, 0.15);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.footer-bar-content {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-copyright {
    font-size: 0.875rem;
    color: #e6f4ef;
    opacity: 0.8;
}

.footer-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(120, 220, 160, 0.08);
    border: 1px solid rgba(120, 220, 160, 0.2);
    padding: 8px 16px;
    border-radius: 8px;
    color: #80EF80;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-toggle:hover {
    background: rgba(120, 220, 160, 0.12);
    border-color: rgba(120, 220, 160, 0.3);
}

.toggle-icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-toggle.active .toggle-icon {
    transform: rotate(180deg);
}

/* Expandable Footer Menu */
.footer-menu {
    position: relative;
    background: rgba(15, 20, 17, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(120, 220, 160, 0.15);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.footer-menu.active {
    max-height: 400px;
    opacity: 1;
}

.footer-menu-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px 30px;
}

.footer-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-menu .footer-col h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #80EF80;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-menu .footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu .footer-col li {
    margin-bottom: 12px;
}

.footer-menu .footer-col a {
    color: #e6f4ef;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s, padding-left 0.3s;
    display: inline-block;
}

.footer-menu .footer-col a:hover {
    color: #1dd1a1;
    padding-left: 4px;
}

.footer-menu-bottom {
    border-top: 1px solid rgba(120, 220, 160, 0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-menu-bottom p {
    color: #D4D4D8;
    font-size: 0.875rem;
    margin: 0;
    opacity: 0.8;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .footer-bar {
        height: 56px;
    }

    .footer-copyright {
        font-size: 0.75rem;
    }

    .footer-toggle {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .toggle-text {
        display: none;
    }

    .footer-menu.active {
        max-height: 500px;
    }

    .footer-menu-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-menu-content {
        padding: 30px 20px 25px;
    }
}
