/* Ana sayfa sahneleri (build.py home_scenes, hareketler home.js). Son hâl CSS'te durur; home.js yalnızca kaydırmaya göre
   ara hâlleri verir. JS yoksa sayfa son hâliyle okunur. Ürün gösterimi olduğu için "hareketi azalt" açıkken de oynar. */

/* ---------- Açılış: stok görsel yerine koyu zeminde turuncu ışık ve logodaki kıvılcım ---------- */
.hero-glow { position: absolute; inset: 0; z-index: 0; overflow: hidden;
  background: radial-gradient(60% 55% at 50% 58%, rgba(255,107,53,.22), transparent 70%), radial-gradient(40% 40% at 78% 20%, rgba(255,107,53,.08), transparent 70%), var(--bg); }
.hero-glow::after { content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 72px 72px; mask-image: radial-gradient(70% 60% at 50% 55%, #000 30%, transparent 75%); }
.hero-spark { position: absolute; left: 50%; top: 56%; width: min(70vw, 760px); height: auto; translate: -50% -50%; fill: var(--accent); opacity: .09;
  filter: blur(1px); animation: hs-spark 9s ease-in-out infinite; }
/* Açılış videosu (Higgsfield ile üretildi: kıvılcım → bağlantı ağı → restoran → mağaza, 15 sn döngü). Yazı okunsun diye
   koyulaştırılır. Ürün demoları gibi "hareketi azalt" açıkken de oynar (bilerek; yavaş ve sessiz bir arka plan). */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .62; }
.hero-glow.has-video::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(75% 70% at 50% 50%, rgba(11,11,11,.55), rgba(11,11,11,.2) 60%, rgba(11,11,11,.75)), linear-gradient(180deg, rgba(11,11,11,.5), transparent 25%, transparent 70%, var(--bg)); }
.hero-glow.has-video .hero-spark { display: none; }
@keyframes hs-spark { 0%, 100% { transform: scale(.94) rotate(0deg); opacity: .07; } 50% { transform: scale(1.04) rotate(8deg); opacity: .13; } }

/* ---------- 1 · Ne yapıyoruz ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pillar { position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 340px; padding: 28px 26px 30px; border: 1px solid var(--border); border-radius: 18px;
  background: linear-gradient(180deg, #141413, #0e0e0d); transition: border-color .5s var(--ease), translate .6s var(--ease), background .5s var(--ease); }
/* Üzerine gelince kalkma 'translate' ile; giriş hareketi (home.js) 'transform' kullandığı için ikisi çakışmaz */
.pillar:hover { border-color: rgba(255,107,53,.55); translate: 0 -6px; background: linear-gradient(180deg, #1a1614, #0e0e0d); }
.pillar-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(255,107,53,.12); color: var(--accent); }
.pillar .num { font-size: 12px; letter-spacing: .18em; color: var(--muted); margin-top: 18px; }
.pillar h3 { margin: 0; font-size: 26px; letter-spacing: -.03em; line-height: 1.1; }
.pillar p { margin: 0; color: var(--dim); font-size: 16px; }
.pillar-go { margin-top: auto; color: var(--accent); }

/* ---------- 2 · Ürünler (masaüstünde sahne sabitlenir, kartlar yatay kayar; zemin ürün rengine döner) ---------- */
.hs-prod { position: relative; background: color-mix(in srgb, var(--pc, #a78bfa) 10%, var(--bg)); transition: background-color .8s var(--ease); }
.hp-head { padding-bottom: 40px; }
.hp-pin { overflow: hidden; }
.hp-track { display: flex; gap: 28px; padding: 0 var(--pad) 40px; width: max-content; }
.hp-card { flex: none; width: min(78vw, 1060px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center;
  padding: clamp(24px, 3.5vw, 52px); border-radius: 28px; border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
  background: radial-gradient(80% 90% at 85% 50%, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%), #121211; }
.hp-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.hp-copy .label { color: var(--c); }
.hp-logo.plogo { height: clamp(36px, 3.4vw, 52px); }
.hp-tag { margin: 0; font-size: clamp(22px, 2.2vw, 32px); line-height: 1.25; letter-spacing: -.02em; max-width: 18em; }
.hp-media { display: block; aspect-ratio: 4 / 5; max-height: 62vh; justify-self: end; width: 100%; max-width: 440px; border-radius: 20px; overflow: hidden;
  box-shadow: 0 40px 80px -40px color-mix(in srgb, var(--c) 60%, transparent), 0 0 0 1px rgba(255,255,255,.06); }
.hp-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.hp-card:hover .hp-media img { transform: scale(1.04); }
.hp-foot { display: flex; justify-content: flex-end; padding-bottom: clamp(60px, 8vw, 120px); }

/* ---------- 3 · Web siteleri: site kendini kurar (iskelet → tasarım → içerik → yayında) ---------- */
.hw-grid, .hi-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.hw-copy h2, .hi-copy h2 { margin: 0; font-size: clamp(44px, 6vw, 104px); font-weight: 700; letter-spacing: -.05em; line-height: .92; }
.hw-copy > p, .hi-copy > p { color: var(--dim); max-width: 480px; margin: 26px 0 0; }
.hw-copy .slide-points { margin-top: 26px; }
.hw-steps, .hi-flow { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 10px; }
.hw-steps { grid-template-columns: repeat(4, auto); justify-content: start; gap: 8px; }
.hw-steps li { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--border); color: var(--muted); font-size: 14px; transition: all .4s var(--ease); }
.hw-steps .num { font-size: 11px; letter-spacing: .12em; }
.hw-steps li.is-on { border-color: var(--accent); color: var(--fg); background: rgba(255,107,53,.1); }

.bm { position: relative; border-radius: 16px; overflow: hidden; background: #1b1b1a; border: 1px solid #2a2927; box-shadow: 0 60px 120px -50px rgba(255,107,53,.35); }
.bm-bar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; background: #222220; border-bottom: 1px solid #2c2b29; }
.bm-bar > i { width: 11px; height: 11px; border-radius: 50%; background: #3a3936; }
.bm-url { margin-inline-start: 14px; flex: 1; max-width: 280px; padding: 5px 12px; border-radius: 8px; background: #161615; color: #8a8780; font-size: 13px; }
.bm-url em { font-style: normal; margin-inline-end: 6px; opacity: 0; transition: opacity .4s; }
.bm-page { --t: .5s; padding: 22px 26px 28px; background: #fbf8f3; color: #161616; transition: background var(--t); }
.bm-nav { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid #ebe5dc; }
.bm-nav b { font-size: 18px; letter-spacing: -.02em; }
.bm-links { display: flex; gap: 18px; font-size: 13px; color: #57534e; }
.bm-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; align-items: center; padding: 26px 0; }
.bm-text h4 { margin: 0; font-size: clamp(20px, 2vw, 28px); line-height: 1.12; letter-spacing: -.03em; }
.bm-text p { margin: 12px 0 18px; font-size: 14px; color: #57534e; }
.bm-cta { display: inline-block; padding: 9px 16px; border-radius: 99px; background: #ff6b35; color: #fff; font-size: 13px; font-weight: 700; }
.bm-img { aspect-ratio: 4 / 3; border-radius: 14px; background: radial-gradient(70% 80% at 70% 30%, #ffb38f, transparent 60%), linear-gradient(135deg, #ff6b35, #7c3aed); }
.bm-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.bm-card { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.bm-ph { display: block; aspect-ratio: 16 / 10; border-radius: 10px; }
.bm-ph--0 { background: linear-gradient(135deg, #fde68a, #f59e0b); } .bm-ph--1 { background: linear-gradient(135deg, #a7f3d0, #10b981); } .bm-ph--2 { background: linear-gradient(135deg, #bfdbfe, #6366f1); }
.bm-live { position: absolute; top: 9px; inset-inline-end: 12px; padding: 4px 10px; border-radius: 99px; background: rgba(34,197,94,.15); color: #4ade80; font-size: 12px; font-weight: 700; opacity: 0; transition: opacity .4s; }
.bm-nav b, .bm-links span, .bm-text h4, .bm-text p, .bm-cta, .bm-card b { transition: color var(--t), background var(--t), border-radius var(--t); }
.bm-img, .bm-ph { transition: filter var(--t), opacity var(--t); }
/* 0 · iskelet: yazılar gri çubuk, görseller boş kutu */
.bm[data-stage="0"] .bm-page { background: #e9e5df; }
.bm[data-stage="0"] :is(.bm-nav b, .bm-links span, .bm-text h4, .bm-text p, .bm-card b) { color: transparent; background: #cfc9c0; border-radius: 6px; }
.bm[data-stage="0"] .bm-cta { color: transparent; background: #bdb6ac; }
.bm[data-stage="0"] :is(.bm-img, .bm-ph) { filter: grayscale(1) brightness(1.6) contrast(.25); }
/* 1 · tasarım: renkler gelir, içerik henüz yok */
.bm[data-stage="1"] :is(.bm-nav b, .bm-links span, .bm-text h4, .bm-text p, .bm-card b) { color: transparent; background: #e2dcd2; border-radius: 6px; }
.bm[data-stage="1"] :is(.bm-img, .bm-ph) { filter: saturate(.5) brightness(1.15); opacity: .55; }
/* 3 · yayında */
.bm[data-stage="3"] .bm-url em, .bm[data-stage="3"] .bm-live { opacity: 1; }

/* ---------- 4 · Entegrasyonlar: siparişin yolculuğu ---------- */
.hi-flow li { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 17px; transition: color .4s var(--ease); }
.hi-flow li i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border); font-style: normal; font-size: 13px; color: transparent; transition: all .4s var(--ease); }
.hi-flow li.is-on { color: var(--fg); }
.hi-flow li.is-on i { background: #16a34a; border-color: #16a34a; color: #fff; }
.hi-more { font-size: 14px; color: var(--muted) !important; }
.hi-map { position: relative; aspect-ratio: 1 / .78; }
/* Geniş ama alçak ekranlarda (ör. 1440×700) alttaki düğüm ekrandan taşmasın: harita yüksekliğe göre küçülür. */
@media (min-width: 1001px) { .hi-map { width: min(100%, calc((100svh - 200px) / .78)); margin-inline: auto; } }
.hi-map svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.in-line { stroke: #2b2a28; stroke-width: .35; vector-effect: non-scaling-stroke; stroke-width: 1.5; transition: stroke .5s var(--ease); }
.in-line.is-on { stroke: var(--accent); stroke-width: 2.5; filter: drop-shadow(0 0 6px rgba(255,107,53,.8)); stroke-dasharray: 6 6; animation: hs-dash 1s linear infinite; }
@keyframes hs-dash { to { stroke-dashoffset: -24; } }
.in-node { position: absolute; translate: -50% -50%; padding: 10px 16px; border-radius: 99px; border: 1px solid var(--border); background: #141413; color: var(--dim);
  font-size: 14px; font-weight: 600; white-space: nowrap; transition: all .5s var(--ease); }
.in-node.is-on { border-color: var(--accent); color: var(--fg); background: #24160f; box-shadow: 0 0 0 6px rgba(255,107,53,.12); }
.in-hub { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: clamp(84px, 9vw, 120px); aspect-ratio: 1; border-radius: 26%; overflow: hidden;
  box-shadow: 0 0 0 10px rgba(255,107,53,.08), 0 0 60px rgba(255,107,53,.35); }
.in-hub img { width: 100%; height: 100%; }

/* ---------- 5 · Özel yazılım: kıvılcım süreç çizgisinde ilerler ---------- */
.proc { --p: 1; margin-top: 10px; }
.proc-line { position: relative; height: 2px; background: var(--border); margin: 0 0 34px; }
.proc-fill { position: absolute; inset-block: 0; inset-inline-start: 0; width: calc(var(--p) * 100%); background: linear-gradient(90deg, rgba(255,107,53,.2), var(--accent)); }
[dir="rtl"] .proc-fill { background: linear-gradient(-90deg, rgba(255,107,53,.2), var(--accent)); }
.proc-spark { position: absolute; top: 50%; inset-inline-start: calc(var(--p) * 100%); width: 30px; height: 30px; translate: -50% -50%; color: var(--accent); filter: drop-shadow(0 0 10px rgba(255,107,53,.9)); }
[dir="rtl"] .proc-spark { translate: 50% -50%; }
.proc-spark svg { width: 100%; height: 100%; }
.proc-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.proc-steps li { opacity: .35; transition: opacity .5s var(--ease); }
.proc-steps li.is-on { opacity: 1; }
.proc-steps .num { font-size: 12px; letter-spacing: .18em; color: var(--accent); }
.proc-steps h3 { margin: 12px 0 8px; font-size: 28px; letter-spacing: -.03em; }
.proc-steps p { margin: 0; color: var(--dim); }
.needs { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: clamp(48px, 6vw, 80px); padding-top: 32px; border-top: 1px solid var(--border); }
.needs-list { flex: 1; display: flex; flex-wrap: wrap; gap: 10px; min-width: 280px; }
.needs-list span { padding: 9px 16px; border-radius: 99px; border: 1px solid var(--border); color: var(--dim); font-size: 15px; transition: border-color .3s, color .3s; }
.needs-list span:hover { border-color: var(--accent); color: var(--fg); }

/* Masaüstünde sabitlenen sahneler ekranı tam kaplar */
@media (min-width: 1001px) {
  .hs-web, .hs-int { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding-top: 110px; padding-bottom: 60px; }
  .hs-web > .hw-grid, .hs-int > .hi-grid { width: 100%; }
}

/* ---------- Dar ekran: sahneler alt alta, sabitleme yok ---------- */
@media (max-width: 1000px) {
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillar { min-height: 0; }
  .hw-grid, .hi-grid { grid-template-columns: 1fr; }
  .hp-track { flex-direction: column; width: auto; padding-bottom: 20px; }
  .hp-card { width: auto; grid-template-columns: 1fr; }
  .hp-media { justify-self: stretch; max-width: none; aspect-ratio: 16 / 10; max-height: none; }
  .proc-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .pillars, .proc-steps { grid-template-columns: 1fr; }
  .hw-steps { grid-template-columns: 1fr 1fr; }
  .hi-map { width: 74%; aspect-ratio: 1 / 1.1; margin: 16px auto 0; }  /* yanlardaki düğümler ekrandan taşmasın */
  .in-node { font-size: 11px; padding: 7px 10px; }
  .bm-page { padding: 16px 16px 20px; }
  .bm-links { display: none; }
  .bm-hero { grid-template-columns: 1fr; }
}

/* ---------- Neden Sophiras: hikâye (yapışkan görsel + adımlar) ---------- */
.why-story { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.ws-media { position: sticky; top: 110px; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; border: 1px solid var(--border);
  box-shadow: 0 50px 120px -50px rgba(255,107,53,.45); background: #121211; }
.ws-frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06);
  transition: opacity .8s var(--ease), transform 1.6s var(--ease); }
.ws-frame.is-on { opacity: 1; transform: none; }
.ws-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(11,11,11,.55)); pointer-events: none; }
.ws-count { position: absolute; z-index: 1; left: 20px; bottom: 16px; font-size: 13px; letter-spacing: .16em; color: var(--dim); }
.ws-count b { color: var(--accent); font-weight: 700; }
.ws-steps { list-style: none; margin: 0; padding: 0; }
.ws-step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 24px 0; }
.ws-step:first-child { min-height: 50vh; justify-content: flex-start; padding-top: 6vh; }
/* Sıradaki adımlar soluk ama okunur (saydamlık yerine renk: kontrast en az 4.5:1 kalır). */
.ws-step h3, .ws-step p { transition: color .6s var(--ease); }
.ws-step:not(.is-on) h3 { color: #6f6c66; }
.ws-step:not(.is-on) p { color: var(--muted); }
.ws-step .num { font-size: 12px; letter-spacing: .18em; color: var(--accent); }
.ws-step h3 { margin: 0; font-size: clamp(32px, 3.4vw, 52px); letter-spacing: -.04em; line-height: 1.02; }
.ws-step p { margin: 0; max-width: 30em; color: var(--dim); font-size: 18px; }
.ws-inline { display: none; }
@media (max-width: 1000px) {
  .why-story { grid-template-columns: 1fr; }
  .ws-media { display: none; }
  .ws-step, .ws-step:first-child { min-height: 0; padding: 0 0 40px; justify-content: flex-start; }
  .ws-step:not(.is-on) h3 { color: var(--fg); }
  .ws-step:not(.is-on) p { color: var(--dim); }
  .ws-inline { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; border: 1px solid var(--border); margin-bottom: 8px; }
}
