/* ============================================
   Bulut Sunucu hero görseli (pages/cloud/hero-viz). Kalıbın görsel kutusuna family 'custom' ile oturur; kutu oranı standart 460 x 288.
   Sahne 830 x 530 yerel pikseldir (.clh-stage): raster (images/cloud/hero.webp, 556 x 530) x = 140'tan başlar, bulut adı ve dört
   özellik etiketi örnekteki yerlerinde HTML olarak durur, bağlantı çizgileri SVG'dir.
   961 px ve üstünde sahne kutunun yüksekliğine sığar: ölçek = kutu yüksekliği / 530 = 100cqw / 846.5px (kutu 460 x 288 oranında),
   yatayda ortalanır. Uzunluğu sayıya çevirmek için tan(atan2(a, b)) = a / b; tanımayan tarayıcıda sabit ölçek (1440 kutusu) kalır.
   Kutu 440 px'ten darsa etiketler ve çizgiler gizlenir (yazı ~10 px altına iner).
   960 px ve altında kalıp görsel bandı alçaktır: etiketler ve çizgiler gizlenir, raster bandın yüksekliğine sığıp ortalanır.
   ============================================ */
.pk-hero .clh-viz { aspect-ratio: 460 / 288; container-type: inline-size; }
.clh-sc { position: relative; width: 100%; height: 100%; }
.clh-stage {
    position: absolute; left: 50%; top: 0; width: 830px; height: 530px; transform-origin: 0 0;
    --clh-s: .5434; --clh-cx: 415px;
    transform: scale(var(--clh-s)) translateX(calc(-1 * var(--clh-cx)));
    font-family: var(--hm-display); color: #fff;
}
@supports (transform: scale(tan(atan2(100cqw, 846.5px)))) {
    .clh-stage { --clh-s: tan(atan2(100cqw, 846.5px)); }
}
.clh-img { position: absolute; left: 140px; top: 0; display: block; width: 556px; height: 530px; transition: filter .6s var(--hm-ease); }
.clh-viz:hover .clh-img, .pk-hero:has(.pk-btn:focus-visible) .clh-img { filter: brightness(1.1) saturate(1.08); transition-duration: .35s; }

/* Bulut içindeki ad: rasterde silinen yazının yerinde */
.clh-name {
    position: absolute; left: 418px; top: 141px; transform: translate(-50%, -50%); white-space: nowrap;
    font: 700 29px/1 var(--hm-display); letter-spacing: -.01em; color: #f4f9ff;
    text-shadow: 0 0 14px rgb(90 170 255 / .55), 0 1px 2px rgb(4 24 48 / .6);
}

/* Bağlantı çizgileri */
.clh-lines { position: absolute; inset: 0; width: 830px; height: 530px; overflow: visible; }
.clh-lines path { fill: none; stroke: #5fb4ff; stroke-opacity: .55; stroke-width: 1.6; stroke-dasharray: 3 4; stroke-linecap: round; }
.clh-lines circle { fill: #8fd0ff; }

/* Yüzen özellik etiketleri */
.hs-viz.clh-viz .clh-chips { margin: 0; padding: 0; list-style: none; }
.clh-chips li {
    position: absolute; display: flex; align-items: center; gap: 14px; min-height: 70px; box-sizing: border-box; padding: 11px 20px 11px 16px;
    border: 1.5px solid rgb(120 190 255 / .42); border-radius: 12px; background: rgb(12 38 70 / .78);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .08), 0 14px 30px -16px rgb(0 0 0 / .7), 0 0 22px -8px rgb(60 150 240 / .45);
    font: 600 19px/1.18 var(--hm-display); letter-spacing: -.01em; white-space: nowrap;
}
.clh-chips .pk-i { flex: 0 0 auto; width: 30px; height: 30px; color: #4fb0f2; }
.clh-chips li:nth-child(1) { left: 31px; top: 103px; }
.clh-chips li:nth-child(2) { left: 4px; top: 259px; }
.clh-chips li:nth-child(3) { right: 6px; top: 105px; }
.clh-chips li:nth-child(4) { right: 14px; top: 245px; }

/* Dar kutuda (ör. 1024 px'te 320 px) etiket yazısı okunamayacak kadar küçülür (19 px x kutu / 846.5): etiketler ve çizgiler gizlenir */
@container (max-width: 440px) {
    .clh-chips, .clh-lines { display: none; }
}
@media (max-width: 960px) {
    .pk-hero .clh-viz { width: 100%; height: 100cqh; aspect-ratio: auto; container-type: size; }
    .clh-stage { top: 50%; --clh-s: .5; --clh-cx: 418px; transform: scale(var(--clh-s)) translate(calc(-1 * var(--clh-cx)), -265px); }
    .clh-chips, .clh-lines { display: none; }
}
@media (max-width: 960px) {
    @supports (transform: scale(tan(atan2(100cqh, 530px)))) {
        .clh-stage { --clh-s: min(tan(atan2(100cqh, 530px)), tan(atan2(100cqw, 556px))); }
    }
}
@media (prefers-reduced-motion: reduce) { .clh-img { transition: none; } }

/* Hero zemini: örnekten üretilen sunucu odası (images/cloud/hero-bg.webp, 1774 x 803; yazılar, 3D sahne ve etiketler silinip doldurulmuş,
   sağdaki bulanık raf ışıkları ve zemin çizgileri örneğin kendi pikselleri). Ortak nokta deseni (.hs-scene) bu sayfada kullanılmaz;
   zemin hero'nun tamamını kaplar, raf ışıkları geniş ekranda sağ kenara dayanır. 960 px ve altında üstüne koyu geçiş biner (yazı okunurluğu). */
.pk-hero:has(.clh-viz) { background: url("../images/cloud/hero-bg.webp?v=1") right center / cover no-repeat, var(--hm-navy-950); }
.pk-hero:has(.clh-viz) .hs-scene { display: none; }
@media (max-width: 960px) {
    .pk-hero:has(.clh-viz) {
        background: linear-gradient(180deg, rgb(4 17 34 / .2), rgb(4 17 34 / .78) 38%, rgb(4 17 34 / .9)),
            url("../images/cloud/hero-bg.webp?v=1") right top / auto 100% no-repeat, var(--hm-navy-950);
    }
}
