/* Ana sayfa 3B hero + dil anahtarı. site.css'in üstüne yüklenir. Kaynak: web-src/hero.js
   Performans notu: canlı WebGL tuvalinin üstünde backdrop-filter / sürekli kayan arka plan yok;
   ışıma, etiketler ve altyazılar yalnızca transform ve opacity ile hareket eder. */
[hidden] { display: none !important; }
:root { --mint: #60f99e; --cyan: #18d4ff; --blue: #3d7bff; --u: 220px; --pct: 0.45; }

/* üst çubuk: tuvalin üstünde bulanıklık yok */
.site-header.is-scrolled { background: rgba(19, 19, 27, 0.92); backdrop-filter: none; }

/* ---- dil anahtarı ---- */
.lang { display: inline-flex; padding: 3px; border: 1px solid var(--line-home, #31544b); border-radius: 12px; background: rgba(27, 27, 35, 0.9); }
.lang button { min-width: 40px; height: 34px; padding: 0 8px; border: 0; border-radius: 9px; background: none; color: var(--muted-bright); font: inherit; font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; cursor: pointer; transition: color 0.2s, background 0.2s; }
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed="true"] { background: linear-gradient(135deg, #60f99e, #18d4ff); color: #0b1d12; }
.lang button:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }

/* ---- sahne: uzun kaydırma alanı + tek sabit ekran ---- */
.stage { position: relative; height: 260svh; }
.pin { position: sticky; top: 0; height: 100svh; overflow: hidden; isolation: isolate; contain: paint;
  background: radial-gradient(45% 50% at 12% 88%, rgba(61, 123, 255, 0.13) 0, transparent 70%), radial-gradient(40% 40% at 90% 8%, rgba(24, 212, 255, 0.1) 0, transparent 70%), var(--background); }
.pin::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px); background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(70% 60% at 60% 40%, #000, transparent 80%); mask-image: radial-gradient(70% 60% at 60% 40%, #000, transparent 80%); }
/* ince gürültü: koyu geçişlerdeki renk bantlarını (piksel görünümü) dağıtır */
.pin::after { content: ""; position: absolute; inset: 0; z-index: 1; background: url("/noise.png"); background-size: 160px 160px; pointer-events: none; }

.aura { position: absolute; z-index: -1; left: 0; top: 0; width: 0; height: 0; will-change: transform; }
.aura i { position: absolute; left: 0; top: 0; width: min(1100px, 125vmax); aspect-ratio: 1; border-radius: 50%; will-change: opacity; opacity: 0; }
.aura .mint { translate: -50% -50%; background: radial-gradient(closest-side, rgba(96, 249, 158, 0.34), rgba(96, 249, 158, 0) 72%); }
.aura .cyan { translate: -18% -78%; background: radial-gradient(closest-side, rgba(24, 212, 255, 0.25), rgba(24, 212, 255, 0) 72%); }
.aura .blue { translate: -78% -22%; background: radial-gradient(closest-side, rgba(61, 123, 255, 0.3), rgba(61, 123, 255, 0) 72%); }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; }

/* altyazılar */
.story { position: absolute; top: 0; bottom: 0; left: 0; width: min(100%, 780px); z-index: 3; display: flex; align-items: center; padding-inline: max(6vw, 24px); pointer-events: none; will-change: transform, opacity; }
.story.r { left: auto; right: 0; width: min(100%, 600px); }
.story:not(.first) { opacity: 0; visibility: hidden; }
.story-in { max-width: 600px; }
.story.first { width: min(100%, 900px); }
.first .story-in { max-width: 740px; }
.stage h1, .stage h2 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.06; text-wrap: balance; }
.stage h1 { font-size: clamp(40px, 4.2vw, 62px); }
.stage h2 { font-size: clamp(34px, 4.3vw, 60px); }
.stage em { font-style: normal; color: var(--mint); }
.stage .first em { background: linear-gradient(90deg, var(--mint), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stage .lede { margin: 20px 0 0; max-width: 460px; color: var(--muted-bright); font-size: clamp(16px, 1.25vw, 18px); line-height: 1.65; }
.stage .store-badges { justify-content: flex-start; margin-top: 32px; }
.hint { position: absolute; z-index: 4; left: 50%; bottom: 22px; translate: -50% 0; }
.hint i { display: block; width: 1px; height: 34px; background: linear-gradient(var(--mint), transparent); animation: hint 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* telefonun etrafındaki yüzen arayüz etiketleri: --ox telefona bakan iç kenarın uzaklığı (telefona binmesin) */
.chips { position: absolute; z-index: 2; left: 0; top: 0; width: 0; height: 0; pointer-events: none; will-change: transform, opacity; --dir: -1; visibility: hidden; }
.chip { position: absolute; left: calc(var(--ox) * var(--dir) * var(--u)); top: calc(var(--oy) * var(--u)); translate: calc(-50% + var(--dir) * 50%) -50%; white-space: nowrap; }
.chip > div { display: flex; align-items: center; gap: 10px; padding: 10px 15px; border-radius: 16px; font-size: 14px; font-weight: 600; background: rgba(23, 25, 35, 0.93); border: 1px solid rgba(96, 249, 158, 0.28); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08); animation: bob 5s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes bob { 50% { transform: translateY(-9px); } }
.chip b { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; color: var(--mint); }
.chip b.s { font-size: 18px; } .chip b.y { color: #e8b84a; } .chip b.r { color: #ff8b8b; } .chip b.m { font-size: 19px; }
.chip small { display: block; font-size: 11px; font-weight: 500; color: #869587; }
.dotc { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px var(--mint); }
.chip.big b { font-size: 30px; }
.chip.bubble > div { white-space: normal; width: 238px; border-radius: 18px 18px 4px 18px; background: rgba(30, 42, 58, 0.95); border-color: rgba(61, 123, 255, 0.4); font-weight: 500; line-height: 1.4; }
.chip svg { width: 18px; height: 18px; stroke: var(--mint); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chip > div.gauge { width: 176px; height: 176px; padding: 0; gap: 0; border-radius: 50%; position: relative; display: grid; place-items: center; }
.gauge svg { position: absolute; inset: 10px; width: 156px; height: 156px; transform: rotate(-90deg); stroke: none; }
.gauge circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.gauge .tr { stroke: rgba(255, 255, 255, 0.08); }
.gauge .arc { stroke: url(#ring-g); stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset 1.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.chips.on .gauge .arc { stroke-dashoffset: calc(326.7 * (1 - var(--pct))); }
.gauge div { text-align: center; line-height: 1.1; }
.gauge b { display: block; font-size: 30px; color: var(--ink); }
.gauge small { font-size: 11px; color: #869587; }

.progress { position: absolute; z-index: 4; right: max(2.4vw, 14px); top: 50%; translate: 0 -50%; display: grid; gap: 12px; }
.progress i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); transition: height 0.35s, background 0.35s; }
.progress i.on { height: 26px; border-radius: 6px; background: linear-gradient(var(--mint), var(--cyan)); box-shadow: 0 0 14px rgba(96, 249, 158, 0.55); }

/* Hafif mod (WebGL yok, yazılımla çiziliyor ya da kareler çok yavaş): kaydırma sahnesi yerine düz bölümler */
.fallback, .lite-shot { display: none; }
.no-gl .stage { height: auto; }
.no-gl .pin { position: relative; height: auto; overflow: visible; contain: none; }
.no-gl .aura, .no-gl #gl, .no-gl .chips, .no-gl .progress, .no-gl .hint { display: none; }
.no-gl .story, .no-gl .story.r { position: relative; inset: auto; width: min(100%, 1200px); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 300px); gap: clamp(24px, 5vw, 72px); align-items: center; padding: clamp(40px, 6vw, 88px) max(6vw, 24px); opacity: 1 !important; visibility: visible !important; transform: none !important; pointer-events: auto; will-change: auto; }
.no-gl .story.r { grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); }
.no-gl .story.r .lite-shot { order: -1; }
.no-gl .story.first { grid-template-columns: minmax(0, 1fr) minmax(260px, 520px); padding-top: clamp(56px, 7vw, 110px); }
.no-gl .fallback { display: block; width: 100%; height: auto; }
.no-gl .lite-shot { display: block; width: 100%; height: auto; border-radius: 34px; border: 7px solid #181b22; outline: 1px solid #31544b; box-shadow: 0 30px 60px -24px #000; }

@media (max-width: 900px) {
  .stage { height: 340svh; }
  .story, .story.r { left: 0; right: auto; width: 100%; align-items: flex-end; padding-bottom: max(9vh, 64px); }
  .story-in, .first .story-in { max-width: none; }
  .stage h1 { font-size: clamp(30px, 8.6vw, 48px); }
  .stage h2 { font-size: clamp(32px, 9vw, 44px); }
  .stage .lede { margin-top: 14px; font-size: 15.5px; }
  .stage .store-badges { margin-top: 20px; }
  .chips, .progress, .hint { display: none; }
  .lang { order: 1; }
  .lang button { min-width: 34px; height: 32px; }
  .no-gl .story, .no-gl .story.r, .no-gl .story.first { grid-template-columns: 1fr; padding-block: 48px; }
  .no-gl .story.r .lite-shot { order: 0; }
  .no-gl .lite-shot, .no-gl .fallback { max-width: 300px; margin-inline: auto; }
  .no-gl .fallback { max-width: 420px; }
}
@media (max-width: 560px) { .brand span { display: none; } .nav-wrap { gap: 8px; } }
@media (prefers-reduced-motion: reduce) { .chip > div, .hint i { animation: none; } }
