﻿/* ============================================================
   FINVILLAHUB P18.2 — CINEMATIC INTELLIGENCE CORE
   Visual-only component.
   ============================================================ */

.fv18-intelligence-core {
    position: relative;
    width: 100%;
    margin: 24px 0 30px;
    padding: 22px 24px 20px;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 42%,
            rgba(40,199,216,.075),
            transparent 26%
        ),
        radial-gradient(
            circle at 25% 50%,
            rgba(32,214,163,.055),
            transparent 25%
        ),
        radial-gradient(
            circle at 78% 45%,
            rgba(76,141,255,.055),
            transparent 24%
        ),
        rgba(4,10,15,.72);

    border: 1px solid rgba(232,211,154,.16);
    box-shadow:
        0 20px 60px rgba(0,0,0,.30),
        inset 0 1px 0 rgba(255,255,255,.035);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}


/* HEADER */

.fv18-core-header {
    position: relative;
    z-index: 5;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.fv18-core-eyebrow {
    display: block;

    color: var(--fv18-champagne);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.fv18-core-header h2 {
    margin: 6px 0 0;

    color: var(--fv18-platinum);
    font-size: clamp(19px, 2vw, 27px);
    line-height: 1.16;
    font-weight: 700;
    letter-spacing: -.35px;
}

.fv18-core-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 7px 10px;

    color: var(--fv18-emerald);
    border: 1px solid rgba(32,214,163,.18);
    background: rgba(32,214,163,.045);

    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.15px;
    white-space: nowrap;
}

.fv18-core-status span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--fv18-emerald);
    box-shadow: 0 0 12px rgba(32,214,163,.65);

    animation: fv18CorePulse 2.8s ease-in-out infinite;
}


/* STAGE */

.fv18-core-stage {
    position: relative;

    width: min(100%, 760px);
    height: 355px;

    margin: 8px auto 0;

    perspective: 1000px;
    transform-style: preserve-3d;
}


/* AMBIENT CORE LIGHT */

.fv18-core-glow {
    position: absolute;

    width: 230px;
    height: 230px;

    left: 50%;
    top: 50%;

    transform: translate(-50%,-50%);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(40,199,216,.13) 0%,
            rgba(32,214,163,.065) 32%,
            transparent 70%
        );

    filter: blur(5px);

    animation: fv18CoreBreath 8s ease-in-out infinite alternate;
}


/* ORBIT RINGS */

.fv18-orbit {
    position: absolute;

    left: 50%;
    top: 50%;

    border-radius: 50%;

    border: 1px solid rgba(232,211,154,.13);

    transform-style: preserve-3d;

    pointer-events: none;
}

.fv18-orbit-outer {
    width: 330px;
    height: 170px;

    margin: -85px 0 0 -165px;

    transform: rotateX(64deg) rotateZ(-12deg);

    animation: fv18OrbitOuter 20s linear infinite;
}

.fv18-orbit-middle {
    width: 270px;
    height: 145px;

    margin: -72px 0 0 -135px;

    border-color: rgba(40,199,216,.18);

    transform: rotateX(68deg) rotateZ(35deg);

    animation: fv18OrbitMiddle 15s linear infinite reverse;
}

.fv18-orbit-inner {
    width: 205px;
    height: 112px;

    margin: -56px 0 0 -102px;

    border-color: rgba(32,214,163,.16);

    transform: rotateX(72deg) rotateZ(-48deg);

    animation: fv18OrbitInner 11s linear infinite;
}


/* CENTER */

.fv18-core-center {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 118px;
    height: 118px;

    margin: -59px 0 0 -59px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        radial-gradient(
            circle at 35% 28%,
            rgba(232,211,154,.14),
            transparent 38%
        ),
        radial-gradient(
            circle,
            rgba(12,32,39,.98),
            rgba(3,8,12,.99)
        );

    border: 1px solid rgba(232,211,154,.35);

    box-shadow:
        0 0 0 7px rgba(232,211,154,.025),
        0 0 42px rgba(40,199,216,.13),
        inset 0 1px 0 rgba(255,255,255,.07);

    z-index: 4;

    animation: fv18CoreFloat 7s ease-in-out infinite;
}

.fv18-core-mark {
    display: grid;
    place-items: center;

    width: 30px;
    height: 30px;

    margin-bottom: 7px;

    color: var(--fv18-champagne);

    border: 1px solid rgba(232,211,154,.4);

    font-size: 9px;
    font-weight: 900;
    letter-spacing: .8px;
}

.fv18-core-center strong {
    color: var(--fv18-platinum);
    font-size: 10px;
    letter-spacing: 1.15px;
}

.fv18-core-center small {
    margin-top: 4px;

    color: var(--fv18-silver);
    font-size: 6px;
    letter-spacing: .65px;
}


/* NODES */

.fv18-core-node {
    position: absolute;

    width: 142px;
    padding: 9px 11px;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.055),
            rgba(255,255,255,.018)
        );

    border: 1px solid rgba(220,235,240,.12);

    box-shadow:
        0 10px 28px rgba(0,0,0,.24);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    z-index: 5;

    transition:
        transform .4s cubic-bezier(.2,.75,.2,1),
        border-color .4s ease,
        box-shadow .4s ease;
}

.fv18-core-node:hover {
    transform: translateY(-3px) translateZ(8px);

    border-color:
        rgba(232,211,154,.30);

    box-shadow:
        0 14px 32px rgba(0,0,0,.30),
        0 0 25px rgba(232,211,154,.055);
}

.fv18-core-node b {
    display: block;

    color: var(--fv18-champagne);
    font-size: 7px;
    letter-spacing: 1px;
}

.fv18-core-node strong {
    display: block;

    margin-top: 3px;

    color: var(--fv18-platinum);
    font-size: 10px;
    line-height: 1.2;
}

.fv18-core-node small {
    display: block;

    margin-top: 3px;

    color: var(--fv18-emerald);
    font-size: 7px;
    letter-spacing: .7px;
}


/* NODE POSITIONS */

.node-market {
    left: 4%;
    top: 20%;
}

.node-technical {
    left: 7%;
    bottom: 16%;
}

.node-history {
    right: 4%;
    top: 20%;
}

.node-learning {
    right: 7%;
    bottom: 16%;
}

.node-skill {
    left: 50%;
    top: 4%;

    transform: translateX(-50%);
}

.node-scenario {
    left: 50%;
    bottom: 3%;

    transform: translateX(-50%);
}


/* PATH */

.fv18-core-path {
    position: relative;
    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 9px;

    margin-top: -1px;

    color: var(--fv18-silver);

    font-size: 8px;
    letter-spacing: .7px;
}

.fv18-core-path i {
    width: 18px;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            rgba(32,214,163,.10),
            rgba(232,211,154,.38),
            rgba(40,199,216,.10)
        );
}


/* NOTE */

.fv18-core-note {
    position: relative;
    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    margin-top: 14px;
}

.fv18-note-line {
    width: 28px;
    height: 1px;

    background: rgba(232,211,154,.30);
}

.fv18-core-note p {
    margin: 0;

    color: rgba(238,243,245,.62);

    font-size: 8px;
    line-height: 1.5;
    text-align: center;
}


/* ANIMATION */

@keyframes fv18CorePulse {

    0%,100% {
        opacity: .35;
        transform: scale(.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

@keyframes fv18CoreBreath {

    0% {
        opacity: .55;
        transform: translate(-50%,-50%) scale(.92);
    }

    100% {
        opacity: .9;
        transform: translate(-50%,-50%) scale(1.08);
    }
}

@keyframes fv18CoreFloat {

    0%,100% {
        transform: translateY(0) translateZ(0);
    }

    50% {
        transform: translateY(-5px) translateZ(6px);
    }
}

@keyframes fv18OrbitOuter {

    from {
        transform: rotateX(64deg) rotateZ(-12deg);
    }

    to {
        transform: rotateX(64deg) rotateZ(348deg);
    }
}

@keyframes fv18OrbitMiddle {

    from {
        transform: rotateX(68deg) rotateZ(35deg);
    }

    to {
        transform: rotateX(68deg) rotateZ(-325deg);
    }
}

@keyframes fv18OrbitInner {

    from {
        transform: rotateX(72deg) rotateZ(-48deg);
    }

    to {
        transform: rotateX(72deg) rotateZ(312deg);
    }
}


/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

    .fv18-core-status span,
    .fv18-core-glow,
    .fv18-core-center,
    .fv18-orbit-outer,
    .fv18-orbit-middle,
    .fv18-orbit-inner {
        animation: none !important;
    }
}


/* MOBILE */

@media (max-width: 760px) {

    .fv18-intelligence-core {
        margin: 18px 0 22px;
        padding: 18px 14px 16px;
    }

    .fv18-core-header {
        align-items: flex-start;
    }

    .fv18-core-header h2 {
        font-size: 18px;
    }

    .fv18-core-status {
        display: none;
    }

    .fv18-core-stage {
        height: 330px;
        transform: scale(.86);
        transform-origin: top center;
        margin-bottom: -40px;
    }

    .fv18-core-node {
        width: 120px;
    }

    .node-market {
        left: 0;
    }

    .node-technical {
        left: 0;
    }

    .node-history {
        right: 0;
    }

    .node-learning {
        right: 0;
    }

    .fv18-core-path {
        gap: 6px;
        font-size: 7px;
    }

    .fv18-core-path i {
        width: 9px;
    }

    .fv18-core-note p {
        font-size: 7px;
    }
}

@media (max-width: 460px) {

    .fv18-core-stage {
        transform: scale(.68);
        transform-origin: top center;
        margin-bottom: -100px;
    }

    .fv18-core-path {
        display: none;
    }

    .fv18-core-note {
        margin-top: 10px;
    }
}
