/* Ana sayfa — C yönü "Canlı Akış" (19.11). Ortak belirteçler css/style.css'te.
   Ağır kütüphane yok: hareketler CSS animasyonu + küçük betikler (js/ana.js, ip.js, akiskan.js). */
:root { --mavi: #4aadd1; --kirmizi: #d62828; --cam: #14918c; --egri: cubic-bezier(.22, 1, .36, 1); }
body.ana::before { display: none; }
.ana main { z-index: auto; }
.ana main > section { position: relative; z-index: 1; }

/* ---------- akışkan zemin ---------- */
.zemin { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(50% 60% at 75% 35%, rgba(74,173,209,.18), transparent 70%), radial-gradient(35% 45% at 90% 80%, rgba(214,40,40,.14), transparent 70%), var(--bg); }
.zemin canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s; }
.zemin canvas.hazir { opacity: 1; }
.zemin::after { content: ""; position: absolute; inset: 0; transition: background-color .8s ease;
  background: linear-gradient(90deg, rgba(13,14,18,.62) 0, rgba(13,14,18,.2) 50%, rgba(13,14,18,0) 75%); }
/* açılış geçilince zemin koyulaşır: metin okunur, renk yine akar */
.asagi .zemin::after { background-color: rgba(13,14,18,.6); }

/* ---------- üst çubuk: açılışta şeffaf, kaydırınca dolar ---------- */
.ana .site-header { position: fixed; inset: 0 0 auto; background: transparent; border-bottom-color: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none; transition: background-color .35s, border-color .35s; }
.ana .site-header.dolu { background: rgba(13,14,18,.8); border-bottom-color: var(--border-calm); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.ust-indir { flex: none; display: none; align-items: center; min-height: 42px; padding: 0 20px; border-radius: var(--radius-full);
  background: var(--text-1); color: var(--bg); font: 700 15px/1 var(--font-sans); transition: transform .2s, background-color .2s; }
.ust-indir:hover { color: var(--bg); background: #fff; transform: translateY(-1px); }
.ana .site-header .ust-indir { display: inline-flex; }

/* ---------- ortak ---------- */
.ic { max-width: var(--max-width); margin: 0 auto; padding-inline: var(--page-x); }
.iki { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.bolum { padding-block: clamp(72px, 11vw, 150px); }
.bolum h2 { font-size: clamp(2.1rem, 4.2vw, 3.6rem); line-height: 1.02; letter-spacing: -.04em; font-weight: 800; max-width: 15ch; text-wrap: balance; }
.bolum .spot { margin-top: 20px; max-width: 32rem; font-size: clamp(16px, 1.35vw, 18.5px); line-height: 1.6; color: var(--text-2); }
.bolum-no { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font: 600 14px/1 var(--font-sans); letter-spacing: .02em; color: var(--text-2); font-variant-numeric: tabular-nums; }
.mavi { color: var(--mavi); }
.devam { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 18px; font-weight: 600; color: var(--mavi); }
.devam span { transition: transform .2s; }
.devam:hover { color: var(--mavi); }
.devam:hover span { transform: translateX(4px); }
.simge { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; flex: none; }
.simge svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mavi-z { background: rgba(74,173,209,.16); color: var(--mavi); }
.kirmizi-z { background: rgba(214,40,40,.18); color: #ff6b6b; }
.cam-z { background: rgba(20,145,140,.2); color: #4ecdc4; }

/* görününce belirme: JS yoksa her şey baştan görünür */
.js [data-belir] { opacity: 0; translate: 0 32px; transition: opacity .9s var(--egri), translate .9s var(--egri); }
.js [data-belir].gorundu { opacity: 1; translate: 0 0; }
.iki > [data-belir]:nth-child(2) { transition-delay: .12s; }

/* dönen ışık kenarı (@property ile açı canlanır; desteklemeyen tarayıcıda durağan kenar) */
@property --aci { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.parlak { position: relative; isolation: isolate; }
.parlak::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--aci), rgba(255,255,255,.08) 0 62%, var(--mavi) 76%, var(--kirmizi) 86%, rgba(255,255,255,.08) 96%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: don 7s linear infinite; }
@keyframes don { to { --aci: 360deg; } }

/* telefon çerçevesi */
.cerceve { margin: 0; justify-self: center; width: min(300px, 78vw); padding: 8px; border-radius: 42px; background: #1d1f26;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 60px 100px -40px rgba(0,0,0,.95), 0 0 80px -20px rgba(74,173,209,.25); }
.cerceve img { border-radius: 34px; width: 100%; height: auto; }

/* ---------- açılış ---------- */
.kahraman { max-width: 1320px; margin: 0 auto; padding: 120px var(--page-x) 72px; min-height: min(100svh, 940px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.ana main > .kahraman { z-index: 2; }
.rozet { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px; background: rgba(21,23,30,.7);
  border: 1px solid rgba(255,255,255,.1); font-size: 14px; color: var(--text-2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.rozet i { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 4px rgba(61,220,132,.18); animation: nabiz 1.6s infinite; }
@keyframes nabiz { 50% { box-shadow: 0 0 0 7px rgba(61,220,132,0); } }
.kahraman h1 { margin-top: 22px; font-weight: 800; font-size: clamp(3.2rem, 6.4vw, 6.6rem); line-height: .95; letter-spacing: -.045em; }
.kahraman h1 mark { display: inline-block; white-space: nowrap; background: none; color: var(--bg); position: relative; z-index: 0; padding: 0 .08em; }
.kahraman h1 mark::before { content: ""; position: absolute; inset: .12em -.02em .02em; background: var(--mavi); z-index: -1; border-radius: .12em; rotate: -1.2deg; }
.kahraman .spot { margin-top: 24px; max-width: 31rem; font-size: 19px; line-height: 1.55; color: var(--text-2); }

/* mağaza rozetleri: resmî düzen (siyah, ince kenar, işaret + iki satır) */
.magazalar { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.magaza { display: inline-flex; align-items: center; gap: 12px; height: 58px; padding: 0 20px 0 16px; border-radius: 13px; background: #000;
  border: 1px solid rgba(255,255,255,.28); color: #fff; transition: transform .2s, border-color .2s, box-shadow .2s; }
.magaza:hover { color: #fff; transform: translateY(-2px); border-color: rgba(255,255,255,.6); box-shadow: 0 14px 30px -12px rgba(74,173,209,.5); }
.magaza svg { width: 26px; height: 28px; flex: none; }
.magaza span { display: flex; flex-direction: column; gap: 2px; line-height: 1.1; }
.magaza small { font-size: 11px; font-weight: 500; letter-spacing: .02em; opacity: .85; }
.magaza b { font-size: 21px; font-weight: 600; letter-spacing: -.01em; }

.telefonlar { position: relative; height: 620px; perspective: 1600px; }
.tel { position: absolute; top: 50%; left: 50%; width: 250px; padding: 7px; border-radius: 38px; background: #1d1f26;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 50px 90px -30px rgba(0,0,0,.9); }
.tel img { border-radius: 31px; width: 100%; height: auto; }
.t1 { transform: translate(-112%,-46%) rotateY(18deg) rotateZ(-6deg) scale(.9); opacity: .85; animation: yuz1 7s ease-in-out infinite; }
.t3 { transform: translate(12%,-46%) rotateY(-18deg) rotateZ(6deg) scale(.9); opacity: .85; animation: yuz3 8s ease-in-out infinite; }
.t2 { transform: translate(-50%,-52%); z-index: 2; width: 280px; animation: yuz2 6s ease-in-out infinite; }
@keyframes yuz1 { 50% { transform: translate(-112%,-49%) rotateY(18deg) rotateZ(-6deg) scale(.9); } }
@keyframes yuz2 { 50% { transform: translate(-50%,-55%); } }
@keyframes yuz3 { 50% { transform: translate(12%,-43%) rotateY(-18deg) rotateZ(6deg) scale(.9); } }
.kart { position: absolute; z-index: 4; left: 2%; top: 10%; width: 250px; padding: 14px 16px; border-radius: 16px; background: #fff; color: #111;
  font-size: 13.5px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); animation: yuzk 6s ease-in-out infinite; }
@keyframes yuzk { 50% { transform: translateY(-10px); } }
.kart b { display: block; font-size: 15.5px; line-height: 1.3; margin-bottom: 8px; color: #111; }
.kart span { color: var(--kirmizi); font-weight: 700; }

/* ipteki maskot: tuval ip içindir, maskot resmî görsel (görünüş değişmez) */
.ip { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.ip canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ip-maskot { position: absolute; left: 0; top: 0; width: 118px; height: auto; transform-origin: 50% 4%; pointer-events: auto; touch-action: none;
  cursor: grab; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; will-change: transform;
  filter: drop-shadow(0 0 1px rgba(255,255,255,.55)) drop-shadow(0 18px 24px rgba(0,0,0,.55)); }
.ip-maskot.tutuldu { cursor: grabbing; }

/* ---------- birleşme: düşen kaynaklar ---------- */
.yagmur { position: relative; height: 440px; border-radius: 28px; overflow: hidden; background: rgba(21,23,30,.55);
  border: 1px solid rgba(255,255,255,.08); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.yigin { position: absolute; inset: 0 0 150px; display: flex; flex-wrap: wrap-reverse; align-content: flex-start; justify-content: center; gap: 8px; padding: 0 22px 14px; }
.cip { padding: 9px 15px; border-radius: 999px; background: #232631; border: 1px solid rgba(255,255,255,.12); color: var(--text-1);
  font-size: 14.5px; font-weight: 600; white-space: nowrap; rotate: var(--r, 0deg); }
.ornek-kart { position: absolute; left: 50%; bottom: 26px; width: min(330px, calc(100% - 40px)); translate: -50% 0; padding: 16px 18px; border-radius: 18px;
  background: #fff; color: #111; box-shadow: 0 30px 60px -24px rgba(0,0,0,.9); }
.ornek-kart.parlak::before { inset: -3px; padding: 3px; border-radius: 21px; }
.ornek-kart .etiket { display: inline-block; padding: 3px 9px; border-radius: 6px; background: rgba(214,40,40,.1); color: #b31f1f; font-size: 12px; font-weight: 700; }
.ornek-kart b { display: block; margin-top: 8px; font-size: 17px; line-height: 1.3; color: #111; }
.ornek-kart small { display: block; margin-top: 8px; font-size: 13.5px; color: #555; }
.ornek-kart em { font-style: normal; font-weight: 800; color: #b31f1f; font-variant-numeric: tabular-nums; }
/* tur: düş (yaylanarak) → bekle → karta çekil. js/ana.js her turda .oynat'ı yeniden ekler */
.js .yagmur .cip { opacity: 0; }
.yagmur.oynat .cip { animation: dus .9s linear(0, .06 9%, .25 18%, .56 27%, 1 36%, .86 45%, .82 50%, .86 55%, 1 64%, .97 72%, 1 80%, .995 90%, 1) both calc(var(--i) * 90ms),
  topla .55s cubic-bezier(.6, 0, .8, .2) forwards calc(2.5s + var(--i) * 35ms); }
@keyframes dus { from { opacity: 1; transform: translateY(-460px) rotate(calc(var(--r, 0deg) * 4)); } to { opacity: 1; transform: none; } }
@keyframes topla { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(170px) scale(.3); } }
.yagmur.oynat .ornek-kart { animation: nefes .5s var(--egri) 3s; }
/* "+N kaynak" kaynaklar karta çekilirken belirir ve sayar (önce "+0" görünmesin) */
.yagmur.oynat .ornek-kart em { animation: belir .3s 2.6s both; }
@keyframes belir { from { opacity: 0; } }
@keyframes nefes { 50% { scale: 1.05; } }

/* ---------- çelişki ---------- */
.celiski { justify-self: center; width: min(440px, 100%); padding: 28px; border-radius: 24px; background: rgba(21,23,30,.72);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.celiski-not { font-size: 13px; color: var(--text-3); }
.celiski-satir { display: flex; align-items: baseline; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border-calm); }
.celiski-satir span:first-child { width: 88px; color: var(--text-2); }
.celiski-satir b { font-size: 3.2rem; line-height: 1; font-weight: 800; letter-spacing: -.02em; color: var(--text-1); min-width: 2ch; }
.celiski-satir span:last-child { color: var(--text-2); }
.celiski-uyari { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-weight: 600; color: #ff6b6b; }
.celiski-uyari i { width: 9px; height: 9px; border-radius: 50%; background: var(--kirmizi); box-shadow: 0 0 0 4px rgba(214,40,40,.25); animation: nabizk 1.4s infinite; }
@keyframes nabizk { 50% { box-shadow: 0 0 0 8px rgba(214,40,40,0); } }

/* ---------- bildirim eşiği: basamaklar sırayla yanar ---------- */
.esik { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; max-width: 30rem; }
.esik li { display: grid; gap: 2px; padding: 14px 18px; border-radius: 16px; background: rgba(21,23,30,.6); border: 1px solid rgba(255,255,255,.08);
  animation: yan 7.5s infinite both; }
.esik li:nth-child(2) { animation-delay: 2.5s; }
.esik li:nth-child(3) { animation-delay: 5s; }
@keyframes yan { 0%, 33% { border-color: rgba(74,173,209,.75); background: rgba(74,173,209,.12); } 40%, 100% { border-color: rgba(255,255,255,.08); background: rgba(21,23,30,.6); } }
.esik b { color: var(--text-1); }
.esik span { font-size: 14.5px; color: var(--text-2); }

/* ---------- yerel: iller yanıp söner ---------- */
.iller { margin-top: 28px; max-width: 34rem; font-size: 15px; line-height: 2; color: rgba(255,255,255,.28); word-spacing: .35em; }
.iller span { transition: color .8s, text-shadow .8s; }
.iller span.yan { color: var(--mavi); text-shadow: 0 0 14px rgba(74,173,209,.6); }

/* ---------- gün sonu ---------- */
.maddeler { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.maddeler li { display: flex; gap: 12px; align-items: baseline; color: var(--text-1); }
.maddeler li::before { content: ""; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--cam); box-shadow: 0 0 0 4px rgba(20,145,140,.2); translate: 0 -2px; }

/* ---------- akış senin ---------- */
.orta { text-align: center; }
.orta h2 { margin-inline: auto; max-width: 20ch; }
.orta .bolum-no { justify-content: center; }
.ikili { display: flex; justify-content: center; gap: clamp(20px, 4vw, 56px); margin-top: 56px; }
.ikili .cerceve { width: min(280px, 42vw); margin: 0; }
.ikili .cerceve:nth-child(2) { translate: 0 48px; }
.js .ikili .cerceve:nth-child(2) { translate: 0 80px; }
.js .ikili .cerceve:nth-child(2).gorundu { translate: 0 48px; transition-delay: .15s; }

/* ---------- indir ---------- */
.indir-kutu { max-width: 860px; margin: 0 auto; padding: clamp(36px, 6vw, 72px) clamp(22px, 5vw, 64px); border-radius: 32px; text-align: center;
  background: linear-gradient(160deg, rgba(74,173,209,.16), rgba(21,23,30,.82) 45%, rgba(214,40,40,.12)); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.indir-kutu h2 { margin-inline: auto; max-width: 16ch; }
.indir-kutu .spot { margin-inline: auto; }
.indir-kutu .magazalar { justify-content: center; }
.indir-maskot { width: 120px; height: auto; margin: 0 auto 18px; filter: drop-shadow(0 18px 24px rgba(0,0,0,.5)); }
/* maskot yukarıdan düşer, sonra hafifçe salınır (kural: yalnız konum/eğim, çizim aynı) */
.js .indir-kutu.gorundu .indir-maskot { animation: maskot-dus 1.1s linear(0, .3 20%, 1 40%, .9 50%, 1 62%, .98 72%, 1) both, salin 4.5s ease-in-out 1.1s infinite; }
@keyframes maskot-dus { from { transform: translateY(-260px) rotate(-8deg); opacity: 0; } 15% { opacity: 1; } to { transform: none; } }
@keyframes salin { 0%, 100% { transform: rotate(0); } 25% { transform: translateY(-6px) rotate(4deg); } 75% { transform: translateY(-3px) rotate(-4deg); } }
.indir-alt { margin: 36px auto 0; max-width: 36rem; font-size: 14px; line-height: 1.6; color: var(--text-3); }
.indir-alt a { text-decoration: underline; text-underline-offset: 3px; }
.ana .site-footer { margin-top: 0; position: relative; z-index: 1; background: rgba(13,14,18,.7); }

/* kaydırmaya bağlı hafif kayma: destekleyen tarayıcıda (Chrome, Safari 26+); diğerlerinde durağan */
@supports (animation-timeline: view()) {
  .cerceve { animation: kay linear both; animation-timeline: view(); animation-range: cover; }
  @keyframes kay { from { transform: translateY(26px); } to { transform: translateY(-26px); } }
}

/* ---------- telefon ---------- */
@media (max-width: 900px) {
  .ana .site-header__toggle { order: 3; }
  .ust-indir { min-height: 38px; padding: 0 16px; font-size: 14px; }
  .kahraman { grid-template-columns: minmax(0, 1fr); padding: 96px var(--page-x) 24px; min-height: 0; }
  .kahraman h1 { font-size: clamp(2.9rem, 13.5vw, 4.2rem); }
  .kahraman .spot { font-size: 17px; }
  .telefonlar { height: 470px; }
  .tel { width: 190px; }
  .t2 { width: 210px; }
  .kart { width: 200px; font-size: 12px; left: 0; top: 4%; }
  .kart b { font-size: 13.5px; }
  .magaza { height: 54px; padding: 0 16px 0 13px; }
  .magaza b { font-size: 19px; }
  .zemin::after { background: linear-gradient(180deg, rgba(13,14,18,.45) 0, rgba(13,14,18,.1) 55%, rgba(13,14,18,.35)); }
  .iki { grid-template-columns: minmax(0, 1fr); }
  /* telefonda metin önce, görsel sonra */
  .iki > .metin { order: -1; }
  .bolum { padding-block: 64px; }
  .yagmur { height: 400px; }
  .cip { font-size: 13px; padding: 8px 12px; }
  .ikili { margin-top: 36px; }
}
@media (max-width: 420px) {
  .magaza { padding: 0 13px 0 11px; gap: 10px; }
  .magaza b { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .tel, .kart, .rozet i, .esik li, .celiski-uyari i, .parlak::before { animation: none !important; }
  .js .yagmur .cip { opacity: 1; }
  .yagmur.oynat .cip, .yagmur.oynat .ornek-kart, .js .indir-kutu.gorundu .indir-maskot { animation: none; }
  .js [data-belir] { opacity: 1; translate: none; transition: none; }
  .cerceve { animation: none !important; }
}
