/* Arcates — kahraman sahnesi yuzen katmanlari.
 *
 * Referans gorseldeki laptop ustu kartlar, rozetler ve sag yetkinlik rayi.
 * Tamami dekoratiftir (`aria-hidden`), metni panelden gelir.
 *
 * Kural: yalnizca transform ve opacity animasyonu; gizli baslangic durumlari
 * `html.js` altinda. DOCS.md 7.1
 */

.is-reference-home .ref-hero__visual { position: relative; }

/* --- Laptop ustu kart ---------------------------------------------------- */

.is-reference-home .ref-scene-card {
  position: absolute;
  z-index: 4;
  inset-block-start: 6%;
  inset-inline-start: 4%;
  inline-size: min(232px, 34%);
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(66, 158, 255, .34);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(9, 33, 60, .95), rgba(4, 18, 34, .92));
  box-shadow: 0 18px 44px rgba(0, 0, 0, .45), 0 0 0 1px rgba(10, 30, 54, .6);
  backdrop-filter: blur(3px);
}

.is-reference-home .ref-scene-card strong {
  color: #f2f8ff;
  font-family: var(--font-head, 'Sora', system-ui, sans-serif);
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: -.01em;
}

.is-reference-home .ref-scene-card span {
  color: #93aac4;
  font-size: 11px;
  line-height: 1.45;
}

/* --- Rakam rozetleri ----------------------------------------------------- */

.is-reference-home .ref-scene-chips {
  position: absolute;
  z-index: 4;
  inset-block-end: 12%;
  inset-inline-start: 8%;
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.is-reference-home .ref-scene-chip {
  display: grid;
  gap: 2px;
  padding: 10px 14px;
  border: 1px solid rgba(66, 158, 255, .3);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(9, 33, 60, .95), rgba(4, 18, 34, .93));
  box-shadow: 0 14px 34px rgba(0, 0, 0, .42);
}

.is-reference-home .ref-scene-chip strong {
  color: #45b2ff;
  font-family: var(--font-head, 'Sora', system-ui, sans-serif);
  font-size: 17px;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.is-reference-home .ref-scene-chip small {
  color: #8fa5bd;
  font-size: 10px;
  line-height: 1.3;
}

/* --- Sag yetkinlik rayi -------------------------------------------------- */

.is-reference-home .ref-scene-rail {
  position: absolute;
  z-index: 4;
  inset-block-start: 50%;
  inset-inline-end: 0;
  translate: 0 -50%;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(66, 158, 255, .26);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(8, 28, 51, .92), rgba(4, 17, 32, .9));
  box-shadow: 0 20px 46px rgba(0, 0, 0, .4);
  list-style: none;
}

.is-reference-home .ref-scene-rail li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #cfe0f2;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

.is-reference-home .ref-scene-rail__icon {
  inline-size: 26px;
  block-size: 26px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(24, 120, 214, .22);
  color: #4fb4ff;
}

.is-reference-home .ref-scene-rail__icon svg { inline-size: 15px; block-size: 15px; }

/* --- Giris. Kural 2: gizli baslangic yalnizca html.js altinda ------------- */

.js .is-reference-home .ref-scene-card,
.js .is-reference-home .ref-scene-chip,
.js .is-reference-home .ref-scene-rail {
  opacity: 0;
  transform: translateY(12px);
  animation: ref-scene-in 700ms cubic-bezier(.16, 1, .3, 1) forwards;
}

.js .is-reference-home .ref-scene-card   { animation-delay: 520ms; }
.js .is-reference-home .ref-scene-chip--1 { animation-delay: 700ms; }
.js .is-reference-home .ref-scene-chip--2 { animation-delay: 800ms; }
.js .is-reference-home .ref-scene-rail   { animation-delay: 620ms; }

@keyframes ref-scene-in {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .js .is-reference-home .ref-scene-card,
  .js .is-reference-home .ref-scene-chip,
  .js .is-reference-home .ref-scene-rail {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* --- Dar ekran ----------------------------------------------------------- */

@media (max-width: 1180px) {
  .is-reference-home .ref-scene-rail { padding: 12px; gap: 7px; }
  .is-reference-home .ref-scene-rail li { font-size: 11px; }
  .is-reference-home .ref-scene-card { inline-size: min(210px, 36%); }
}

/* Sahne kalabaliklasmasin: dar ekranda kart ve rozetler kalir, ray duser. */
@media (max-width: 940px) {
  .is-reference-home .ref-scene-rail { display: none; }
  .is-reference-home .ref-scene-card { inset-inline-start: 2%; }
  .is-reference-home .ref-scene-chips { inset-inline-start: 4%; inset-block-end: 8%; }
}

/* Telefonda sahnenin tamami duser.
 *
 * Rozetleri akisa sokmak kahraman yuksekligini buyutuyor ve referans
 * geometrisini bozuyordu (tek kolon akisi ve gorsel orani denetimleri).
 * Sahne dekoratif oldugu icin dar ekranda hic basilmamasi dogru davranis:
 * ayni bilgi zaten hizmet kartlarinda ve iletisim bolumunde duruyor. */
@media (max-width: 640px) {
  .is-reference-home .ref-scene-card,
  .is-reference-home .ref-scene-chips { display: none; }
}
