/* ===========================================================================
   Çözümler bölümü — "canlı akış" kartları          (#services · ana sayfa)
   Hareket kuralları: open-design / craft/animation-discipline.md
   - durum onayı 150–200 ms · giriş 380–460 ms · sahne döngüsü 7 s (yalnız görünürken)
   - yalnız transform / opacity / renk hareket eder
   - prefers-reduced-motion: hareket sıfır, içerik aynen okunur
   Kapsam: tüm seçiciler #services altında — başka sayfaların .sc kartları etkilenmez.
   ========================================================================== */

#services .svc-head{position:relative}
#services .svc-head::before{
  content:"";position:absolute;left:-120px;top:-140px;width:min(680px,80vw);height:420px;z-index:-1;
  background:radial-gradient(closest-side,rgba(200,255,0,.085),rgba(200,255,0,.03) 45%,transparent 72%);
  filter:blur(6px);pointer-events:none;
  animation:svc-ambient 26s var(--ease) infinite alternate;
}
@keyframes svc-ambient{
  from{transform:translate3d(0,0,0) scale(1);opacity:.75}
  to{transform:translate3d(60px,34px,0) scale(1.12);opacity:1}
}

/* başlık: kelime maskesi (JS sarar; JS yoksa düz metin kalır) */
#services .sh{font-size:clamp(28px,3.7vw,44px);max-width:30ch}
#services .sh .w{display:inline-block;overflow:hidden;padding-bottom:.16em;margin-bottom:-.16em;vertical-align:bottom}
#services .sh .w>span{display:inline-block;transform:translateY(115%);transition:transform .62s var(--ease)}
#services .svc-head.in .sh .w>span{transform:none}

/* başlık altı mono didaktik şerit */
#services .svc-note{display:flex;flex-wrap:wrap;gap:8px;margin-top:-22px;margin-bottom:30px}
#services .svc-note span{
  display:inline-flex;align-items:center;gap:7px;font-family:var(--mono);font-size:10px;letter-spacing:.1em;
  text-transform:uppercase;color:var(--fg-3);border:1px solid var(--line);border-radius:999px;padding:5px 11px;
  background:rgba(252,252,254,.02);transition:border-color .18s var(--ease),color .18s var(--ease),background .18s var(--ease)
}
#services .svc-note span::before{content:"";width:5px;height:5px;border-radius:50%;background:var(--lime);box-shadow:0 0 8px rgba(200,255,0,.8)}
#services .svc-note span:hover{border-color:var(--lime-line);color:var(--fg);background:var(--lime-dim)}

/* ------------------------------------------------------------------ ızgara */
#services .svc-g{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;align-items:stretch}
#services .svc-card{grid-column:span 2;--i:0}
#services .c1{grid-column:span 4}
#services .c7{grid-column:span 3}
#services .c6{grid-column:span 3}

/* -------------------------------------------------------------------- kart */
#services .svc-card{
  --rx:0deg;--ry:0deg;--ty:0px;--sc:1;--tsm:.4s;--mx:50%;--my:0%;
  position:relative;display:flex;flex-direction:column;isolation:isolate;
  padding:20px 21px 18px;border:1px solid var(--line);border-radius:10px;
  /* kart yüzeyi yarı opak: nokta matrisi kartın ALTINDA değil, aralarında kalsın
     (metin okunabilirliği için) */
  background:
    radial-gradient(120% 90% at 100% 0%,rgba(252,252,254,.05),transparent 58%),
    linear-gradient(180deg,rgba(7,15,17,.94),rgba(5,11,13,.92));
  transform:perspective(1100px) translateY(var(--ty)) scale(var(--sc)) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style:preserve-3d;
  transition:transform var(--tsm) var(--ease),opacity .5s var(--ease),border-color .2s var(--ease),box-shadow .26s var(--ease);
  will-change:transform;
  overflow:hidden;
}
#services .svc-card:hover{border-color:rgba(252,252,254,.16);box-shadow:0 18px 44px -28px rgba(0,0,0,.9),0 0 0 1px rgba(200,255,0,.06) inset}
#services .svc-card:focus-within{border-color:var(--lime-line)}

/* imleci takip eden ışık */
#services .svc-spot{
  position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:0;transition:opacity .24s var(--ease);
  background:radial-gradient(220px circle at var(--mx) var(--my),rgba(200,255,0,.13),rgba(200,255,0,.04) 42%,transparent 68%)
}
#services .svc-card:hover .svc-spot{opacity:1}

/* dönen kenar ışığı (hover) */
#services .svc-ring{
  position:absolute;inset:0;border-radius:inherit;padding:1px;pointer-events:none;opacity:0;
  background:conic-gradient(from var(--ang,0deg),transparent 0 58%,rgba(200,255,0,.85) 74%,rgba(252,252,254,.5) 82%,transparent 92%);
  -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,linear-gradient(#000 0 0);mask-composite:exclude;
  animation:svc-ring-don 5.5s linear infinite;transition:opacity .26s var(--ease)
}
#services .svc-card:hover .svc-ring,#services .svc-card:focus-within .svc-ring{opacity:.9}
@keyframes svc-ring-don{to{--ang:360deg}}
@property --ang{syntax:"<angle>";inherits:false;initial-value:0deg}

/* --------------------------------------------------------------- kart başı */
#services .svc-hd{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:13px}
#services .svc-ico{
  flex:none;display:grid;place-items:center;width:36px;height:36px;border-radius:9px;
  border:1px solid var(--line-2);background:linear-gradient(160deg,rgba(200,255,0,.14),rgba(252,252,254,.03) 70%);
  color:var(--lime);transition:transform .22s var(--ease),box-shadow .24s var(--ease),border-color .2s var(--ease)
}
#services .svc-ico svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
#services .svc-card:hover .svc-ico{transform:translateY(-3px) rotate(-5deg);box-shadow:0 10px 22px -14px rgba(200,255,0,.9);border-color:var(--lime-line)}
#services .svc-idx{
  font-family:var(--mono);font-size:9.5px;letter-spacing:.14em;text-transform:uppercase;color:rgba(252,252,254,.38);
  text-align:right;line-height:1.5;white-space:nowrap
}
#services .svc-idx b{display:block;font-size:12px;font-weight:600;color:var(--fg-3);transition:color .2s var(--ease)}
#services .svc-card:hover .svc-idx b{color:var(--lime)}

/* ---------------------------------------------------------------- metinler */
#services .svc-t{font-size:16.5px;line-height:1.28;font-weight:700;letter-spacing:-.022em;margin:0 0 7px;text-wrap:balance}
#services .c1 .svc-t{font-size:clamp(19px,2vw,23px);letter-spacing:-.03em;max-width:22ch}
#services .c7 .svc-t{max-width:26ch}
#services .svc-d{font-size:12.8px;line-height:1.68;color:var(--fg-2);margin:0}
#services .svc-fl{list-style:none;margin:13px 0 14px;padding:0;display:flex;flex-direction:column;gap:6px}
#services .svc-fl li{position:relative;padding-left:16px;font-size:12px;line-height:1.55;color:var(--fg-2)}
#services .svc-fl li::before{
  content:"";position:absolute;left:2px;top:.55em;width:5px;height:5px;border-radius:1px;background:var(--lime);
  opacity:.7;transition:transform .2s var(--ease),opacity .2s var(--ease)
}
#services .svc-card:hover .svc-fl li::before{transform:rotate(45deg);opacity:1}

/* -------------------------------------------------------------------- alt */
#services .svc-ft{
  margin-top:auto;padding-top:13px;display:flex;align-items:center;justify-content:space-between;gap:12px;
  border-top:1px solid var(--line)
}
#services .svc-kpi{display:flex;align-items:baseline;gap:6px;font-family:var(--mono);font-size:10px;letter-spacing:.06em;color:var(--fg-3);text-transform:uppercase}
#services .svc-kpi b{font-size:12.5px;font-weight:600;color:var(--fg);letter-spacing:0}
#services .svc-cta{
  display:inline-flex;align-items:center;gap:6px;font-size:11.5px;font-weight:600;letter-spacing:.01em;color:var(--lime);
  text-decoration:none;padding:5px 0;border-radius:4px;transition:color .18s var(--ease)
}
#services .svc-cta svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform .18s var(--ease)}
#services .svc-cta:hover svg{transform:translateX(3px)}
#services .svc-cta:focus-visible{outline:2px solid var(--foc);outline-offset:3px}

/* ------------------------------------------------- giriş: sıralı belirme */
#services.mtn .svc-card{opacity:0;--ty:22px}
#services.mtn .svc-card.in{opacity:1;--ty:0px}
#services.mtn .svc-card.in{transition-delay:calc(var(--i) * 65ms)}

/* ----------------------------------------------------------------- sahneler */
#services .svc-viz{
  position:relative;margin-top:15px;height:auto;min-height:104px;padding:11px 12px;overflow:hidden;
  border:1px solid var(--line);border-radius:7px;
  background:
    radial-gradient(130% 120% at 0% 0%,rgba(200,255,0,.055),transparent 58%),
    rgba(252,252,254,.018);
  font-family:var(--mono);font-size:10.5px;line-height:1.5;color:var(--fg-3);
  display:flex;flex-direction:column;justify-content:center;gap:7px
}
#services .svc-viz::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(180deg,transparent 55%,rgba(3,8,10,.55))
}
#services .c7 .svc-viz,#services .c1 .svc-viz{min-height:112px}
#services .vz-line,#services .vz-task,#services .vz-chip,#services .vz-stamp,#services .vz-conv,#services .vz-note,#services .vz-node{
  opacity:0;transform:translateY(7px)
}
#services .vz-line{
  position:relative;padding:5px 9px;border:1px solid var(--line);border-radius:6px;
  background:rgba(252,252,254,.045);color:var(--fg-2);max-width:94%
}
#services .c1 .vz-line{max-width:62%}
#services .c1 .vz-line.vz-bot{max-width:54%}
#services .vz-line .vz-who{
  display:block;font-size:8.5px;letter-spacing:.12em;text-transform:uppercase;color:rgba(252,252,254,.42);margin-bottom:1px
}
#services .vz-line.vz-bot{background:rgba(200,255,0,.07);border-color:var(--lime-line);color:var(--fg);align-self:flex-end}
#services .vz-line.vz-bot .vz-who{color:var(--lime)}
#services .vz-typing{align-self:flex-start;display:flex;gap:3px;opacity:0;padding:1px 3px}
#services .vz-typing i{width:4px;height:4px;border-radius:50%;background:var(--lime);opacity:.6}
#services .vz-tag{
  align-self:flex-start;font-size:8.5px;letter-spacing:.12em;text-transform:uppercase;
  color:var(--lime);border:1px solid var(--lime-line);border-radius:999px;padding:2px 7px;background:rgba(3,8,10,.75);opacity:0
}
#services .vz-stamp{
  align-self:flex-start;display:inline-flex;align-items:center;gap:6px;padding:4px 9px;border-radius:999px;
  font-size:9.5px;letter-spacing:.08em;text-transform:uppercase;color:#05080a;background:var(--lime);font-weight:600
}
#services .vz-conv{
  align-self:flex-end;font-size:9px;letter-spacing:.1em;text-transform:uppercase;color:var(--lime);
  border-bottom:1px solid var(--lime-line);padding-bottom:1px
}
#services .vz-note{font-size:9.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--fg-3)}
#services .vz-chips{display:flex;flex-wrap:wrap;gap:5px}
#services .vz-chip{
  border:1px solid var(--line);border-radius:999px;padding:3px 8px;font-size:9px;letter-spacing:.08em;
  text-transform:uppercase;color:var(--fg-3);background:rgba(252,252,254,.02);transition:background .3s var(--ease),color .3s var(--ease),border-color .3s var(--ease)
}
#services .vz-task{display:flex;align-items:center;gap:7px;font-size:10px;color:var(--fg-2);max-width:100%}
#services .vz-task i{
  flex:none;width:12px;height:12px;border-radius:50%;border:1px solid var(--lime-line);position:relative
}
#services .vz-task i::after{
  content:"";position:absolute;left:3.5px;top:1.5px;width:4px;height:7px;border:solid var(--lime);
  border-width:0 1.5px 1.5px 0;transform:rotate(40deg) scale(.4);opacity:0;transition:transform .24s var(--ease),opacity .24s var(--ease)
}
#services .vz-task.on i::after{transform:rotate(40deg) scale(1);opacity:1}
#services .vz-track{position:relative;display:flex;align-items:center;justify-content:space-between;gap:6px;padding-top:2px}
#services .vz-track::before{
  content:"";position:absolute;left:6px;right:6px;top:50%;height:1px;background:var(--line-2)
}
#services .vz-node{
  position:relative;z-index:1;font-size:9px;letter-spacing:.08em;text-transform:uppercase;color:var(--fg-3);
  border:1px solid var(--line);border-radius:999px;padding:3px 8px;background:#050b0d;transition:color .3s var(--ease),border-color .3s var(--ease)
}
#services .vz-node.on{color:var(--lime);border-color:var(--lime-line)}
#services .vz-track::after{
  content:"";position:absolute;left:6px;right:6px;top:50%;height:1px;z-index:0;background:var(--lime);
  box-shadow:0 0 7px rgba(200,255,0,.7);transform:scaleX(0);transform-origin:left;opacity:0
}
#services .vz-meter{height:4px;border-radius:999px;background:rgba(252,252,254,.07);overflow:hidden}
#services .vz-meter i{display:block;height:100%;width:0;border-radius:999px;background:linear-gradient(90deg,rgba(200,255,0,.5),var(--lime));transition:width .6s var(--ease)}
#services .vz-send{position:relative;width:26px;height:26px;display:grid;place-items:center;color:var(--lime)}
#services .vz-send svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#services .vz-send i{
  position:absolute;inset:0;border-radius:50%;border:1px solid var(--lime-line);opacity:0
}
#services .c7 .svc-viz{flex-direction:row;align-items:center;gap:14px;justify-content:flex-start;min-height:104px}
#services .c7 .vz-l{flex:1;display:flex;flex-direction:column;gap:8px;min-width:0}

/* --- sahne hareketi: yalnız kart görünürken (.live) --- */
#services .svc-card.live .vz-line,
#services .svc-card.live .vz-task,
#services .svc-card.live .vz-chip,
#services .svc-card.live .vz-stamp,
#services .svc-card.live .vz-conv,
#services .svc-card.live .vz-note,
#services .svc-card.live .vz-node{animation:svc-step 7s var(--ease) infinite;animation-delay:calc(var(--d,0) * 1s)}
#services .svc-card.live .vz-typing{animation:svc-typing 7s var(--ease) infinite}
#services .svc-card.live .vz-tag{animation:svc-tag 7s var(--ease) infinite}
#services .svc-card.live .vz-track::after{animation:svc-progress 7s var(--ease) infinite}
#services .svc-card.live .vz-send i{animation:svc-ping 2.6s var(--ease) infinite}
#services .svc-card.live .vz-send i:nth-child(2){animation-delay:.45s}
#services .svc-card.live .vz-send i:nth-child(3){animation-delay:.9s}
#services .svc-card.live .vz-meter i{width:var(--w,72%)}
#services .svc-card.live .vz-chip,
#services .svc-card.live .vz-node{
  animation:svc-step 7s var(--ease) infinite,svc-lit 7s var(--ease) infinite;
  animation-delay:calc(var(--d,0) * 1s),calc(var(--d,0) * 1s)
}
#services .svc-card.live .vz-task i::after{
  animation:svc-check 7s var(--ease) infinite;animation-delay:calc(var(--d,0) * 1s + .35s)
}
@keyframes svc-lit{
  0%,14%{color:var(--fg-3);border-color:var(--line);background:rgba(252,252,254,.02)}
  24%,84%{color:var(--lime);border-color:var(--lime-line);background:rgba(200,255,0,.1)}
  94%,100%{color:var(--fg-3);border-color:var(--line);background:rgba(252,252,254,.02)}
}
@keyframes svc-check{
  0%,10%{opacity:0;transform:rotate(40deg) scale(.4)}
  20%,84%{opacity:1;transform:rotate(40deg) scale(1)}
  94%,100%{opacity:0;transform:rotate(40deg) scale(.4)}
}

@keyframes svc-step{
  0%{opacity:0;transform:translateY(8px)}
  4%{opacity:1;transform:none}
  90%{opacity:1;transform:none}
  96%,100%{opacity:0;transform:translateY(-4px)}
}
@keyframes svc-typing{
  0%,24%{opacity:0}
  30%,44%{opacity:1}
  50%,100%{opacity:0}
}
@keyframes svc-typing-dot{0%,100%{opacity:.25;transform:translateY(0)}50%{opacity:1;transform:translateY(-2px)}}
#services .svc-card.live .vz-typing i{animation:svc-typing-dot 1s var(--ease) infinite}
#services .svc-card.live .vz-typing i:nth-child(2){animation-delay:.15s}
#services .svc-card.live .vz-typing i:nth-child(3){animation-delay:.3s}
@keyframes svc-tag{
  0%,46%{opacity:0;transform:translateY(6px)}
  54%,90%{opacity:1;transform:none}
  97%,100%{opacity:0;transform:none}
}
@keyframes svc-progress{
  0%,10%{opacity:0;transform:scaleX(0)}
  14%{opacity:.95;transform:scaleX(.02)}
  70%{opacity:.95;transform:scaleX(1)}
  88%{opacity:.95;transform:scaleX(1)}
  97%,100%{opacity:0;transform:scaleX(1)}
}
@keyframes svc-ping{
  0%{opacity:.6;transform:scale(.7)}
  70%,100%{opacity:0;transform:scale(1.9)}
}
#services .svc-card.duraklat *{animation-play-state:paused!important}

/* damga vurgusu */
#services .svc-card.live .vz-stamp{animation-name:svc-stamp}
@keyframes svc-stamp{
  0%,44%{opacity:0;transform:translateY(6px) scale(.94)}
  52%{opacity:1;transform:translateY(0) scale(1.04)}
  60%,88%{opacity:1;transform:none}
  96%,100%{opacity:0;transform:none}
}

/* ------------------------------------------------------------- alt eylemler */
#services .svc-more{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:22px}
#services .svc-more .btn{padding:10px 16px}
#services .svc-more .btn{display:inline-flex;align-items:center}

/* ------------------------------------------------------------------ mobil */
@media (max-width:1080px){
  #services .svc-g{grid-template-columns:repeat(2,minmax(0,1fr))}
  #services .svc-card,#services .c1,#services .c6,#services .c7{grid-column:span 2}
  #services .c7 .svc-viz{flex-direction:column;align-items:stretch;min-height:104px;gap:8px}
}
@media (max-width:760px){
  #services .svc-g{grid-template-columns:1fr;gap:12px}
  #services .svc-card,#services .c1,#services .c6,#services .c7{grid-column:span 1}
  #services .svc-card{padding:17px 16px 15px}
  #services .svc-t,#services .c1 .svc-t{font-size:16px}
  #services .svc-viz,#services .c1 .svc-viz,#services .c7 .svc-viz{min-height:100px}
  #services .svc-note{margin-top:-14px;margin-bottom:22px}
}

/* --------------------------------------------------- hareketi azalt tercihi */
@media (prefers-reduced-motion:reduce){
  #services .svc-card,
  #services .svc-card.in{opacity:1!important;--ty:0px!important;--rx:0deg!important;--ry:0deg!important;transform:none!important;transition:none!important}
  #services .sh .w>span{transform:none!important}
  #services .svc-head::before{animation:none!important}
  #services .svc-ring{animation:none!important;opacity:0!important}
  #services .svc-card .vz-line,
  #services .svc-card .vz-task,
  #services .svc-card .vz-chip,
  #services .svc-card .vz-stamp,
  #services .svc-card .vz-conv,
  #services .svc-card .vz-note,
  #services .svc-card .vz-node{opacity:1!important;transform:none!important;animation:none!important}
  #services .svc-card .vz-typing,
  #services .svc-card .vz-tag,
  #services .svc-card .vz-send i{display:none!important}
  #services .svc-card .vz-meter i{width:var(--w,72%)}
  #services .svc-card .vz-task i::after{transform:rotate(40deg) scale(1);opacity:1}
  #services .svc-card .vz-track::after{animation:none!important;opacity:.75!important;transform:scaleX(1)!important}
  #services .svc-card .vz-node,
  #services .svc-card .vz-chip{color:var(--lime)!important;border-color:var(--lime-line)!important;background:rgba(200,255,0,.09)!important}
}
