/**
 * Xeosol Products — hub + product detail pages (scoped under .xeosol-products)
 */

.xeosol-products {
    --xeo-navy: #07182F;
    --xeo-navy-mid: #0E2342;
    --xeo-orange: #F5A623;
    --xeo-orange-dark: #e09410;
    --xeo-surface: #F5F7FB;
    --xeo-text: #0f1a2e;
    --xeo-muted: #5a6778;
    --xeo-border: rgba(15, 26, 46, 0.08);
    --xeo-shadow: 0 8px 32px rgba(7, 24, 47, 0.08);
    --xeo-shadow-lg: 0 20px 48px rgba(7, 24, 47, 0.12);
    --xeo-radius: 12px;
    --xeo-radius-lg: 16px;
    --xeo-site-header-h: 118px;
    --xp-max: 1120px;
    overflow-x: hidden;
}

.xeosol-products * { box-sizing: border-box; }

html:has(.xeosol-products) { scroll-behavior: smooth; }

.page-wrapper:has(.xeosol-products) .main-footer { margin-top: 0; }

/* Header — dark hero */
.page-wrapper:has(.xeosol-products) .main-header.header-style-four .header-lower {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.page-wrapper:has(.xeosol-products) .main-header.header-style-four .main-menu .navigation > li > a {
    color: rgba(255, 255, 255, 0.88);
}
.page-wrapper:has(.xeosol-products) .main-header.header-style-four .main-menu .navigation > li.current > a,
.page-wrapper:has(.xeosol-products) .main-header.header-style-four .main-menu .navigation > li > a:hover {
    color: var(--xeo-orange);
}
.page-wrapper:has(.xeosol-products:not(.xeosol-products--past-hero)) .main-header .site-logo--light,
.page-wrapper:has(.xeosol-products:not(.xeosol-products--past-hero)) .sticky-header .site-logo--light {
    display: block;
}
.page-wrapper:has(.xeosol-products:not(.xeosol-products--past-hero)) .main-header .site-logo--dark,
.page-wrapper:has(.xeosol-products:not(.xeosol-products--past-hero)) .sticky-header .site-logo--dark {
    display: none;
}
.page-wrapper:has(.xeosol-products) .sticky-header.fixed-header {
    background: rgba(7, 24, 47, 0.98);
    backdrop-filter: blur(12px);
}

.page-wrapper:has(.xeosol-products--past-hero) .main-header.header-style-four .header-lower {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--xeo-border);
}
.page-wrapper:has(.xeosol-products--past-hero) .main-header .site-logo--light,
.page-wrapper:has(.xeosol-products--past-hero) .sticky-header .site-logo--light {
    display: none;
}
.page-wrapper:has(.xeosol-products--past-hero) .main-header .site-logo--dark,
.page-wrapper:has(.xeosol-products--past-hero) .sticky-header .site-logo--dark {
    display: block;
}
.page-wrapper:has(.xeosol-products--past-hero) .main-header.header-style-four .main-menu .navigation > li > a,
.page-wrapper:has(.xeosol-products--past-hero) .sticky-header.fixed-header .main-menu .navigation > li > a {
    color: var(--xeo-text);
}
.page-wrapper:has(.xeosol-products--past-hero) .main-header.header-style-four .main-menu .navigation > li.current > a,
.page-wrapper:has(.xeosol-products--past-hero) .main-header.header-style-four .main-menu .navigation > li > a:hover,
.page-wrapper:has(.xeosol-products--past-hero) .sticky-header.fixed-header .main-menu .navigation > li.current > a,
.page-wrapper:has(.xeosol-products--past-hero) .sticky-header.fixed-header .main-menu .navigation > li > a:hover {
    color: var(--xeo-orange-dark);
}
.page-wrapper:has(.xeosol-products--past-hero) .sticky-header.fixed-header {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1px 0 var(--xeo-border);
}

.xp-shell {
    width: 100%;
    max-width: var(--xp-max);
    margin: 0 auto;
    padding: 0 24px;
}

.xp-heading {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--xeo-text);
    margin: 0 0 16px;
}

.xp-heading--light { color: #fff; }

.xp-lead {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--xeo-muted);
    margin: 0;
}

.xp-lead--light { color: rgba(255, 255, 255, 0.72); }

.xp-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--xeo-orange);
    margin-bottom: 14px;
}

.xp-section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}

.xp-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.xp-reveal.is-visible {
    opacity: 1;
    transform: none;
}

.xp-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--xeo-orange) 0%, var(--xeo-orange-dark) 100%);
    color: var(--xeo-navy);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.xp-btn-primary:hover {
    color: var(--xeo-navy);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(245, 166, 35, 0.35);
}

.xp-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.xp-btn-ghost:hover {
    color: #fff;
    text-decoration: none;
    border-color: rgba(245, 166, 35, 0.5);
    background: rgba(245, 166, 35, 0.08);
}

.xp-btn-ghost--dark {
    border-color: rgba(15, 26, 46, 0.15);
    color: var(--xeo-text);
}
.xp-btn-ghost--dark:hover {
    color: var(--xeo-text);
    border-color: rgba(245, 166, 35, 0.45);
    background: rgba(245, 166, 35, 0.06);
}

.xeosol-products a.xp-inline {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(245, 166, 35, 0.45);
    text-underline-offset: 3px;
}
.xeosol-products a.xp-inline:hover { color: var(--xeo-orange-dark); }

/* Hero */
.xp-hero {
    position: relative;
    padding: calc(var(--xeo-site-header-h) + 48px) 0 88px;
    color: #fff;
    overflow: hidden;
    isolation: isolate;
    background:
        linear-gradient(180deg, rgba(147, 197, 253, 0.06) 0%, transparent 38%),
        radial-gradient(ellipse 54% 58% at 78% 44%, rgba(59, 154, 230, 0.22) 0%, transparent 62%),
        radial-gradient(ellipse 46% 42% at 10% 88%, rgba(245, 166, 35, 0.08) 0%, transparent 55%),
        linear-gradient(168deg, #040810 0%, #07182f 48%, #0e2342 100%);
}

.xp-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 22px 22px, 56px 56px, 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 82% 72% at 50% 42%, #000 12%, transparent 80%);
    mask-image: radial-gradient(ellipse 82% 72% at 50% 42%, #000 12%, transparent 80%);
    pointer-events: none;
    z-index: 1;
}

.xp-hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
    animation: xp-float 8s ease-in-out infinite;
}

.xp-hero__orb--1 {
    width: 400px;
    height: 400px;
    background: rgba(59, 154, 230, 0.22);
    top: -6%;
    right: -4%;
}

.xp-hero__orb--2 {
    width: 280px;
    height: 280px;
    background: rgba(245, 166, 35, 0.1);
    bottom: 8%;
    left: -6%;
    animation-delay: -3s;
}

@keyframes xp-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(18px, -22px) scale(1.04); }
}

.xp-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 820px;
}

.xp-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 28px;
}

.xp-hero__badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--xeo-orange);
    box-shadow: 0 0 8px rgba(245, 166, 35, 0.55);
}

.xeosol-products .xp-hero .xp-hero__title {
    font-size: clamp(2.25rem, 4.8vw, 3.5rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.038em;
    margin: 0 0 22px;
    color: #fff;
}

.xeosol-products .xp-hero .xp-hero__title-line {
    display: block;
    color: rgba(255, 255, 255, 0.96);
    margin-bottom: 0.12em;
}

.xeosol-products .xp-hero .xp-hero__title em {
    display: block;
    font-style: normal;
    font-size: 0.92em;
    font-weight: 700;
    background: linear-gradient(90deg, #ffe8b8 0%, var(--xeo-orange) 35%, #ffd56a 55%, #7ec8f0 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.xp-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.xp-hero__crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
}

.xp-hero__crumbs a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
}
.xp-hero__crumbs a:hover { color: var(--xeo-orange); }

/* Hub grid */
.xp-grid-section {
    padding: 80px 0;
    background: #fff;
}

.xp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.xp-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--xeo-border);
    border-radius: var(--xeo-radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--xeo-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.xp-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--xeo-shadow-lg);
    border-color: rgba(245, 166, 35, 0.35);
    text-decoration: none;
    color: inherit;
}

.xp-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--xeo-navy-mid);
    overflow: hidden;
}

.xp-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.xp-card__body {
    padding: 22px 22px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.xp-card__tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--xeo-orange-dark);
    margin-bottom: 8px;
}

.xp-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--xeo-navy);
    margin: 0 0 8px;
}

.xp-card p {
    font-size: 14px;
    line-height: 1.55;
    color: var(--xeo-muted);
    margin: 0 0 16px;
    flex: 1;
}

.xp-card__link {
    font-size: 13px;
    font-weight: 700;
    color: var(--xeo-orange-dark);
}

/* Detail layout */
.xp-detail {
    padding: 72px 0;
    background: #fff;
}

.xp-detail__grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 48px;
    align-items: start;
}

.xp-detail__content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--xeo-navy);
    margin: 36px 0 14px;
}

.xp-detail__content h2:first-child { margin-top: 0; }

.xp-detail__content p {
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--xeo-muted);
    margin: 0 0 16px;
}

.xp-feature-list {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: grid;
    gap: 12px;
}

.xp-feature-list li {
    position: relative;
    padding: 14px 16px 14px 42px;
    background: var(--xeo-surface);
    border-radius: 10px;
    border: 1px solid var(--xeo-border);
    font-size: 15px;
    line-height: 1.5;
    color: var(--xeo-text);
}

.xp-feature-list li::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 20px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--xeo-orange);
}

.xp-feature-list strong {
    display: block;
    margin-bottom: 2px;
    color: var(--xeo-navy);
}

.xp-aside {
    position: sticky;
    top: 100px;
    display: grid;
    gap: 16px;
}

.xp-aside__card {
    padding: 22px 20px;
    background: var(--xeo-surface);
    border: 1px solid var(--xeo-border);
    border-radius: var(--xeo-radius);
}

.xp-aside__card h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--xeo-navy);
    margin: 0 0 12px;
}

.xp-aside__nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.xp-aside__nav a {
    font-size: 13px;
    color: var(--xeo-muted);
    text-decoration: none;
}
.xp-aside__nav a:hover { color: var(--xeo-orange-dark); }

.xp-aside__cta {
    padding: 24px 20px;
    background: var(--xeo-navy);
    border-radius: var(--xeo-radius);
    color: #fff;
}

.xp-aside__cta h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: #fff;
}

.xp-aside__cta p {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 0 16px;
}

.xp-aside__cta .xp-btn-primary {
    width: 100%;
    justify-content: center;
}

/* CTA band */
.xp-cta {
    padding: 72px 0;
    background: var(--xeo-navy);
    text-align: center;
}

.xp-cta .xp-heading { color: #fff; }
.xp-cta .xp-lead { color: rgba(255, 255, 255, 0.65); max-width: 560px; margin: 0 auto 28px; }
.xp-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

@media (max-width: 991px) {
    .xp-grid { grid-template-columns: 1fr 1fr; }
    .xp-detail__grid { grid-template-columns: 1fr; }
    .xp-aside { position: static; }
}

@media (max-width: 600px) {
    .xp-hero { padding-top: calc(var(--xeo-site-header-h) + 32px); }
    .xp-grid { grid-template-columns: 1fr; }
}
