/* =====================================================================
   ERBAŞ YAZILIM — Video bölümü + Animasyonlu tanıtım (explainer)
   ===================================================================== */

/* ---------- Ana sayfa video bölümü ---------- */
.video-section .section-head { margin-bottom: 40px; }
.video-poster {
  position: relative; display: block; width: 100%; max-width: 940px; margin: 0 auto;
  aspect-ratio: 16 / 9; border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  overflow: hidden; cursor: pointer; padding: 0; background: linear-gradient(150deg, #0c1424, #131e38 55%, #0a1120);
  box-shadow: var(--shadow-lg); transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s;
}
.video-poster:hover { transform: translateY(-6px); box-shadow: 0 50px 100px -40px rgba(91,140,255,.45); }
.video-poster .vp-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(500px 300px at 20% 10%, rgba(91,140,255,.35), transparent 65%),
    radial-gradient(480px 320px at 88% 90%, rgba(34,211,238,.28), transparent 65%),
    radial-gradient(400px 300px at 60% 50%, rgba(124,92,255,.25), transparent 70%);
}
.video-poster .vp-grid {
  position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%);
}
.vp-mock {
  position: absolute; left: 50%; top: 54%; transform: translate(-50%,-50%);
  width: 62%; border-radius: 16px; border: 1px solid rgba(255,255,255,.14);
  background: rgba(9,14,26,.72); backdrop-filter: blur(6px); box-shadow: 0 30px 70px -30px rgba(0,0,0,.9);
  padding: 16px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px;
}
.vp-mock i { display: block; height: 52px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); }
.vp-mock i:nth-child(2) { background: linear-gradient(135deg, rgba(91,140,255,.35), rgba(124,92,255,.28)); }
.vp-mock i:nth-child(5) { background: linear-gradient(135deg, rgba(34,211,238,.3), rgba(91,140,255,.22)); }
.vp-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(8px);
  box-shadow: 0 0 0 0 rgba(91,140,255,.6); animation: vpPulse 2.4s infinite;
}
.video-poster:hover .vp-play { background: var(--grad); border-color: transparent; }
.vp-play svg { width: 34px; height: 34px; color: #fff; margin-left: 5px; }
@keyframes vpPulse { 0% { box-shadow: 0 0 0 0 rgba(91,140,255,.5); } 70% { box-shadow: 0 0 0 26px rgba(91,140,255,0); } 100% { box-shadow: 0 0 0 0 rgba(91,140,255,0); } }
.vp-badge {
  position: absolute; left: 22px; bottom: 20px; display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px; border-radius: 999px; background: rgba(7,11,20,.7); border: 1px solid var(--border-strong);
  font-size: .82rem; color: var(--text-soft); backdrop-filter: blur(8px);
}
.vp-badge b { color: #fff; }
.vp-duration { position: absolute; right: 22px; top: 20px; padding: 7px 13px; border-radius: 999px; background: rgba(7,11,20,.7); border: 1px solid var(--border-strong); font-size: .78rem; color: var(--text-soft); }

/* ---------- Modal ---------- */
.video-modal { position: fixed; inset: 0; z-index: 200; display: none; }
.video-modal.open { display: block; }
.vm-backdrop { position: absolute; inset: 0; background: rgba(3,6,12,.86); backdrop-filter: blur(10px); animation: fadeIn .3s ease; }
.vm-frame {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: min(1100px, 94vw); border-radius: 20px; overflow: hidden;
  border: 1px solid var(--border-strong); background: #060a14; box-shadow: 0 60px 120px -40px #000;
  animation: vmIn .45s cubic-bezier(.2,.8,.2,1);
}
@keyframes vmIn { from { opacity: 0; transform: translate(-50%,-46%) scale(.97); } }
.vm-close {
  position: absolute; right: 12px; top: 12px; z-index: 5; width: 42px; height: 42px; border-radius: 12px;
  background: rgba(7,11,20,.7); border: 1px solid var(--border-strong); color: #fff; cursor: pointer; font-size: 1.2rem; line-height: 1;
  display: grid; place-items: center; transition: .2s;
}
.vm-close:hover { background: var(--grad); border-color: transparent; }
.vm-embed { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; }
.vm-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Explainer ---------- */
.explainer { position: relative; width: 100%; aspect-ratio: 16/9; background: #060a14; overflow: hidden; }
.ex-scenes { position: absolute; inset: 0; }
.ex-scene { position: absolute; inset: 0; opacity: 0; visibility: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 5% 7%; text-align: center; }
.ex-scene.active { opacity: 1; visibility: visible; }
.ex-scene .anim { opacity: 0; }
.ex-scene.active .anim { animation: exUp .8s cubic-bezier(.2,.8,.2,1) forwards; }
.ex-scene.active .anim.d1 { animation-delay: .15s; } .ex-scene.active .anim.d2 { animation-delay: .3s; }
.ex-scene.active .anim.d3 { animation-delay: .45s; } .ex-scene.active .anim.d4 { animation-delay: .6s; }
.ex-scene.active .anim.d5 { animation-delay: .75s; } .ex-scene.active .anim.d6 { animation-delay: .9s; }
@keyframes exUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes exFade { from { opacity: 0; } to { opacity: 1; } }

.ex-h { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.4rem, 3.6vw, 2.7rem); line-height: 1.15; letter-spacing: -.02em; margin-bottom: 4%; }
.ex-h span { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ex-h .good { color: var(--green); -webkit-text-fill-color: var(--green); }
.ex-h .bad { color: var(--red); -webkit-text-fill-color: var(--red); }
.ex-sub { color: var(--text-soft); font-size: clamp(.8rem, 1.5vw, 1.05rem); max-width: 620px; }
.ex-kicker { font-size: clamp(.62rem, 1vw, .78rem); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 3%; font-weight: 700; }
.ex-bg { position: absolute; inset: 0;
  background: radial-gradient(600px 380px at 18% 12%, rgba(91,140,255,.28), transparent 62%),
              radial-gradient(560px 380px at 85% 88%, rgba(34,211,238,.22), transparent 62%),
              radial-gradient(520px 360px at 55% 50%, rgba(124,92,255,.2), transparent 68%); }

/* Intro */
.s-intro .ex-logo { width: clamp(64px, 9vw, 104px); height: auto; margin-bottom: 4%; animation: exPop 1s cubic-bezier(.2,.9,.25,1.2) both; }
@keyframes exPop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
.s-intro .ex-title { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.8rem, 5vw, 3.6rem); letter-spacing: -.02em; }
.s-intro .ex-title span { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.s-intro .ex-tag { color: var(--text-soft); letter-spacing: .28em; text-transform: uppercase; font-size: clamp(.6rem, 1.1vw, .82rem); margin-top: 16px; }
.s-intro .ex-line { height: 3px; width: 0; margin-top: 26px; border-radius: 3px; background: var(--grad); }
.s-intro.active .ex-line { animation: exLine 1s .6s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes exLine { to { width: 180px; } }

/* Chaos chips */
.ex-chaos { position: relative; width: min(760px, 100%); height: clamp(130px, 22vw, 200px); margin-top: 3%; }
.chip {
  position: absolute; padding: 11px 20px; border-radius: 999px; font-size: clamp(.68rem, 1.3vw, .92rem); font-weight: 600;
  background: rgba(255,255,255,.05); border: 1px solid rgba(251,113,133,.35); color: #fecdd3;
  opacity: 0; animation: exFade .6s forwards;
}
.chip.c1 { left: 2%; top: 6%; animation-delay: .3s; transform: rotate(-4deg); }
.chip.c2 { right: 4%; top: 2%; animation-delay: .55s; transform: rotate(3deg); }
.chip.c3 { left: 16%; bottom: 8%; animation-delay: .8s; transform: rotate(2deg); }
.chip.c4 { right: 12%; bottom: 4%; animation-delay: 1.05s; transform: rotate(-3deg); }
.chip.c5 { left: 44%; top: 42%; animation-delay: 1.3s; }

/* Panels used across scenes */
.ex-panel { background: rgba(255,255,255,.04); border: 1px solid var(--border-strong); border-radius: 16px; padding: 3%; width: min(760px, 100%); }
.ex-row { display: flex; align-items: center; gap: 14px; }
.ex-tag { font-size: clamp(.56rem, .95vw, .72rem); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 4px 11px; border-radius: 999px; }
.ex-tag.tech { background: rgba(91,140,255,.16); color: #a8c1ff; border: 1px solid rgba(91,140,255,.35); }
.ex-tag.hk { background: rgba(52,211,153,.14); color: #6ee7b7; border: 1px solid rgba(52,211,153,.35); }
.ex-tag.guest { background: rgba(232,195,122,.15); color: #f0d69c; border: 1px solid rgba(232,195,122,.35); }
.ex-tag.ok { background: rgba(52,211,153,.18); color: #6ee7b7; border: 1px solid rgba(52,211,153,.4); }
.ex-code { margin-left: auto; color: var(--muted); font-family: var(--font-head); font-size: clamp(.58rem, .95vw, .76rem); }
.ex-progress { height: 7px; border-radius: 999px; background: rgba(255,255,255,.1); margin-top: 13px; overflow: hidden; }
.ex-progress i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--grad); }
.s-order.active .ex-progress i { animation: exFill 4.4s .9s cubic-bezier(.3,.7,.3,1) forwards; }
@keyframes exFill { to { width: 100%; } }
.s-order .ex-flow { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 3%; flex-wrap: wrap; }
.ex-step { padding: 8px 15px; border-radius: 10px; font-size: clamp(.6rem, 1.05vw, .8rem); background: rgba(255,255,255,.04); border: 1px solid var(--border); color: var(--muted); opacity: 0; animation: exFade .5s forwards; }
.s-order.active .ex-step:nth-child(1) { animation-delay: 1.2s; color: #a8c1ff; border-color: rgba(91,140,255,.4); }
.s-order.active .ex-step:nth-child(2) { animation-delay: 2.2s; }
.s-order.active .ex-step:nth-child(3) { animation-delay: 3.2s; }
.s-order.active .ex-step:nth-child(4) { animation-delay: 4.2s; color: #6ee7b7; border-color: rgba(52,211,153,.4); }
.ex-arrow { color: var(--muted); }

/* QR / phone */
.ex-qrwrap { display: flex; align-items: center; gap: 5%; justify-content: center; flex-wrap: wrap; }
.ex-phone { width: clamp(120px, 17vw, 176px); aspect-ratio: 9/18.5; border-radius: 26px; border: 2px solid var(--border-strong); background: linear-gradient(180deg, #0e1626, #0a1120); padding: 12px; box-shadow: var(--shadow); }
.ex-phone .scr { width: 100%; height: 100%; border-radius: 16px; background: rgba(255,255,255,.03); border: 1px solid var(--border); padding: 12px; display: grid; gap: 8px; align-content: start; }
.ex-phone .scr b { height: 9px; border-radius: 5px; background: rgba(255,255,255,.12); display: block; }
.ex-qrbox { width: clamp(96px, 13vw, 140px); aspect-ratio: 1; border-radius: 16px; background: #fff; padding: 10px;
  background-image: repeating-conic-gradient(#0b1220 0% 25%, #eaf0fa 0% 50%); background-size: 15px 15px; background-position: center; }
.ex-phone .scr .ex-tag { justify-self: start; }
.s-qr.active .ex-qrbox { animation: exPop .7s .5s both; }

/* Languages */
.ex-langs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 3%; }
.ex-lang { padding: 9px 17px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--border-strong); font-size: clamp(.64rem, 1.15vw, .86rem); opacity: 0; }
.s-survey.active .ex-lang { animation: exPop .5s forwards; }
.s-survey.active .ex-lang:nth-child(1) { animation-delay: .6s; }
.s-survey.active .ex-lang:nth-child(2) { animation-delay: .8s; }
.s-survey.active .ex-lang:nth-child(3) { animation-delay: 1s; }
.s-survey.active .ex-lang:nth-child(4) { animation-delay: 1.2s; }
.ex-lang b { color: var(--accent); }
.ex-bigstars { font-size: clamp(1.6rem, 4vw, 2.8rem); color: var(--gold); letter-spacing: 6px; margin: 2% 0; }
.s-survey.active .ex-bigstars { animation: exUp .8s .3s both; }
.ex-score { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.4rem, 3.4vw, 2.4rem); background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* Sync */
.ex-sync { width: clamp(90px, 13vw, 140px); height: clamp(90px, 13vw, 140px); border-radius: 50%; border: 2px dashed rgba(91,140,255,.5); display: grid; place-items: center; margin: 0 auto 4%; position: relative; }
.ex-sync::after { content: ""; position: absolute; inset: 12px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--accent); }
.s-pms.active .ex-sync::after { animation: exSpin 1.1s linear infinite; }
.s-pms.active .ex-sync { animation: exPop .7s both; }
@keyframes exSpin { to { transform: rotate(360deg); } }
.ex-sync svg { width: 40%; height: 40%; color: #9db6ff; }
.ex-nodes { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 3%; }
.ex-node { padding: 8px 15px; border-radius: 10px; font-size: clamp(.6rem, 1.1vw, .82rem); background: rgba(255,255,255,.04); border: 1px solid var(--border); color: var(--text-soft); opacity: 0; animation: exFade .5s forwards; }
.s-pms.active .ex-node:nth-child(1) { animation-delay: .8s; } .s-pms.active .ex-node:nth-child(2) { animation-delay: 1s; }
.s-pms.active .ex-node:nth-child(3) { animation-delay: 1.2s; } .s-pms.active .ex-node:nth-child(4) { animation-delay: 1.4s; }

/* Reports */
.ex-bars { display: flex; align-items: flex-end; gap: clamp(8px,1.4vw,16px); height: clamp(110px, 20vw, 210px); justify-content: center; margin-top: 2%; }
.ex-bars span { width: clamp(24px, 4.4vw, 54px); border-radius: 8px 8px 4px 4px; background: var(--grad); height: 6%; opacity: .92; }
.s-report.active .ex-bars span { animation: exBar 1.1s cubic-bezier(.2,.8,.2,1) forwards; }
.s-report.active .ex-bars span:nth-child(1) { --h: 42%; animation-delay: .1s; }
.s-report.active .ex-bars span:nth-child(2) { --h: 66%; animation-delay: .2s; }
.s-report.active .ex-bars span:nth-child(3) { --h: 52%; animation-delay: .3s; }
.s-report.active .ex-bars span:nth-child(4) { --h: 84%; animation-delay: .4s; }
.s-report.active .ex-bars span:nth-child(5) { --h: 62%; animation-delay: .5s; }
.s-report.active .ex-bars span:nth-child(6) { --h: 96%; animation-delay: .6s; }
.s-report.active .ex-bars span:nth-child(7) { --h: 74%; animation-delay: .7s; }
@keyframes exBar { to { height: var(--h); } }
.ex-kpis { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 4%; }
.ex-kpi { padding: 12px 20px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--border-strong); opacity: 0; }
.s-report.active .ex-kpi { animation: exUp .6s forwards; }
.s-report.active .ex-kpi:nth-child(1) { animation-delay: 1.3s; } .s-report.active .ex-kpi:nth-child(2) { animation-delay: 1.5s; } .s-report.active .ex-kpi:nth-child(3) { animation-delay: 1.7s; }
.ex-kpi b { display: block; font-family: var(--font-head); font-size: clamp(1rem, 2.2vw, 1.6rem); background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ex-kpi small { color: var(--muted); font-size: clamp(.56rem, .95vw, .74rem); }

/* Outro */
.s-outro .ex-cta { display: inline-flex; gap: 10px; align-items: center; margin-top: 4%; padding: 14px 30px; border-radius: 999px; background: var(--grad); color: #fff; font-weight: 700; font-size: clamp(.8rem, 1.5vw, 1.05rem); box-shadow: 0 20px 45px -20px rgba(91,140,255,.8); }
.s-outro .ex-url { margin-top: 20px; font-weight: 800; font-size: clamp(1rem, 2.6vw, 1.6rem); letter-spacing: 0.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---------- Kontroller ---------- */
.ex-ui {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  display: flex; align-items: center; gap: 12px; padding: 14px 16px 12px;
  background: linear-gradient(0deg, rgba(3,6,12,.9), rgba(3,6,12,0));
}
.ex-btn { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--border-strong); background: rgba(7,11,20,.6); color: #fff; cursor: pointer; display: grid; place-items: center; transition: .2s; flex-shrink: 0; }
.ex-btn:hover { background: var(--grad); border-color: transparent; }
.ex-btn svg { width: 17px; height: 17px; }
.ex-track { flex: 1; height: 6px; border-radius: 999px; background: rgba(255,255,255,.16); overflow: hidden; cursor: pointer; }
.ex-fill { height: 100%; width: 0; background: var(--grad); border-radius: 999px; }
.ex-time { color: var(--text-soft); font-size: .78rem; font-variant-numeric: tabular-nums; min-width: 84px; text-align: right; }
.ex-dots { display: flex; gap: 6px; }
.ex-dot { width: 8px; height: 8px; border-radius: 50%; border: none; background: rgba(255,255,255,.25); cursor: pointer; padding: 0; transition: .2s; }
.ex-dot.on { background: #fff; transform: scale(1.15); }
.ex-dot:hover { background: var(--accent); }

@media (max-width: 720px) {
  .ex-time { display: none; }
  .vp-play { width: 68px; height: 68px; }
  .vp-play svg { width: 26px; height: 26px; }
  .ex-ui { gap: 8px; padding: 10px; }
  .ex-dots { display: none; }
}
