/* Perspektif — hareket katmanı (panel → Ayarlar → Animasyonlar ile kapatılabilir).
   Yalnız JS çalışıyorsa (html.js-hareket) başlangıç gizlemeleri uygulanır; JS yoksa içerik hep görünür.
   prefers-reduced-motion: tüm hareket kapanır. */

:root { --yumusak: cubic-bezier(.2, .7, .2, 1); --zipla: cubic-bezier(.34, 1.4, .5, 1); }

/* ---------- Sayfa açılışı */
@keyframes sayfa-ac { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Üst menü: kaydırınca incelir, altın kıl çizgi */
.ust { transition: background-color .3s, box-shadow .3s; }
.ust-ic { transition: height .3s var(--yumusak); }
.ust::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--yumusak); opacity: .7; }
.ust.kaydi::after { transform: scaleX(1); }
.ust.kaydi { background: rgba(20, 27, 51, .94); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .5); }
@media (min-width: 1024px) { .ust.kaydi .ust-ic { height: 60px; } }
.logo img:first-child { transition: transform .5s var(--zipla); }
.logo:hover img:first-child { transform: rotate(-6deg) scale(1.06); }
@media (min-width: 1200px) {
  .ana-menu a::before { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; background: var(--beyaz); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--yumusak); opacity: .5; }
  .ana-menu a:hover::before { transform: scaleX(1); transform-origin: left; }
  .ana-menu a:hover { background: transparent; }
}
@keyframes cizgi-ac { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* Mobil menü: kalemler sırayla kayarak gelir */
@media (max-width: 1199px) {
  .menu-acik .ana-menu { animation: menu-ac .35s var(--yumusak) both; }
  .menu-acik .ana-menu li { animation: yukari-gel .5s var(--yumusak) both; }
  .menu-acik .ana-menu li:nth-child(2) { animation-delay: .04s; } .menu-acik .ana-menu li:nth-child(3) { animation-delay: .08s; }
  .menu-acik .ana-menu li:nth-child(4) { animation-delay: .12s; } .menu-acik .ana-menu li:nth-child(5) { animation-delay: .16s; }
  .menu-acik .ana-menu li:nth-child(6) { animation-delay: .2s; } .menu-acik .menu-alt { animation: yukari-gel .5s .26s var(--yumusak) both; }
}
@keyframes menu-ac { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes yukari-gel { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.menu-dugme svg { transition: transform .3s var(--yumusak); }
.menu-acik .menu-dugme svg { transform: rotate(90deg); }

/* ---------- Butonlar ve bağlantılar */
.btn { position: relative; overflow: hidden; transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--yumusak); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-birincil::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); transition: left .7s var(--yumusak); }
.btn-birincil:hover::after { left: 130%; }
.btn-ikincil-koyu:hover, .btn-ikincil:hover { transform: translateY(-1px); }
.ok-baglanti svg { transition: transform .3s var(--yumusak); }
a.ok-baglanti:hover svg, .kart:hover .ok-baglanti svg { transform: translateX(5px); }
.okuma a:not(.btn), .yazi-govde a, .metin-sayfasi a { background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 2px no-repeat; transition: background-size .35s var(--yumusak); }
.okuma a:not(.btn):hover, .yazi-govde a:hover, .metin-sayfasi a:hover { background-size: 100% 2px; text-decoration-color: transparent; }

/* ---------- Giriş */
.harita-kutu picture { animation: harita-nefes 28s ease-in-out infinite alternate; transform-origin: 55% 50%; }
@keyframes harita-nefes { from { transform: scale(1); } to { transform: scale(1.045) translateX(-0.6%); } }
.harita-kutu { will-change: transform; transform: translate(-50%, calc(-50% + var(--py, 0px))); }
.giris .overline { position: relative; padding-left: 44px; }
.giris .overline::before { content: ""; position: absolute; left: 0; top: 50%; width: 32px; height: 2px; background: var(--gold); }
.giris-alt .kelime { position: relative; transition: color .4s; }
.giris-alt .kelime.parla { color: var(--beyaz); }
.giris-alt .kelime::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--yumusak); }
.giris-alt .kelime.parla::after { transform: scaleX(1); }
.giris-alt .nokta { color: var(--gold); }
.asagi { display: block; position: absolute; left: 50%; bottom: 24px; z-index: 2; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255, 255, 255, .5); border-radius: 14px; }
.asagi span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: fare 1.8s ease-in-out infinite; }
.asagi:hover { border-color: var(--beyaz); }
@keyframes fare { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
@keyframes belir { from { opacity: 0; } to { opacity: 1; } }
@media (max-height: 620px) { .asagi { display: none; } }

/* ---------- Kayan bant */
.bant-ic { animation: kay 48s linear infinite; }
.bant:hover .bant-ic { animation-play-state: paused; }
@keyframes kay { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.bant i { animation: kare-don 6s linear infinite; }
@keyframes kare-don { 0%, 80% { transform: rotate(0); } 100% { transform: rotate(180deg); } }

/* ---------- Kaydırınca beliren öğeler */
/* İş 2: en fazla 300 ms, en fazla 12 px kayma, kartlar arası en fazla 60 ms. İlk ekrandakiler ve atlananlar "aninda" ile geçişsiz görünür. */
html.js-hareket .gozuk { opacity: 0; translate: 0 12px; transition: opacity .3s ease-out, translate .3s ease-out, transform .45s var(--yumusak), border-color .3s, box-shadow .45s var(--yumusak); transition-delay: var(--gecikme, 0s); }
html.js-hareket .gozuk.sol { translate: -12px 0; }
html.js-hareket .gozuk.gorundu { opacity: 1; translate: none; transition-delay: 0s; }
html.js-hareket .gozuk.aninda, html.js-hareket .gozuk.aninda::before, html.js-hareket .aninda .adim-no::after { transition: none !important; }

/* Bölüm başlıkları: önlerinde çizilen altın çizgi */
.bolum h2:not(.h3), .sayfa-basi h1 { position: relative; }
.bolum > .kap > h2:not(.h3)::before, .bolum .okuma > h2:not(.h3)::before, .bolum .bolum-bas h2::before, .kim h2::before, .cta-bandi h2::before { content: ""; display: block; width: 40px; height: 3px; background: var(--gold); margin-bottom: 18px; transform-origin: left; transform: scaleX(var(--cizgi, 1)); transition: transform .3s ease-out; }
html.js-hareket .gozuk h2::before, html.js-hareket h2.gozuk::before { --cizgi: 0; }
html.js-hareket .gorundu h2::before, html.js-hareket h2.gorundu::before { --cizgi: 1; }

/* Sayfa başı: işaret çizgisi soldan dolar, altın çizgi çizilir, dekor nokta haritası */
.sayfa-basi { position: relative; overflow: hidden; }
.sayfa-basi .kap { position: relative; z-index: 1; }
.sayfa-basi.isaretli { border-top: 0; }
.sayfa-basi.isaretli::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--gold); }
.dekor-harita { position: absolute; top: 0; right: -4%; width: min(62%, 820px); height: 100%; pointer-events: none; opacity: 0; transition: opacity 1.2s; -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%); mask-image: linear-gradient(90deg, transparent, #000 35%); }
.dekor-harita.hazir { opacity: 1; }
@media (max-width: 1023px) { .sayfa-basi .dekor-harita { width: 100%; right: -30%; opacity: .0; } .sayfa-basi .dekor-harita.hazir { opacity: .45; } }

/* ---------- Kartlar */
.kart { transition: border-color .3s, transform .45s var(--yumusak), box-shadow .45s var(--yumusak), background-color .3s; overflow: hidden; }
.kart { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px)); }
.kart:hover { --ty: -4px; box-shadow: 0 22px 40px -24px var(--golge); }
.kart.basildi { --ty: 0px; }
/* Hizmet kartlarında köşe numarası */
.izgara-3 { counter-reset: kart; }
.kart-hizmet { counter-increment: kart; }
.kart-hizmet::after { content: counter(kart, decimal-leading-zero); position: absolute; right: 24px; top: 22px; font-size: 40px; line-height: 1; font-weight: 700; color: var(--navy-100); letter-spacing: -.02em; }
.icgoru-kart .kapak { overflow: hidden; }
.icgoru-kart .kapak img { transition: transform 1s var(--yumusak); }
.icgoru-kart:hover .kapak img { transform: scale(1.05); }

/* Durum etiketi: "Geliştiriliyor" nabız noktası */
.durum { gap: 7px; }
.durum-nokta { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; position: relative; }
.durum-gelistiriliyor .durum-nokta { background: var(--gold-dark); }
.durum-gelistiriliyor .durum-nokta::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--gold); animation: nabiz 1.8s ease-out infinite; }
.durum-yayinda .durum-nokta { background: var(--beyaz); }
@keyframes nabiz { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- Adımlar, sorular, maddeler */
.adim-no { position: relative; display: flex; align-items: center; gap: 12px; }
.adim-no::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); transform-origin: left; transform: scaleX(var(--cizgi, 1)); transition: transform .3s ease-out; }
html.js-hareket .gozuk .adim-no::after { --cizgi: 0; }
html.js-hareket .gorundu .adim-no::after { --cizgi: 1; }
.adimlar li { transition: transform .4s var(--yumusak); }
.adimlar li:hover { transform: translateY(-3px); }
.adimlar li:hover .adim-no { color: var(--gold-dark); }
.sorular li { position: relative; border-left-color: transparent; transition: background-color .3s, padding-left .3s var(--yumusak); }
.sorular li::before { content: ""; position: absolute; left: -2px; top: 0; bottom: 0; width: 2px; background: var(--gold); transform-origin: top; transform: scaleY(var(--cizgi, 1)); transition: transform .3s ease-out; transition-delay: var(--gecikme, 0s); }
html.js-hareket li.gozuk::before { --cizgi: 0; }
html.js-hareket li.gorundu::before { --cizgi: 1; }
.sorular li:hover { background: linear-gradient(90deg, rgba(184, 149, 90, .1), transparent 70%); padding-left: 26px; }
.maddeler li::before { transition: width .4s var(--yumusak); }
.maddeler li:hover::before { width: 14px; }
.maddeler li { transition: color .3s; }
.maddeler li:hover { color: var(--ink); }
.sabit-cumle { position: relative; }
.sutunlar li { transition: transform .45s var(--yumusak), border-color .3s, box-shadow .45s; }
.sutunlar li:hover { transform: translateY(-4px); border-color: var(--vurgu); box-shadow: 0 18px 32px -22px rgba(20, 27, 51, .4); }
.sutunlar svg { color: var(--gold-dark); transition: transform .6s var(--zipla); }
.sutunlar li:hover svg { transform: scale(1.15) rotate(-6deg); }

/* ---------- Alıntı: kelimeler sırayla */

/* ---------- CTA bandı ve bülten */
.cta-bandi { position: relative; overflow: hidden; }
.cta-bandi .kap { position: relative; z-index: 1; }
.cta-bandi .dekor-harita { width: min(55%, 720px); }
.bulten-form input[type=email] { transition: border-color .2s, box-shadow .3s; }
.bulten-form input[type=email]:focus { box-shadow: 0 0 0 4px rgba(184, 149, 90, .2); }
.alan input, .alan select, .alan textarea { transition: border-color .2s, box-shadow .3s; }
.alan input:focus, .alan select:focus, .alan textarea:focus { box-shadow: 0 0 0 4px var(--vurgu-zemin); }
.basari-metni:not([hidden]), .kutu-basari { animation: yukari-gel .6s var(--zipla) both; }
.kutu-basari svg path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: tik .6s .2s var(--yumusak) forwards; }
@keyframes tik { to { stroke-dashoffset: 0; } }
.alan-hata.js { animation: salla .4s; }
@keyframes salla { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* ---------- Alt bilgi */
.alt { position: relative; overflow: hidden; }
.alt .kap { position: relative; z-index: 1; }
.alt .dekor-harita { width: min(70%, 900px); top: auto; bottom: 0; height: 90%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); mask-image: linear-gradient(90deg, transparent, #000 40%); }
.alt ul a { position: relative; transition: color .2s, padding-left .3s var(--yumusak); }
.alt ul a:hover { padding-left: 6px; text-decoration: none; color: var(--gold); }

/* ---------- Çerez bandı */
html.js-hareket .cerez:not([hidden]) { animation: alttan .3s var(--yumusak) both; }
@keyframes alttan { from { transform: translateY(100%); } to { transform: none; } }

/* ---------- Yazı sayfası: okuma çubuğu */
.okuma-cubugu { display: block; position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 70; pointer-events: none; }
.okuma-cubugu span { display: block; height: 100%; background: var(--gold); transform-origin: left; transform: scaleX(var(--ilerleme, 0)); }
.yazi-kapak img { transition: transform 1.2s var(--yumusak); }

/* ---------- Filtreler, sayfalama */
.filtre a, .sayfalama a { transition: background-color .2s, border-color .2s, transform .2s var(--yumusak); }
.filtre a:hover, .sayfalama a:hover { transform: translateY(-1px); }

/* ---------- Az hareket tercihi */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js-hareket .gozuk { opacity: 1 !important; transform: none !important; translate: none !important; }
  .dekor-harita { opacity: .6 !important; }
}


/* ============================================================
   Etkileşim katmanı (etkilesim.js) — 28 Kas 2026
   ============================================================ */

/* İmleç: altın nokta + gecikmeli halka. Sistem imleci kalır. */
.imlec-halka, .imlec-nokta { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; opacity: 0; transition: opacity .25s; }
.imlec-var .imlec-halka, .imlec-var .imlec-nokta { opacity: 1; }
.imlec-nokta { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--gold); }
.imlec-halka { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
.imlec-halka::before { content: ""; position: absolute; inset: 0; border: 1.5px solid rgba(184, 149, 90, .7); border-radius: 50%; transition: transform .3s var(--yumusak), background-color .3s, border-color .3s, border-radius .3s; }
.imlec-halka.baglanti::before { transform: scale(1.6); background: rgba(184, 149, 90, .12); border-color: var(--gold); }
.imlec-halka.bas::before { transform: scale(.8); }
.imlec-halka.baglanti.bas::before { transform: scale(1.3); }
.imlec-halka.yazi::before { transform: scaleX(.12) scaleY(.9); border-radius: 2px; }
.imlec-halka.harita, .imlec-nokta.harita { opacity: 0 !important; }

/* Basış dalgası */
.btn, .filtre a, .sayfalama a, .dil a, .menu-dugme, .kart { position: relative; overflow: hidden; }
.dalga { position: absolute; border-radius: 50%; pointer-events: none; background: var(--dalga); transform: scale(0); animation: dalga .6s var(--yumusak) forwards; z-index: 0; }
.btn-ikincil-koyu .dalga, .dil .dalga, .menu-dugme .dalga, .cerez .dalga { background: rgba(255, 255, 255, .25); }
.kart .dalga { background: rgba(184, 149, 90, .14); }
@keyframes dalga { to { transform: scale(1); opacity: 0; } }

/* Mıknatıs: buton imlece birkaç piksel yaklaşır */
.btn { translate: var(--mx, 0px) var(--my, 0px); transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--yumusak), translate .35s var(--yumusak); }
.btn:active { transform: scale(.97); }

/* Kart: köşe çerçevesi (hedefleme) + bir kez geçen tarama çizgisi */
.koseler { position: absolute; inset: 10px; pointer-events: none; z-index: 2; }
.koseler i { position: absolute; width: 14px; height: 14px; border-color: var(--gold); border-style: solid; border-width: 0; opacity: 0; transition: opacity .25s, transform .35s var(--yumusak); }
.koseler i:nth-child(1) { left: 0; top: 0; border-left-width: 2px; border-top-width: 2px; transform: translate(-6px, -6px); }
.koseler i:nth-child(2) { right: 0; top: 0; border-right-width: 2px; border-top-width: 2px; transform: translate(6px, -6px); }
.koseler i:nth-child(3) { left: 0; bottom: 0; border-left-width: 2px; border-bottom-width: 2px; transform: translate(-6px, 6px); }
.koseler i:nth-child(4) { right: 0; bottom: 0; border-right-width: 2px; border-bottom-width: 2px; transform: translate(6px, 6px); }
.kart:hover .koseler i, .sutunlar li:hover .koseler i, .kart:focus-within .koseler i { opacity: 1; transform: none; }
.koseler b { position: absolute; left: -10px; right: -10px; top: -10px; height: 40px; background: linear-gradient(180deg, transparent, rgba(184, 149, 90, .1) 70%, rgba(184, 149, 90, .45)); border-bottom: 1px solid rgba(184, 149, 90, .6); opacity: 0; }
.kart:hover .koseler b, .sutunlar li:hover .koseler b { animation: kart-tara 1.1s var(--yumusak) 1; }
@keyframes kart-tara { 0% { opacity: 0; top: -50px; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; top: calc(100% + 10px); } }
.icgoru-kart .koseler { z-index: 3; }
.sutunlar li { position: relative; overflow: hidden; transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.sutunlar li:hover { transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px); }
.kart .isaret-kare { transition: background-color .2s, color .2s, transform .35s var(--zipla); }
.kart:hover .isaret-kare { transform: translateZ(0) scale(1.06); }

/* Adımlar: süreç ilerlemesi */
.adimlar li.yanik .adim-no { color: var(--gold-dark); }
.adimlar li.yanik .adim-no::after { background: var(--gold); height: 2px; }
.adimlar li .adim-no::after { transition: transform .3s ease-out, background-color .25s, height .25s; }

/* Odak: klavye ile gezinmede altın halka nabız atar */
:focus-visible { animation: odak .9s var(--yumusak) 1; }
@keyframes odak { 0% { outline-offset: 8px; outline-color: rgba(184, 149, 90, 0); } 100% { outline-offset: 3px; outline-color: var(--gold); } }

/* Form alanı: odakta alttan altın çizgi dolar */
.alan input, .alan textarea { background-image: linear-gradient(var(--gold), var(--gold)); background-repeat: no-repeat; background-position: 0 100%; background-size: 0 2px; transition: border-color .2s, box-shadow .3s, background-size .4s var(--yumusak); }
.alan input:focus, .alan textarea:focus { background-size: 100% 2px; }

/* Giriş haritası okuma kutusu (analiz merceği) */
.harita-hud { position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; min-width: 200px; padding: 10px 14px 11px; background: rgba(20, 27, 51, .88); border: 1px solid rgba(184, 149, 90, .55); border-radius: 4px; color: var(--beyaz); font-size: 13px; line-height: 18px; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; opacity: 0; transition: opacity .2s; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.harita-hud.acik { opacity: 1; }
.hud-plaka { grid-row: span 2; align-self: center; font-size: 22px; line-height: 1; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.hud-ad { font-weight: 700; font-size: 15px; }
.hud-alt { color: var(--navy-metin-acik); }
.hud-koord { grid-column: 1 / -1; margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, .12); color: var(--navy-metin-acik); font-size: 12px; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.giris { cursor: crosshair; }
.giris a, .giris button { cursor: pointer; }
@media (hover: none) { .giris { cursor: auto; } }

/* ---------- Seçim Masası karnesi (hareket.js "karne-bekle" → "karne-oyna") */
.karne-bekle .fark-cubuk span { transform: scaleX(0); }
.karne-bekle .esit-isaret { opacity: 0; transform: scale(.5); }
.karne-bekle .karne-maddeler li { opacity: 0; transform: translateY(8px); }
.karne-oyna .fark-cubuk span { transform: none; transition: transform 1.1s cubic-bezier(.2, .7, .2, 1) .1s; }
.karne-oyna .fark-satir.biz .fark-cubuk span { transition-delay: .35s; }
.karne-oyna .esit-isaret { opacity: 1; transform: none; transition: opacity .3s ease 1s, transform .5s cubic-bezier(.3, 1.6, .5, 1) 1s; }
.karne-oyna .karne-maddeler li { opacity: 1; transform: none; transition: opacity .35s ease, transform .35s ease; }
.karne-oyna .karne-maddeler li:nth-child(1) { transition-delay: 1.15s; }
.karne-oyna .karne-maddeler li:nth-child(2) { transition-delay: 1.3s; }
.karne-oyna .karne-maddeler li:nth-child(3) { transition-delay: 1.45s; }
.karne-oyna .karne-maddeler li:nth-child(n+4) { transition-delay: 1.6s; }
/* Sonuç rakamı oturunca lacivert kartın üstünden tek geçişli altın ışık */
.karne-esit::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; pointer-events: none; opacity: 0;
  background: linear-gradient(100deg, transparent, rgba(255, 228, 120, .22), transparent); }
.karne-oyna .karne-esit::after { animation: karne-isik 1.4s ease-out 1.05s 1 both; }
@keyframes karne-isik { 0% { left: -40%; opacity: 1; } 100% { left: 110%; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .karne-bekle * { transform: none !important; opacity: 1 !important; } }
