/* Tıkır sitesi — ortak katman: yazı tipi, renkler, maskot, gezinme, alt bilgi. */
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-extrabold.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --ink: #15123A;
  --ink-soft: #4A4670;
  --violet: #5B42FF;
  --violet-2: #7B6BFF;
  --violet-deep: #24186B;
  --night: #120E2E;
  --lilac: #E4E0FF;
  --lilac-2: #D3CCFF;
  --paper: #F4F2FF;
  --coin: #FFC94A;
  --coin-deep: #E0A12B;
  --cheek: #FF8FB1;
  --mint: #5BD6A2;
  --sky: #7CC8FF;
  --on-night: #F1EEFF;
  --on-night-soft: #B9B2EA;
  --radius: 28px;
  --line: 2.5px solid var(--ink);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1200px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 18px/1.55 "Bricolage Grotesque", system-ui, -apple-system, sans-serif;
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: var(--coin); color: var(--ink); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: .08em; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 10px; }
.on-night :focus-visible { outline-color: var(--coin); }
h1, h2, h3 { margin: 0; line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html { scrollbar-color: var(--violet-2) var(--paper); }

/* Üst çubuk */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; padding: 14px var(--gutter); display: flex; align-items: center; gap: 18px; pointer-events: none; }
.nav > * { pointer-events: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; letter-spacing: -0.03em; text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 2px 8px rgba(21, 18, 58, .22); }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 999px; transition: background .2s var(--ease-out); }
.nav-links a:hover { background: rgba(91, 66, 255, .12); }
.lang { display: inline-flex; border: 2px solid currentColor; border-radius: 999px; overflow: hidden; font-weight: 700; font-size: 14px; }
.lang a { padding: 5px 11px; text-decoration: none; }
.lang a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.on-night .lang a[aria-current="page"] { background: var(--on-night); color: var(--night); }
/* Üst çubukta dil seçici: yedi dil sığmaz, açılır liste. */
.lang-pick { position: relative; }
.lang-pick summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 13px; border: 2px solid currentColor; border-radius: 999px; font-weight: 700; font-size: 14px; cursor: pointer; user-select: none; }
.lang-pick summary::-webkit-details-marker { display: none; }
.lang-pick summary svg { width: 12px; height: 12px; transition: transform .2s var(--ease-out); }
.lang-pick[open] summary svg { transform: rotate(180deg); }
.lang-pick ul { position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; min-width: 196px; background: var(--paper); color: var(--ink); border-radius: 16px; box-shadow: 0 18px 40px -12px rgba(21, 18, 58, .35), 0 0 0 1px rgba(21, 18, 58, .08); }
.lang-pick li a { display: block; padding: 9px 12px; border-radius: 10px; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.lang-pick li a:hover { background: rgba(91, 66, 255, .1); }
.lang-pick li a[aria-current="page"] { background: var(--ink); color: var(--paper); }
@media (prefers-reduced-motion: reduce) { .lang-pick summary svg { transition: none; } }
.foot .lang { flex-wrap: wrap; }
.nav.is-solid { background: rgba(244, 242, 255, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 rgba(21, 18, 58, .08); }

@media (max-width: 680px) { .nav-links > a { display: none; } .brand { font-size: 20px; } }

/* App Store: yayın öncesi */
.store {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px 12px 14px; border-radius: 18px;
  background: var(--ink); color: #fff; text-decoration: none; font-weight: 700; line-height: 1.1;
  box-shadow: 0 10px 24px -8px rgba(21, 18, 58, .5);
}
.store small { display: block; font-weight: 600; font-size: 13px; opacity: .72; }
.store .store-dot { width: 34px; height: 34px; border-radius: 10px; background: var(--coin); display: grid; place-items: center; }
.store .store-dot svg { width: 20px; height: 20px; }
.store[aria-disabled="true"] { cursor: default; }
.on-night .store { background: var(--on-night); color: var(--night); }

/* Telefon çerçevesi */
.phone { position: relative; width: var(--pw, 300px); aspect-ratio: 603 / 1311; border-radius: calc(var(--pw, 300px) * .16); padding: calc(var(--pw, 300px) * .03);
  background: #0E0C1F; border: 2px solid #2A2650; box-shadow: 0 40px 80px -30px rgba(18, 14, 46, .6), 0 18px 30px -18px rgba(18, 14, 46, .5); }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--pw, 300px) * .13); background: #15123A; }

/* Maskot */
.tk { width: 100%; height: auto; overflow: visible; }
.tk .tk-fill { fill: var(--tk-body); transition: fill .7s ease; }
.tk .tk-dark { fill: var(--tk-dark); transition: fill .7s ease; }
.tk .tk-darkfill { fill: var(--tk-dark); transition: fill .7s ease; }
.tk .tk-light { fill: var(--tk-light); transition: fill .7s ease; }
.tk .tk-darkstroke { stroke: var(--tk-dark); }
.tk .tk-darktext { fill: var(--tk-dark); }
.tk .tk-cheek { opacity: var(--tk-cheek); transition: opacity .6s ease; }
.tk .tk-bob { animation: tk-bob var(--tk-bob-dur) ease-in-out infinite; }
.tk .tk-sway { transform-origin: 110px 206px; animation: tk-sway var(--tk-sway-dur) ease-in-out infinite; }
.tk .tk-grow { transform-origin: 110px 206px; transform: scale(var(--tk-sx), var(--tk-sy)); transition: transform .9s var(--ease-spring); }
.tk .tk-squish { transform-origin: 110px 206px; }
.tk .tk-squish.is-chomp { animation: tk-chomp .6s var(--ease-spring); }
.tk .tk-arm-l { transform-origin: 44px 122px; animation: tk-arm-l var(--tk-arm-dur) ease-in-out infinite alternate; }
.tk .tk-arm-r { transform-origin: 176px 122px; animation: tk-arm-r var(--tk-arm-dur) ease-in-out infinite alternate; }
.tk .tk-blink { transform-origin: 110px 104px; animation: tk-blink 4.4s infinite; }
.tk .tk-look { animation: tk-look 7s ease-in-out infinite; }
.tk .tk-eyes, .tk .tk-mouth, .tk .tk-brows-worried, .tk .tk-glasses, .tk .tk-necklace, .tk .tk-crown, .tk .tk-sparkles, .tk .tk-sweat, .tk .tk-ice { opacity: 0; transition: opacity .35s ease, transform .5s var(--ease-spring); }
.tk[data-eyes="open"] .tk-eyes-open, .tk[data-eyes="sleepy"] .tk-eyes-sleepy, .tk[data-eyes="happy"] .tk-eyes-happy, .tk[data-eyes="star"] .tk-eyes-star { opacity: 1; }
.tk[data-mouth="smile"] .tk-mouth-smile, .tk[data-mouth="wavy"] .tk-mouth-wavy, .tk[data-mouth="open"] .tk-mouth-open { opacity: 1; }
.tk[data-mood="endiseli"] .tk-brows-worried, .tk[data-mood="endiseli"] .tk-sweat { opacity: 1; }
.tk .tk-glasses { transform: translateY(-26px); }
.tk[data-scene="cool"] .tk-glasses, .tk[data-scene="rich"] .tk-glasses { opacity: 1; transform: none; }
.tk[data-scene="cool"] .tk-eyes, .tk[data-scene="rich"] .tk-eyes { opacity: 0 !important; }
/* Havalıyken ve zenginken sırıtış: biri beyaz, biri altın iki diş (uygulamadaki gibi). */
.tk .tk-mouth-grin { opacity: 0; transition: opacity .35s ease; }
.tk[data-scene="cool"] .tk-mouth-grin, .tk[data-scene="rich"] .tk-mouth-grin { opacity: 1; }
.tk[data-scene="cool"] .tk-mouth, .tk[data-scene="rich"] .tk-mouth { opacity: 0 !important; }
.tk .tk-goldglint { transform-box: fill-box; transform-origin: center; animation: tk-goldglint 2.8s ease-in-out infinite; }
@keyframes tk-goldglint { 0%, 72%, 100% { opacity: 0; transform: scale(.2); } 80% { opacity: 1; transform: scale(1.1); } 88% { opacity: 0; transform: scale(.4); } }
.tk[data-scene="cool"] .tk-necklace, .tk[data-scene="rich"] .tk-necklace { opacity: 1; }
.tk[data-scene="cool"] .tk-medal, .tk[data-scene="rich"] .tk-medal { opacity: 0; }
.tk .tk-crown { transform: translateY(-40px); }
.tk[data-scene="rich"] .tk-crown { opacity: 1; transform: none; }
.tk[data-scene="rich"] .tk-sparkles { opacity: 1; animation: tk-twinkle 1.4s ease-in-out infinite; }
.tk .tk-crown-rock { transform-origin: 80px 40px; animation: tk-rock 1.8s ease-in-out infinite; }
.tk .tk-glint { animation: tk-glint 3.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.tk[data-mood="endiseli"] .tk-sweat { animation: tk-sweat 1.6s ease-in infinite; }
.tk .tk-ice { transform: scale(1.08); transform-origin: 110px 120px; }
.tk[data-scene="frozen"] .tk-ice { opacity: 1; transform: none; }
.tk[data-scene="frozen"] .tk-sway { animation-duration: .12s; }
@keyframes tk-bob { 50% { transform: translateY(calc(var(--tk-bob) * -1)); } }
@keyframes tk-sway { 0%, 100% { transform: rotate(calc(var(--tk-sway) * -1)); } 50% { transform: rotate(var(--tk-sway)); } }
@keyframes tk-arm-l { from { transform: rotate(calc(var(--tk-arm) * .3)); } to { transform: rotate(calc(var(--tk-arm) * -1)); } }
@keyframes tk-arm-r { from { transform: rotate(calc(var(--tk-arm) * -.3)); } to { transform: rotate(var(--tk-arm)); } }
@keyframes tk-blink { 0%, 92%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
@keyframes tk-look { 0%, 30%, 100% { transform: translate(0, 0); } 40%, 60% { transform: translate(3px, -1px); } 70%, 90% { transform: translate(-3px, 0); } }
@keyframes tk-chomp { 0% { transform: scale(1); } 25% { transform: scale(1.15, .85); } 55% { transform: scale(.91, 1.1); } 80% { transform: scale(1.04, .97); } 100% { transform: scale(1); } }
@keyframes tk-twinkle { 50% { opacity: .2; } }
@keyframes tk-rock { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
@keyframes tk-glint { 0%, 70% { opacity: 0; transform: translateX(-56px) scale(.3); } 78% { opacity: 1; transform: translateX(-30px) scale(1); } 92%, 100% { opacity: 0; transform: translateX(0) scale(.6); } }
@keyframes tk-sweat { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }

/* Alt bilgi */
.foot { background: var(--night); color: var(--on-night-soft); padding: 64px 0 40px; font-size: 15px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 28px 40px; align-items: center; }
.foot-brand p { margin-top: 8px; color: var(--on-night-soft); }
.foot .brand { color: var(--on-night); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-left: auto; }
.foot nav a { color: var(--on-night); text-decoration: none; font-weight: 600; }
.foot nav a:hover { text-decoration: underline; }
.foot .lang { color: var(--on-night); }
.foot .fine { flex-basis: 100%; padding-top: 24px; border-top: 1px solid rgba(241, 238, 255, .14); font-size: 13px; }

/* Görünür varsayılan; animasyon yalnızca JS hazırken */
.js .rise { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), filter .9s var(--ease-out); transition-delay: var(--d, 0s); }
.js .rise.is-in { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tk *, .tk { animation: none !important; transition: none !important; }
  .js .rise { opacity: 1; transform: none; filter: none; transition: none; }
}
