/* 
  Nouo Flow V2 - Pixel-Perfect Stylesheet 
  Strict Adherence to Figma Dev Mode
*/

:root {
    /* --- COLORS (Exact Hex) --- */
    /* Primary / Accents */
    --c-blue: #00baff;
    --c-purple: #b95cff;
    --c-pink: #ff006f;
    --c-yellow: #ffd900;

    /* Grays (Hero Grid & UI) */
    --c-gray-100: #f5f5f5;
    --c-gray-200: #eeeeee;
    --c-gray-300: #e5e7e9;
    --c-gray-400: #ebedee;
    --c-gray-500: #d9d9d9;
    --c-gray-600: #c9cbcd;
    --c-gray-dark: #748399;
    /* Dark Gray for + icon bg */

    /* Text & BG */
    --c-black: #000000;
    --c-white: #ffffff;
    --c-text-body: #000000;

    /* --- TYPOGRAPHY --- */
    --font-head: 'Montserrat', sans-serif;
    --font-body: 'Quicksand', sans-serif;

    /* Weights */
    --fw-extralight: 200;
    /* Montserrat ExtraLight */
    --fw-light: 300;
    /* Quicksand Light */
    --fw-regular: 400;
    /* Quicksand Regular */
    --fw-medium: 500;
    /* Quicksand Medium */
    --fw-semibold: 600;
    /* Quicksand SemiBold */
    --fw-bold: 700;
    /* Quicksand Bold */

    /* Sizes (Desktop) */
    --fs-h1: 64px;
    --fs-h2: 48px;
    --fs-h3: 32px;
    --fs-body: 16px;
    --fs-small: 14px;
    --fs-hero-num: 48px;
    /* For "48" and "QC" and "AI" */
    --fs-hero-icon: 64px;
    /* For "+" */

    /* --- LAYOUT --- */
    --container-w: 1440px;
    /* Max width */
    --padding-x: 20px;
    --section-py: 100px;

    /* --- GRID --- */
    --grid-gap-hero: 5px;
    /* approx 4.97px */
    --hero-cell-radius: 10px;
    /* 9.955px */

    /* --- EFFECTS --- */
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.05);
    --backdrop-blur: 22px;
}

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

html,
body {
    height: 100%;
    width: 100%;
    scroll-behavior: smooth;
    color: var(--c-black);
    font-family: var(--font-body);
    font-weight: var(--fw-regular);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Typography Base */
h1,
h2,
h3,
h4 {
    font-family: var(--font-head);
    font-weight: var(--fw-extralight);
    line-height: 1.1;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

img {
    display: block;
    max-width: 100%;
}

/* --- UTILITIES --- */
.container {
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 var(--padding-x);
    width: 100%;
}

.section {
    padding: var(--section-py) 0;
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.hidden {
    display: none;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.flex-col {
    flex-direction: column;
}

.text-center {
    text-align: center;
}

/* --- HEADER V2 --- */
#header-v2 {
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.desktop-nav ul {
    display: flex;
    gap: 40px;
    font-size: 14px;
    font-weight: 500;
}

.mobile-toggle {
    display: none;
    cursor: pointer;
    font-weight: 700;
}

/* --- HERO SECTION V2 --- */
.hero-container-v2 {
    display: grid;
    grid-template-columns: 1.2fr 475px;
    gap: 40px;
    align-items: center;
}

.hero-content h1 {
    margin-bottom: 24px;
    font-size: var(--fs-h1);
}

.hero-desc {
    font-size: 18px;
    line-height: 1.6;
    font-weight: 300;
}

/* --- HERO GRID SYSTEM (5x4) --- */
.hero-grid-wrapper {
    /* Fixed aspect ratio container for desktop accuracy */
    width: 475px;
    height: 381px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: var(--grid-gap-hero);
    padding: var(--grid-gap-hero);
    /* Padding around to match design */
}

.grid-cell {
    width: 100%;
    height: 100%;
    border-radius: var(--hero-cell-radius);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Cell Colors from Variables */
.bg-gray-500 {
    background-color: var(--c-gray-500);
}

/* #d9d9d9 */
.bg-gray-300 {
    background-color: var(--c-gray-300);
}

/* #e5e7e9 */
.bg-gray-400 {
    background-color: var(--c-gray-400);
}

/* #ebedee */
.bg-gray-600 {
    background-color: var(--c-gray-600);
}

/* #c9cbcd */
.bg-gray-dark {
    background-color: var(--c-gray-dark);
}

/* #748399 */

.bg-purple {
    background-color: var(--c-purple);
}

.bg-blue {
    background-color: var(--c-blue);
}

.bg-pink {
    background-color: var(--c-pink);
}

.bg-white {
    background-color: var(--c-white);
}

/* Default if empty? */

/* Typography in Grid */
.cell-text-lg {
    font-family: 'Noto Sans', sans-serif;
    font-weight: 200;
    font-size: var(--fs-hero-num);
    color: white;
    line-height: 1;
}

.cell-text-icon {
    font-family: 'Noto Sans', sans-serif;
    font-weight: 200;
    font-size: var(--fs-hero-icon);
    color: white;
    line-height: 1;
}

.cell-text-body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.2;
    color: black;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cell-text-body p {
    margin: 0;
}

/* --- HERO GRID RESPONSIVENESS --- */
@media (max-width: 1024px) {
    .desktop-nav {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-container-v2 {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    /* Stack the Hero items */
    .hero-content {
        text-align: center;
        margin-bottom: 40px;
    }

    .hero-grid-wrapper {
        width: 100%;
        max-width: 475px;
        height: auto;
        /* Keep aspect ratio */
        aspect-ratio: 475/381;
    }

    @media (max-width: 500px) {

        /* Mobile: Break the 5x4 grid into a list of pairs */
        .hero-grid-wrapper {
            display: flex;
            flex-direction: column;
            gap: 20px;
            aspect-ratio: auto;
            /* Remove aspect ratio constraint */
            height: auto;
        }

        .grid-cell {
            height: auto;
            /* Allow height to fit content */
            min-height: 60px;
            width: 100%;
            max-width: 300px;
            margin: 0 auto;
        }

        /* Hide purely decorative spacers on mobile to save space */
        .bg-gray-500:empty,
        .bg-gray-300:empty,
        .bg-gray-400:empty,
        .bg-gray-600:empty {
            display: none;
        }

        .grid-cell:not(:empty) {
            display: flex;
            flex-direction: row;
            justify-content: flex-start;
            padding: 0 20px;
            gap: 20px;
            background: transparent;
            overflow: visible;
        }

        /* Re-style for list view */
        .cell-text-lg,
        .cell-text-icon {
            color: black;
            font-weight: 600;
        }

        /* Wrap colored squares */
        .bg-pink,
        .bg-purple,
        .bg-blue,
        .bg-gray-dark {
            width: 60px !important;
            height: 60px !important;
            border-radius: 10px;
            flex-shrink: 0;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        /* Fix text color inside colored squares back to white */
        .bg-pink .cell-text-lg,
        .bg-purple .cell-text-lg,
        .bg-blue .cell-text-lg,
        .bg-gray-dark .cell-text-icon {
            color: white;
        }

        .cell-text-body {
            text-align: left;
            align-items: flex-start;
        }
    }
}

/* --- SCOPE SECTION (V2) --- */
#scope-v2 {
    /* Glassmorphic Background handling if needed */
}

.scope-grid-v2 {
    display: flex;
    justify-content: center;
    gap: 40px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(var(--backdrop-blur));
    border-radius: 20px;
    padding: 100px 60px;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}

.scope-column-v2 {
    display: flex;
    flex-direction: column;
    gap: 90px;
    flex: 1;
}

.scope-column-v2.offset {
    padding-top: 160px;
    /* Exact from Figma */
}

.scope-card-v2 {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 20px;
    background: rgba(255, 255, 255, 0.4);
    min-height: 520px;
    width: 100%;
    max-width: 380px;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 4px 0 rgba(0,0,0,0.05);
    overflow: hidden;
}

.scope-header-bar {
    height: 20px;
    margin-bottom: 20px;
}

.bar-blue {
    background: var(--c-blue);
    width: 168px;
}

.bar-purple {
    background: var(--c-purple);
    width: 278px;
}

.bar-pink {
    background: var(--c-pink);
    width: 172px;
}

.bar-yellow {
    background: var(--c-yellow);
    width: 210px;
}


/* --- PRICING SECTION (V2) --- */
.pricing-grid-v2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 cols desktop */
    gap: 20px;
}

.pricing-card-v2 {
    border-radius: 20px;
    background: rgba(181, 174, 164, 0.1);
    backdrop-filter: blur(13px);
    border: 1px solid rgba(124, 118, 118, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s;
}

.pricing-card-v2:hover {
    transform: translateY(-5px);
}

.card-highlight {
    height: 56px;
    width: 100%;
}

.card-title-area {
    padding: 30px 25px 16px;
    font-size: 40px;
    font-family: 'Noto Sans', sans-serif;
    font-weight: 200;
    letter-spacing: -1.6px;
    line-height: 1;
}

.card-details {
    padding: 20px 31px 42px;
    font-size: 15px;
    color: black;
    flex-grow: 1;
}

.card-footer {
    padding: 50px 10px;
    background: #514f6f;
    color: white;
    margin-top: auto;
}

.price-global {
    font-size: 15px;
    font-weight: 400;
}

.price-local {
    font-size: 15px;
    font-weight: 600;
}

.price-val {
    font-size: 20px;
    font-weight: 700;
    text-align: right;
}

.btn-v2 {
    width: 100%;
    margin-top: 20px;
    height: 63px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    letter-spacing: 0.9px;
    color: black;
}

.btn-green {
    background: #00ffb7;
    border: 1px solid #00baff;
}

.btn-blue {
    background: #1090ff;
    border: 1px solid #00baff;
    color: white;
}

/* Responsive Scope & Pricing */
@media (max-width: 1024px) {
    .scope-grid-v2 {
        flex-direction: column;
        padding: 40px 20px;
    }

    .scope-column-v2.offset {
        padding-top: 0;
        gap: 40px;
    }

    .scope-column-v2 {
        gap: 40px;
    }

    .pricing-grid-v2 {
        grid-template-columns: 1fr;
        /* Stack on mobile */
    }
}