/* it-landing.css — IT-direction specifics: "product pipeline" animation +
   theme overrides. Reuses logistics-landing.css for hero/chat/services/strip. */

:root {
    --it-cyan: #7ee4ff;
    --it-violet: #a78bff;
    --it-gold: #ffd24a;
    --it-green: #9dffcf;
    --it-line: rgba(167, 139, 255, 0.26);
}

/* ===== Pipeline board ===== */
.pipe-board {
    min-height: 560px;
    background:
        linear-gradient(135deg, rgba(8, 12, 32, 0.92), rgba(20, 14, 46, 0.55)),
        radial-gradient(80% 120% at 80% 0%, rgba(167, 139, 255, 0.12), transparent 60%) !important;
}

.pipe-scene {
    position: absolute;
    inset: 16px 16px 16px;
    z-index: 2;
    border: 1px solid rgba(167, 139, 255, 0.22);
    border-radius: 14px;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 22%, rgba(126, 228, 255, 0.10), transparent 34%),
        radial-gradient(circle at 82% 78%, rgba(167, 139, 255, 0.12), transparent 36%),
        linear-gradient(180deg, rgba(10, 12, 30, 0.96), rgba(4, 6, 18, 0.98));
    box-shadow: inset 0 0 80px rgba(167, 139, 255, 0.06);
}

.pipe-grid {
    position: absolute;
    inset: -20%;
    opacity: 0.3;
    background:
        linear-gradient(rgba(126, 228, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(167, 139, 255, 0.06) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: pipe-grid-drift 22s linear infinite;
}
@keyframes pipe-grid-drift {
    from { transform: translate(0, 0); }
    to { transform: translate(40px, 40px); }
}

/* the conveyor track */
.pipe-track {
    position: absolute;
    left: 4%;
    right: 4%;
    top: 50%;
    height: 4px;
    transform: translateY(-50%);
    border-radius: 99px;
    background: linear-gradient(90deg, rgba(126, 228, 255, 0.16), rgba(167, 139, 255, 0.16));
    overflow: hidden;
}
.pipe-track-flow {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(90deg,
        transparent 0 18px,
        rgba(126, 228, 255, 0.65) 18px 30px,
        transparent 30px 48px);
    animation: pipe-flow 1.1s linear infinite;
}
@keyframes pipe-flow {
    from { transform: translateX(0); }
    to { transform: translateX(48px); }
}

/* stage nodes on the track */
.pipe-stage {
    position: absolute;
    left: var(--x);
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 4;
    width: 92px;
    text-align: center;
}
.pipe-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    border: 1px solid rgba(167, 139, 255, 0.35);
    background: rgba(10, 14, 34, 0.92);
    color: var(--it-cyan);
    font-size: 19px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), inset 0 0 12px rgba(126, 228, 255, 0.08);
    transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease, color .4s ease, background .4s ease;
}
.pipe-name {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(236, 250, 255, 0.66);
    transition: color .4s ease, text-shadow .4s ease;
}
/* alternate label above/below to avoid crowding */
.pipe-stage:nth-child(even) { flex-direction: column-reverse; }

/* active stage highlight (data-active set by JS) */
.pipe-stage.is-active .pipe-ico {
    transform: scale(1.22);
    border-color: var(--it-cyan);
    color: #fff;
    background: linear-gradient(135deg, rgba(126, 228, 255, 0.3), rgba(167, 139, 255, 0.4));
    box-shadow: 0 0 0 4px rgba(126, 228, 255, 0.16), 0 0 22px rgba(126, 228, 255, 0.7), 0 0 40px rgba(167, 139, 255, 0.5);
}
.pipe-stage.is-active .pipe-name {
    color: #fff;
    text-shadow: 0 0 12px rgba(126, 228, 255, 0.7);
}

/* the moving artifact packet */
.pipe-packet {
    position: absolute;
    top: 50%;
    left: 6.25%;
    width: 34px;
    height: 34px;
    transform: translate(-50%, -50%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #06283a;
    font-size: 15px;
    background: linear-gradient(135deg, #aef3ff, #7ee4ff 55%, #a78bff);
    box-shadow: 0 0 18px rgba(126, 228, 255, 0.8), 0 0 36px rgba(167, 139, 255, 0.5);
    z-index: 6;
    will-change: left, transform;
}
.pipe-packet::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 14px;
    border: 1px solid rgba(126, 228, 255, 0.4);
    animation: pipe-packet-ring 1.6s ease-out infinite;
}
@keyframes pipe-packet-ring {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* ===== thematic widgets ===== */
.pipe-widget {
    position: absolute;
    z-index: 3;
    opacity: 0.34;
    transition: opacity .5s ease, transform .5s ease;
}
.pipe-widget.is-hot { opacity: 1; transform: translateY(-2px); }

/* terminal (code stage) */
.pipe-widget--terminal {
    left: 32%;
    top: 14%;
    width: 168px;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(126, 228, 255, 0.28);
    background: rgba(4, 8, 20, 0.92);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.pipe-widget--terminal .term-bar {
    display: flex; gap: 5px; margin-bottom: 8px;
}
.pipe-widget--terminal .term-bar i {
    width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.25);
}
.pipe-widget--terminal .term-bar i:nth-child(1) { background: #ff6b6b; }
.pipe-widget--terminal .term-bar i:nth-child(2) { background: #ffd24a; }
.pipe-widget--terminal .term-bar i:nth-child(3) { background: #9dffcf; }
.pipe-widget--terminal .term-line {
    height: 6px;
    border-radius: 3px;
    margin: 6px 0;
    background: linear-gradient(90deg, rgba(126,228,255,0.7), rgba(167,139,255,0.4));
    width: 0;
    animation: term-type 3.4s steps(20) infinite;
}
.pipe-widget--terminal .term-line:nth-child(2) { animation-delay: 0s; max-width: 90%; }
.pipe-widget--terminal .term-line:nth-child(3) { animation-delay: 0.5s; max-width: 70%; }
.pipe-widget--terminal .term-line:nth-child(4) { animation-delay: 1s; max-width: 82%; }
.pipe-widget--terminal .term-line:nth-child(5) { animation-delay: 1.5s; max-width: 55%; }
@keyframes term-type {
    0% { width: 0; opacity: 0.4; }
    40% { opacity: 1; }
    60% { width: var(--w, 80%); }
    100% { width: var(--w, 80%); opacity: 0.7; }
}

/* gears (integrations stage) */
.pipe-widget--gears {
    left: 55%;
    top: 16%;
    display: flex;
    gap: 2px;
    color: rgba(167, 139, 255, 0.8);
}
.pipe-widget--gears i { font-size: 30px; }
.pipe-widget--gears i:nth-child(1) { animation: gear-spin 5s linear infinite; }
.pipe-widget--gears i:nth-child(2) { font-size: 22px; align-self: flex-end; animation: gear-spin 4s linear infinite reverse; }
@keyframes gear-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* cloud (cloud stage) */
.pipe-widget--cloud {
    right: 14%;
    top: 15%;
    color: var(--it-cyan);
    font-size: 40px;
    filter: drop-shadow(0 0 14px rgba(126, 228, 255, 0.5));
}
.pipe-widget--cloud::after {
    content: "";
    position: absolute;
    left: 50%; bottom: -10px;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--it-green);
    transform: translateX(-50%);
    box-shadow: 0 0 8px var(--it-green);
    animation: cloud-pulse 1.8s ease-in-out infinite;
}
@keyframes cloud-pulse { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

/* chart (users/analytics stage) */
.pipe-widget--chart {
    right: 6%;
    bottom: 14%;
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 54px;
}
.pipe-widget--chart i {
    display: block;
    width: 9px;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(180deg, var(--it-cyan), rgba(167, 139, 255, 0.4));
    animation: chart-grow 2.6s ease-in-out infinite;
}
.pipe-widget--chart i:nth-child(1) { height: 40%; animation-delay: 0s; }
.pipe-widget--chart i:nth-child(2) { height: 65%; animation-delay: 0.2s; }
.pipe-widget--chart i:nth-child(3) { height: 48%; animation-delay: 0.4s; }
.pipe-widget--chart i:nth-child(4) { height: 85%; animation-delay: 0.6s; }
.pipe-widget--chart i:nth-child(5) { height: 70%; animation-delay: 0.8s; }
@keyframes chart-grow { 0%,100% { transform: scaleY(0.7); } 50% { transform: scaleY(1); } }

/* data-stream dots crossing under the track */
.pipe-spark {
    position: absolute;
    top: 50%;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--it-green);
    box-shadow: 0 0 8px var(--it-green);
    transform: translate(-50%, -50%);
    z-index: 5;
    opacity: 0.8;
}

/* IT theme accents over reused logistics styles */
.it-site .pulse-tags span { border-color: rgba(167, 139, 255, 0.4); }

/* Replace logistics photos in service tiles with clean IT icons + gradient */
.it-site .service-media {
    background-image: none !important;
    background:
        radial-gradient(circle at 50% 38%, rgba(126, 228, 255, 0.16), transparent 62%),
        linear-gradient(135deg, rgba(22, 28, 60, 0.92), rgba(10, 14, 34, 0.96)) !important;
    filter: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.it-site .service-media::before {
    font-family: 'FontAwesome';
    font-size: 60px;
    line-height: 1;
    color: rgba(126, 228, 255, 0.55);
    text-shadow: 0 0 28px rgba(126, 228, 255, 0.3);
    transition: transform .4s ease, color .4s ease, text-shadow .4s ease;
}
.it-site .service-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(126, 228, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(167, 139, 255, 0.05) 1px, transparent 1px);
    background-size: 26px 26px;
    opacity: 0.5;
    pointer-events: none;
}
.it-site .service-media--sea::before { content: "\f109"; }      /* laptop — сайты */
.it-site .service-media--port::before { content: "\f0c0"; }      /* users — CRM */
.it-site .service-media--auto::before { content: "\f1e6"; }      /* plug — интеграции */
.it-site .service-media--customs::before { content: "\f085"; }   /* cogs — автоматизация */
.it-site .service-media--terminal::before { content: "\f10b"; }  /* mobile — PWA */
.it-site .service-media--project::before { content: "\f080"; }   /* bar-chart — аналитика */
.it-site .service-tile:hover .service-media::before {
    color: #ffffff;
    transform: scale(1.1);
    text-shadow: 0 0 34px rgba(126, 228, 255, 0.6);
}

@media (max-width: 1100px) {
    .pipe-board { min-height: 460px; }
    .pipe-widget--terminal { width: 120px; }
    .pipe-stage { width: 64px; }
    .pipe-name { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
    .pipe-grid, .pipe-track-flow, .pipe-packet::after,
    .pipe-widget--gears i, .term-line, .pipe-widget--chart i, .pipe-widget--cloud::after {
        animation: none !important;
    }
}
