/* ============================================================
   PRODUCTS PAGE — SUBPAGE STYLESHEET
   Inherits all tokens from style.css
   Design reference: Shapr3D product page layout
   ============================================================ */

/* =============================================
   SHARED PAGE OVERRIDES
   ============================================= */

.products-page {
    background: var(--color-bg-dark);
    color: var(--color-text-primary);
}

/* =============================================
   PRODUCTS HERO
   ============================================= */

.prod-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--gradient-hero);
    padding: 8rem 2rem 6rem;
}

.prod-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 60%, rgba(124, 58, 237, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 40%, rgba(34, 211, 238, 0.15) 0%, transparent 55%);
    animation: heroGlow 8s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 1;
}

.prod-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    animation: fadeInUp 0.9s ease 0.2s both;
}

.prod-hero__eyebrow {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--color-secondary);
    margin-bottom: 1.25rem;
    display: block;
}

.prod-hero__title {
    font-size: clamp(2.8rem, 7vw, 6rem);
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(135deg, #FFFFFF 30%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.75rem;
}

.prod-hero__subtitle {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    max-width: 720px;
    margin: 0 auto 2.5rem;
}

.prod-hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Floating product badges */
.prod-hero__badges {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.prod-badge {
    position: absolute;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: floatBadge 5s ease-in-out infinite;
    animation-delay: var(--delay);
    opacity: 0.7;
}

.prod-badge--purple {
    background: rgba(124, 58, 237, 0.2);
    border: 1px solid rgba(124, 58, 237, 0.5);
    color: #c4b5fd;
}

.prod-badge--cyan {
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.4);
    color: #67e8f9;
}

.prod-badge:nth-child(1) {
    top: 20%;
    left: 8%;
}

.prod-badge:nth-child(2) {
    top: 30%;
    right: 7%;
}

.prod-badge:nth-child(3) {
    bottom: 30%;
    left: 10%;
}

.prod-badge:nth-child(4) {
    bottom: 25%;
    right: 9%;
}

@keyframes floatBadge {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-18px);
    }
}

/* =============================================
   BUTTONS
   ============================================= */

.btn-prod {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-family: var(--font-primary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    padding: 0.9rem 2rem;
    font-size: 1rem;
    border: none;
    outline: none;
}

.btn-prod--primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.35);
}

.btn-prod--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.55);
}

.btn-prod--ghost {
    background: transparent;
    color: var(--color-text-primary);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-prod--ghost:hover {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
    background: rgba(124, 58, 237, 0.08);
    transform: translateY(-2px);
}

.btn-prod--lg {
    padding: 1.1rem 2.5rem;
    font-size: 1.05rem;
}

/* =============================================
   STICKY PRODUCT SUB-NAV
   ============================================= */

.prod-subnav {
    position: sticky;
    top: 70px;
    z-index: 900;
    background: rgba(15, 15, 26, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0;
    transition: all 0.3s ease;
}

.prod-subnav--hidden {
    top: 0;
}

.prod-subnav__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.prod-subnav__inner::-webkit-scrollbar {
    display: none;
}

.prod-subnav__tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.1rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: all 0.25s ease;
    position: relative;
}

.prod-subnav__tab:hover {
    color: var(--color-text-primary);
    border-bottom-color: rgba(124, 58, 237, 0.5);
}

.prod-subnav__tab.active {
    color: var(--color-secondary);
    border-bottom-color: var(--color-secondary);
}

.prod-subnav__icon {
    font-size: 1rem;
}

/* =============================================
   PRODUCT SECTIONS — SHARED
   ============================================= */

.prod-section {
    padding: 7rem 2rem;
    position: relative;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.prod-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.prod-section--hero-split {
    background: var(--color-bg-dark);
    padding-bottom: 0;
}

.prod-section--center-alt {
    background: linear-gradient(160deg, #0F0F1A 0%, #1C1C2B 100%);
}

.prod-section--full-dark {
    background: var(--color-bg-dark);
}

.prod-section__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    padding: 0 0 5rem;
}

.prod-section__inner--reversed {
    direction: rtl;
}

.prod-section__inner--reversed>* {
    direction: ltr;
}

.prod-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-secondary);
    display: block;
    margin-bottom: 1.25rem;
}

.prod-section__title {
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
}

.prod-section__title--centered {
    text-align: center;
}

.prod-section__desc {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.prod-section__desc--centered {
    text-align: center;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

/* =============================================
   PRODUCT VIDEO
   ============================================= */

.prod-video {
    width: 100%;
    border-radius: 20px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(124, 58, 237, 0.15);
    transition: box-shadow 0.4s ease;
}

.prod-section:hover .prod-video {
    box-shadow:
        0 0 0 1px rgba(124, 58, 237, 0.3),
        0 40px 100px rgba(0, 0, 0, 0.6),
        0 0 80px rgba(124, 58, 237, 0.25);
}

/* =============================================
   PRODUCT HIGHLIGHTS ROW (4-column)
   ============================================= */

.prod-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    max-width: 100%;
}

.prod-highlight {
    background: var(--color-bg-dark);
    padding: 2.5rem 2rem;
    transition: background 0.3s ease;
}

.prod-section--hero-split:nth-of-type(even) .prod-highlight {
    background: #1C1C2B;
}

.prod-highlight:hover {
    background: rgba(124, 58, 237, 0.06);
}

.prod-highlight__icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    display: block;
}

.prod-highlight h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.6rem;
    font-family: var(--font-display);
}

.prod-highlight p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* =============================================
   FEATURE ROW (dark alternating)
   ============================================= */

.prod-feature-row {
    padding: 7rem 2rem;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.prod-feature-row.visible {
    opacity: 1;
    transform: translateY(0);
}

.prod-feature-row--dark {
    background: var(--color-bg-surface);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.prod-feature-row--gradient {
    background: linear-gradient(135deg, #1C1C2B 0%, #0F0F1A 100%);
}

.prod-feature-row__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.prod-feature-title {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text-primary);
    margin-bottom: 1.25rem;
}

.prod-feature-desc {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.prod-feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.prod-feature-list li {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    padding-left: 1.5rem;
    position: relative;
}

.prod-feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 700;
}

/* =============================================
   GLOW CARDS (visual placeholders)
   ============================================= */

.prod-glow-card {
    border-radius: 24px;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.prod-glow-card--purple {
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.25);
    box-shadow: 0 0 60px rgba(124, 58, 237, 0.15);
}

.prod-glow-card--purple:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 100px rgba(124, 58, 237, 0.3);
}

.prod-glow-card--cyan {
    background: rgba(34, 211, 238, 0.06);
    border: 1px solid rgba(34, 211, 238, 0.2);
    box-shadow: 0 0 60px rgba(34, 211, 238, 0.1);
}

.prod-glow-card--cyan:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 100px rgba(34, 211, 238, 0.25);
}

/* Chip Diagram */
.prod-chip-diagram {
    text-align: center;
    width: 100%;
}

.chip-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 1.5rem;
    max-width: 220px;
    margin-left: auto;
    margin-right: auto;
}

.chip-node {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.2);
    transition: all 0.4s ease;
}

.chip-node--active {
    background: rgba(124, 58, 237, 0.3);
    border-color: rgba(124, 58, 237, 0.7);
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.4);
}

.chip-node--pulse {
    background: rgba(34, 211, 238, 0.2);
    border-color: rgba(34, 211, 238, 0.6);
    animation: chipPulse 2s ease-in-out infinite;
}

@keyframes chipPulse {

    0%,
    100% {
        box-shadow: 0 0 8px rgba(34, 211, 238, 0.3);
    }

    50% {
        box-shadow: 0 0 25px rgba(34, 211, 238, 0.7);
    }
}

.chip-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Tech Circles */
.tech-visualization {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

.tech-circle {
    position: absolute;
    border: 1.5px solid var(--color-secondary);
    border-radius: 50%;
    animation: pulse-ring 3s ease-in-out infinite;
}

.tech-circle:nth-child(1) {
    width: 120px;
    height: 120px;
    top: 90px;
    left: 90px;
}

.tech-circle:nth-child(2) {
    width: 200px;
    height: 200px;
    top: 50px;
    left: 50px;
    animation-delay: 1s;
    border-color: var(--color-accent);
    opacity: 0.6;
}

.tech-circle:nth-child(3) {
    width: 290px;
    height: 290px;
    top: 5px;
    left: 5px;
    animation-delay: 2s;
    opacity: 0.3;
}

.tech-center-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-text-primary);
    text-align: center;
    line-height: 1.4;
    z-index: 2;
}

/* =============================================
   FEATURES GRID (6-column cards)
   ============================================= */

.prod-features-grid {
    max-width: 1200px;
    margin: 4rem auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 0;
}

.prod-feat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    padding: 2rem 1.75rem;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.prod-feat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.35s ease;
    border-radius: 20px;
}

.prod-feat-card:hover {
    transform: translateY(-6px);
    border-color: rgba(124, 58, 237, 0.4);
    box-shadow: 0 20px 50px rgba(124, 58, 237, 0.2);
}

.prod-feat-card:hover::before {
    opacity: 0.04;
}

.prod-feat-card__icon {
    font-size: 2.2rem;
    margin-bottom: 1.1rem;
    display: block;
    position: relative;
    z-index: 1;
}

.prod-feat-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.7rem;
    font-family: var(--font-display);
    position: relative;
    z-index: 1;
}

.prod-feat-card p {
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    line-height: 1.65;
    position: relative;
    z-index: 1;
}

/* =============================================
   WORKFLOW STEPS (mCAD)
   ============================================= */

.prod-workflow {
    max-width: 1200px;
    margin: 0 auto;
}

.prod-workflow__header {
    text-align: center;
    margin-bottom: 4rem;
}

.prod-workflow__steps {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: nowrap;
}

.prod-step {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    flex: 1 1 0;
    min-width: 0;
    max-width: 240px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    /* Force identical height across all boxes */
    align-self: stretch;
}

.prod-step:hover {
    border-color: var(--color-secondary);
    background: rgba(124, 58, 237, 0.06);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.2);
}

.prod-step__num {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--color-secondary);
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    font-family: var(--font-display);
}

.prod-step h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.75rem;
    font-family: var(--font-display);
}

.prod-step p {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.prod-step__arrow {
    font-size: 1.5rem;
    color: rgba(124, 58, 237, 0.5);
    flex: 0 0 auto;
    flex-shrink: 0;
}

/* =============================================
   MSiM SECTION
   ============================================= */

.prod-msim__header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.prod-msim__grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.prod-msim-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.prod-msim-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.prod-msim-card:hover {
    border-color: rgba(124, 58, 237, 0.35);
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.prod-msim-card:hover::after {
    opacity: 1;
}

.prod-msim-card--featured {
    background: rgba(124, 58, 237, 0.07);
    border-color: rgba(124, 58, 237, 0.25);
}

.prod-msim-card__icon {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
    display: block;
}

.prod-msim-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.85rem;
    font-family: var(--font-display);
}

.prod-msim-card p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.prod-msim-card__tag {
    display: inline-block;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.3);
    color: var(--color-accent);
    border-radius: 999px;
    padding: 0.3rem 0.9rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* MSiM stats strip */
.prod-msim__stats {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    overflow: hidden;
}

.prod-msim-stat {
    background: var(--color-bg-dark);
    padding: 3rem 2rem;
    text-align: center;
    transition: background 0.3s ease;
}

.prod-msim-stat:hover {
    background: rgba(124, 58, 237, 0.05);
}

.prod-msim-stat__num {
    display: block;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 800;
    font-family: var(--font-display);
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    margin-bottom: 0.6rem;
    word-break: keep-all;
    white-space: nowrap;
}

.prod-msim-stat__label {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

/* MSiM 4-stat strip override */
#msim-stats .prod-msim__stats {
    grid-template-columns: repeat(4, 1fr);
}

/* =============================================
   MSiM AGENT DIAGRAM (Products Page)
   ============================================= */

.msim-agent-diagram {
    width: 100%;
    text-align: center;
}

.msim-svg-large {
    width: 100%;
    height: auto;
    max-width: 320px;
    overflow: visible;
    display: block;
    margin: 0 auto;
}

/* Animated agent nodes */
.msim-node-anim {
    animation: msimNodeGlow 2.8s ease-in-out infinite;
}

@keyframes msimNodeGlow {

    0%,
    100% {
        opacity: 0.65;
    }

    50% {
        opacity: 1;
        filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.7));
    }
}

/* Center hub pulse */
.msim-center-pulse {
    animation: msimCenterPulse 3s ease-in-out infinite;
}

@keyframes msimCenterPulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
        opacity: 0.9;
    }

    50% {
        opacity: 1;
        filter: drop-shadow(0 0 16px rgba(124, 58, 237, 0.9));
    }
}

/* SVG pulse rings */
.msim-pulse-ring {
    animation: msimRingExpand 3s ease-in-out infinite;
    transform-origin: 160px 160px;
}

.msim-pulse-ring--slow {
    animation-duration: 4.5s;
    animation-delay: 1.5s;
}

@keyframes msimRingExpand {

    0%,
    100% {
        opacity: 0.25;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.08);
    }
}

.msim-diagram-caption {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 1.25rem;
}

/* =============================================
   MSiM DOMAIN TILE GRID (Products Page)
   ============================================= */

.prod-msim-domain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    width: 100%;
}

.msim-domain-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.25rem 0.75rem;
    transition: all 0.3s ease;
    cursor: default;
}

.msim-domain-tile:hover {
    border-color: rgba(34, 211, 238, 0.4);
    background: rgba(34, 211, 238, 0.06);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(34, 211, 238, 0.15);
}

.msim-domain-tile__icon {
    font-size: 2rem;
    display: block;
}

.msim-domain-tile__label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-align: center;
    line-height: 1.3;
    font-family: var(--font-display);
    letter-spacing: 0.3px;
}

/* =============================================
   PLATFORM ECOSYSTEM STRIP
   ============================================= */

.prod-platform-strip {
    padding: 7rem 2rem;
    background: var(--color-bg-surface);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.prod-platform-strip.visible {
    opacity: 1;
    transform: translateY(0);
}

.prod-platform-strip__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

/* Ecosystem diagram */
.prod-ecosystem {
    position: relative;
    width: 320px;
    height: 320px;
    margin: 0 auto;
}

.prod-ecosystem__center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    color: #fff;
    z-index: 3;
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.5);
    animation: ecosystemPulse 3s ease-in-out infinite;
}

@keyframes ecosystemPulse {

    0%,
    100% {
        box-shadow: 0 0 30px rgba(124, 58, 237, 0.4);
    }

    50% {
        box-shadow: 0 0 60px rgba(124, 58, 237, 0.7);
    }
}

.prod-ecosystem__node {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(124, 58, 237, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-text-secondary);
    letter-spacing: 0.5px;
    z-index: 2;
    transition: all 0.3s ease;
}

.prod-ecosystem__node:hover {
    background: rgba(124, 58, 237, 0.15);
    color: var(--color-text-primary);
    transform: scale(1.15);
}

.prod-ecosystem__node--1 {
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
}

.prod-ecosystem__node--2 {
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.prod-ecosystem__node--3 {
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
}

.prod-ecosystem__node--4 {
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.prod-ecosystem__node--1:hover {
    transform: translateX(-50%) scale(1.15);
}

.prod-ecosystem__node--2:hover {
    transform: translateY(-50%) scale(1.15);
}

.prod-ecosystem__node--3:hover {
    transform: translateX(-50%) scale(1.15);
}

.prod-ecosystem__node--4:hover {
    transform: translateY(-50%) scale(1.15);
}

.prod-ecosystem__lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* =============================================
   CTA SECTION
   ============================================= */

.prod-cta {
    padding: 8rem 2rem;
    background: var(--color-bg-dark);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.prod-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 100%, rgba(124, 58, 237, 0.18) 0%, transparent 60%);
    pointer-events: none;
}

.prod-cta__inner {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.prod-cta__inner.visible {
    opacity: 1;
    transform: translateY(0);
}

.prod-cta__title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.15;
    background: linear-gradient(135deg, #FFFFFF 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

.prod-cta__desc {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.prod-cta__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* =============================================
   SECTION REVEAL ANIMATIONS
   ============================================= */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1024px) {

    .prod-section__inner,
    .prod-feature-row__inner,
    .prod-platform-strip__inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .prod-section__inner--reversed {
        direction: ltr;
    }

    .prod-highlights {
        grid-template-columns: repeat(2, 1fr);
    }

    .prod-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .prod-msim__grid {
        grid-template-columns: 1fr;
    }

    .prod-msim-domain-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #msim-stats .prod-msim__stats {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .prod-workflow__steps {
        flex-direction: column;
        align-items: center;
    }

    .prod-step__arrow {
        transform: rotate(90deg);
        margin: 0;
    }

    .prod-ecosystem {
        display: none;
    }
}

@media (max-width: 768px) {
    .prod-hero {
        padding: 7rem 1.5rem 5rem;
    }

    .prod-hero__badges {
        display: none;
    }

    .prod-subnav__tab {
        padding: 0.9rem 1rem;
        font-size: 0.8rem;
    }

    .prod-highlights {
        grid-template-columns: 1fr;
    }

    .prod-features-grid {
        grid-template-columns: 1fr;
    }

    .prod-msim__stats {
        grid-template-columns: 1fr !important;
    }

    .prod-msim-domain-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #msim-stats .prod-msim__stats {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .prod-section {
        padding: 5rem 1.5rem;
    }

    .prod-feature-row {
        padding: 5rem 1.5rem;
    }

    .prod-platform-strip {
        padding: 5rem 1.5rem;
    }

    .prod-cta {
        padding: 6rem 1.5rem;
    }

    .prod-workflow__steps {
        gap: 0.5rem;
    }

    .prod-step {
        min-width: 100%;
        max-width: 100%;
    }

    .prod-step__arrow {
        display: none;
    }

    .prod-glow-card {
        min-height: 280px;
        padding: 2rem;
    }
}

/* =============================================
   MSiM REAL PRODUCT SCREENSHOTS
   ============================================= */

/* Wrapper for MSiM.jpeg in the Domain Coverage section */
.prod-msim-screenshot-wrap {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(124, 58, 237, 0.3);
    box-shadow:
        0 0 0 1px rgba(124, 58, 237, 0.1),
        0 0 60px rgba(124, 58, 237, 0.18),
        0 24px 60px rgba(0, 0, 0, 0.35);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
    background: rgba(15, 10, 30, 0.85);
}

.prod-msim-screenshot-wrap:hover {
    transform: translateY(-5px);
    box-shadow:
        0 0 0 1px rgba(124, 58, 237, 0.25),
        0 0 90px rgba(124, 58, 237, 0.25),
        0 32px 80px rgba(0, 0, 0, 0.45);
}

/* Both screenshots: preserve wide landscape aspect ratio exactly */
.prod-msim-screenshot {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 7;
    object-fit: contain;
    object-position: center top;
    border-radius: 0;
    background: #f5f3ef;
    /* light bg matching the app UI so contain letterbox is invisible */
}

/* =============================================
   MSiM WORKFLOW — with screenshot variant
   ============================================= */

.prod-workflow--with-screenshot .prod-workflow__header {
    margin-bottom: 3rem;
}

/* Stacked layout: header → steps row → screenshot below */
.prod-workflow__body {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Steps row stays horizontal (uses existing flex from .prod-workflow__steps) */
.prod-workflow--with-screenshot .prod-workflow__steps {
    /* inherit the existing horizontal flex, just ensure wrap for safety */
    flex-wrap: wrap;
}

/* Steps stay at their normal individual max-width */
.prod-workflow--with-screenshot .prod-step {
    max-width: 240px;
    text-align: center;
}

/* Arrows still visible */
.prod-workflow--with-screenshot .prod-step__arrow {
    display: block;
}

/* Screenshot sits below the steps, full width of the workflow container */
.prod-workflow__screenshot {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.3);
    box-shadow:
        0 0 0 1px rgba(34, 211, 238, 0.08),
        0 0 60px rgba(34, 211, 238, 0.14),
        0 24px 60px rgba(0, 0, 0, 0.32);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
    background: #f5f3ef;
}

.prod-workflow__screenshot:hover {
    transform: translateY(-5px);
    box-shadow:
        0 0 0 1px rgba(34, 211, 238, 0.22),
        0 0 90px rgba(34, 211, 238, 0.2),
        0 32px 80px rgba(0, 0, 0, 0.42);
}

/* The image inside the workflow screenshot box */
.prod-workflow__screenshot .prod-msim-screenshot {
    aspect-ratio: 16 / 7;
    /* same wide ratio */
}

/* Responsive */
@media (max-width: 1024px) {
    .prod-workflow--with-screenshot .prod-workflow__steps {
        flex-wrap: wrap;
        justify-content: center;
    }

    .prod-workflow--with-screenshot .prod-step {
        max-width: 200px;
    }
}

@media (max-width: 768px) {
    .prod-msim-screenshot {
        aspect-ratio: 16 / 9;
        /* slightly taller on mobile to show more detail */
    }

    .prod-workflow__screenshot .prod-msim-screenshot {
        aspect-ratio: 16 / 9;
    }

    .prod-workflow--with-screenshot .prod-step {
        max-width: 100%;
    }

    .prod-workflow--with-screenshot .prod-step__arrow {
        transform: rotate(90deg);
    }
}