/* ============================================
   WHAT IS CALLY — FUTURISTIC SCI-FI SECTION
   Soft purple / pink / navy palette
   ============================================ */

.wic-section {
    position: relative;
    min-height: 100vh;
    padding: 100px 0 250px;
    /* added 250px bottom padding to separate from the next section */
    background: transparent;
    overflow: hidden;
    color: #fff;
    z-index: 5;
}

/* --- CONTAINER --- */
.wic-container {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    z-index: 10;
}

/* --- MAIN GRID (3 columns) --- */
.wic-grid {
    display: grid;
    grid-template-columns: 3fr 7fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 80px;
}

/* --- LEFT: DEFINITION --- */
.wic-definition {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wic-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    background: linear-gradient(to right, #ffffff, #c4b5fd);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.wic-title-logo {
    height: 180px;
    width: auto;
    object-fit: contain;
    margin-bottom: 20px;
    margin-left: -24px;
    align-self: flex-start;
}

.wic-subtitle {
    font-size: 1.15rem;
    font-weight: 500;
    color: #c084fc;
    filter: drop-shadow(0 0 10px rgba(192, 132, 252, 0.25));
    margin: 0;
    line-height: 1.5;
}

.wic-description {
    font-size: 0.95rem;
    color: #a5a0c2;
    line-height: 1.7;
    margin: 0;
}

/* --- CENTER: ORB FLOW --- */
.wic-orb-flow {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 0;
}

.wic-orb-flow-inner {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Invisible target where ScrollOrb lands */
.wic-orb-target {
    width: 160px;
    height: 160px;
    border-radius: 50%;
}

/* --- FLOW NODES --- */
.wic-flow-node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    z-index: 5;
}

.wic-flow-node--top {
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: column-reverse;
}

.wic-flow-node--right {
    top: 50%;
    right: 8px;
    transform: translate(100%, -50%);
    flex-direction: row;
}

.wic-flow-node--bottom {
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
}

.wic-flow-node--left {
    top: 50%;
    left: 8px;
    transform: translate(-100%, -50%);
    flex-direction: row-reverse;
}

.wic-flow-label {
    font-size: 14px;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    white-space: nowrap;
    transition: all 0.4s ease;
    font-weight: 600;
}

.wic-flow-label--active {
    color: #d8b4fe;
    filter: drop-shadow(0 0 5px rgba(216, 180, 254, 0.6));
    font-size: 16px;
}

.wic-flow-label--inactive {
    color: #3b3560;
}

/* Energy line (connecting node to orb) */
.wic-energy-line {
    width: 3px;
    height: 48px;
    border-radius: 4px;
    transition: all 0.5s ease;
    position: relative;
}

/* Horizontal lines for left/right nodes */
.wic-flow-node--left .wic-energy-line,
.wic-flow-node--right .wic-energy-line {
    width: 48px;
    height: 3px;
}

.wic-energy-line--active {
    background: linear-gradient(to bottom, #a855f7, #ec4899, transparent);
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.5);
}

.wic-flow-node--left .wic-energy-line--active {
    background: linear-gradient(to right, transparent, #ec4899, #a855f7);
}

.wic-flow-node--right .wic-energy-line--active {
    background: linear-gradient(to right, #a855f7, #ec4899, transparent);
}

.wic-flow-node--top .wic-energy-line--active {
    background: linear-gradient(to top, transparent, #ec4899, #a855f7);
}

.wic-energy-line--inactive {
    background: linear-gradient(to bottom, #2d2252, transparent);
}

.wic-flow-node--left .wic-energy-line--inactive,
.wic-flow-node--right .wic-energy-line--inactive {
    background: linear-gradient(to right, transparent, #2d2252);
}

/* Pulse dot traveling along energy line */
.wic-energy-line--active::after {
    content: '';
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #d8b4fe;
    box-shadow: 0 0 8px #c084fc;
    animation: wic-pulse-travel 1.5s ease-in-out infinite;
}

.wic-flow-node--left .wic-energy-line--active::after,
.wic-flow-node--right .wic-energy-line--active::after {
    animation: wic-pulse-travel-h 1.5s ease-in-out infinite;
}

@keyframes wic-pulse-travel {
    0% {
        transform: translateY(48px);
        opacity: 0;
    }

    30% {
        opacity: 1;
    }

    100% {
        transform: translateY(0px);
        opacity: 0;
    }
}

@keyframes wic-pulse-travel-h {
    0% {
        transform: translateX(0);
        opacity: 0;
    }

    30% {
        opacity: 1;
    }

    100% {
        transform: translateX(40px);
        opacity: 0;
    }
}

/* --- PROOF CARDS (Right Column) --- */
.wic-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wic-proof-card {
    position: relative;
    padding: 24px;
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(168, 85, 247, 0.04);
    border: 1px solid rgba(192, 132, 252, 0.08);
    overflow: hidden;
    transition: all 0.4s ease;
}

.wic-proof-card:hover {
    border-color: rgba(192, 132, 252, 0.25);
    background: rgba(168, 85, 247, 0.07);
}

/* Energy Corners */
.wic-proof-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-top: 1px solid rgba(192, 132, 252, 0.35);
    border-left: 1px solid rgba(192, 132, 252, 0.35);
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.wic-proof-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    border-bottom: 1px solid rgba(236, 72, 153, 0.35);
    border-right: 1px solid rgba(236, 72, 153, 0.35);
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.wic-proof-card:hover::before,
.wic-proof-card:hover::after {
    opacity: 1;
    box-shadow: 0 0 6px rgba(192, 132, 252, 0.3);
}

.wic-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.wic-card-icon {
    color: #c084fc;
    filter: drop-shadow(0 0 8px rgba(192, 132, 252, 0.3));
    flex-shrink: 0;
}

.wic-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.wic-card-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wic-card-list-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.875rem;
    color: #bbb5d5;
    line-height: 1.5;
}

.wic-card-bullet {
    margin-top: 6px;
    width: 6px;
    height: 6px;
    min-width: 6px;
    border-radius: 50%;
    background: #a855f7;
    box-shadow: 0 0 5px rgba(168, 85, 247, 0.5);
}

/* --- METRICS BAR --- */
.wic-metrics-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding: 28px 32px;

    /* Liquid Glass Effect */
    background: rgba(255, 255, 255, 0.015);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);

    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-left: 1px solid rgba(255, 255, 255, 0.15);

    border-radius: 24px;
    box-shadow:
        0 12px 40px 0 rgba(0, 0, 0, 0.4),
        inset 0 0 40px 0 rgba(255, 255, 255, 0.02);
}

.wic-metric {
    text-align: center;
}

.wic-metric-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.75);
    font-family: 'Courier New', monospace;
}

.wic-metric-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 4px;
}

/* --- FLAG MARQUEE (Languages Metric) --- */
.wic-metric--flags {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.wic-flag-marquee {
    position: absolute;
    inset: 0;
    display: flex;
    gap: 2px;
    justify-content: center;
    overflow: hidden;
    opacity: 0.3;
    z-index: 0;
}

.wic-flag-col {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1;
}

.wic-flag-scroll {
    display: flex;
    flex-direction: column;
    animation: wic-flag-scroll-down 8s linear infinite;
}

.wic-flag {
    width: 100%;
    height: auto;
    display: block;
    padding: 2px 1px;
    object-fit: contain;
    padding: 2px 1px;
    object-fit: contain;
    border-radius: 2px;
    filter: grayscale(100%);
    opacity: 0.5;
}

.wic-flag-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
}

.wic-metric-label--below {
    position: relative;
    z-index: 2;
    margin-top: 4px;
}

@keyframes wic-flag-scroll-down {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

/* --- SCANLINE OVERLAY (Subtle) --- */
.wic-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(168, 85, 247, 0.006) 2px,
            rgba(168, 85, 247, 0.006) 4px);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .wic-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .wic-definition {
        align-items: center;
    }

    .wic-title {
        font-size: 2.5rem;
    }

    .wic-orb-flow {
        padding: 40px 0;
    }

    .wic-cards {
        max-width: 500px;
        margin: 0 auto;
    }

    .wic-metrics-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .wic-section {
        padding: 60px 0 40px;
    }

    .wic-title {
        font-size: 2rem;
    }

    .wic-title-logo {
        height: 80px;
        margin-bottom: 16px;
        margin-left: 0;
        align-self: center;
    }

    .wic-subtitle {
        font-size: 1rem;
    }

    .wic-orb-flow-inner {
        width: 240px;
        height: 240px;
        margin: 0 auto;
        position: relative;
        border-radius: 50%;
    }

    .wic-orb-flow {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .wic-orb-target {
        width: 120px;
        height: 120px;
    }

    .wic-flow-label {
        font-size: 9px;
    }

    .wic-metrics-bar {
        grid-template-columns: repeat(2, 1fr);
        padding: 20px 16px;
        gap: 16px;
    }

    .wic-metric-value {
        font-size: 1.4rem;
    }
}
