/* ===========================================
   FX HOME — Ana sayfa: sinir ağı tuvali, canlı platform vitrini, süreç şeridi
   =========================================== */
:root {
  --fx-card-w: 300px;
  --fx-gap: 24px;
  --fx-marquee-dur: 55s;
}

/* ---------- Hero sinir ağı tuvali ---------- */
.fx-neural-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  display: block;
}

/* ---------- Canlı platformlar vitrini ---------- */
.fx-showcase {
  background: #ffffff;
  padding: 20px 0 100px;
  position: relative;
  overflow: hidden;
}

.fx-marquees {
  display: flex;
  flex-direction: column;
  gap: var(--fx-gap);
  margin-top: 10px;
}

.fx-marquee {
  overflow: hidden;
  padding: 14px 0 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.fx-marquee-track {
  display: flex;
  width: max-content;
  animation: fx-marquee-move var(--fx-marquee-dur) linear infinite;
  will-change: transform;
}
.fx-marquee-rev .fx-marquee-track { animation-direction: reverse; }
.fx-marquee:hover .fx-marquee-track,
.fx-marquee:focus-within .fx-marquee-track { animation-play-state: paused; }

.fx-marquee-group {
  display: flex;
  gap: var(--fx-gap);
  padding-right: var(--fx-gap);
  flex-shrink: 0;
}

@keyframes fx-marquee-move {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.fx-pcard {
  display: flex;
  flex-direction: column;
  width: var(--fx-card-w);
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid rgba(26, 54, 93, 0.10);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: var(--gray-800, #1a202c);
  box-shadow: 0 10px 30px -12px rgba(15, 42, 68, 0.22), 0 2px 8px -2px rgba(15, 42, 68, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.fx-pcard:hover,
.fx-pcard:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(200, 157, 59, 0.55);
  box-shadow: 0 18px 40px -14px rgba(15, 42, 68, 0.32), 0 4px 12px -4px rgba(200, 157, 59, 0.25);
}
.fx-pcard:focus-visible { outline: 2px solid var(--accent-color, #c89d3b); outline-offset: 3px; }

.fx-pcard img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  object-position: top;
  background: var(--primary-dark, #0f2a44);
}

.fx-pcard-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px 16px;
  flex: 1;
}
.fx-pcard-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-color, #1a365d);
  line-height: 1.25;
}
.fx-pcard-sum {
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--gray-600, #4a5568);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.9em;
}
.fx-pcard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(26, 54, 93, 0.08);
  font-size: 0.72rem;
}
.fx-pcard-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #1f8a4c;
}
.fx-pcard-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}
.fx-pcard-domain {
  color: var(--gray-500, #718096);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fx-showcase-cta { margin-top: 24px; }

/* Dokunmatik ve hareket azaltma: yatay kaydırılabilir satırlar */
@media (hover: none) {
  .fx-marquee { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-mask-image: none; mask-image: none; scrollbar-width: none; }
  .fx-marquee::-webkit-scrollbar { display: none; }
  .fx-marquee-track { animation: none; will-change: auto; }
  .fx-marquee-copy { display: none; }
  .fx-marquee-group { padding-left: 16px; padding-right: 16px; }
  .fx-pcard { scroll-snap-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .fx-marquee { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-mask-image: none; mask-image: none; }
  .fx-marquee-track { animation: none; will-change: auto; }
  .fx-marquee-copy { display: none; }
  .fx-marquee-group { padding-left: 16px; padding-right: 16px; }
  .fx-pcard { scroll-snap-align: center; transition: none; }
  .fx-pcard:hover, .fx-pcard:focus-visible { transform: none; }
}

/* ---------- Süreç şeridi ---------- */
.fx-process {
  background: #f8f9fa;
  padding: 20px 0 100px;
  position: relative;
}

.fx-steps-wrap {
  --fx-node: 56px;
  position: relative;
  margin-top: 30px;
}
.fx-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}
.fx-steps-line {
  position: absolute;
  top: calc(var(--fx-node) / 2 - 2px);
  left: 10%;
  right: 10%;
  height: 4px;
  border-radius: 4px;
  background: rgba(26, 54, 93, 0.12);
  overflow: hidden;
  z-index: 0;
}
.fx-steps-fill {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent-gradient-gold, linear-gradient(90deg, #c89d3b, #f0c75e));
  transform-origin: left center;
  transform: scaleX(var(--fx-fill, 1));
}

.fx-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.fx-step-node {
  width: var(--fx-node);
  height: var(--fx-node);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-color, #1a365d), var(--primary-dark, #0f2a44));
  border: 3px solid #f8f9fa;
  box-shadow: 0 0 0 2px var(--accent-color, #c89d3b), 0 8px 20px -6px rgba(15, 42, 68, 0.4);
  flex-shrink: 0;
  transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease, color 0.4s ease;
}
.fx-step-card {
  position: relative;
  margin-top: 22px;
  width: 100%;
  flex: 1;
  padding: 22px 18px 20px;
  background: #ffffff;
  border: 1px solid rgba(26, 54, 93, 0.10);
  border-radius: 18px;
  box-shadow: 0 10px 30px -14px rgba(15, 42, 68, 0.18);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease, opacity 0.4s ease;
}
.fx-step-no {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent-color, #c89d3b);
  margin-bottom: 6px;
}
.fx-step-card h3 {
  font-size: 1.05rem;
  line-height: 1.3;
  margin: 0 0 10px;
  color: var(--primary-color, #1a365d);
}
.fx-step-tag {
  display: inline-block;
  vertical-align: middle;
  margin-left: 4px;
  padding: 2px 9px;
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1f6b3f;
  background: rgba(34, 197, 94, 0.14);
  border-radius: 999px;
}
.fx-step-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--gray-600, #4a5568);
}

/* JS açıkken adımlar başta pasif; etkinleşince canlanır */
.fx-process.fx-js .fx-step:not(.fx-active) .fx-step-node {
  background: #ffffff;
  color: var(--gray-500, #718096);
  box-shadow: 0 0 0 2px rgba(26, 54, 93, 0.18);
}
.fx-process.fx-js .fx-step:not(.fx-active) .fx-step-card {
  opacity: 0.55;
  transform: translateY(6px);
}
.fx-process.fx-js .fx-step.fx-active .fx-step-node {
  transform: scale(1.08);
  box-shadow: 0 0 0 2px var(--accent-color, #c89d3b), 0 0 0 8px rgba(200, 157, 59, 0.18), 0 8px 20px -6px rgba(15, 42, 68, 0.4);
}
.fx-process.fx-js .fx-step.fx-active .fx-step-card {
  border-color: rgba(200, 157, 59, 0.45);
  box-shadow: 0 16px 36px -14px rgba(15, 42, 68, 0.28), 0 4px 14px -4px rgba(200, 157, 59, 0.22);
}

@media (max-width: 1100px) {
  .fx-steps { gap: 12px; }
  .fx-step-card { padding: 20px 12px 16px; }
  .fx-step-card h3 { font-size: 0.98rem; }
  .fx-step-card ul { font-size: 0.8rem; }
}

@media (max-width: 768px) {
  :root { --fx-card-w: 260px; --fx-gap: 16px; --fx-marquee-dur: 45s; }
  .fx-showcase, .fx-process { padding: 10px 0 70px; }

  .fx-steps-wrap { --fx-node: 48px; }
  .fx-steps { grid-template-columns: 1fr; gap: 20px; }
  .fx-steps-line {
    top: calc(var(--fx-node) / 2);
    bottom: calc(var(--fx-node) / 2);
    left: calc(var(--fx-node) / 2 - 2px);
    right: auto;
    width: 4px;
    height: auto;
  }
  .fx-steps-fill { transform-origin: center top; transform: scaleY(var(--fx-fill, 1)); }
  .fx-step { flex-direction: row; align-items: flex-start; text-align: left; gap: 16px; }
  .fx-step-card { margin-top: 0; padding: 18px 18px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .fx-step-node, .fx-step-card { transition: none; }
}
