/* ============================================= */
/*  STAURAX PRODUCTS — Ecosystem Showcase Page   */
/*  Uses existing :root theme variables only.     */
/* ============================================= */

/* ---- Keyframes ---- */

@keyframes stxProdFadeUp {
    from { opacity: 0; transform: translateY(50px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes stxProdScaleIn {
    from { opacity: 0; transform: scale(0.88); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes stxProdFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-14px); }
}

@keyframes stxProdGlow {
    0%, 100% { box-shadow: 0 0 30px rgba(37,99,235,0.08); }
    50%      { box-shadow: 0 0 60px rgba(37,99,235,0.18); }
}

@keyframes stxProdShineSweep {
    0%   { left: -100%; }
    100% { left: 200%; }
}

@keyframes stxProdPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.15); opacity: 0.7; }
}

@keyframes stxProdOrbit {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes stxProdDashScroll {
    from { stroke-dashoffset: 0; }
    to   { stroke-dashoffset: -40; }
}

/* ---- Page Hero ---- */

.stx-prod-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 24px 80px;
    overflow: hidden;
    background: linear-gradient(168deg, #ffffff 0%, var(--accent-light) 50%, #ffffff 100%);
}

.stx-prod-hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37,99,235,0.07) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.stx-prod-hero::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37,99,235,0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.stx-prod-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 820px;
}

.stx-prod-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37,99,235,0.08);
    color: var(--accent-color);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 28px;
    opacity: 0;
    animation: stxProdFadeUp 0.7s ease forwards 0.2s;
}

.stx-prod-hero-badge svg {
    width: 16px;
    height: 16px;
}

.stx-prod-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    color: var(--text-color);
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
    opacity: 0;
    animation: stxProdFadeUp 0.7s ease forwards 0.35s;
}

.stx-prod-hero h1 span {
    color: var(--accent-color);
    position: relative;
}

.stx-prod-hero-sub {
    font-size: 1.15rem;
    color: #475569;
    line-height: 1.7;
    max-width: 620px;
    margin: 0 auto 36px;
    opacity: 0;
    animation: stxProdFadeUp 0.7s ease forwards 0.5s;
}

.stx-prod-hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    opacity: 0;
    animation: stxProdFadeUp 0.7s ease forwards 0.65s;
}

.stx-prod-hero-stat {
    text-align: center;
}

.stx-prod-hero-stat-num {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-color);
    letter-spacing: -0.5px;
}

.stx-prod-hero-stat-label {
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 500;
    margin-top: 2px;
}

/* Decorative floating shapes in hero */
.stx-prod-hero-shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.stx-prod-hero-shape--1 {
    width: 12px; height: 12px;
    background: var(--accent-color);
    opacity: 0.15;
    top: 25%;
    left: 12%;
    animation: stxProdFloat 6s ease-in-out infinite;
}

.stx-prod-hero-shape--2 {
    width: 8px; height: 8px;
    background: var(--accent-color);
    opacity: 0.1;
    top: 60%;
    right: 15%;
    animation: stxProdFloat 5s ease-in-out infinite 1s;
}

.stx-prod-hero-shape--3 {
    width: 20px; height: 20px;
    border: 2px solid rgba(37,99,235,0.1);
    top: 35%;
    right: 8%;
    animation: stxProdFloat 7s ease-in-out infinite 0.5s;
}

.stx-prod-hero-shape--4 {
    width: 6px; height: 6px;
    background: var(--accent-hover);
    opacity: 0.2;
    bottom: 30%;
    left: 8%;
    animation: stxProdFloat 4s ease-in-out infinite 2s;
}

/* ---- Ecosystem Connector Section ---- */

.stx-prod-connector {
    position: relative;
    padding: 60px 24px;
    text-align: center;
    overflow: hidden;
    background: #ffffff;
}

.stx-prod-connector-inner {
    max-width: var(--spacing-container);
    margin: 0 auto;
}

.stx-prod-connector-title {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.stx-prod-connector-title::before,
.stx-prod-connector-title::after {
    content: '';
    width: 40px;
    height: 2px;
    background: var(--accent-color);
    opacity: 0.3;
}

.stx-prod-connector h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: var(--text-color);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.stx-prod-connector-desc {
    font-size: 1.05rem;
    color: #475569;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Ecosystem visual map */
.stx-prod-ecosystem-map {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-top: 48px;
    flex-wrap: wrap;
}

.stx-prod-eco-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px;
    transition: transform 0.3s ease;
}

.stx-prod-eco-node:hover {
    transform: translateY(-6px);
}

.stx-prod-eco-dot {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(37,99,235,0.08);
}

.stx-prod-eco-dot svg {
    width: 24px;
    height: 24px;
    color: var(--accent-color);
}

.stx-prod-eco-node:hover .stx-prod-eco-dot {
    background: var(--accent-color);
    box-shadow: 0 8px 30px rgba(37,99,235,0.25);
}

.stx-prod-eco-node:hover .stx-prod-eco-dot svg {
    color: #ffffff;
}

.stx-prod-eco-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-color);
}

.stx-prod-eco-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(37,99,235,0.15), transparent);
    align-self: center;
    margin-bottom: 20px;
}

/* ---- Product Section (Alternating Layout) ---- */

.stx-prod-section {
    position: relative;
    padding: 100px 24px;
    overflow: hidden;
}

.stx-prod-section:nth-child(even) {
    background: #ffffff;
}

.stx-prod-section:nth-child(odd) {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.stx-prod-section-inner {
    max-width: var(--spacing-container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Reverse layout for alternating rows */
.stx-prod-section--reverse .stx-prod-section-inner {
    direction: rtl;
}
.stx-prod-section--reverse .stx-prod-section-inner > * {
    direction: ltr;
}

/* Content Side */
.stx-prod-content {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.stx-prod-content.stx-visible {
    opacity: 1;
    transform: translateY(0);
}

.stx-prod-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.stx-prod-status--active {
    background: #ecfdf5;
    color: #059669;
}

.stx-prod-status--beta {
    background: #fef9c3;
    color: #a16207;
}

.stx-prod-status--core {
    background: rgba(37,99,235,0.08);
    color: var(--accent-color);
}

.stx-prod-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    animation: stxProdPulse 2s ease-in-out infinite;
}

.stx-prod-status--active .stx-prod-status-dot { background: #059669; }
.stx-prod-status--beta .stx-prod-status-dot   { background: #a16207; }
.stx-prod-status--core .stx-prod-status-dot    { background: var(--accent-color); }

.stx-prod-name {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text-color);
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 8px;
}

.stx-prod-tagline {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 20px;
    letter-spacing: -0.2px;
}

.stx-prod-desc {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.75;
    margin-bottom: 28px;
    max-width: 520px;
}

.stx-prod-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stx-prod-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    color: #334155;
    font-weight: 500;
}

.stx-prod-features li svg {
    width: 18px;
    height: 18px;
    color: var(--accent-color);
    flex-shrink: 0;
}

.stx-prod-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--accent-color);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(37,99,235,0.2);
}

.stx-prod-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37,99,235,0.3);
}

.stx-prod-cta svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.stx-prod-cta:hover svg {
    transform: translateX(4px);
}

.stx-prod-cta--outline {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    box-shadow: none;
}

.stx-prod-cta--outline:hover {
    background: var(--accent-color);
    color: #ffffff;
}

/* Visual / Logo Side */
.stx-prod-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    opacity: 0;
    transform: scale(0.88);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}

.stx-prod-visual.stx-visible {
    opacity: 1;
    transform: scale(1);
}

.stx-prod-logo-wrapper {
    position: relative;
    z-index: 2;
}

.stx-prod-logo-img {
    width: 280px;
    height: auto;
    max-height: 280px;
    object-fit: contain;
    animation: stxProdFloat 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.08));
    transition: all 0.4s ease;
}

.stx-prod-logo-wrapper:hover .stx-prod-logo-img {
    filter: drop-shadow(0 20px 50px rgba(37,99,235,0.2));
    transform: scale(1.06);
}

/* Shine sweep on hover */
.stx-prod-logo-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    pointer-events: none;
    transition: none;
}

.stx-prod-logo-wrapper:hover::after {
    animation: stxProdShineSweep 0.8s ease forwards;
}

/* Background Orbs / Decorations */
.stx-prod-visual-bg {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37,99,235,0.06) 0%, transparent 70%);
    z-index: 0;
    animation: stxProdGlow 5s ease-in-out infinite;
}

.stx-prod-visual-ring {
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    border: 1.5px dashed rgba(37,99,235,0.1);
    z-index: 1;
    animation: stxProdOrbit 30s linear infinite;
}

.stx-prod-visual-ring::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0.3;
}

/* Staurax Console, Portals & Insight — dark circle so the white logo is visible */
#staurax-console .stx-prod-visual-bg,
#staurax-portals .stx-prod-visual-bg,
#staurax-insight .stx-prod-visual-bg {
    background: radial-gradient(circle, #0a0a0a 0%, #111827 58%, transparent 62%);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
}

#staurax-console .stx-prod-visual-ring,
#staurax-portals .stx-prod-visual-ring,
#staurax-insight .stx-prod-visual-ring {
    border-color: rgba(255, 255, 255, 0.12);
}

#staurax-console .stx-prod-visual-ring::before,
#staurax-portals .stx-prod-visual-ring::before,
#staurax-insight .stx-prod-visual-ring::before {
    background: #c0c0c0;
}

/* ---- CTA / Bottom Section ---- */

.stx-prod-bottom-cta {
    position: relative;
    padding: 100px 24px;
    text-align: center;
    background: linear-gradient(168deg, var(--accent-light) 0%, #ffffff 60%, var(--accent-light) 100%);
    overflow: hidden;
}

.stx-prod-bottom-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37,99,235,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.stx-prod-bottom-cta-inner {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.stx-prod-bottom-cta h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    color: var(--text-color);
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.stx-prod-bottom-cta p {
    font-size: 1.08rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 36px;
}

.stx-prod-bottom-cta-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}


/* ---- Responsive ---- */

@media (max-width: 1024px) {
    .stx-prod-section-inner {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .stx-prod-section--reverse .stx-prod-section-inner {
        direction: ltr;
    }

    .stx-prod-desc,
    .stx-prod-features {
        max-width: 100%;
    }

    .stx-prod-features {
        align-items: center;
    }

    .stx-prod-visual {
        min-height: 300px;
        order: -1;
    }

    .stx-prod-visual-bg {
        width: 300px;
        height: 300px;
    }

    .stx-prod-visual-ring {
        width: 260px;
        height: 260px;
    }

    .stx-prod-eco-line {
        display: none;
    }
}

@media (max-width: 768px) {
    .stx-prod-hero {
        padding: 120px 20px 60px;
        min-height: auto;
    }

    .stx-prod-hero h1 {
        font-size: 2rem;
        letter-spacing: -0.5px;
    }

    .stx-prod-hero-sub {
        font-size: 1rem;
    }

    .stx-prod-hero-stats {
        gap: 24px;
    }

    .stx-prod-hero-stat-num {
        font-size: 1.5rem;
    }

    .stx-prod-section {
        padding: 60px 20px;
    }

    .stx-prod-section-inner {
        gap: 40px;
    }

    .stx-prod-name {
        font-size: 1.8rem;
    }

    .stx-prod-tagline {
        font-size: 1rem;
    }

    .stx-prod-desc {
        font-size: 0.95rem;
    }

    .stx-prod-logo-img {
        width: 200px;
        max-height: 200px;
    }

    .stx-prod-visual {
        min-height: 240px;
    }

    .stx-prod-visual-bg {
        width: 240px;
        height: 240px;
    }

    .stx-prod-visual-ring {
        width: 200px;
        height: 200px;
    }

    .stx-prod-ecosystem-map {
        gap: 8px;
    }

    .stx-prod-eco-node {
        padding: 12px;
    }

    .stx-prod-eco-dot {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .stx-prod-eco-dot svg {
        width: 20px;
        height: 20px;
    }

    .stx-prod-eco-label {
        font-size: 0.7rem;
    }

    .stx-prod-bottom-cta {
        padding: 60px 20px;
    }

    .stx-prod-connector {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .stx-prod-hero h1 {
        font-size: 1.7rem;
    }

    .stx-prod-hero-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .stx-prod-hero-stat:last-child {
        grid-column: 2;
    }

    .stx-prod-name {
        font-size: 1.5rem;
    }

    .stx-prod-logo-img {
        width: 160px;
        max-height: 160px;
    }

    .stx-prod-cta {
        width: 100%;
        justify-content: center;
    }
}
