/* Vaybak! site: tek stil dosyası, yazı tipi/CDN yok. Değişince sayfalardaki ?v= numarasını artır. */
:root {
  --brand: #44619a;
  --brand-deep: #2f4472;
  --link: #44619a;
  --bg: #fff8ec;
  --ink: #2a2a33;
  --muted: #4a5163;
  --chip: #f0e9d9;
  --focus: #1b2b52;
  --shadow: rgba(42, 42, 51, 0.14);
  --kivil: #ffb27a;
  --explore: #8cc8ff;
  --watch: #c3b2ff;
  --play: #8ee0b0;
  --kivil-ink: #3a1a00;
  --explore-ink: #002a4d;
  --watch-ink: #22114d;
  --play-ink: #003a1c;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12151e;
    --ink: #f4f6fb;
    --muted: #b4bdd2;
    --link: #9db4ea;
    --chip: #232b44;
    --focus: #ffc247;
    --shadow: rgba(0, 0, 0, 0.45);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.5;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); }
:focus-visible { outline: 4px solid var(--focus); outline-offset: 4px; border-radius: 12px; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--brand); color: #fff; padding: .75rem 1rem; border-radius: 12px;
}
.skip:focus { top: 1rem; }

/* Arka plandaki yumuşak renkli şekiller (süs, ekran okuyucudan gizli) */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.bg i {
  position: absolute; border-radius: 50%; opacity: .45;
  width: var(--s); height: var(--s); left: var(--x); top: var(--y); background: var(--c);
}
.bg i:nth-child(3n) { border-radius: 38% 62% 55% 45% / 50% 40% 60% 50%; }
@media (prefers-color-scheme: dark) { .bg i { opacity: .16; } }

/* Süs şekilleri: konum/boyut/renk burada (satır içi style CSP'ye aykırı) */
.bg i:nth-child(1) { --s: 22rem; --x: -8rem; --y: -6rem; --c: var(--explore); }
.bg i:nth-child(2) { --s: 14rem; --x: 78%; --y: 6%; --c: var(--kivil); }
.bg i:nth-child(3) { --s: 9rem; --x: 8%; --y: 58%; --c: var(--watch); }
.bg i:nth-child(4) { --s: 18rem; --x: 70%; --y: 62%; --c: var(--play); }
.bg i:nth-child(5) { --s: 5rem; --x: 46%; --y: 4%; --c: #ffc247; }
.bg i:nth-child(6) { --s: 6rem; --x: 30%; --y: 86%; --c: var(--kivil); }

main {
  position: relative; z-index: 1; flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(1.25rem, 4vh, 2.25rem);
  width: 100%; max-width: 62rem; margin: 0 auto;
  padding: clamp(1.5rem, 5vh, 3rem) 1rem 1rem;
  text-align: center;
}

.logo { width: min(72vw, 30rem); margin: 0; }
.logo img { width: 100%; }
.tagline {
  margin: 0; color: var(--link); font-weight: 800;
  font-size: clamp(1.25rem, 4.2vw, 1.9rem); letter-spacing: .01em;
}
.chip {
  display: inline-block; margin-left: .35em; padding: .05em .6em; vertical-align: .12em;
  background: var(--chip); color: var(--ink); border-radius: 999px;
  font-size: .62em; font-weight: 800; letter-spacing: 0;
}

/* Dört bölüm */
.sections {
  list-style: none; margin: 0; padding: 0; width: 100%; max-width: 46rem;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(.75rem, 3vw, 1.25rem);
}
@media (min-width: 46rem) { .sections { grid-template-columns: repeat(4, 1fr); } }
.card {
  position: relative; aspect-ratio: 1; border-radius: clamp(1.5rem, 5vw, 2.25rem);
  background: var(--c); color: var(--ink-c);
  box-shadow: 0 .5rem 0 var(--shadow);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 0 .5rem .7rem; overflow: hidden;
}
.card img { position: absolute; left: 14%; top: 3%; width: 72%; transform-origin: 50% 85%; }
.card span { position: relative; font-weight: 800; font-size: clamp(1.05rem, 3.6vw, 1.3rem); }
.card.kivil { --c: var(--kivil); --ink-c: var(--kivil-ink); }
.card.explore { --c: var(--explore); --ink-c: var(--explore-ink); }
.card.watch { --c: var(--watch); --ink-c: var(--watch-ink); }
.card.play { --c: var(--play); --ink-c: var(--play-ink); }

/* İndir düğmesi */
.download {
  display: inline-flex; align-items: center; justify-content: center; gap: .75rem;
  min-height: 4.5rem; padding: 0 2.25rem; border-radius: 999px;
  background: var(--brand); color: #fff; text-decoration: none;
  font-weight: 800; font-size: clamp(1.3rem, 5vw, 1.7rem);
  box-shadow: 0 .45rem 0 var(--brand-deep);
  transition: transform .12s ease, box-shadow .12s ease;
}
.download svg { width: 1.6em; height: 1.6em; flex: none; }
.download:hover { transform: translateY(-2px); box-shadow: 0 .6rem 0 var(--brand-deep); }
.download:active { transform: translateY(.3rem); box-shadow: 0 .15rem 0 var(--brand-deep); }

.how { max-width: 22rem; color: var(--muted); font-size: 1rem; }
.how summary { cursor: pointer; padding: .6rem 1rem; border-radius: 999px; }
.how ol { margin: .25rem 0 0; padding: 0; list-style-position: inside; }

/* Altbilgi */
footer {
  position: relative; z-index: 1; padding: 1.25rem 1rem 1.75rem; text-align: center;
  color: var(--muted); font-size: .95rem;
}
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.25rem; margin-bottom: .25rem; }
footer a { display: inline-block; padding: .6rem .25rem; color: inherit; text-underline-offset: .2em; }
footer a:hover { color: var(--link); }
footer small a { padding: .6rem .1rem; }

/* Dil değiştirici (TR | EN), sağ üstte */
.top { position: relative; z-index: 2; display: flex; justify-content: flex-end; padding: .5rem 1rem 0; }
.langs { display: inline-flex; gap: .15rem; padding: .2rem; background: var(--chip); border-radius: 999px; font-size: .95rem; font-weight: 800; }
.langs a, .langs span { display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.5rem; padding: 0 .6rem; border-radius: 999px; text-decoration: none; }
.langs span { background: var(--brand); color: #fff; }
.langs a { color: var(--ink); }
.langs a:hover { color: var(--link); }

/* Gizlilik ve künye sayfaları */
.page { align-items: stretch; text-align: left; justify-content: flex-start; max-width: 40rem; gap: 1rem; }
.page .logo { width: min(55vw, 14rem); }
.page h1 { margin: .5rem 0 0; font-size: clamp(1.75rem, 6vw, 2.4rem); line-height: 1.15; color: var(--link); }
.page ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .75rem; }
.page li { background: var(--chip); border-radius: 1.25rem; padding: .9rem 1.1rem .9rem 3rem; position: relative; }
.page li::before {
  content: ""; position: absolute; left: 1.05rem; top: 1.2rem; width: 1.1rem; height: 1.1rem;
  border-radius: 50%; background: var(--play); box-shadow: 0 0 0 .15rem var(--play-ink);
}
.page li strong { display: block; }
.page p { margin: 0; color: var(--muted); }
/* Künye: ad/değer kartları */
.facts { margin: 0; display: grid; gap: .75rem; }
.facts div { background: var(--chip); border-radius: 1.25rem; padding: .8rem 1.1rem; overflow-wrap: anywhere; }
.facts dt { color: var(--muted); font-size: .9rem; font-weight: 700; }
.facts dd { margin: 0; font-weight: 800; }
.facts a { color: inherit; text-underline-offset: .2em; }
.home { align-self: center; margin-top: .75rem; min-height: 3.5rem; font-size: 1.2rem; }

/* 404 */
.lost { justify-content: center; text-align: center; align-items: center; }
.lost .code { font-size: clamp(4rem, 22vw, 8rem); font-weight: 900; line-height: 1; color: var(--link); margin: 0; }
.lost .owl { width: min(55vw, 14rem); transform-origin: 50% 85%; }
.lost h1 { margin: 0; font-size: 1.5rem; font-weight: 800; color: var(--ink); }

/* Yumuşak hareket: yalnız kullanıcı azaltmak istemediyse */
@media (prefers-reduced-motion: no-preference) {
  @keyframes bob { 0%, 100% { transform: translateY(0) rotate(var(--r0, -2deg)); } 50% { transform: translateY(-7%) rotate(var(--r1, 3deg)); } }
  @keyframes drift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(2.5vw, -3vh) scale(1.08); } }
  @keyframes pop { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.045); } }
  @keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
  .card img, .lost .owl { animation: bob 4.2s ease-in-out infinite; }
  .card.kivil img { --r0: -4deg; --r1: 2deg; animation-duration: 3.4s; }
  .card.explore img { --r0: -5deg; --r1: 6deg; animation-duration: 4.6s; animation-delay: -1.2s; }
  .card.watch img { --r0: -1deg; --r1: 1deg; animation-duration: 3.8s; animation-delay: -2.1s; }
  .card.play img { --r0: -6deg; --r1: 5deg; animation-delay: -.6s; }
  .card:hover img { animation-duration: 1.2s; }
  .bg i { animation: drift 14s ease-in-out infinite; }
  .bg i:nth-child(2n) { animation-duration: 18s; animation-delay: -5s; }
  .bg i:nth-child(3n) { animation-duration: 22s; animation-delay: -9s; }
  .download { animation: pop 3.2s ease-in-out infinite; }
  .download:hover, .download:active { animation: none; }
  .logo { animation: rise .6s ease-out backwards; }
  .tagline { animation: rise .6s .1s ease-out backwards; }
  .card { animation: rise .6s ease-out backwards; }
  .card:nth-child(1) { animation-delay: .15s; }
  .card:nth-child(2) { animation-delay: .25s; }
  .card:nth-child(3) { animation-delay: .35s; }
  .card:nth-child(4) { animation-delay: .45s; }
}
