/* ===== Ana sayfa — tam ekran bölümler + 3D sahne ===== */
body[data-page="home"] {
  background:
    radial-gradient(1200px 800px at 75% 40%, rgba(242, 165, 22, .12), transparent 60%),
    radial-gradient(900px 700px at 0% 100%, rgba(26, 58, 94, .6), transparent 70%),
    var(--navy-950);
  background-attachment: fixed;
}

#scene3d { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; opacity: 0; }
.scene-shade {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(3, 10, 20, .86) 0%, rgba(3, 10, 20, .5) 36%, transparent 60%);
}
main#home { position: relative; z-index: 2; }

/* ----- Tam ekran bölüm ----- */
.fp { position: relative; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.fp-inner { width: min(1240px, 100% - 32px); }
.fp-copy { max-width: 560px; }
#giris .fp-copy { max-width: 700px; }
.fp h2 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); }
.hero-title { font-size: clamp(3rem, 7.4vw, 6.2rem); font-weight: 700; margin-bottom: .35em; text-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lead { font-size: 1.06rem; color: #cfd6e0; max-width: 46ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

.chips { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: .55rem; }
.chips li {
  padding: .45rem .95rem; border-radius: 999px; font-size: .82rem; font-weight: 500;
  border: 1px solid var(--line); background: rgba(10, 27, 48, .55); backdrop-filter: blur(6px);
}

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 2rem; }
.stat { padding: 18px 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(10, 27, 48, .6); backdrop-filter: blur(8px); }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--gold-300); line-height: 1; }
.stat span { font-size: .78rem; color: var(--muted); }

.mini-foot { margin-top: 3rem; font-size: .8rem; color: var(--muted); }

/* ----- Kayan yazı şeridi ----- */
.marquee {
  position: absolute; left: 0; right: 0; bottom: 0; overflow: hidden; padding: 16px 0;
  border-top: 1px solid var(--line); background: rgba(3, 10, 20, .55); backdrop-filter: blur(8px);
}
.marquee-track { display: flex; gap: 2rem; width: max-content; animation: marquee 32s linear infinite; }
.marquee span { font-family: var(--font-head); font-size: 1.05rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-300); white-space: nowrap; }
.marquee b { color: var(--gold-600); font-size: .8rem; align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ----- Yatay kaydırma bölümü ----- */
.hscroll { display: block; }
.h-track { display: flex; height: 100%; width: max-content; will-change: transform; }
.panel { width: 100vw; height: 100%; display: flex; align-items: center; flex-shrink: 0; }
.panel .fp-inner { margin-inline: auto; }
.big-num {
  font-family: var(--font-head); font-size: clamp(5rem, 12vw, 10rem); font-weight: 700; line-height: .9;
  color: transparent; -webkit-text-stroke: 1.5px rgba(233, 196, 106, .55); margin-bottom: .1em;
}
.h-progress { position: absolute; left: 50%; bottom: 40px; translate: -50% 0; z-index: 3; width: min(320px, 60vw); height: 2px; background: rgba(212, 162, 76, .2); border-radius: 2px; overflow: hidden; }
.h-progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--gold-300), var(--gold-500)); transform-origin: left; transform: scaleX(0); }

/* ----- Fullpage noktaları ----- */
.fp-dots { position: fixed; right: 28px; top: 50%; translate: 0 -50%; z-index: 40; display: flex; flex-direction: column; gap: 14px; }
.fp-dot { position: relative; width: 14px; height: 16px; border: 0; padding: 0; background: transparent; }
.fp-dot::before {
  content: ''; position: absolute; inset: 0; clip-path: var(--hex); background: rgba(212, 162, 76, .35);
  transition: background .3s, transform .4s var(--ease);
}
.fp-dot.active::before { background: var(--gold-400); transform: scale(1.35); }
.fp-dot:hover::before { background: var(--gold-300); }
.fp-dot span {
  position: absolute; right: 26px; top: 50%; translate: 0 -50%; white-space: nowrap; font-size: .74rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold-300); opacity: 0; transition: opacity .3s, transform .3s; transform: translateX(8px); pointer-events: none;
}
.fp-dot:hover span, .fp-dot.active span { opacity: 1; transform: none; }
.fp-dot.active span { opacity: .75; }

.fp-counter {
  position: fixed; right: 24px; bottom: 92px; z-index: 40; display: flex; align-items: center; gap: 12px;
  font-family: var(--font-head); font-size: .95rem; color: var(--muted);
}
.fp-counter #fp-cur { color: var(--gold-300); font-size: 1.3rem; }
.fp-counter i { width: 40px; height: 1px; background: var(--line); }

.scroll-cue {
  position: fixed; left: 50%; bottom: 74px; translate: -50% 0; z-index: 40; display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); transition: opacity .5s;
}
.scroll-cue span { width: 1px; height: 38px; background: linear-gradient(var(--gold-400), transparent); animation: cue 1.8s infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.scroll-cue.hide { opacity: 0; }

/* ----- Yükleniyor ----- */
.loader { position: fixed; inset: 0; z-index: 250; background: var(--navy-950); display: grid; place-items: center; }
.loader-inner { display: grid; justify-items: center; gap: 22px; }
.loader-logo { width: 110px; filter: drop-shadow(0 0 30px rgba(212, 162, 76, .45)); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.06); filter: drop-shadow(0 0 50px rgba(212, 162, 76, .7)); } }
.loader-bar { width: 200px; height: 2px; background: rgba(212,162,76,.2); overflow: hidden; border-radius: 2px; }
.loader-bar span { display: block; height: 100%; width: 100%; background: var(--gold-400); transform-origin: left; transform: scaleX(0); }
.loader-pct { font-family: var(--font-head); color: var(--gold-300); letter-spacing: .1em; }

/* ----- Hafif mod (eski telefonlar): 3D yerine hafif çizimler ----- */
html.lite body[data-page="home"] { background-attachment: scroll; }
html.lite #scene3d { display: none; }
.lite-stage {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(60% 45% at 72% 52%, rgba(242, 165, 22, .22), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34L28 66zm0 32L0 82' fill='none' stroke='%23d4a24c' stroke-opacity='.18' stroke-width='1.4'/%3E%3C/svg%3E");
}
.lite-art {
  position: absolute; right: 8vw; top: 50%; width: min(34vw, 380px); aspect-ratio: 1;
  translate: 0 -50%; opacity: 0; transform: scale(.85);
  transition: opacity .6s ease, transform .6s ease; /* yalnızca opaklık + ölçek: eski telefonlarda da akıcı */
}
.lite-art.on { opacity: 1; transform: none; }
.lite-art svg, .lite-art img { width: 100%; height: auto; display: block; }
.lite-art img { border-radius: 50%; }
@media (max-width: 860px) {
  .lite-art { right: 50%; top: auto; bottom: 9vh; width: min(58vw, 280px); translate: 50% 0; }
}

/* ----- Animasyon başlangıç durumu (JS çalışınca gizlenir) ----- */
.js-anim [data-r] { opacity: 0; }

/* ===== Mobil ===== */
@media (max-width: 860px) {
  .scene-shade { background: linear-gradient(180deg, rgba(3,10,20,.9) 0%, rgba(3,10,20,.55) 45%, transparent 68%); }
  .fp { align-items: flex-start; }
  .fp-inner { padding-top: 96px; }
  .fp h2 { font-size: clamp(2rem, 8.5vw, 2.8rem); }
  .hero-title { font-size: clamp(2.5rem, 11vw, 3.6rem); }
  .lead { font-size: .95rem; }
  .cta-row { margin-top: 1.3rem; }
  .fp-dots { right: 12px; gap: 10px; }
  .fp-dot span { display: none; }
  .fp-counter { display: none; }
  .stats { gap: 8px; }
  .stat { padding: 12px 10px; }
  .big-num { font-size: 4.2rem; }
  .chips li { font-size: .74rem; padding: .35rem .75rem; }
  .scroll-cue { display: none; }
}
@media (max-height: 700px) and (min-width: 861px) {
  .hero-title { font-size: clamp(2.6rem, 6vw, 4.6rem); }
  .fp h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
}
