/* Günkaya — Çok Yakında */
:root {
  --navy: #2e3658;          /* logo rengi */
  --ink: #0b0f1f;
  --deep: #141a33;
  --sun: #e9c48f;
  --sun-soft: #f4d9ae;
  --text: #f4f1ea;
  --muted: rgba(244, 241, 234, .64);
  --hair: rgba(255, 255, 255, .1);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
  /* sahne genişliği: ekran kadar, en az 880px (mobilde ortası görünür) */
  --W: max(100vw, 880px);
  /* sahne çizgi / cam değişkenleri (klonlara miras geçer) */
  --line: rgba(244, 217, 174, .58);
  --line-f: rgba(244, 217, 174, .3);
  --gop: .1;
  --body: #131933;          /* yapı siluetleri */
  --lop: .5;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Sahne düzeni ---------- */
.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  isolation: isolate;
}

.bg { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% 0%, #1d2547 0%, transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, var(--deep) 45%, var(--navy) 100%);
}
.bg__glow {
  position: absolute; left: 50%; bottom: calc(var(--W) * .0556);
  width: min(1400px, 160vw); aspect-ratio: 2 / 1;
  translate: -50% 50%;
  background: radial-gradient(closest-side, rgba(244, 205, 150, .16), rgba(233, 180, 120, .06) 45%, transparent 75%);
  filter: blur(10px);
  opacity: 0;
  animation: fade 3.6s var(--ease) .4s forwards;
}
.bg__grid {
  position: absolute; inset: -40px;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 80%);
          mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 80%);
  opacity: 0;
  animation: fade 2s ease .1s forwards;
}
.bg__cells {
  position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px);
  -webkit-mask-image: radial-gradient(85% 80% at 50% 45%, #000 45%, transparent 100%);
          mask-image: radial-gradient(85% 80% at 50% 45%, #000 45%, transparent 100%);
}
.bg__grain {
  position: absolute; inset: 0; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* içerik katmanları sahnenin üstünde; boş alanlar fareyi sahneye geçirir */
.topbar, .hero, .foot { position: relative; z-index: 1; pointer-events: none; }
.topbar > *, .hero > * { pointer-events: auto; }

/* ---------- Üst bar ---------- */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: clamp(18px, 3vw, 32px) clamp(16px, 4vw, 48px);
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  animation: rise 1.2s var(--ease) .2s both;
}
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 12px; border: 1px solid var(--hair); border-radius: 999px;
  background: rgba(255,255,255,.03); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--muted);
}
.badge__dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--sun);
  animation: pulse 2.4s ease-out infinite;
}
.lang { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,.25); }
.lang button {
  font: inherit; letter-spacing: inherit; color: var(--muted); background: none; border: 0;
  padding: 6px 4px; cursor: pointer; transition: color .3s;
}
.lang button[aria-pressed="true"] { color: var(--sun-soft); }
.lang button:hover { color: var(--text); }
.lang button:focus-visible, .pill:focus-visible, .direct a:focus-visible { outline: 1px solid var(--sun); outline-offset: 4px; }

/* ---------- Hero ---------- */
.hero {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 1vh clamp(16px, 5vw, 48px) max(150px, calc(var(--W) * .15));
}

.logo {
  width: clamp(220px, 34vw, 480px);
  aspect-ratio: 1895 / 264;
  -webkit-mask: url("/assets/logo-white.png") center / contain no-repeat;
          mask: url("/assets/logo-white.png") center / contain no-repeat;
  background: linear-gradient(105deg, #fff 0 42%, var(--sun-soft) 50%, #fff 58% 100%);
  background-size: 300% 100%;
  background-position: 100% 0;
  animation: logoIn 1.6s var(--ease) .35s both, sheen 7s ease-in-out 2.2s infinite;
}

.eyebrow {
  display: flex; align-items: center; gap: 14px; margin: clamp(24px, 4vh, 40px) 0 12px;
  font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--sun);
  animation: rise 1.2s var(--ease) .9s both;
}
.eyebrow b { font-weight: 500; }
.eyebrow span { width: 34px; height: 1px; background: linear-gradient(90deg, transparent, var(--sun)); }
.eyebrow span:last-child { transform: scaleX(-1); }

.headline {
  margin: 0;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(42px, 7vw, 92px); line-height: 1.08; letter-spacing: -.01em;
  animation: rise 1.4s var(--ease) 1.05s both;
}
/* italik "gün": degrade alanı harf taşmalarını kapsasın diye pay bırakılır */
.headline em {
  display: inline-block;
  font-style: italic; color: transparent;
  padding: .06em .14em .2em .16em;
  margin: -.06em -.1em -.2em -.12em;
  background: linear-gradient(180deg, #fff6e6 15%, var(--sun) 85%);
  -webkit-background-clip: text; background-clip: text;
}

.lead {
  max-width: 52ch; margin: 20px auto 0;
  font-size: clamp(14px, 1.25vw, 16px); line-height: 1.75; font-weight: 300; color: var(--muted);
  animation: rise 1.4s var(--ease) 1.25s both;
}

.contact {
  list-style: none; margin: clamp(24px, 4vh, 36px) 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
}
.contact li { animation: rise 1.2s var(--ease) both; }
.contact li:nth-child(1) { animation-delay: 1.45s; }
.contact li:nth-child(2) { animation-delay: 1.55s; }
.contact li:nth-child(3) { animation-delay: 1.65s; }
.contact li:nth-child(4) { animation-delay: 1.75s; }

.pill {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px;
  border: 1px solid var(--hair);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--text); text-decoration: none; font-size: 13px; font-weight: 500; letter-spacing: .04em;
  transition: border-color .4s, background .4s, transform .4s var(--ease), box-shadow .4s;
}
.pill svg { width: 16px; height: 16px; fill: var(--sun); transition: transform .4s var(--ease); }
.pill:hover {
  border-color: rgba(233,196,143,.55);
  background: linear-gradient(180deg, rgba(233,196,143,.16), rgba(233,196,143,.04));
  box-shadow: 0 8px 30px -10px rgba(233,196,143,.45);
  transform: translateY(-2px);
}
.pill:hover svg { transform: scale(1.12); }

.direct {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 12px;
  margin: 16px 0 0; font-size: 12px; letter-spacing: .06em; color: rgba(244,241,234,.38);
  animation: rise 1.2s var(--ease) 1.9s both;
}
.direct a { color: rgba(244,241,234,.6); text-decoration: none; transition: color .3s; }
.direct a:hover { color: var(--sun-soft); }

/* ---------- Ufuk sahnesi ---------- */
.scene { position: absolute; left: 0; right: 0; bottom: 0; z-index: 0; }
.scene svg {
  display: block; position: relative; left: 50%;
  width: var(--W); height: auto; aspect-ratio: 1440 / 380;
  transform: translateX(-50%);
  overflow: visible;
}

.sun { transform: translateY(150px); animation: sunrise 4.2s var(--ease) .5s forwards; }
.sun__ring { fill: none; stroke: var(--sun-soft); stroke-width: 1.1; opacity: .75; vector-effect: non-scaling-stroke; }
.sun__dash { fill: none; stroke: var(--sun); stroke-width: .8; stroke-dasharray: 2 7; opacity: .45; vector-effect: non-scaling-stroke; }
.sun__faint { fill: none; stroke: var(--sun); stroke-width: .7; opacity: .14; vector-effect: non-scaling-stroke; }
.sun__ticks { transform-box: view-box; transform-origin: 720px 300px; animation: spin 140s linear infinite; }
.sun__ticks path { fill: none; stroke: var(--sun-soft); stroke-width: .8; opacity: .4; vector-effect: non-scaling-stroke; }

.ground path { fill: none; stroke: var(--sun); stroke-width: .7; opacity: .22; vector-effect: non-scaling-stroke; }
.ground { opacity: 0; animation: fade 2.4s ease 1s forwards; }

.trolley { animation: trolley 18s ease-in-out 3.5s infinite alternate; }
.beacons circle { fill: #ffd9a0; animation: beacon 2.2s ease-in-out infinite; }

#arch path {
  fill: none; stroke: var(--line); stroke-width: 1.15;
  stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  /* --dash: ekran ölçeği (main.js ayarlar). Sabit çizgi ölçeği büyük ekranda kesik çizim yapıyordu */
  stroke-dasharray: var(--dash, 3); stroke-dashoffset: var(--dash, 3);
  animation: draw 2s var(--ease) var(--d, 0s) forwards;
  transition: stroke .5s ease;
}
#arch .bd path {
  fill: var(--body); stroke: none; stroke-dasharray: none; animation: none;
}
#arch .bd { opacity: 0; animation: fade 1.6s ease calc(var(--d, 0s) + .6s) forwards; }
#arch .land .gls, #arch .land .bd { --d: 1.1s; }
#arch .pool { fill: url(#poolG); opacity: 0; animation: fade 2s ease 2.6s forwards, pool 5s ease-in-out 4.6s infinite; }
#arch .lamps { opacity: 0; animation: fade 1.5s ease 2.8s forwards; }
#arch .lamp__glow { fill: url(#lampG); animation: lamp 4s ease-in-out infinite; }
#arch .lamp__bulb { fill: #ffe2b4; }
#arch path.f {
  stroke: var(--line-f); stroke-width: .8;
  animation-duration: 1.8s; animation-delay: calc(var(--d, 0s) + .45s);
}
#arch .gls { opacity: 0; animation: fade 1.4s ease calc(var(--d, 0s) + 1.3s) forwards; }
#arch .gl {
  fill: url(#glassG); fill-opacity: var(--gop);
  transition: fill-opacity .6s ease;
}
#arch .gl.lit { fill-opacity: var(--lop); animation: flicker 7s ease-in-out infinite; }
#arch .gl.lit:nth-child(3n) { animation-delay: -2.4s; }
#arch .gl.lit:nth-child(3n+1) { animation-delay: -4.8s; }
#arch .hit { fill: transparent; pointer-events: var(--hitpe, all); }
#arch .b { transition: filter .6s ease; }

/* yapı vurgulandığında (fare veya otomatik gezinti) */
#arch .b.is-on { --line: #fff3dc; --line-f: rgba(255, 236, 205, .75); --gop: .32; --lop: .95; filter: drop-shadow(0 0 6px rgba(255, 210, 150, .55)); }
#arch .b.is-on .gl.lit { animation: none; }

/* imleç ışığı: daha parlak kopya yalnızca imleç çevresinde görünür */
.reveal { --line: #fff6e6; --line-f: rgba(255, 240, 215, .8); --gop: .22; --lop: .9; pointer-events: none; --hitpe: none; }

.horizon { opacity: 0; animation: fade 1.6s ease .2s forwards; }

.tag { opacity: 0; transform: translateY(-4px); transition: opacity .45s ease, transform .45s var(--ease); }
.tag.is-on { opacity: 1; transform: none; }
.tag path { stroke: var(--sun); stroke-width: 1; vector-effect: non-scaling-stroke; }
.tag circle { fill: var(--sun); }
.tag text {
  fill: var(--sun-soft); font-family: var(--sans); font-size: 9.5px; font-weight: 500;
  letter-spacing: .28em; text-anchor: middle; text-transform: uppercase;
  paint-order: stroke; stroke: rgba(11, 15, 31, .65); stroke-width: 3px;
}

/* ---------- Alt bar ---------- */
.foot {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px clamp(16px, 4vw, 48px) max(18px, env(safe-area-inset-bottom));
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(244,241,234,.5);
  animation: fade 1.6s ease 2s both;
}
.progress { display: inline-flex; align-items: center; gap: 12px; }
.progress i { position: relative; width: 90px; height: 1px; background: rgba(255,255,255,.15); overflow: hidden; }
.progress b { position: absolute; inset: 0; width: 40%; background: var(--sun); animation: loading 2.8s var(--ease) infinite; }

/* ---------- Animasyonlar ---------- */
@keyframes fade { to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes logoIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes sheen { 0%, 55% { background-position: 100% 0; } 85%, 100% { background-position: 0% 0; } }
@keyframes sunrise { to { transform: translateY(0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pool { 0%, 100% { opacity: .55; } 50% { opacity: .85; } }
@keyframes lamp { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
@keyframes flicker { 0%, 100% { fill-opacity: var(--lop); } 50% { fill-opacity: calc(var(--lop) * .6); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes trolley { 0%, 12% { transform: translateX(0); } 88%, 100% { transform: translateX(-96px); } }
@keyframes beacon { 0%, 100% { opacity: .15; } 50% { opacity: 1; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(233,196,143,.55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(233,196,143,0); } }
@keyframes loading { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }

/* ---------- Duyarlı ---------- */
@media (max-width: 640px) {
  .topbar { font-size: 10px; }
  .hero { justify-content: flex-start; padding-top: 7vh; padding-bottom: 150px; }
  .pill { padding: 11px 16px; font-size: 12px; }
  .foot { font-size: 10px; letter-spacing: .1em; }
  .progress i { width: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
  :root { --dash: none; }
  #arch path { stroke-dashoffset: 0; }
}
