/* =========================================================================
   Özellikler · hero (/ozellikler + /en/features) — 2026-11-17, kullanıcı onaylı prototip
   partials/features/hero.php · partials/features/hero-later.php (film şablonu) · js/features-hero.js
   "Bir kez değiştirin. Her yerde güncel." Hero görsel hikâye; açıklama + istatistik hemen altta (.fh-below + .feat-proof).
   Harita yerleşimi SAF CSS: düğümler cos()/sin() ile daire üzerinde, çizgiler döndürülmüş katman (betik gerekmez, CLS 0).
   Hareket yalnız transform / opacity. Site açık tema; bu koyu bir bölüm (prefers-color-scheme yok).
   ========================================================================= */
html { scrollbar-gutter: stable; }

.fh {
  --fh-nav: 147px;
  --ai: linear-gradient(135deg, #e61673 0%, #a855f7 55%, #6366f1 100%);
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center;
  min-height: min(100svh, 980px);
  padding: calc(var(--fh-nav) + clamp(1rem, 3vh, 2.5rem)) 0 clamp(2.5rem, 6vh, 4.5rem);
  color: #fff;
  background:
    radial-gradient(900px 620px at 72% 46%, rgba(99, 102, 241, .16), transparent 62%),
    radial-gradient(760px 560px at 25% 80%, rgba(230, 22, 115, .12), transparent 60%),
    linear-gradient(180deg, #120c19 0%, #0c0911 100%);
}
.fh svg.fhg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fh__in { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
.fh__txt { grid-column: 1 / span 6; }
.fh__eyb { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
/* position: relative = h1 her durumda kendi boyama katmanı: film bitip transform kalkınca metin üst kapsayıcıya "yeni" kayıt olarak
   katılıp LCP'yi film sonuna taşımasın (ölçüldü: 36.036 → 36.480 px², 8,5 sn). */
.fh__title { position: relative; margin: 20px 0 0; font: 800 clamp(46px, 4.5vw, 66px)/.98 var(--ff-display, "Inter Tight", sans-serif); letter-spacing: -.045em; color: #fff; }
.fh__title em { display: block; font-style: normal; background: var(--ai); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.fh__ctas { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.fh__lnk { font: 500 15px/1 var(--ff-body, Inter, sans-serif); color: rgba(255, 255, 255, .8); text-decoration: none; }
.fh__lnk:hover { color: #fff; }
.fh__lnk:focus-visible, .fh-nd:focus-visible, .fh-core:focus-visible, .fh__replay:focus-visible, .ff__skip:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ── canlı sistem haritası (masaüstü) ── */
.fh__map { grid-column: 7 / span 6; position: relative; height: 600px; container-type: size; --R: min(232px, calc(50cqw - 64px)); }
.fh-ln { position: absolute; left: 50%; top: 50%; width: calc(var(--R) - 30px); height: 1.5px; margin-top: -.75px; background: rgba(255, 255, 255, .1); transform-origin: 0 50%; transform: rotate(var(--a)); }
.fh-ln b { position: absolute; inset: 0; background: linear-gradient(90deg, #e61673, #a855f7, #6366f1); transform-origin: 0 50%; transform: scaleX(0); }
.fh-core { position: absolute; left: 50%; top: 50%; z-index: 2; width: 210px; transform: translate(-50%, -50%); padding: 16px; border-radius: 22px; background: #fff; color: #1a1424; text-align: center; text-decoration: none;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9), 0 0 60px -10px rgba(99, 102, 241, .5); }
.fh-core > i { width: 40px; height: 40px; margin: 0 auto; display: grid; place-items: center; border-radius: 12px; background: #1a1424; color: #fff; }
.fh-core > b { display: block; margin-top: 8px; font: 700 15px var(--ff-display, "Inter Tight", sans-serif); }
.fh-core .act { display: grid; justify-items: center; margin-top: 10px; }
.fh-core .act > span { grid-area: 1 / 1; padding: 6px 11px; border-radius: 99px; background: #fdeef5; color: #b0124f; font-size: 11.5px; font-weight: 700; white-space: nowrap; opacity: 0; }
.fh-core .act > span:first-child { opacity: 1; }
.fh-nd { position: absolute; z-index: 2; width: 124px; left: calc(50% + var(--R) * cos(var(--a))); top: calc(50% + var(--R) * sin(var(--a)));
  transform: translate(-50%, -26px); text-align: center; text-decoration: none; color: inherit; }
.fh-nd > i { position: relative; width: 52px; height: 52px; margin: 0 auto; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .03); color: rgba(255, 255, 255, .8); transition: border-color .2s ease; }
.fh-nd > i .gw { position: absolute; inset: -1px; border-radius: 50%; background: var(--ai); opacity: 0; box-shadow: 0 10px 26px -8px rgba(230, 22, 115, .8); }
.fh-nd > i svg { position: relative; }
.fh-nd:hover > i { border-color: rgba(255, 255, 255, .45); }
.fh-nd .lb { display: grid; margin-top: 8px; font-size: 12.5px; font-weight: 600; }
.fh-nd .lb > span, .fh-nd .st > span { grid-area: 1 / 1; white-space: nowrap; }
.fh-nd .lb .w { color: rgba(255, 255, 255, .62); }
.fh-nd:hover .lb .w { color: #fff; }
.fh-nd .lb .h { color: #fff; opacity: 0; }
.fh-nd .st { display: grid; height: 14px; margin-top: 2px; font-size: 10.5px; font-weight: 700; color: #7fe0a6; }
.fh-nd .st > span { opacity: 0; }
.fh__mapcap { position: absolute; left: 0; right: 0; bottom: -6px; margin: 0; text-align: center; font-size: 12px; color: rgba(255, 255, 255, .45); }
.fh__replay { position: absolute; right: 6px; bottom: -6px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); background: none; color: rgba(255, 255, 255, .72); font-size: 15px; cursor: pointer; }

/* ── film: başlık + panel + ışık dalgası; son düzen bekler ── */
.fh.is-film .fh__txt > *:not(.fh__title), .fh.is-film .fh__map { opacity: 0; }
.fh.is-film .fh__title { transform: var(--ff-t0, none); }
.fh.is-film .fh__map a, .fh.is-film .fh__map button { pointer-events: none; }
body:has(#ft-hero.is-film) :is(.wa-float, .qa-float-wrap, .panel-floating, .ck-notice) {
  opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; transition: none !important;
}
.ff__skip { position: absolute; z-index: 9; right: max(24px, calc(50% - 616px)); top: calc(min(100svh, 980px) - 56px); padding: 7px 14px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(18, 12, 25, .5); color: rgba(255, 255, 255, .78); font: 500 12px/1 var(--ff-body, Inter, sans-serif); cursor: pointer; }
.ff { position: absolute; left: 0; right: 0; top: var(--fh-nav); z-index: 4; pointer-events: none; visibility: hidden; font-family: var(--ff-body, Inter, sans-serif); }
.ff.on { visibility: visible; }
.ff > *, .ff__stage > * { position: absolute; }
.ff__stage { left: 0; top: 0; width: 100%; transform-origin: 50% 0; }
.ff-sys { width: 1100px; height: 600px; }
.ff-ln { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ff-ln path { fill: none; stroke: url(#fhg-gl); stroke-width: 1.8; stroke-linecap: round; }
.ff-sf { position: absolute; width: 176px; padding: 12px; border-radius: 16px; background: rgba(30, 20, 40, .82); opacity: 0;
  box-shadow: 0 0 0 1.5px rgba(230, 22, 115, .6), 0 0 30px -6px rgba(230, 22, 115, .5); }
.ff-sf .t { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: #fff; }
.ff-sf .t i { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: var(--ai); }
.ff-sf .t svg { width: 15px; height: 15px; }
.ff-sf .c { margin-top: 9px; font-size: 11.5px; line-height: 1.45; color: rgba(255, 255, 255, .66); }
.ff-sf .c b { color: #fff; font-weight: 600; }
.ff-sf .c i { font-style: normal; font-weight: 700; color: #7fe0a6; }
.ff-tile { display: none; }
.ff-pn { width: 460px; overflow: hidden; opacity: 0; border-radius: 24px; background: #fff; color: #1a1424; transform-origin: 50% 50%;
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .9), 0 0 70px -14px rgba(230, 22, 115, .45), 0 0 110px -30px rgba(99, 102, 241, .5); }
.ff-pn .hd { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #f0edf3; }
.ff-pn .hd b { font: 700 15px var(--ff-display, "Inter Tight", sans-serif); }
.ff-pn .hd span { font-size: 11px; color: #7d7586; }
.ff-pn .ctl { display: flex; gap: 8px; padding: 14px 20px; }
.ff-pn .ch { padding: 8px 12px; border-radius: 12px; background: #f5f3f8; font-size: 12.5px; font-weight: 600; color: #3b3346; }
.ff-pn .ch small { display: block; margin-bottom: 2px; font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #8a8293; }
.ff-pn .ap { position: relative; align-self: center; margin-left: auto; padding: 10px 18px; border-radius: 12px; background: #e61673; color: #fff; font-size: 13px; font-weight: 700; }
.ff-pn .tap { position: absolute; inset: -8px; border-radius: 16px; border: 2px solid rgba(230, 22, 115, .9); box-shadow: 0 0 0 8px rgba(230, 22, 115, .18); opacity: 0; }
.ff-pn ul { list-style: none; margin: 0; padding: 4px 20px 18px; }
.ff-pn li { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-top: 1px solid #f4f1f6; font-size: 14px; }
.ff-pn .pr { display: grid; justify-items: end; }
.ff-pn .pr > span { grid-area: 1 / 1; display: flex; align-items: center; gap: 8px; }
.ff-pn .n { opacity: 0; }
.ff-pn s { color: #9d95a6; font-size: 13px; }
.ff-pn li b { font: 700 15px var(--ff-display, "Inter Tight", sans-serif); }
.ff-pn .up { padding: 2px 7px; border-radius: 99px; background: #e9f7ee; color: #2a6e42; font-size: 10.5px; font-weight: 700; font-style: normal; }
.ff-cap { left: 0; right: 0; bottom: 56px; text-align: center; opacity: 0; }
.ff-cap .who { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .66); }
.ff-cap .who i { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--ai); color: #fff; }
.ff-cap .who svg { width: 12px; height: 12px; }
.ff-cap p { margin: 12px 0 0; font: 700 38px/1.05 var(--ff-display, "Inter Tight", sans-serif); letter-spacing: -.03em; color: #fff; }
.ff__prog { left: 50%; bottom: 24px; width: 120px; height: 2px; margin-left: -60px; border-radius: 2px; overflow: hidden; background: rgba(255, 255, 255, .14); }
.ff__prog i { position: absolute; inset: 0; background: #fff; transform-origin: 0 50%; transform: scaleX(0); }

/* ── hero'nun hemen altı: kırıntı + açıklama (istatistik şeridi .feat-proof hemen ardından) ── */
.fh-below { padding: clamp(2.2rem, 5vw, 3.5rem) 0 0; }
.fh-below .container--narrow { max-width: 860px; margin: 0 auto; padding-inline: 1.25rem; }
.fh-below .page-hero__breadcrumb { margin-bottom: 1.2rem; }
.fh-below__k { display: block; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--brand-magenta-deep, #c4145f); }
.fh-below__sub { margin: 12px 0 0; font-size: clamp(1.02rem, 1.4vw, 1.15rem); line-height: 1.65; color: var(--ink-d-70, #4a4a54); }
.fh-below__sub strong { color: var(--ink-d-100, #14141c); }

/* masaüstü: alçak ekranda harita ekrana sığacak kadar küçülür (tan(atan2()) oranı) */
@media (min-width: 980px) {
  .fh { --ps: min(1, tan(atan2(calc(100svh - var(--fh-nav) - 40px), 620px))); }
  .fh__map { transform: scale(var(--ps)); margin-block: calc((var(--ps) - 1) * 300px); }
}

/* ═══ telefon + tablet (≤ 979 px): başlık → düğme → panel → 3×3 alan ═══ */
@media (max-width: 979px) {
  .fh { align-items: flex-start; min-height: 0; }
  .fh__in { display: block; padding: 0 20px; }
  .fh__eyb { font-size: 11px; }
  .fh__title { font-size: clamp(42px, 11.6vw, 58px); margin-top: 16px; }
  .fh__ctas { flex-direction: column; align-items: stretch; gap: 16px; margin-top: 28px; }
  .fh__ctas .btn { justify-content: center; text-align: center; }
  .fh__lnk { text-align: center; }
  .fh__map { height: auto; margin-top: 40px; container-type: normal; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 6px; }
  .fh-ln { display: none; }
  .fh-core { position: relative; left: auto; top: auto; transform: none; grid-column: 1 / -1; width: 240px; margin: 0 auto 12px; }
  .fh-nd { position: relative; left: auto; top: auto; transform: none; width: auto; }
  .fh__mapcap { position: static; grid-column: 1 / -1; margin-top: 4px; }
  .fh__replay { position: static; grid-column: 1 / -1; justify-self: center; }
  .ff-pn { width: 340px; }
  .ff-pn .ctl { padding: 12px 14px; gap: 6px; }
  .ff-pn .ch { font-size: 11.5px; padding: 7px 9px; }
  .ff-pn .ap { padding: 9px 12px; }
  .ff-pn ul { padding: 2px 16px 14px; }
  .ff-pn li { font-size: 13px; padding: 9px 0; }
  .ff-sys { width: 390px; }
  .ff-ln, .ff-sf { display: none; }
  .ff-tile { position: absolute; display: block; width: 112px; padding: 10px 6px; border-radius: 14px; text-align: center; opacity: 0;
    background: rgba(30, 20, 40, .82); box-shadow: 0 0 0 1.5px rgba(230, 22, 115, .55), 0 0 24px -6px rgba(230, 22, 115, .45); }
  .ff-tile i { width: 30px; height: 30px; margin: 0 auto; display: grid; place-items: center; border-radius: 9px; background: var(--ai); }
  .ff-tile svg { width: 16px; height: 16px; }
  .ff-tile b { display: block; margin-top: 6px; font-size: 10.5px; font-weight: 700; }
  .ff-tile span { display: block; margin-top: 3px; font-size: 10px; font-weight: 700; color: #7fe0a6; }
  .ff-tile.dim { background: rgba(255, 255, 255, .03); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); }
  .ff-tile.dim i { background: rgba(255, 255, 255, .08); }
  .ff-tile.dim b { color: rgba(255, 255, 255, .5); }
  .ff-cap { bottom: 86px; }
  .ff-cap p { font-size: 30px; }
  .ff-cap .who { font-size: 11px; }
}
@media (max-width: 960px) { .fh { --fh-nav: 89px; } }
@media (max-width: 360px) { .fh__map { gap: 16px 2px; } .fh-nd .lb { font-size: 11.5px; } }
