/* Hero görseli: kod kartı Flutter ↔ Go arasında kendiliğinden geçer — ÖNİZLEME. */

.code-tabs {
  display: flex;
  gap: 4px;
  margin-top: 12px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.code-tabs span {
  position: relative;
  padding: 3px 8px;
  border-radius: 6px;
  color: #6f7c90;
  font: 600 7.5px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  animation: 9s ease-in-out infinite;
}

.code-tabs .tab-dart { animation-name: tab-on-first; }
.code-tabs .tab-go { animation-name: tab-on-second; }

.code-panes {
  display: grid;
}

.code-panes pre {
  grid-area: 1 / 1;
  margin-top: 10px !important;
  animation: 9s ease-in-out infinite;
}

.code-panes .pane-dart { animation-name: pane-first; }
.code-panes .pane-go { animation-name: pane-second; }

/* Go sözdizimi renkleri */
.code-card code i { color: #6f7c90; font-style: normal; }
.code-card code u { color: #f0c987; text-decoration: none; }

/* 0–45% Dart görünür, 50–95% Go görünür; aralarda yumuşak geçiş. */
@keyframes pane-first {
  0%, 45% { opacity: 1; transform: none; }
  50%, 95% { opacity: 0; transform: translateY(4px); }
  100% { opacity: 1; transform: none; }
}

@keyframes pane-second {
  0%, 45% { opacity: 0; transform: translateY(4px); }
  50%, 95% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(4px); }
}

@keyframes tab-on-first {
  0%, 45% { color: #e6edf7; background: rgba(255, 255, 255, 0.09); }
  50%, 95% { color: #6f7c90; background: transparent; }
  100% { color: #e6edf7; background: rgba(255, 255, 255, 0.09); }
}

@keyframes tab-on-second {
  0%, 45% { color: #6f7c90; background: transparent; }
  50%, 95% { color: #e6edf7; background: rgba(255, 255, 255, 0.09); }
  100% { color: #6f7c90; background: transparent; }
}

@media (prefers-reduced-motion: reduce) {
  .code-tabs span, .code-panes pre { animation: none; }
  .code-panes .pane-go { opacity: 0; }
  .code-tabs .tab-dart { color: #e6edf7; background: rgba(255, 255, 255, 0.09); }
}

/* ─── Dar ekran: üç kart da görünür, üst üste binen bir kolaj ─── */
@media (max-width: 680px) {
  .process-showcase .workflow-canvas {
    min-height: 440px;
  }

  .process-showcase .wireframe-card,
  .process-showcase .code-card {
    display: block;
  }

  .process-showcase .wireframe-card {
    top: 0;
    left: auto;
    right: 0;
    width: 56%;
    padding: 13px;
    --process-rest-transform: rotate(4deg);
    --process-stage-shift: 0px;
  }

  .process-showcase .wireframe-card p {
    display: none;
  }

  .process-showcase .code-card {
    top: 74px;
    left: 0;
    width: 70%;
    padding: 13px;
    --process-rest-transform: rotate(-2deg);
    --process-stage-shift: 0px;
  }

  .process-showcase .code-card pre {
    font-size: 7px;
  }

  .process-showcase .product-card-demo {
    top: auto;
    bottom: 0;
    left: auto;
    right: 2%;
    width: 46%;
    padding: 11px 11px 9px;
    --process-rest-transform: rotate(2deg);
    --process-stage-shift: 0px;
  }

  .process-showcase .product-phone {
    height: 228px;
  }
}

/* ─── Çekilebilir kartlar: tutma tırtıkları + üzerine gelince hafif kalkış ─── */
.workflow-card-head .wf-grip {
  margin-left: auto;
  width: 8px;
  height: 12px;
  flex: none;
  opacity: .4;
  background-image: radial-gradient(circle, currentColor 1.1px, transparent 1.4px);
  background-size: 4px 4px;
  transition: opacity .25s ease;
}
.workflow-canvas > .is-hover .wf-grip,
.workflow-canvas > .is-held .wf-grip { opacity: .85; }

.workflow-canvas > .is-hover {
  scale: 1.025;
  transition: scale .3s cubic-bezier(.2, .8, .2, 1), transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease;
  box-shadow: 0 26px 50px rgba(20, 24, 31, .16), 0 6px 14px rgba(20, 24, 31, .08);
}
.workflow-canvas > .is-leaving {
  transition: scale .35s ease, transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease;
}

@media (hover: none) {
  .workflow-card-head .wf-grip { opacity: .55; }
}
