.gti {
    --gti-navy: #0d1d38;
    --gti-blue: #2d72c9;
    --gti-green: #76a95a;
    --gti-purple: #8b5aa7;
    --gti-gold: #d3b205;
    --gti-panel: rgba(255, 255, 255, 0.92);
    color: var(--gti-navy);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    margin: 32px auto;
    max-width: 1440px;
}

.gti *,
.gti *::before,
.gti *::after {
    box-sizing: border-box;
}

.gti__bar {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 14px;
}

.gti__title {
    color: var(--gti-navy);
    font-size: clamp(22px, 3vw, 38px);
    font-weight: 800;
    line-height: 1.08;
    margin: 0;
    text-transform: uppercase;
}

.gti__controls {
    align-items: center;
    background: #eef2f8;
    border: 1px solid #d8e0ed;
    border-radius: 8px;
    display: flex;
    flex: 0 0 auto;
    gap: 4px;
    padding: 4px;
}

.gti__mode {
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: #41516c;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    padding: 10px 12px;
}

.gti__mode.is-active {
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(23, 39, 65, 0.12);
    color: var(--gti-navy);
}

.gti__stage {
    background:
        radial-gradient(circle at 54% 40%, rgba(255, 170, 57, 0.16), transparent 18%),
        linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
    border: 1px solid #d9e1ec;
    border-radius: 8px;
    box-shadow: 0 18px 55px rgba(19, 35, 58, 0.12);
    overflow: hidden;
    padding: clamp(12px, 2vw, 22px);
    position: relative;
}

.gti__machine {
    aspect-ratio: 1388 / 390;
    min-height: 260px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.gti__image {
    display: block;
    height: 100%;
    object-fit: contain;
    position: relative;
    width: 100%;
    z-index: 2;
}

.gti__shaft,
.gti__rotor-shaft,
.gti__blade-pack,
.gti__blade-disc,
.gti__spin,
.gti__combustion,
.gti__flame,
.gti__flow,
.gti__focus {
    pointer-events: none;
    position: absolute;
}

.gti__rotor-shaft {
    animation: gti-shaft-roll 0.42s linear infinite;
    background:
        repeating-linear-gradient(90deg, rgba(255,255,255,0.5) 0 8px, rgba(90,96,100,0.18) 9px 17px, rgba(255,255,255,0.22) 18px 27px),
        linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.44) 42%, rgba(80,86,92,0.28) 56%, rgba(255,255,255,0));
    border-radius: 999px;
    filter: blur(0.2px) drop-shadow(0 0 5px rgba(255,255,255,0.45));
    height: 13%;
    left: 43.5%;
    mix-blend-mode: screen;
    opacity: 0.7;
    top: 45%;
    width: 36.5%;
    z-index: 5;
}

.gti__shaft {
    animation: gti-shimmer 1.8s linear infinite;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    height: 18%;
    left: 43%;
    opacity: 0.65;
    top: 42%;
    transform: skewX(-18deg);
    width: 35%;
    z-index: 4;
}

.gti__blade-pack {
    mix-blend-mode: screen;
    overflow: hidden;
    z-index: 6;
}

.gti__blade-pack::before,
.gti__blade-pack::after {
    content: "";
    inset: 0;
    position: absolute;
}

.gti__blade-pack::before {
    animation: gti-blade-run 0.32s linear infinite;
    background:
        repeating-linear-gradient(90deg, transparent 0 10px, rgba(255,255,255,0.34) 11px 14px, rgba(65,72,80,0.16) 15px 22px, transparent 23px 34px);
    filter: blur(0.7px);
    opacity: 0.8;
}

.gti__blade-pack::after {
    background: linear-gradient(180deg, transparent 0 12%, rgba(255,255,255,0.45) 42%, rgba(255,255,255,0.1) 54%, transparent 86%);
    opacity: 0.55;
}

.gti__blade-pack--compressor {
    border-radius: 49% 51% 47% 53%;
    clip-path: polygon(3% 18%, 96% 5%, 100% 50%, 96% 94%, 3% 82%, 0 50%);
    height: 55%;
    left: 20.5%;
    top: 23%;
    width: 25%;
}

.gti__blade-pack--turbine {
    border-radius: 50%;
    clip-path: polygon(6% 15%, 86% 6%, 100% 50%, 86% 94%, 6% 85%, 0 50%);
    height: 50%;
    left: 68.2%;
    top: 26%;
    width: 15%;
}

.gti__blade-pack--turbine::before {
    animation-duration: 0.22s;
    background:
        repeating-linear-gradient(90deg, transparent 0 8px, rgba(255,255,255,0.42) 9px 13px, rgba(122,54,145,0.2) 14px 24px, transparent 25px 34px);
}

.gti__blade-disc {
    border-radius: 50%;
    mix-blend-mode: screen;
    opacity: 0.62;
    z-index: 7;
}

.gti__blade-disc::before {
    animation: gti-spin 0.28s linear infinite;
    background:
        repeating-conic-gradient(from 0deg, rgba(255,255,255,0.62) 0deg 7deg, rgba(98,106,112,0.1) 8deg 16deg, transparent 17deg 25deg),
        radial-gradient(circle, transparent 0 18%, rgba(255,255,255,0.14) 19% 44%, transparent 45% 100%);
    border-radius: inherit;
    content: "";
    inset: 0;
    position: absolute;
}

.gti__blade-disc--front {
    height: 30%;
    left: 3.1%;
    top: 35%;
    width: 8.5%;
}

.gti__blade-disc--compressor {
    height: 48%;
    left: 31.6%;
    top: 27%;
    width: 13%;
}

.gti__blade-disc--turbine-a {
    height: 46%;
    left: 68.4%;
    top: 27%;
    width: 11%;
}

.gti__blade-disc--turbine-b {
    height: 41%;
    left: 76.2%;
    opacity: 0.52;
    top: 30%;
    width: 9.5%;
}

.gti__blade-disc--turbine-a::before,
.gti__blade-disc--turbine-b::before {
    animation-duration: 0.2s;
    animation-direction: reverse;
    background:
        repeating-conic-gradient(from 0deg, rgba(255,255,255,0.68) 0deg 9deg, rgba(142,75,169,0.16) 10deg 19deg, transparent 20deg 31deg),
        radial-gradient(circle, transparent 0 20%, rgba(255,255,255,0.15) 21% 48%, transparent 49% 100%);
}

.gti__spin {
    border: 3px dashed rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    filter: drop-shadow(0 0 14px rgba(255,255,255,0.8));
    z-index: 5;
}

.gti__spin--compressor {
    animation: gti-spin 0.55s linear infinite;
    height: 66%;
    left: 20%;
    top: 18%;
    width: 24%;
}

.gti__spin--turbine {
    animation: gti-spin 0.38s linear infinite reverse;
    height: 58%;
    left: 67%;
    top: 22%;
    width: 16%;
}

.gti__combustion {
    animation: gti-flame 1.1s ease-in-out infinite;
    background:
        radial-gradient(ellipse at 40% 50%, rgba(255, 246, 162, 0.9), rgba(255, 153, 43, 0.55) 38%, rgba(190, 41, 17, 0.16) 62%, transparent 75%);
    border-radius: 46% 54% 48% 52%;
    filter: blur(2px) saturate(1.2);
    height: 31%;
    left: 50.5%;
    mix-blend-mode: screen;
    top: 24%;
    width: 12%;
    z-index: 6;
}

.gti__flame {
    mix-blend-mode: screen;
    z-index: 7;
}

.gti__flame--core {
    animation: gti-flame-core 0.72s ease-in-out infinite;
    background:
        linear-gradient(90deg, transparent 0%, rgba(255, 235, 130, 0.84) 22%, rgba(255, 105, 21, 0.62) 58%, rgba(190, 38, 18, 0.06) 100%),
        repeating-linear-gradient(100deg, transparent 0 14px, rgba(255,255,255,0.36) 15px 18px, transparent 19px 36px);
    border-radius: 52% 45% 58% 42%;
    filter: blur(1.4px);
    height: 20%;
    left: 49.5%;
    top: 30%;
    transform-origin: 8% 50%;
    width: 13.5%;
}

.gti__flame--wash {
    animation: gti-flame-wash 1.35s ease-in-out infinite;
    background: radial-gradient(ellipse at 28% 50%, rgba(255, 192, 60, 0.36), rgba(255, 86, 23, 0.2) 46%, transparent 72%);
    border-radius: 999px;
    filter: blur(5px);
    height: 34%;
    left: 48.2%;
    top: 22%;
    width: 18%;
}

.gti__flow {
    background-size: 120px 100%;
    height: 18%;
    left: 4%;
    opacity: 0.76;
    top: 41%;
    width: 88%;
    z-index: 9;
}

.gti__flow--air {
    animation: gti-flow 1.75s linear infinite;
    background-image:
        radial-gradient(circle, rgba(112, 183, 255, 0.86) 0 2px, transparent 3px),
        linear-gradient(90deg, transparent, rgba(74, 148, 230, 0.22), transparent);
    clip-path: polygon(0 36%, 32% 23%, 43% 32%, 49% 45%, 42% 61%, 31% 74%, 0 62%);
    filter: drop-shadow(0 0 5px rgba(76, 158, 235, 0.55));
}

.gti__flow--air-fast {
    animation: gti-flow 0.98s linear infinite;
    background-image:
        radial-gradient(circle, rgba(210, 239, 255, 0.9) 0 1px, transparent 2px),
        repeating-linear-gradient(94deg, transparent 0 18px, rgba(83, 159, 236, 0.34) 20px 24px, transparent 26px 52px);
    clip-path: polygon(0 44%, 35% 32%, 48% 45%, 35% 58%, 0 55%);
    height: 12%;
    opacity: 0.62;
    top: 44%;
}

.gti__flow--hot {
    animation: gti-flow 0.86s linear infinite;
    background-image:
        radial-gradient(circle, rgba(255, 205, 85, 0.92) 0 2px, transparent 3px),
        repeating-linear-gradient(96deg, transparent 0 16px, rgba(255, 99, 29, 0.32) 18px 24px, transparent 26px 50px);
    clip-path: polygon(49% 31%, 70% 23%, 87% 28%, 100% 48%, 88% 72%, 70% 78%, 49% 65%);
    filter: drop-shadow(0 0 8px rgba(255, 117, 28, 0.68));
}

.gti__flow--hot-fast {
    animation: gti-flow 0.54s linear infinite;
    background-image:
        radial-gradient(circle, rgba(255, 247, 168, 0.95) 0 1px, transparent 2px),
        linear-gradient(90deg, transparent 48%, rgba(255, 124, 28, 0.34), transparent);
    clip-path: polygon(50% 42%, 68% 35%, 93% 42%, 100% 50%, 93% 59%, 68% 65%, 50% 57%);
    height: 12%;
    opacity: 0.7;
    top: 44%;
}

.gti__focus {
    --focus-x: 17%;
    --focus-y: 23%;
    background: radial-gradient(circle, rgba(255,255,255,0.95), rgba(75, 150, 226, 0.28) 36%, transparent 68%);
    border-radius: 999px;
    height: 24%;
    left: var(--focus-x);
    opacity: 0;
    top: var(--focus-y);
    transform: translate(-50%, -50%) scale(0.86);
    transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
    width: 12%;
    z-index: 8;
}

.gti.has-active .gti__focus {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.gti[data-mode="coatings"] .gti__flow,
.gti[data-mode="coatings"] .gti__spin,
.gti[data-mode="coatings"] .gti__blade-pack,
.gti[data-mode="coatings"] .gti__blade-disc,
.gti[data-mode="coatings"] .gti__rotor-shaft {
    opacity: 0.28;
}

.gti[data-mode="thermal"] .gti__flow--air {
    opacity: 0.18;
}

.gti[data-mode="thermal"] .gti__combustion {
    filter: blur(1px) saturate(1.3);
    transform: scale(1.1);
}

.gti__hotspot {
    --tone: var(--gti-blue);
    align-items: center;
    background: var(--tone);
    border: 2px solid #ffffff;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(13, 29, 56, 0.26), 0 0 0 5px rgba(255,255,255,0.42);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    font: inherit;
    font-size: clamp(12px, 1.5vw, 16px);
    font-weight: 800;
    height: clamp(28px, 3vw, 42px);
    justify-content: center;
    left: var(--x);
    line-height: 1;
    padding: 0;
    position: absolute;
    top: var(--y);
    transform: translate(-50%, -50%);
    transition: transform 160ms ease, box-shadow 160ms ease;
    width: clamp(28px, 3vw, 42px);
    z-index: 12;
}

.gti__hotspot::after {
    animation: gti-pulse 1.7s ease-out infinite;
    border: 1px solid var(--tone);
    border-radius: inherit;
    content: "";
    inset: -8px;
    opacity: 0.55;
    position: absolute;
}

.gti__hotspot:hover,
.gti__hotspot:focus-visible,
.gti__hotspot.is-active {
    box-shadow: 0 10px 22px rgba(13, 29, 56, 0.36), 0 0 0 7px rgba(255,255,255,0.62);
    outline: 0;
    transform: translate(-50%, -50%) scale(1.16);
}

.gti__hotspot--green { --tone: var(--gti-green); }
.gti__hotspot--blue { --tone: var(--gti-blue); }
.gti__hotspot--purple { --tone: var(--gti-purple); }
.gti__hotspot--gold { --tone: var(--gti-gold); }

.gti__card {
    align-items: flex-start;
    background: var(--gti-panel);
    border: 1px solid rgba(13, 29, 56, 0.14);
    border-radius: 8px;
    bottom: clamp(12px, 2vw, 22px);
    box-shadow: 0 18px 45px rgba(13, 29, 56, 0.2);
    display: grid;
    gap: 14px;
    grid-template-columns: 42px 1fr;
    left: clamp(12px, 2vw, 22px);
    max-width: min(470px, calc(100% - 24px));
    padding: 16px;
    position: absolute;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px) scale(0.98);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
    visibility: hidden;
    z-index: 20;
}

.gti__card.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    visibility: visible;
}

.gti__card.is-changing {
    opacity: 0;
    transform: translateY(8px);
}

.gti__card-number {
    align-items: center;
    background: var(--gti-blue);
    border-radius: 7px;
    color: #ffffff;
    display: flex;
    font-size: 22px;
    font-weight: 900;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.gti__card h3 {
    color: var(--gti-navy);
    font-size: 18px;
    line-height: 1.2;
    margin: 0 0 8px;
}

.gti__card p {
    color: #172742;
    font-size: 14px;
    line-height: 1.35;
    margin: 5px 0 0;
}

.gti__legend {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-top: 14px;
}

.gti__legend span {
    align-items: center;
    color: #263955;
    display: inline-flex;
    font-size: 14px;
    gap: 8px;
}

.gti__swatch {
    border-radius: 2px;
    display: inline-block;
    height: 8px;
    width: 30px;
}

.gti__swatch--green { background: var(--gti-green); }
.gti__swatch--purple { background: var(--gti-purple); }
.gti__swatch--blue { background: var(--gti-blue); }
.gti__swatch--gold { background: var(--gti-gold); }

@keyframes gti-spin {
    to { transform: rotate(360deg); }
}

@keyframes gti-flow {
    to { background-position: 120px 0; }
}

@keyframes gti-blade-run {
    to { background-position: 44px 0; }
}

@keyframes gti-shaft-roll {
    to { background-position: 54px 0, 0 0; }
}

@keyframes gti-pulse {
    0% { opacity: 0.55; transform: scale(0.76); }
    100% { opacity: 0; transform: scale(1.45); }
}

@keyframes gti-flame {
    0%, 100% { opacity: 0.68; transform: scale(0.94) translateX(-1%); }
    50% { opacity: 1; transform: scale(1.1) translateX(1%); }
}

@keyframes gti-flame-core {
    0%, 100% { opacity: 0.72; transform: scaleX(0.86) scaleY(0.92) skewX(-4deg); }
    45% { opacity: 1; transform: scaleX(1.12) scaleY(1.05) skewX(3deg); }
}

@keyframes gti-flame-wash {
    0%, 100% { opacity: 0.38; transform: translateX(-2%) scale(0.96); }
    50% { opacity: 0.74; transform: translateX(3%) scale(1.08); }
}

@keyframes gti-shimmer {
    to { transform: translateX(70%) skewX(-18deg); }
}

@media (max-width: 860px) {
    .gti__bar {
        align-items: flex-start;
        flex-direction: column;
    }

    .gti__controls {
        overflow-x: auto;
        width: 100%;
    }

    .gti__machine {
        min-height: 430px;
    }

    .gti__image {
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .gti__card {
        grid-template-columns: 36px 1fr;
        left: 12px;
        right: 12px;
        max-width: none;
    }

    .gti__card-number {
        font-size: 18px;
        height: 36px;
        width: 36px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gti__shaft,
    .gti__rotor-shaft,
    .gti__blade-pack::before,
    .gti__blade-disc::before,
    .gti__spin,
    .gti__combustion,
    .gti__flame,
    .gti__flow,
    .gti__hotspot::after {
        animation: none;
    }
}
