/* Kesit web sitesi. Tanıtım her zaman karanlık (mağara); belge sayfaları okunabilirlik için sistem temasına uyar.
   Hareket dili oyunun motion token'larıyla aynı (GDD 3b): enter = OutCubic, süreler short .24 / medium .45 / cinematic 1.2+.
   Betik yok (CSP script-src 'none'); tüm hareket CSS, prefers-reduced-motion'da durur. */
:root {
  --bg: #fbfbfd;
  --fg: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --card: #ffffff;
  --light: #b8863f;
  --ease-enter: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-move: cubic-bezier(0.37, 0, 0.63, 1);
  --t-short: 0.24s;
  --t-medium: 0.45s;
  --t-cine: 1.4s;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b0d11; --fg: #eceef2; --muted: #9aa0ab; --line: #232730; --card: #12151b; --light: #e8c07a; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }

/* ---------- üst çubuk ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  padding-top: env(safe-area-inset-top);
  backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
}
.nav-in {
  max-width: 1080px; margin: 0 auto; height: 52px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
}
.brand { display: flex; align-items: center; font-weight: 700; letter-spacing: -0.01em; }
.brand, .brand a, .nav-links a { white-space: nowrap; flex-shrink: 0; }
.brand a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.brand .lab { color: var(--muted); font-weight: 600; transition: color var(--t-short); }
.brand .lab:hover { color: var(--fg); }
.brand .sep { width: 1px; height: 18px; background: currentColor; opacity: 0.22; margin: 0 12px; }
.nav-links { display: flex; gap: 22px; font-size: 14px; }
.nav-links a { text-decoration: none; color: var(--muted); transition: color var(--t-short); }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--fg); }

/* ---------- belge sayfaları ---------- */
.doc { max-width: 720px; margin: 0 auto; padding: 56px 20px 88px; }
.doc h1 { font-size: 40px; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 8px; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.doc .lead { font-size: 21px; line-height: 1.45; margin: 0 0 8px; }
.doc h2 { font-size: 24px; letter-spacing: -0.01em; margin: 44px 0 10px; }
.doc ul { padding-left: 22px; margin: 8px 0; }
.doc li { margin: 8px 0; }
.doc a { color: var(--light); text-underline-offset: 3px; }
.doc details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.doc summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.doc summary::-webkit-details-marker { display: none; }
.doc summary::after { content: '+'; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; transition: transform var(--t-short) var(--ease-enter); }
.doc details[open] summary::after { transform: rotate(45deg); }
.doc details p { margin: 10px 0 0; color: var(--muted); }
.contact { margin-top: 40px; padding: 22px 24px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.contact h2 { margin-top: 0; }

/* ---------- alt bilgi ---------- */
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.foot-in {
  max-width: 1080px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 12px 22px; justify-content: space-between;
  padding: 22px max(20px, env(safe-area-inset-right)) calc(40px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
}
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { text-decoration: none; transition: color var(--t-short); }
.foot a:hover { color: var(--fg); }

/* ---------- tanıtım: mağara ---------- */
.home { --bg: #07090c; --fg: #eceef2; --muted: #8e95a1; --line: #1b1f27; --card: #0f1217; background: var(--bg); color: var(--fg); color-scheme: dark; }
.hero { position: relative; overflow: hidden; min-height: calc(100svh - 52px); display: flex; align-items: flex-end; }
.art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* Kenar karartması (sinema kadrajı): kadraj her oranda değiştiği için SVG'de değil burada. */
.hero::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.7), transparent 18%, transparent 70%, rgba(0,0,0,.55)), linear-gradient(transparent 70%, var(--bg)); }
/* Yatay: sahne solda, metin sağdaki boş duvarda. */
.hero-copy {
  position: relative; z-index: 1; width: 100%; max-width: 1080px; margin: 0 auto;
  padding: 0 max(24px, env(safe-area-inset-right)) 14svh max(24px, env(safe-area-inset-left));
  display: grid; justify-items: start; justify-content: end; grid-template-columns: min(440px, 44%);
}
.hero-icon { width: 72px; height: 72px; border-radius: 17px; margin-bottom: 22px; box-shadow: 0 10px 34px rgba(0, 0, 0, 0.6); }
.hero h1 { font-size: clamp(38px, 6.2vw, 76px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 600; margin: 0 0 14px; max-width: 13ch; }
.hero p { font-size: clamp(17px, 2vw, 21px); line-height: 1.45; color: var(--muted); margin: 0 0 26px; max-width: 40ch; }
.stores { display: flex; gap: 12px; flex-wrap: wrap; }
.store {
  display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 20px 0 16px; border-radius: 14px;
  background: rgba(0, 0, 0, 0.55); color: #fff; text-decoration: none; font-weight: 600; font-size: 19px; line-height: 1.1;
  border: 1px solid rgba(255, 255, 255, 0.28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: border-color var(--t-short), transform var(--t-short) var(--ease-enter);
}
a.store:hover { border-color: #fff; transform: translateY(-1px); }
.store.soon { cursor: default; color: rgba(255, 255, 255, 0.82); }
.store small { display: block; font-weight: 500; font-size: 11px; opacity: 0.75; margin-bottom: 1px; }
.store svg { width: 26px; height: 26px; flex: none; }

/* Giriş: sahne karanlıktan açılır, metin ardından gelir (cinematic → medium). */
.art { animation: rise var(--t-cine) var(--ease-enter) both; }
.hero-copy > * { animation: enter 0.9s var(--ease-enter) both; }
.hero-copy > :nth-child(1) { animation-delay: 0.5s; }
.hero-copy > :nth-child(2) { animation-delay: 0.62s; }
.hero-copy > :nth-child(3) { animation-delay: 0.74s; }
.hero-copy > :nth-child(4) { animation-delay: 0.86s; }
@keyframes rise { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
@keyframes enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Sahnede yaşayan ışık: düzensiz ateş titremesi, gölge onunla nefes alır, sis akar, küre atar. */
.art-fire { animation: flicker 5.3s steps(1, end) infinite, breathe 7s var(--ease-move) infinite alternate; }
.art-shadow { transform-box: fill-box; transform-origin: 50% 100%; animation: sway 7s var(--ease-move) infinite alternate; }
.art-fog { animation: drift 38s var(--ease-move) infinite alternate; }
.art-orb { transform-box: fill-box; transform-origin: center; animation: pulse 3.6s var(--ease-move) infinite alternate; }
@keyframes flicker {
  0%, 100% { opacity: 1; } 11% { opacity: 0.9; } 13% { opacity: 1; } 37% { opacity: 0.94; }
  39% { opacity: 0.86; } 42% { opacity: 1; } 71% { opacity: 0.93; } 74% { opacity: 1; }
}
@keyframes breathe { from { filter: brightness(1); } to { filter: brightness(1.12); } }
@keyframes sway { from { transform: scale(1) skewX(0deg); } to { transform: scale(1.025) skewX(-1.2deg); } }
@keyframes drift { from { transform: translateX(-60px); } to { transform: translateX(60px); } }
@keyframes pulse { from { opacity: 0.8; transform: scale(0.92); } to { opacity: 1; transform: scale(1.08); } }

/* ---------- üç sütun ---------- */
.pillars {
  max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px;
  padding: 120px max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left));
}
.pillar .line { display: block; width: 1px; height: 64px; margin-bottom: 22px; background: linear-gradient(transparent, var(--light)); transform-origin: top; }
.pillar h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 8px; }
.pillar p { margin: 0; color: var(--muted); font-size: 16px; }
.promise { text-align: center; padding: 140px 24px 150px; }
.promise h2 { font-size: clamp(28px, 4.4vw, 44px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; margin: 0 auto 14px; max-width: 20ch; }
.promise p { font-size: 19px; color: var(--muted); margin: 0 auto; max-width: 34ch; }

/* Kaydırınca beliren içerik: yalnızca destekleyen tarayıcıda; desteklemeyen düz gösterir (içerik asla gizli kalmaz). */
@supports (animation-timeline: view()) {
  .pillar, .promise > * { animation: enter linear both; animation-timeline: view(); animation-range: entry 5% cover 30%; }
  .pillar .line { animation: grow linear both; animation-timeline: view(); animation-range: entry 10% cover 35%; }
  @keyframes grow { from { transform: scaleY(0); } to { transform: none; } }
}

/* Dikey ya da dar ekran: sahne üstte (çocuk + gölge kadrajda), metin altında. */
@media (max-width: 760px), (max-aspect-ratio: 1/1) {
  .hero { display: block; min-height: 0; }
  .art { position: relative; height: 58svh; min-height: 340px; }
  .hero::after { background: linear-gradient(transparent 40%, var(--bg) 58svh); }
  .hero-copy { display: grid; grid-template-columns: 1fr; justify-content: start; padding-top: 8px; padding-bottom: 24px; margin-top: -40px; }
}
@media (max-width: 760px) {
  .pillars { grid-template-columns: 1fr; gap: 40px; padding-top: 88px; }
  .promise { padding: 110px 24px 120px; }
  .doc h1 { font-size: 32px; }
  .nav-links { gap: 14px; }
}
/* Yatay telefon (kısa ekran): ikon gizli, başlık küçük, sahne tam yükseklikte kalır. */
@media (orientation: landscape) and (max-height: 520px) {
  .hero-icon { display: none; }
  .hero h1 { font-size: clamp(28px, 7vh, 40px); margin-bottom: 8px; }
  .hero p { font-size: 15px; margin-bottom: 14px; }
  .hero-copy { padding-bottom: 6vh; }
  .store { height: 46px; font-size: 16px; }
}
@media (max-width: 420px) { .nav-links a[href$="/destek/"] { display: none; } }
@media (max-width: 380px) { .brand .sep { margin: 0 9px; } .brand img { width: 24px; height: 24px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
