/* ==== Kyanite Blue - Product Page Styles (Coro) ==== */
/* Updated based on brand guidelines */

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* ---- Variables ---- */
:root {
    /* Primary Colors */
    --coro-indigo: #20166E;
    --coro-green: #69D488;
    --coro-white: #FFFFFF;

    /* Secondary Colors */
    --coro-indigo-70: #6A6792;
    --coro-indigo-40: #ACAAC2;
    --coro-indigo-20: #D2D0DE;
    --coro-indigo-light: #EEEEF3;
    --coro-green-dark: #174524;
    --coro-green-bold: #38C15F;
    --coro-green-70: #9CE0AF;
    --coro-green-8: #F3FCF6;

    /* Tertiary Colors */
    --coro-red: #FC4D4D;

    /* Illustration Colors */
    --illustration-indigo-light: #5479F5;
    --illustration-big-blue: #5479F5;
    --illustration-little-green: #E1F3DE;
    --illustration-little-blue: #E4E4F9;

    /* Theme & Font Configuration */
    --brand-primary: var(--coro-indigo);
    --brand-primary-light: #3399ff;
    /* For hero pulse animation */
    --brand-secondary: var(--coro-green-bold);
    --bg-light: var(--coro-green-8);
    --bg-white: var(--coro-white);
    --text-dark: #212529;
    --text-light: #555;
    --border-color: var(--coro-indigo-20);
    --shadow-sm: 0 4px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.1);
    --font-family-base: 'Source Sans 3', sans-serif;
}

/* ---- Base & Typography ---- */
.product-page {
    background-color: var(--bg-white);
    color: var(--text-dark);
    font-family: var(--font-family-base);
    font-weight: 400;
    /* Regular */
    line-height: 1.46;
    letter-spacing: 0;
}

.product-page .container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

h1,
h2,
.hero-title,
.section-title {
    font-family: var(--font-family-base);
    font-weight: 700;
    /* Bold */
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--brand-primary);
}

h3,
.product-card-title {
    font-family: var(--font-family-base);
    font-weight: 600;
    /* Semi Bold */
    line-height: 1.16;
    letter-spacing: 0;
    color: var(--brand-primary);
}

p {
    line-height: 1.46;
}

/* ---- Generic Section Styling ---- */
.product-page section {
    padding: 4rem 0;
}

.section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    color: var(--text-light);
}

/* ---- Hero Section ---- */
.product-hero {
    background-color: var(--brand-primary);
    color: var(--coro-white);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#particles-hero,
#particles-cta {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.product-hero .container,
.cta-card-content {
    position: relative;
    z-index: 2;
}

.hero-logo {
    height: 80px;
    margin-bottom: 2rem;
    color: var(--coro-white);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--coro-white);
}

.hero-subtitle {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

.hero-subtitle strong {
    color: var(--coro-green);
}


/* ---- Intro Section ---- */
.section-intro {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.intro-content p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-light);
}

/* ---- Product Showcase Banner ---- */
.product-showcase {
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
    /* Contain the overflowing track */
}

.product-showcase .showcase-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 520px;
    gap: 2rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.75rem;
    -ms-overflow-style: none;
    /* IE/Edge */
    scrollbar-width: none;
    /* Firefox */
    will-change: scroll-position;
    cursor: grab;
    height: auto;
    width: 100%;
}

/* Improve drag + touch experience */
.product-showcase .showcase-track {
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
}

.product-showcase .showcase-track::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari - Hide scrollbar completely for auto-scroll effect */
}

.showcase-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: transparent;
}

.showcase-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.showcase-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.75rem 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0));
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.02em;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.35s ease;
}

.showcase-item:hover img {
    transform: scale(1.05);
    opacity: 0.9;
}

.showcase-item:hover .showcase-caption {
    transform: translateY(0);
    opacity: 1;
}

/* Keyboard accessibility */
.showcase-item:focus,
.showcase-item:focus-visible {
    outline: 3px solid var(--brand-secondary);
    outline-offset: 2px;
}

.showcase-item:focus .showcase-caption,
.showcase-item:focus-visible .showcase-caption {
    transform: translateY(0);
    opacity: 1;
}

@media (min-width: 768px) {
    .product-showcase .showcase-track {
        grid-auto-columns: 600px;
        gap: 2rem;
    }
}

@media (min-width: 1200px) {
    .showcase-item img {
        height: auto;
    }
}

/* Dragging visual feedback */
.product-showcase.dragging .showcase-track {
    cursor: grabbing;
}

/* ---- Offerings, Suites, Modules - Shared Card Styles ---- */
.section-offerings,
.section-suites,
.section-modules {
    background-color: var(--bg-light);
}

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


.offerings-grid,
.suites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.modules-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    /* Mobile-first default */
}

.product-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-primary);
}

.product-card-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    /* Reduced margin to bring title closer */
    color: var(--brand-primary);
}

.product-card-icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

.product-card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    flex-grow: 1;
    /* Pushes button down */
}

p.offering-description {
    color: var(--text-light);
    margin-bottom: 2rem;
    flex-grow: 1;
}

/* ---- Buttons ---- */
.btn-download,
.btn-suite,
.btn-module {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-family: var(--font-family-base);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-download i,
.btn-suite i,
.btn-module i {
    margin-right: 0.75rem;
}

/* Primary Button Style */
.btn-download {
    background-color: var(--brand-secondary);
    color: var(--coro-white);
    border-color: var(--brand-secondary);
}

.btn-download:hover {
    background-color: var(--coro-green-dark);
    border-color: var(--coro-green-dark);
    color: var(--coro-white);
}

/* Secondary Button Style */
.btn-suite {
    background: var(--brand-primary);
    color: var(--coro-white);
    border-color: var(--brand-primary);
}

.btn-suite:hover {
    background-color: var(--coro-indigo-70);
    border-color: var(--coro-indigo-70);
}


/* Tertiary/Outline Button Style */
.btn-module {
    background-color: transparent;
    color: var(--brand-primary);
    border-color: var(--border-color);
}

.btn-module:hover {
    background-color: var(--brand-primary);
    color: var(--coro-white);
    border-color: var(--brand-primary);
}


/* ---- Specific Sections ---- */
.suites-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.modules-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ---- CTA Card in Modules Grid ---- */
.module-card.cta-card {
    background-color: var(--brand-primary);
    color: var(--coro-white);
    justify-content: center;
    border: none;
    position: relative;
    overflow: hidden;
}

.module-card.cta-card .product-card-title {
    color: var(--coro-white);
}

.cta-card-content {
    position: relative;
    z-index: 2;
}

.module-card.cta-card p {
    color: rgba(255, 255, 255, 0.9);
    flex-grow: 0;
    margin-bottom: 1.5rem;
}

.module-card.cta-card .btn-module {
    background-color: var(--brand-secondary);
    border-color: var(--brand-secondary);
    color: var(--coro-white);
}

.module-card.cta-card .btn-module:hover {
    background-color: var(--coro-green-dark);
    border-color: var(--coro-green-dark);
    color: var(--coro-white);
}

@keyframes pulse-hero-bg {
    0% {
        background-color: var(--brand-primary);
    }

    50% {
        background-color: var(--brand-primary-light);
    }

    100% {
        background-color: var(--brand-primary);
    }
}


/* ---- AI Suites Triangle Layout ---- */
.ai-suites-triangle {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    grid-template-areas:
        "essentials endpoint"
        "complete complete";
}

.ai-suites-triangle .offering-card:nth-child(1) {
    grid-area: essentials;
}

.ai-suites-triangle .offering-card:nth-child(2) {
    grid-area: endpoint;
}

.ai-suites-triangle .ai-complete-centered {
    grid-area: complete;
    margin: 0 auto;
    max-width: calc(50% - 1rem);
}

/* ---- Responsive Design ---- */
@media (min-width: 768px) {
    .offerings-grid:not(.ai-suites-triangle) {
        grid-template-columns: repeat(2, 1fr);
    }

    .suites-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .modules-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns for tablets */
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .section-title {
        font-size: 2.5rem;
    }
}

@media (min-width: 1200px) {
    .suites-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .modules-grid {
        grid-template-columns: repeat(4, 1fr);
        /* 4 columns for large tablets and desktops */
    }
}

@media (max-width: 767.98px) {
    .ai-suites-triangle {
        grid-template-columns: 1fr;
        grid-template-areas:
            "essentials"
            "endpoint"
            "complete";
    }

    .ai-suites-triangle .ai-complete-centered {
        max-width: 100%;
    }

    .product-hero {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .product-page section {
        padding: 3rem 0;
    }

    .product-card {
        padding: 1.5rem;
    }

    .product-card-icon img {
        width: 48px;
        height: 48px;
    }

    .product-card-title {
        font-size: 1.25rem;
    }
}