/* ==========================================================================
   SMARTERP FOXIA-INSPIRED ECOSYSTEM ORBIT
   ========================================================================== */

.solutions-section {
    position: relative;
    overflow: hidden;
    padding: 112px 0 96px;
    background:
        radial-gradient(circle at 72% 24%, rgba(255, 102, 32, 0.09), transparent 30%),
        linear-gradient(180deg, #fbf8f2 0%, #fffaf2 58%, #ffffff 100%);
}

.solutions-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(17, 20, 26, 0.055) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(17, 20, 26, 0.045) 1px, transparent 1px);
    background-size: 86px 86px;
    pointer-events: none;
}

.solutions-section > .container {
    position: relative;
    z-index: 1;
}

.solutions-section .section-header {
    max-width: 820px;
    margin: 0 0 6px;
    text-align: left;
}

.solutions-section .section-tag {
    background: rgba(255, 102, 32, 0.08);
    color: #ff5a1f;
    border-color: rgba(255, 102, 32, 0.22);
}

.solutions-section .section-title {
    color: #11141a;
    font-size: clamp(1.5rem, 2.6vw, 2.25rem);
    line-height: 1.32;
    padding-top: 0.08em;
    padding-bottom: 0.08em;
    font-weight: 900;
    letter-spacing: 0;
    max-width: 780px;
}

.solutions-section .section-subtitle {
    max-width: 680px;
    margin-left: 0;
    color: #344054;
    font-size: 0.98rem;
    font-weight: 700;
}

.ecosystem-container {
    position: relative;
    width: 100%;
    max-width: 1180px;
    min-height: 610px;
    margin: 12px auto 54px;
    padding: 0;
    border-radius: 0;
    overflow: visible;
    isolation: isolate;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.ecosystem-container::before {
    content: "";
    position: absolute;
    inset: -90px -120px;
    z-index: -2;
    background-image:
        linear-gradient(to right, rgba(15, 23, 42, 0.055) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 23, 42, 0.045) 1px, transparent 1px);
    background-size: 86px 86px;
    mask-image: none;
    -webkit-mask-image: none;
}

.ecosystem-container::after {
    content: "";
    position: absolute;
    inset: auto 2% 0 auto;
    width: 54%;
    height: 74%;
    z-index: -1;
    border-radius: 999px;
    border: 0;
    background: radial-gradient(circle, rgba(255, 102, 32, 0.13), rgba(255, 237, 213, 0.32) 38%, transparent 72%);
    filter: blur(2px);
    pointer-events: none;
}

.eco-shell {
    min-height: 590px;
    display: grid;
    grid-template-columns: minmax(360px, 0.86fr) minmax(520px, 1.14fr);
    gap: 42px;
    align-items: center;
}

.eco-copy {
    max-width: 520px;
}

.eco-kicker {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 102, 32, 0.08);
    border: 1px solid rgba(255, 102, 32, 0.24);
    color: #ff5a1f;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.eco-copy h3,
.eco-copy .eco-title {
    margin: 20px 0 20px;
    color: #11141a;
    font-size: clamp(2.8rem, 5.8vw, 5.2rem);
    line-height: 1.35;
    font-weight: 900;
    letter-spacing: -0.01em;
}

.eco-copy .eco-title span.line-1,
.eco-copy .eco-title span.line-2,
.eco-copy .eco-title span.line-3 {
    display: block;
}

.eco-copy .eco-title span.line-2 {
    color: #ff5a1f;
    margin: 4px 0;
}

.eco-copy p {
    margin: 0;
    max-width: 480px;
    color: #344054;
    line-height: 1.65;
    font-size: 1.08rem;
    font-weight: 700;
}

.eco-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.eco-primary-action,
.eco-secondary-action {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 26px;
    border-radius: 999px;
    font-size: 0.96rem;
    font-weight: 900;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.eco-primary-action {
    color: #ffffff;
    background: linear-gradient(135deg, #ff5a1f, #f97316);
    box-shadow: 0 16px 30px -18px rgba(255, 90, 31, 0.9);
}

.eco-secondary-action {
    color: #11141a;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(17, 20, 26, 0.14);
}

.eco-primary-action:hover,
.eco-secondary-action:hover {
    transform: translateY(-2px);
}

.eco-primary-action:hover {
    box-shadow: 0 20px 36px -20px rgba(255, 90, 31, 0.95);
}

.eco-secondary-action:hover {
    border-color: rgba(255, 90, 31, 0.34);
}

.eco-mini-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 34px;
    padding-top: 28px;
    border-top: 1px solid rgba(15, 23, 42, 0.12);
}

.eco-mini-stats span {
    min-height: 70px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    color: #667085;
    font-size: 0.76rem;
    font-weight: 800;
    box-shadow: none;
}

.eco-mini-stats strong {
    display: block;
    color: #11141a;
    font-size: 1.8rem;
    line-height: 1;
    margin-bottom: 8px;
}

.eco-orbit-scene {
    position: relative;
    width: min(100%, 680px);
    height: 520px;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    touch-action: pan-y;
}

/* Background Solar SVG Canvas for Orbits & Beams */
.eco-solar-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
    z-index: 1;
}

/* FOXIA-STYLE: Dashed orbit ellipses with subtle warm orange tint */
.orbit-ellipse {
    fill: none;
    stroke-width: 1px;
    transition: stroke 0.3s ease, stroke-width 0.3s ease;
}

.orbit-inner {
    stroke: rgba(255, 120, 50, 0.18);
    stroke-dasharray: 6 8;
}

.orbit-mid {
    stroke: rgba(255, 100, 40, 0.22);
    stroke-dasharray: 8 10;
}

.orbit-outer {
    stroke: rgba(255, 80, 30, 0.16);
    stroke-dasharray: 10 14;
}

.orbit-ellipse.highlight {
    stroke-width: 2px;
    filter: drop-shadow(0 0 4px rgba(255, 90, 31, 0.35));
}

.orbit-inner.highlight { stroke: rgba(255, 120, 50, 0.5); }
.orbit-mid.highlight { stroke: rgba(255, 100, 40, 0.6); }
.orbit-outer.highlight { stroke: rgba(255, 80, 30, 0.5); }

/* SVG Constellation Web Lines (between satellites) */
.constellation-line {
    stroke: rgba(180, 185, 200, 0.25);
    stroke-width: 0.8;
    stroke-dasharray: 3 5;
    transition: opacity 0.4s ease;
}

/* SVG Dynamic Laser Beams (to sun core) */
.laser-beam {
    stroke: rgba(255, 120, 60, 0.15);
    stroke-width: 1;
    stroke-linecap: round;
    stroke-dasharray: 4 6;
    opacity: 0.4;
    transition: opacity 0.3s ease, stroke-width 0.3s ease;
}

.laser-beam.active-beam {
    stroke-width: 2;
    opacity: 0.7;
    stroke: rgba(255, 90, 31, 0.5);
    stroke-dasharray: none;
    filter: drop-shadow(0 0 4px rgba(255, 90, 31, 0.4));
}

/* ========================
   FOXIA-STYLE: Large Central Core Sphere
   ======================== */
.eco-sun-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    cursor: pointer;
}

.sun-flare-aura {
    position: absolute;
    inset: -40px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 90, 31, 0.18) 0%, rgba(255, 200, 150, 0.08) 50%, transparent 75%);
    animation: sun-corona-pulse 5s ease-in-out infinite alternate;
    pointer-events: none;
}

.sun-corona-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 120, 60, 0.2);
    pointer-events: none;
}

.sun-corona-ring.ring-1 {
    inset: -16px;
    border-style: dashed;
    border-color: rgba(255, 90, 31, 0.2);
    animation: sun-ring-rotate 30s linear infinite;
}

.sun-corona-ring.ring-2 {
    inset: -32px;
    border-color: rgba(255, 90, 31, 0.12);
    animation: sun-ring-rotate 50s linear infinite reverse;
}

.sun-core-card {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 32%, #ffffff 0%, #fffbf5 55%, #fff5eb 100%);
    border: 2px solid rgba(255, 90, 31, 0.25);
    box-shadow:
        0 0 40px rgba(255, 90, 31, 0.2),
        0 18px 50px rgba(17, 20, 26, 0.12),
        inset 0 3px 6px rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.eco-sun-core:hover .sun-core-card {
    transform: scale(1.06);
    box-shadow:
        0 0 55px rgba(255, 90, 31, 0.35),
        0 22px 55px rgba(17, 20, 26, 0.18),
        inset 0 3px 6px rgba(255, 255, 255, 0.95);
}

.sun-core-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff5a1f, #f97316);
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    margin-bottom: 6px;
    box-shadow: 0 6px 18px rgba(255, 90, 31, 0.45);
    animation: sun-icon-bounce 4s ease-in-out infinite;
}

.sun-core-card strong {
    color: #11141a;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.sun-core-card span {
    margin-top: 2px;
    color: #8b8e96;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ========================
   FOXIA-STYLE: Large White Circular Planet Satellite Nodes
   Clean white circles with colored icon centers, soft shadows
   ======================== */
.eco-planet-satellite {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: auto;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    outline: none;
    transform-origin: center center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    will-change: transform, opacity, z-index;
}

/* HIGH-CONTRAST VIBRANT PLANET SATELLITE NODES */
.planet-circle-sphere {
    position: relative;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #ffffff !important;
    font-size: 1.3rem;
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow:
        0 10px 24px -4px rgba(15, 23, 42, 0.28),
        0 4px 10px rgba(15, 23, 42, 0.15),
        inset 0 2px 4px rgba(255, 255, 255, 0.45);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, border-color 0.3s ease;
}

/* Planet Icon Inside — crisp white on vibrant theme gradient */
.planet-circle-icon {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    color: #ffffff !important;
    transition: transform 0.75s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* High Contrast Vibrant Module Theme Gradients */
.planet-theme-erp { background: linear-gradient(135deg, #4f46e5, #6366f1) !important; }
.planet-theme-crm { background: linear-gradient(135deg, #0284c7, #38bdf8) !important; }
.planet-theme-fleet { background: linear-gradient(135deg, #ea580c, #f97316) !important; }
.planet-theme-sales_gps { background: linear-gradient(135deg, #059669, #10b981) !important; }
.planet-theme-hrm { background: linear-gradient(135deg, #2563eb, #60a5fa) !important; }
.planet-theme-wms { background: linear-gradient(135deg, #7c3aed, #a855f7) !important; }

.eco-planet-satellite:hover .planet-circle-icon,
.eco-planet-satellite.active .planet-circle-icon {
    transform: rotate(360deg) scale(1.1);
}

.eco-planet-satellite:hover .planet-circle-sphere,
.eco-planet-satellite.active .planet-circle-sphere {
    transform: scale(1.14);
    border-color: #ffffff;
    box-shadow:
        0 0 35px rgba(255, 90, 31, 0.5),
        0 14px 30px -4px rgba(15, 23, 42, 0.35),
        0 0 0 6px rgba(255, 90, 31, 0.18);
}

/* Planet Atmosphere Ring Glow */
.planet-atmosphere-ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    opacity: 0.8;
    pointer-events: none;
}

.planet-halo-pulse {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.eco-planet-satellite:hover .planet-halo-pulse,
.eco-planet-satellite.active .planet-halo-pulse {
    opacity: 1;
    animation: planet-pulse-glow 2.5s ease-in-out infinite alternate;
}

/* Mini Label Badge under Planet Sphere — High Contrast */
.planet-mini-badge {
    padding: 4px 12px;
    border-radius: 999px;
    background: #ffffff;
    border: 1.5px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(8px);
    white-space: nowrap;
    transition: all 0.3s ease;
}

.planet-mini-badge strong {
    color: #0f172a;
    font-size: 0.78rem;
    font-weight: 900;
    display: block;
    line-height: 1;
}

.eco-planet-satellite:hover .planet-mini-badge,
.eco-planet-satellite.active .planet-mini-badge {
    background: #ffffff;
    border-color: rgba(255, 90, 31, 0.5);
    box-shadow: 0 6px 18px rgba(255, 90, 31, 0.25);
    transform: translateY(2px);
}

.eco-planet-satellite:hover .planet-mini-badge strong,
.eco-planet-satellite.active .planet-mini-badge strong {
    color: #ff5a1f;
}

/* Planet theme backgrounds are now overridden by white sphere style above.
   These are kept for JS reference but visual is white with colored icon. */
.planet-theme-erp { }
.planet-theme-crm { }
.planet-theme-fleet { }
.planet-theme-sales_gps { }
.planet-theme-hrm { }
.planet-theme-wms { }

@keyframes planet-pulse-glow {
    0% { transform: scale(0.94); opacity: 0.4; }
    100% { transform: scale(1.12); opacity: 0.8; }
}

/* ========================
   Floating Glassmorphism HUD Preview Card
   ======================== */
.eco-hud-preview-card {
    position: absolute;
    z-index: 250;
    width: 260px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    border: 1.5px solid rgba(230, 233, 240, 0.9);
    box-shadow:
        0 20px 45px -10px rgba(15, 23, 42, 0.18),
        0 0 0 4px rgba(255, 90, 31, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    pointer-events: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.3s ease;
}

.eco-hud-preview-card.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.hud-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.hud-tag {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #ff5a1f;
    background: rgba(255, 90, 31, 0.1);
    padding: 2px 8px;
    border-radius: 999px;
}

.hud-metric {
    font-size: 0.68rem;
    font-weight: 900;
    color: #059669;
    background: rgba(16, 185, 129, 0.1);
    padding: 2px 8px;
    border-radius: 999px;
}

.eco-hud-preview-card h4 {
    margin: 4px 0 6px;
    font-size: 1rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.2;
}

.eco-hud-preview-card p {
    margin: 0 0 10px;
    font-size: 0.76rem;
    color: #475569;
    line-height: 1.4;
    font-weight: 600;
}

.hud-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    padding-top: 8px;
    margin-top: 4px;
}

.hud-spec-chip {
    font-size: 0.68rem;
    font-weight: 800;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 4px;
}

.hud-link-btn {
    font-size: 0.72rem;
    font-weight: 800;
    color: #ff5a1f;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: transform 0.2s ease;
}

.hud-link-btn:hover {
    transform: translateX(3px);
}

/* Sun Core Shockwave Ripple Ring */
.sun-shockwave-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.2);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 2px solid rgba(255, 90, 31, 0.6);
    box-shadow: 0 0 20px rgba(255, 90, 31, 0.4);
    opacity: 0;
    pointer-events: none;
    z-index: 45;
}

.sun-shockwave-ring.pulse {
    animation: sun-shockwave-expand 0.85s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes sun-shockwave-expand {
    0% { transform: translate(-50%, -50%) scale(0.3); opacity: 1; border-width: 3px; }
    100% { transform: translate(-50%, -50%) scale(3.2); opacity: 0; border-width: 0.5px; }
}

/* Stardust Orbital Energy Particles */
.stardust-particle {
    fill: #ff5a1f;
    opacity: 0.7;
    filter: url(#particleGlow);
    transition: opacity 0.3s ease;
}

/* Floating Constellation Dots (static background dots) */
.constellation-dot {
    fill: rgba(180, 190, 210, 0.4);
}

/* Category Filter Navigation Pills */
.eco-category-filters {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.eco-filter-btn {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(230, 233, 240, 0.9);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(8px);
    transition: all 0.25s ease;
}

.eco-filter-btn:hover {
    background: #ffffff;
    border-color: rgba(255, 90, 31, 0.35);
    color: #ff5a1f;
    transform: translateY(-1px);
}

.eco-filter-btn.active {
    background: linear-gradient(135deg, #ff5a1f, #f97316);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(255, 90, 31, 0.3);
}

/* Dimmed state when filtered */
.eco-planet-satellite.dimmed {
    opacity: 0.2 !important;
    filter: grayscale(0.7);
    pointer-events: none;
}

/* Solar System Controls Bar */
.eco-solar-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(230, 233, 240, 0.8);
    border-radius: 999px;
    backdrop-filter: blur(10px);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.8rem;
    color: #475569;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
}

.solar-ctrl-btn {
    background: transparent;
    border: none;
    color: #334155;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.solar-ctrl-btn:hover {
    background: rgba(255, 90, 31, 0.1);
    color: #ff5a1f;
}

.solar-hint-divider {
    color: #cbd5e1;
}

.solar-hint-text {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #8b8e96;
    font-weight: 600;
}

/* Keyframe Animations */
@keyframes sun-corona-pulse {
    0% { transform: scale(0.96); opacity: 0.7; }
    100% { transform: scale(1.1); opacity: 1; }
}

@keyframes sun-ring-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes sun-icon-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@media (max-width: 992px) {
    .ecosystem-container {
        padding: 28px 18px 58px;
    }

    .eco-shell {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .eco-copy {
        max-width: 680px;
        text-align: center;
        margin: 0 auto;
    }

    .eco-mini-stats {
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }

    .eco-orbit-scene {
        width: min(100%, 520px);
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .ecosystem-container {
        min-height: auto;
        border-radius: 20px;
        overflow: hidden;
    }

    .eco-mini-stats {
        grid-template-columns: 1fr;
    }

    .eco-orbit-scene {
        aspect-ratio: auto;
        min-height: 560px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .eco-orbit-scene::before,
    .eco-orbit-ring {
        display: none;
    }

    .eco-orbit-track {
        position: static;
        display: contents;
    }

    .ecosystem-container:hover .eco-orbit-track {
        animation: none;
    }

    .eco-core-card {
        width: 100%;
        min-height: 118px;
        border-radius: 18px;
    }

    .eco-satellite {
        position: static;
        width: 100%;
        transform: none;
        animation: none;
    }

    .eco-3d-hint {
        position: static;
        transform: none;
        width: fit-content;
        max-width: 100%;
        margin: 18px auto 0;
        white-space: normal;
        text-align: center;
    }
}
