/* =========================================================================
   ANA SAYFA · Hero "Vitrin" (2026-09-27) — partials/home/hero.php
   Eski sinema bloğunun (cinema.css, 1.077 satır, 200vh yapışkan sahne) yerine.

   Kurallar
   · İçerik menü çubuğunun ALTINDAN başlar: üst boşluk = menü yüksekliği (--hxh-nav).
     Dikey ortalama hiçbir ekran boyunda içeriği menünün altına itmez.
   · Başlık hem genişliğe hem yüksekliğe göre ölçeklenir (vw + vh) — alçak laptop
     ekranlarında taşmaz.
   · Telefonda menü önizleme videosu; kaydırmaya bağlı hiçbir hareket yok.
   · Büyük yüzeylerde cam efekti yok; light-only (dark media query YOK).
   ========================================================================= */

.hxh {
  --hxh-nav: 147px;
  --dev-w: clamp(220px, min(21vw, calc((100svh - 250px) * 0.478)), 312px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: min(100svh, 980px);
  padding: calc(var(--hxh-nav) + clamp(1rem, 3.2vh, 2.75rem)) 0 clamp(2.5rem, 6vh, 4.5rem);
  background: var(--bg-0, #070709);
  color: #fff;
}
.hxh__glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(640px 520px at 76% 46%, rgba(230, 22, 115, 0.26), transparent 62%),
    radial-gradient(760px 560px at 12% 18%, rgba(120, 40, 200, 0.2), transparent 64%),
    radial-gradient(900px 300px at 50% 108%, rgba(230, 22, 115, 0.18), transparent 70%),
    linear-gradient(180deg, #0b0910 0%, #070709 60%, #050407 100%);
}
.hxh__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5.5rem);
  width: 100%;
}

/* ── Metin ──────────────────────────────────────────────────────────── */
.hxh__copy { display: flex; flex-direction: column; align-items: flex-start; max-width: 42rem; min-width: 0; }
.hxh__title {
  margin: 0;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(2.35rem, min(5.3vw, 7.9vh), 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: #fff;
}
.hxh__title .accent {
  background: var(--grad-text-magenta);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hxh__sub {
  margin: clamp(1rem, 2.6vh, 1.6rem) 0 0;
  max-width: 36rem;
  font-size: clamp(1rem, 0.35vw + 0.9rem, 1.18rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.74);
}
.hxh__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: clamp(1.25rem, 3.2vh, 2rem); }
.hxh__ctas .btn--lg { padding: 1rem 1.6rem; }

/* Yönetici kısayolu (eski cinema.css'ten) */
.hero-panel-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: clamp(0.9rem, 2.2vh, 1.35rem);
  padding: 0.5rem 0.95rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.85rem; text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.3s var(--ease-premium);
}
.hero-panel-chip svg { width: 16px; height: 16px; color: var(--brand-magenta); flex: none; }
.hero-panel-chip strong { color: #fff; font-weight: 600; }
.hero-panel-chip:hover {
  background: linear-gradient(120deg, rgba(230, 22, 115, 0.2), rgba(176, 60, 255, 0.2));
  border-color: rgba(230, 22, 115, 0.4); color: #fff; transform: translateY(-2px);
}
.hxh .hero-proof { margin-top: clamp(1rem, 2.6vh, 1.6rem); }

/* Ertelenen bileşenler kendi CSS'leri gelene dek görünmez (eski cinema.css'ten). */
.qa-float-wrap, .panel-floating, .lead-modal, .qa { visibility: hidden; }

/* Giriş: başlık hemen görünür (en büyük içerik boyaması), gerisi kısa bir yükselişle. */
@keyframes hxh-rise { from { opacity: 0; transform: translateY(14px); } }
.hxh__sub, .hxh__ctas, .hxh .hero-panel-chip, .hxh .hero-proof, .hxh__stage {
  animation: hxh-rise 0.8s var(--ease-premium) both;
}
.hxh__sub { animation-delay: 0.08s; }
.hxh__ctas { animation-delay: 0.16s; }
.hxh .hero-panel-chip { animation-delay: 0.24s; }
.hxh .hero-proof { animation-delay: 0.3s; }
.hxh__stage { animation-delay: 0.12s; }

/* ── Telefon (ortak cihaz — misafir bölümü de kullanır) ─────────────── */
.qx-device {
  --w: var(--dev-w, 300px);
  position: relative;
  flex: none;
  width: var(--w);
  padding: calc(var(--w) * 0.034);
  border-radius: calc(var(--w) * 0.17);
  background: linear-gradient(150deg, #3a3a42 0%, #121216 22%, #0a0a0d 60%, #1f1f25 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    inset 0 0 0 calc(var(--w) * 0.014) #050507,
    0 60px 110px -40px rgba(0, 0, 0, 0.9),
    0 34px 70px -34px rgba(230, 22, 115, 0.45);
}
.qx-device::before,
.qx-device::after {
  content: ""; position: absolute; width: 3px; border-radius: 2px;
  background: linear-gradient(90deg, #17171c, #44444c);
}
.qx-device::before { right: -2px; top: 25%; height: 12%; }
.qx-device::after {
  left: -2px; top: 19%; height: 6.5%;
  box-shadow: 0 calc(var(--w) * 0.19) 0 #2a2a31, 0 calc(var(--w) * 0.35) 0 #2a2a31;
}
.qx-device__screen {
  position: relative;
  aspect-ratio: 390 / 844;
  overflow: hidden;
  border-radius: calc(var(--w) * 0.14);
  background: #000;
  isolation: isolate;
}
.qx-device__screen::after {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.02) 30%, transparent 42%);
}
.qx-device__island {
  position: absolute; z-index: 5; top: calc(var(--w) * 0.03); left: 50%;
  width: 31%; height: calc(var(--w) * 0.088);
  transform: translateX(-50%);
  border-radius: 999px; background: #000;
}

/* ── Telefon: kapak görseli + menü videosu ─────────────────────────── */
.hxh__stage { display: flex; justify-content: center; min-width: 0; }
.hxh__poster,
.hxh__video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.hxh__video { z-index: 1; opacity: 0; transition: opacity 0.6s ease; }
.hxh__video[data-ready="true"] { opacity: 1; }

/* ── Menü üst şeridi 960 px altında gizli ───────────────────────────── */
@media (max-width: 960px) { .hxh { --hxh-nav: 89px; } }

/* ── Tablet + telefon: tek sütun ────────────────────────────────────── */
@media (max-width: 979px) {
  .hxh { --dev-w: min(62vw, 280px); min-height: 0; padding-bottom: 3.5rem; }
  .hxh__grid { grid-template-columns: minmax(0, 1fr); gap: 2.75rem; }
  .hxh__title { font-size: clamp(2.3rem, 10.4vw, 3.6rem); }
}
@media (max-width: 480px) {
  .hxh__ctas { width: 100%; }
  .hxh__ctas .btn--lg { flex: 1 1 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .hxh__sub, .hxh__ctas, .hxh .hero-panel-chip, .hxh .hero-proof, .hxh__stage { animation: none; }
}
