* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', 'Open Sans', 'Quicksand', Arial, sans-serif;
}

/* --- 1. EXISTING STYLE PRESERVATION (Hero & Typewriter) --- */
@keyframes heroEntry {
    0% {
        transform: scale(1);
        opacity: 0.7;
        /* Use opacity instead of filter: blur() */
    }

    100% {
        transform: scale(1.1);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-hero {
    position: relative;
    width: 100%;
    height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    font-family: 'Roboto', 'Open Sans', 'Quicksand', Arial, sans-serif;
    color: #ffffff;
}

.product-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.8) 10%, rgba(0, 0, 0, 0.2) 70%, transparent 100%),
        url('../assets/productHero.jpg');

    /* FIX: 'cover' keeps the aspect ratio (no stretching) */
    background-size: cover;

    /* FIX: 'center' ensures the middle of the image is always visible */
    background-position: center center;

    background-repeat: no-repeat;
    z-index: -1;
    animation: heroEntry 1.5s ease-out forwards;
    will-change: transform;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

.content-wrapper {
    max-width: 650px;
    text-align: left;
    backdrop-filter: blur(0px);
    /* Forces a new stacking context for text sharp rendering */
    -webkit-backdrop-filter: blur(0px);
}

.content-wrapper>* {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.top-title {
    animation-delay: 0.2s;
    color: #166cc3;
    font-size: 1.3rem;
    font-weight: 600;
    display: block;
    margin-bottom: 15px;
}

.product-hero h1 {
    animation-delay: 0.4s;
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 800;
    color: #ffffff;
}

.product-hero p {
    animation-delay: 0.6s;
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #bdb6b6;
}

.product-desc {
    max-width: 1000px;
    margin: 80px auto;
    padding: 30px;
    font-size: 30px;
    line-height: 1.8;
    color: #333;
    text-align: center;
    position: relative;
}

.product-desc.start-anim::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 4px;
    background: #166cc3;
    transform: translateX(-50%);
    animation: lineGrow 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-char {
    display: inline-block;
    opacity: 0;
    filter: blur(5px);
    transform: translateY(15px);
    animation: heroCharReveal 0.6s ease-out forwards;
}

@keyframes heroCharReveal {
    to {
        opacity: 1;
        filter: blur(0px);
        transform: translateY(0);
    }
}

.char {
    display: inline-block;
    opacity: 0;
    transform: translateY(10px) scale(0.9);
    animation: charReveal 0.4s ease-out forwards;
}

@keyframes charReveal {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes lineGrow {
    to {
        width: 100px;
    }
}



/*   PROdUCT SECTION    */

/* Unique Animation for Methodology Section */
/* Sharp Character Styling for Methodology */
.method-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(10px);
    filter: none !important;
    transition: opacity 0.3s ease-out, transform 0.4s ease-out !important;
    will-change: transform;
}

/* The Visible state for Methodology */
.method-char.visible {
    opacity: 1 !important;
    transform: none !important;
    will-change: auto !important;
}
/* Product Grid Section */
.product-grid-section {
    padding: 80px 0;
    background: #f8fbff;
}

.product-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: -50px;
    /* Overlaps slightly with hero for a modern look */
}

.product-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--primary);
    /* Use your navy blue variable */
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.product-card i {
    font-size: 2.5rem;
    color: #356aa9;
    margin-bottom: 20px;
}

.product-card h4 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.product-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-small {
    display: inline-block;
    padding: 8px 20px;
    background: #356aa9;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}




/*                 Product Main           */


:root {
    --logic-navy: #003366;
    --logic-blue: #356aa9;
    --logic-electric: #166cc3;
    --soft-bg: #f8fbff;
    --text-dark: #2d3748;
    --text-muted: #718096;
    --transition-premium: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

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

.product-suite,
.product-panel {
    scroll-margin-top: 96px;
}

/* --- DASHBOARD CONTAINER --- */
.product-suite {
    max-width: 1250px;
    margin: 80px auto;
    background: #ffffff;
    border-radius: 30px;
    box-shadow: 0 40px 100px rgba(0, 51, 102, 0.08);
    display: flex;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-premium);
}

.product-suite.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Optimized Typography for animate-text --- */

/* Main Panel Headings */
.product-panel h2.animate-text {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    /* Fluid sizing: Min 1.8rem, Scales with width, Max 2.8rem */
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
    display: flex;
    flex-direction: row;
    align-items: start;
    color: var(--logic-navy);
    white-space: normal;
    word-break: keep-all;
    /* Prevents breaking words in the middle */
    overflow-wrap: break-word;
    /* Allows breaking at natural points if necessary */
}
/* Ensure product suite text is hidden by default */
.product-panel .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease-out, transform 0.4s ease-out;
}

/* The animated state */
.product-panel .char.visible {
    opacity: 1 !important;
    transform: none !important;
}
/* Panel Descriptions */


/* Feature Box Titles */
.feature-box strong.animate-text {
    font-size: 1.1rem;
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

/* Feature Box Subtext */
.feature-box span.animate-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: block;
    hyphens: none;
    /* Disables automatic hyphenation */
}

/* ROI Stats Text */
.roi-stat span.animate-text {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* --- Responsive Fixes --- */
@media (max-width: 768px) {
    .product-panel h2.animate-text {
        font-size: 1.8rem;
        /* Fixed smaller size for mobile stability */
    }

    .product-panel p.desc.animate-text {
        font-size: 1rem;
        line-height: 1.5;
    }
}

/* --- SIDEBAR --- */
.suite-sidebar {
    width: 320px;
    background: #fcfdfe;
    padding: 50px 25px;
    border-right: 1px solid #f0f4f8;
    flex-shrink: 0;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px;
    margin-bottom: 12px;
    border-radius: 18px;
    cursor: pointer;
    transition: var(--transition-premium);
    color: #64748b;
}

.sidebar-item.active {
    background: var(--logic-blue);
    color: #fff;
    box-shadow: 0 10px 25px rgba(53, 106, 169, 0.25);
}

.sidebar-item i {
    font-size: 1.4rem;
}

.sidebar-label strong {
    display: block;
    font-size: 1rem;
    color: #003366;
    transition: color 0.3s;
}

.sidebar-item.active strong {
    color: #fff;
}

.sidebar-label span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
}

/* --- MAIN CONTENT --- */
.suite-content {
    flex: 1;
    padding: 70px;
    background: #fff;
    position: relative;
}

.product-panel {
    display: none;
    animation: panelFadeUp 0.6s ease forwards;
}

.product-panel.active {
    display: block;
}

@keyframes panelFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.badge {
    background: rgba(22, 108, 195, 0.1);
    color: var(--logic-electric);
    padding: 6px 15px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 20px;
}

.product-panel h2 {
    font-size: 2.8rem;
    color: var(--logic-navy);
    margin-bottom: 15px;
    font-weight: 800;
}

.product-panel p.desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 30px;
}

/* --- FEATURE GRID --- */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin: 40px 0;
}

.feature-box {
    background: #f8fafc;
    padding: 25px;
    border-radius: 20px;
    border-left: 5px solid var(--logic-blue);
    transition: var(--transition-premium);
}

.feature-box:hover {
    transform: translateX(10px);
    background: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.feature-box strong {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.feature-box span {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- ROI BANNER --- */
.roi-impact-banner {
    display: flex;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--logic-navy), var(--logic-electric));
    padding: 35px;
    border-radius: 24px;
    color: #fff;
    text-align: center;
    margin-top: 30px;
}

.roi-stat strong {
    display: block;
    font-size: 2.2rem;
    color: #00d2ff;
    font-weight: 800;
}

.roi-stat span {
    font-size: 0.8rem;
    opacity: 0.8;
    text-transform: uppercase;
    font-weight: 700;
}

/* --- CHAR ANIMATION --- */
.char {
    display: inline-block;
    opacity: 0;
    transform: translateY(10px);
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.char.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- MOBILE --- */
@media (max-width: 992px) {
    .product-suite {
        flex-direction: column;
        margin: 20px;
    }

    .suite-sidebar {
        width: 100%;
        display: flex;
        overflow-x: auto;
        padding: 20px;
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .sidebar-item {
        min-width: 280px;
        margin-bottom: 0;
    }

    .suite-content {
        padding: 40px 20px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .product-panel h2 {
        font-size: 2rem;
    }

    .roi-impact-banner {
        flex-direction: column;
        gap: 20px;
    }
}


/* Container for the two-row heading */
/* 1. THE MAIN CONTAINER */
.accessIntelHeading {
    text-align: center;
    margin: 80px auto 40px;
    max-width: 900px; /* Keep centering and width logic here */
    position: relative;
    padding-bottom: 15px;
    line-height: 1.2;
    display: block; /* Ensure it behaves as a block for the after-element */
}

/* 2. THE ROW LOGIC */
.heading-row {
    display: block; /* This is what forces the two rows */
    width: 100%;
}

/* Row 1: Sub-heading style */
.heading-row:first-child {
    font-size: 1.5rem;
    color: #166cc3; /* Electric blue */
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
    font-weight: 600;
}

/* Row 2: Main title style */
.heading-row:last-child {
    font-size: 3rem;
    color: #003366; /* Navy blue */
    font-weight: 800;
}

/* 3. CHARACTER ANIMATION (Cleaned up) */
.accessIntelHeading .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease-out, transform 0.5s ease-out;
    will-change: transform, opacity;
    /* Removed margin/max-width from here so letters stay together */
}

/* Visible state */
.accessIntelHeading .char.visible {
    opacity: 1 !important;
    transform: none !important;
}

/* 4. DECORATIVE UNDERLINE */
.accessIntelHeading::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;

}

/* 5. MOBILE RESPONSIVENESS */
@media (max-width: 480px) {
    .accessIntelHeading {
        margin-top: 50px;
    }
    .heading-row:first-child { 
        font-size: 1.1rem; 
    }
    .heading-row:last-child { 
        font-size: 1.8rem; 
    }
}
/* Ensure characters inside the product suite start invisible */
#main-suite .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    white-space: pre;
    /* Keeps spaces between characters */
}

/* The visible state triggered by JS */
#main-suite .char.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Ensure the panel itself doesn't just 'pop' in, but lets letters lead */
.product-panel.active {
    display: block;
    animation: none;
    /* We handle entry via char animation now */
}

/* 1. Allow the container to wrap the spans */
.product-panel .desc,
.product-panel h2 {
    display: block;
    width: 100%;
    white-space: normal;
    /* This overrides the script's nowrap on the parent */
    overflow: visible;
}

/* 2. Ensure the 'word' spans can wrap while keeping 'chars' together */
.product-panel span[style*="inline-block"] {
    white-space: normal !important;
    display: inline !important;
    /* Change to inline to allow natural text flow */
}

/* --- 2. NEW PREMIUM STYLING (Below product-desc) --- */
:root {
    --navy: #003366;
    --electric: #166cc3;
    --soft-bg: #f8fbff;
    --glass: rgba(255, 255, 255, 0.9);
}

.key-capabilities {
    padding-top: 40px;
    padding-bottom: 20px;
    background-color: rgb(239, 237, 234);
}

/* Section Headings */
.premium-heading {
    text-align: center;
    margin-bottom: 60px;
}

.premium-heading h2 {

    font-size: 2.5rem;
    color: var(--navy);
    font-weight: 800;
    margin-bottom: 10px;
}

.premium-heading p {

    font-size: 1.1rem;
}

/* Capabilities Showcase (Alternating Layout) */
.capability-row {
    display: flex;
    align-items: center;
    /* Vertically centers text with the image */
    justify-content: center;
    gap: 80px;
    /* Increased gap for better breathing room */
    margin-bottom: 120px;
    font-family: 'Inter', sans-serif;
    max-width: 1000px;
    /* Constrained width so text doesn't stretch too far */
    margin-left: auto;
    margin-right: auto;
}

.capability-row:nth-child(even) {
    flex-direction: row-reverse;
    text-align: right;
}

/* 1. Target the cards and their transition properties */
.how-step,
.audience-card,
.cap-image img {
    /* This duration controls how fast the box moves BACK to normal */
    transition: transform 0.25s cubic-bezier(0.2, 1, 0.3, 1),
        box-shadow 0.25s ease;
}

/* 2. Target the Hover state specifically */
.how-step:hover,
.audience-card:hover,
.cap-image:hover img {
    /* translateY: shorter distance (-10px) = faster feel */
    transform: translateY(-10px) !important;

    /* This duration controls how fast the box lifts UP */
    transition: transform 0.2s ease-out !important;

    box-shadow: 0 20px 40px rgba(0, 51, 102, 0.15);
}

.cap-image {
    flex: 0 0 300px;
    /* Keeps image container exactly 300px */
    position: relative;
    z-index: 1;
}

.cap-image img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: block;

    /* Entry state */
    transform: scale(0.9);
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.8s ease;
}

.cap-image::after {
    content: "";
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--electric);
    border-radius: 30px;
    z-index: -1;

    /* Animation Properties */
    opacity: 0;
    /* This clips the border so it's hidden initially */
    clip-path: inset(0 100% 100% 0);
    transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
    transition-delay: 0.3s;
    /* Wait for the image to appear first */
}

.active .cap-image::after {
    opacity: 1;
    top: 20px;
    left: 20px;
    /* This "draws" the border by revealing the clip */
    clip-path: inset(0 0 0 0);
    animation: borderGlow 3s ease-in-out infinite;
    animation-delay: 1.3s;
}

.cap-image:hover::after {
    top: 10px;
    left: 10px;
    background: rgba(22, 108, 195, 0.05);
}

.cap-image:hover img {
    transform: scale(1.02);
}

.cap-content {
    flex: 1;
    text-align: left;
}

.cap-badge {
    background: rgba(22, 108, 195, 0.1);
    color: var(--electric);
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 15px;
}

.cap-content h3 {
    font-size: 2rem;
    color: var(--navy);
    margin-bottom: 20px;
    font-weight: 700;
}

.cap-content p {
    color: #555;
    line-height: 1.7;
    font-size: 1.1rem;
}


/*     Methodology     */

/* --- Methodology Section Styling --- */

.method {
    height: auto;
}

:root {
    --blue: #5fa4d8;
    --orange: #f9b062;
    --light-grey: #d1d5db;
    --dark-grey: #6b7280;
    --green: #76a34d;
    --icon-size: 75px;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: auto;
}



.main-title {
    padding-top: 20px;
    padding-bottom: 20px;
    font-size: 3rem;
    font-weight: 700;
    color: #003366;
    margin-bottom: 80px;
    text-align: left;
    max-width: 1200px;
    margin-inline: auto;

}

.methodology-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    height: auto;
    margin-bottom: 30px;
}

.step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    cursor: pointer;
}

/* --- ICON ANIMATIONS --- */
.icon-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #1a365d;
    font-size: 28px;
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    z-index: 10;
    position: relative;
    background-color: white;
    /* Blocks the line behind it */
    transition: var(--transition);
}

/* Hover: Lift, Scale, and Deep Shadow */
.step:hover .icon-circle {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Color Variations */
.blue {
    background-color: var(--blue);
}

.orange {
    background-color: var(--orange);
}

.light-grey {
    background-color: var(--light-grey);
}

.dark-grey {
    background-color: var(--dark-grey);
    color: white;
}

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

/* --- HEADING STYLES --- */
.step h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #003366;
    margin: 0 0 12px 0;
    line-height: 1.2;
    transition: var(--transition);
    letter-spacing: -0.02em;
}

/* Hover: Heading color subtly changes */
.step:hover h3 {
    color: #000;
    transform: scale(1.02);
}

.step p {
    font-size: 14px;
    color: #718096;
    margin: 0;
    padding: 0 15px;
    line-height: 1.6;
}

/* --- CONNECTOR LOGIC --- */
.connector {
    position: absolute;
    top: calc(var(--icon-size) / 2);
    left: 50%;
    width: 100%;
    z-index: 1;
    pointer-events: none;
}

.connector svg {
    width: 100%;
    height: 40px;
    overflow: visible;
}

.step:last-child .connector {
    display: none;
}


/* Who it is for (Audience Cards) */
.audience-section {
    padding: 100px 0;
    background: var(--soft-bg);
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.audience-card {
    background: white;
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;
    transition: 0.4s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.audience-card img {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    margin-bottom: 20px;
    object-fit: cover;
}

.audience-card h4 {
    color: var(--navy);
    margin-bottom: 15px;
    font-weight: 700;
}

.audience-card p {
    color: #003366;
}

.audience-card:hover {
    background: #184b7f;
    transform: translateY(-10px);
}

.audience-card:hover h4,
.audience-card:hover p {
    color: white;
}

/* Styling the symbol container */
.icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(30, 90, 170, 0.08);
    /* Light version of your brand blue */
    color: #1E5AAA;
    /* Your Brand Blue */
    border-radius: 50%;
    /* Makes it a circle */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    /* Centers the icon and adds space below */
    transition: all 0.3s ease;
}

/* Hover effect for the card */
.audience-card:hover .icon-wrapper {
    background: #1E5AAA;
    color: #ffffff;
    transform: translateY(-5px);
}

.audience-card h4 {
    margin-bottom: 10px;
    font-weight: 700;
}

.audience-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

@media (max-width: 768px) {

    .capability-row,
    .capability-row:nth-child(even) {
        flex-direction: column;
        text-align: center;
    }

    .product-hero h1 {
        font-size: 2.5rem;
    }
}

/* --- Premium Scroll Animations --- */

/* Base state for all reveal elements */
.reveal {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 1. Capability Rows: Slide in from Left/Right */
.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

/* 2. How It Works: Staggered Fade Up */
.reveal-up {
    transform: translateY(40px);
}

/* 3. Audience Cards: Scale Pop-in */
.reveal-scale {
    transform: scale(0.9);
}

/* Active state triggered by JavaScript */
.active {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Specific Staggering for Grids (Step 1, 2, 3...) */
.how-step:nth-child(1) {
    transition-delay: 0.1s;
}

.how-step:nth-child(2) {
    transition-delay: 0.2s;
}

.how-step:nth-child(3) {
    transition-delay: 0.3s;
}

.how-step:nth-child(4) {
    transition-delay: 0.4s;
}

.audience-card:nth-child(1) {
    transition-delay: 0.1s;
}

.audience-card:nth-child(2) {
    transition-delay: 0.2s;
}

.audience-card:nth-child(3) {
    transition-delay: 0.3s;
}

.audience-card:nth-child(4) {
    transition-delay: 0.4s;
}

/* Image subtle zoom on scroll active */
.active .cap-image img {
    animation: imageInnerZoom 1.5s ease-out forwards;
}

@keyframes borderGlow {
    0% {
        box-shadow: 0 0 0px rgba(22, 108, 195, 0);
        border-color: var(--electric);
    }

    50% {
        /* Soft outer glow and slightly brighter border */
        box-shadow: 0 0 15px rgba(22, 108, 195, 0.4);
        border-color: #3a8df0;
    }

    100% {
        box-shadow: 0 0 0px rgba(22, 108, 195, 0);
        border-color: var(--electric);
    }
}

@keyframes imageInnerZoom {
    from {
        transform: scale(1.1);
    }

    to {
        transform: scale(1);
    }
}

/* --- MOBILE RESPONSIVENESS --- */

@media (max-width: 992px) {

    /* 1. Hero Section Scaling */
    .product-hero {
        height: 70vh;
        /* Shorter on mobile */
        text-align: center;
    }

    .content-wrapper {
        max-width: 100%;
        text-align: center;
    }

    .product-hero h1 {
        font-size: 2.5rem;
        /* Scale down the 4rem title */
        margin-bottom: 15px;
    }

    .top-title {
        font-size: 1.1rem;
    }

    /* 2. Typewriter Description Box */
    .product-desc {
        font-size: 1.1rem;
        /* Smaller text for smaller screens */
        margin: 40px 20px;
        padding: 20px;
    }

    /* 3. Capability Rows (The Showcase) */
    .capability-row,
    .capability-row:nth-child(even) {
        flex-direction: column !important;
        /* Force stack */
        text-align: center !important;
        gap: 30px;
        margin-bottom: 70px;
        padding: 0 15px;
    }

    .cap-image {
        flex: 0 0 auto;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .cap-image img {
        width: 260px;
        /* Scale down the 300px image slightly for mobile */
        height: 260px;
    }

    .cap-image::after {
        display: none;
        /* Hide the decorative blue border to save space */
    }

    .cap-content h3 {
        font-size: 1.6rem;
    }

    /* 4. How It Works (Grid to Scroll) */
    .how-it-works-section {
        padding: 60px 0;
        clip-path: none;
        /* Remove clip-path to avoid jagged edges on mobile */
    }

    .how-grid {
        grid-template-columns: 1fr;
        /* Single column */
        gap: 20px;
    }

    .how-step {
        padding: 30px 20px;
    }

    /* 5. Audience Section */
    .audience-section {
        padding: 60px 0;
    }

    .audience-grid {
        grid-template-columns: 1fr;
        /* Stack cards */
        gap: 20px;
    }

    .audience-card {
        padding: 30px;
    }

    /* 6. Section Titles */
    .premium-heading h2 {
        font-size: 1.8rem;
    }

    /* 7. Animations Adjustments */
    /* On mobile, slide-ins from left/right can cause horizontal scrolling */
    .reveal-left,
    .reveal-right {
        transform: translateY(30px);
        /* Convert side-slides to simple fade-ups */
    }
}

/* 8. Extra Small Screens (Phones under 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .product-hero h1 {
        font-size: 2rem;
    }

    .cap-image img {
        width: 220px;
        /* Even smaller for very tight screens */
        height: 220px;
    }
}

/* Unified Character Styling */
/* Sharp Character Styling */
/* Sharp Character Styling */
/* Initial state: Hidden and slightly offset */
/* 1. OVERRIDE style.css: Stop the entire container from transitioning 'all' properties */
/* 1. FORCE CONTAINERS TO BE STATIC (Stops the global blur) */
/* 1. Kill the Parent Blur */
.reveal.active,
.product-suite.active,
.methodology-section.active,
.product-panel.active {
    /* Stop the browser from watching 'all' properties */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out !important;
    /* Remove the transformation layer entirely */
    transform: none !important;
    filter: none !important;
    will-change: auto !important;
}

/* 2. Character-Specific Fix */
.char,
.hero-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(10px);
    /* Ensure NO filters are inherited */
    filter: none !important;
    transition: opacity 0.3s ease-out, transform 0.4s ease-out !important;
    /* Use 'transform' only during the transition */
    will-change: transform;
}

/* 3. The Sharp State */
.char.visible,
.hero-char.visible {
    opacity: 1 !important;
    transform: none !important;
    /* This is the key to sharpness */
    will-change: auto !important;
    /* Release the GPU */
    filter: none !important;
}

/* Ensure that when the main suite is active, its children can be seen */
.product-suite.active,
.methodology-section.active {
    opacity: 1;
    transform: translateY(0);
}


@media (max-width: 480px) {

    /* --- 1. HERO SECTION --- */
    .product-hero {
        padding: 60px 0 40px;
        text-align: center;
    }

    #hero-title {
        font-size: 1.8rem !important;
        /* Scale down large heading */
        line-height: 1.2;
    }

    #hero-desc {
        font-size: 1rem;
        padding: 0 10px;
    }

    /* --- 2. TYPEWRITER / PRODUCT DESC --- */
    .product-desc {
        font-size: 0.95rem !important;
        margin: 20px 15px !important;
        padding: 15px !important;
        line-height: 1.6;
        text-align: left;
    }

    /* --- 3. PRODUCT SUITE (Sidebar Tabs) --- */
    #main-suite {
        flex-direction: column !important;
        /* Stack sidebar on top */
    }

    .suite-sidebar {
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        /* Horizontal scroll for tabs */
        overflow-x: auto;
        border-right: none !important;
        border-bottom: 1px solid #eee;
        padding: 10px 5px !important;
        gap: 10px;
        position: sticky;
        top: 0;
        background: #fff;
        z-index: 10;
    }

    .sidebar-item {
        flex: 0 0 120px;
        /* Force tabs to stay side-by-side in scroll */
        padding: 12px 8px !important;
        text-align: center;
    }

    .sidebar-item i {
        font-size: 1.2rem !important;
        margin-right: 0 !important;
        margin-bottom: 5px;
    }

    .sidebar-label span {
        display: none;
        /* Hide 'Legacy Modernization' etc. to save space */
    }

    .suite-content {
        padding: 20px 15px !important;
    }

    /* --- 4. FEATURE GRID & ROI BANNER --- */
    .feature-grid {
        grid-template-columns: 1fr !important;
        /* Single column */
        gap: 15px;
    }

    .roi-impact-banner {
        grid-template-columns: 1fr !important;
        /* Stack stats */
        gap: 15px;
        text-align: center;
    }

    .roi-stat {
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding-bottom: 10px;
    }

    .roi-stat:last-child {
        border-bottom: none;
    }

    /* --- 5. KEY CAPABILITIES (Alternate Rows) --- */
    .capability-row {
        flex-direction: column !important;
        /* Force stack images and text */
        gap: 30px;
        margin-bottom: 50px;
    }

    .cap-image,
    .cap-content {
        width: 100% !important;
        text-align: center;
    }

    .cap-image img {
        max-width: 280px;
        /* Prevent huge images */
        height: auto;
    }

    /* --- 6. METHODOLOGY (Flowchart) --- */
    .methodology-container {
        flex-direction: column !important;
        align-items: center;
        gap: 50px;
        /* Space for vertical flow */
    }

    .step {
        width: 100% !important;
    }

    .connector {
        display: none !important;
        /* SVG arrows won't work vertically */
    }

    /* Add a simple vertical line instead of arrows */
    .step:not(:last-child)::after {
        content: '';
        position: absolute;
        bottom: -35px;
        left: 50%;
        width: 2px;
        height: 30px;
        background: #cccccc;
    }

    /* --- 7. AUDIENCE SECTION --- */
    .audience-grid {
        grid-template-columns: 1fr !important;
        /* Single column cards */
        gap: 20px;
        padding: 0 10px;
    }

    .audience-card {
        padding: 30px 20px !important;
    }
}
