/* Bearbyte Games — siyah beyaz stüdyo, renk sadece oyunlardan gelir */
:root {
  --black: #000;
  --white: #fff;
  --ink: #1d1d1f;          /* beyaz zeminde metin */
  --mute-dark: #86868b;    /* siyah zeminde ikincil metin */
  --mute-light: #6e6e73;   /* beyaz zeminde ikincil metin */
  --line-dark: #2a2a2c;
  --line-light: #e5e5e7;

  --font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font: 17px/1.5 var(--font);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
a { color: inherit; }
::selection { background: var(--white); color: var(--black); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--white); color: var(--black); padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- menü ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.nav-in { height: 56px; display: flex; align-items: center; justify-content: space-between; }
.brand img { height: 22px; width: auto; }
.nav nav { display: flex; gap: clamp(16px, 3vw, 32px); }
.nav nav a { font-size: 14px; color: #d2d2d7; text-decoration: none; transition: color .2s; }
.nav nav a:hover { color: var(--white); }

/* ---------- giriş ---------- */
.hero { position: relative; overflow: hidden; }
.hero-in {
  min-height: calc(100svh - 56px);
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: end;
  gap: 40px;
  padding-top: clamp(48px, 8vh, 96px);
}
.hero-copy { align-self: center; padding-bottom: 40px; }
.hero h1 {
  font-size: clamp(48px, 8.4vw, 112px);
  line-height: .98;
  font-weight: 750;
  letter-spacing: -.045em;
  max-width: 7ch;
}
.lead {
  margin-top: 28px;
  max-width: 34ch;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.45;
  color: var(--mute-dark);
  letter-spacing: -.01em;
}
.actions { margin-top: 36px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 26px; border-radius: 999px;
  background: var(--white); color: var(--black);
  font-size: 16px; font-weight: 600; letter-spacing: -.01em; text-decoration: none;
  transition: transform .15s, opacity .2s;
}
.btn:hover { opacity: .86; }
.btn:active { transform: scale(.97); }
.link { font-size: 16px; font-weight: 500; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .35); padding-bottom: 2px; transition: border-color .2s; }
.link:hover { border-color: var(--white); }

/* tek oyunumuz: sayfadaki ilk renk */
.hero-game {
  margin-top: 44px; display: inline-flex; align-items: center; gap: 14px;
  padding: 8px 18px 8px 8px; border-radius: 22px; text-decoration: none;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
  transition: background .2s, transform .2s;
}
.hero-game:hover { background: rgba(255, 255, 255, .1); transform: translateY(-2px); }
.hero-game img { width: 56px; height: 56px; border-radius: 14px; }
.hero-game span { display: flex; flex-direction: column; line-height: 1.25; }
.hero-game b { font-size: 16px; font-weight: 650; letter-spacing: -.01em; }
.hero-game small { font-size: 13px; color: var(--mute-dark); }

/* ayı ufka basıyor, yukarıya, başlığa bakıyor */
.hero-bear { align-self: end; justify-self: end; width: min(100%, 560px); }
.hero-bear img { width: 100%; }
.horizon { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(255, 255, 255, .55); }

/* tek açılış anı: ayı ufuktan yükselir, ardından yazı */
@media (prefers-reduced-motion: no-preference) {
  .hero-bear img { animation: rise 1.1s cubic-bezier(.2, .7, .1, 1) both; }
  .hero-copy > * { animation: fade .9s cubic-bezier(.2, .7, .1, 1) both; }
  .hero-copy > :nth-child(1) { animation-delay: .35s; }
  .hero-copy > :nth-child(2) { animation-delay: .5s; }
  .hero-copy > :nth-child(3) { animation-delay: .62s; }
  .hero-copy > :nth-child(4) { animation-delay: .74s; }
}
@keyframes rise { from { transform: translateY(102%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- ortak başlık ---------- */
.section-title {
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1;
  font-weight: 750;
  letter-spacing: -.04em;
}

/* ---------- oyunlar (beyaz) ---------- */
.games { background: var(--white); color: var(--ink); padding: clamp(80px, 12vw, 160px) 0; }
.games .section-title { margin-bottom: clamp(48px, 7vw, 96px); }

.feature {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 96px); align-items: center;
}
.game-icon { width: 76px; height: 76px; border-radius: 18px; margin-bottom: 24px; box-shadow: 0 10px 30px rgba(60, 40, 140, .25), 0 0 0 1px rgba(0, 0, 0, .06); }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #6C5CE0; }
.feature h3 { margin-top: 8px; font-size: clamp(34px, 4.2vw, 56px); line-height: 1.02; font-weight: 750; letter-spacing: -.04em; }
.feature-lead { margin-top: 18px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--mute-light); max-width: 42ch; }

/* mağaza düğmeleri */
.stores { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.store {
  display: inline-flex; align-items: center; gap: 11px; height: 56px; padding: 0 22px 0 16px; border-radius: 14px;
  background: var(--black); color: var(--white); text-decoration: none; transition: transform .15s, opacity .2s;
}
.store:hover { opacity: .85; }
.store:active { transform: scale(.97); }
.store-logo { width: 26px; height: 26px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.1; }
.store small { font-size: 10px; font-weight: 600; letter-spacing: .06em; opacity: .8; }
.store b { font-size: 20px; font-weight: 650; letter-spacing: -.02em; }
.store[aria-disabled="true"] { background: #f2f2f4; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-light); cursor: default; }
.store[aria-disabled="true"]:hover { opacity: 1; }
.store[aria-disabled="true"] small { color: #6C5CE0; opacity: 1; }

.facts { margin-top: 32px; border-top: 1px solid var(--line-light); max-width: 460px; }
.facts div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line-light); font-size: 15px; }
.facts dt { color: var(--mute-light); }
.facts dd { font-weight: 500; }

/* telefon: oyunun içinden gerçek bir kare */
.phone {
  justify-self: center; width: min(100%, 360px); padding: 12px; border-radius: 54px; background: #111114;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .1), 0 40px 80px -20px rgba(60, 30, 120, .45), 0 24px 40px -24px rgba(0, 0, 0, .5);
}
.phone img { width: 100%; border-radius: 42px; }

/* sayılarla oyun */
.highlights {
  list-style: none; margin: clamp(64px, 9vw, 120px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-light);
}
.highlights li { padding: 26px 0 0; display: flex; flex-direction: column; gap: 4px; }
.highlights li + li { padding-left: 24px; border-left: 1px solid var(--line-light); }
.highlights b { font-size: clamp(40px, 5vw, 68px); line-height: 1; font-weight: 750; letter-spacing: -.045em; }
.highlights span { color: var(--mute-light); font-size: 15px; }

/* ekran görüntüleri: yana kayan şerit */
.gallery-head { margin-top: clamp(72px, 10vw, 128px); display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.gallery-head h3 { font-size: clamp(26px, 3vw, 38px); font-weight: 700; letter-spacing: -.03em; }
.gallery-nav { display: flex; gap: 8px; }
.gallery-nav button {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid #d2d2d7; background: var(--white); color: var(--ink);
  font-size: 22px; line-height: 1; cursor: pointer; transition: background .2s;
}
.gallery-nav button:hover { background: #f2f2f4; }
.gallery {
  margin-top: 24px; display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 24vw, 290px); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px;
  margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter);
  scroll-padding-left: var(--gutter);
}
.gallery::-webkit-scrollbar { display: none; }
.gallery img { width: 100%; border-radius: 24px; scroll-snap-align: start; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .35); }

/* özellikler */
.perks { margin-top: clamp(72px, 10vw, 128px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px; }
.perks > div { border-top: 1px solid var(--line-light); padding-top: 20px; }
.perks h4 { margin: 0; font-size: 19px; font-weight: 650; letter-spacing: -.02em; }
.perks p { margin: 8px 0 0; color: var(--mute-light); font-size: 15.5px; line-height: 1.5; }

/* ---------- stüdyo (siyah) ---------- */
.studio { padding: clamp(80px, 12vw, 160px) 0; }
.statement {
  margin-top: 36px;
  max-width: 22ch;
  font-size: clamp(28px, 3.8vw, 52px);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -.03em;
  color: #d2d2d7;
}
.values {
  margin-top: clamp(56px, 8vw, 104px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.values > div { border-top: 1px solid var(--line-dark); padding-top: 22px; }
.values h3 { font-size: 21px; font-weight: 650; letter-spacing: -.02em; }
.values p { margin-top: 8px; color: var(--mute-dark); font-size: 16px; max-width: 32ch; }

/* ---------- iletişim ---------- */
.contact { border-top: 1px solid var(--line-dark); padding: clamp(80px, 12vw, 160px) 0; }
.contact-title { font-size: clamp(56px, 12vw, 168px); line-height: .92; font-weight: 750; letter-spacing: -.05em; }
.mail {
  display: inline-block; margin-top: 36px;
  font-size: clamp(20px, 3vw, 36px); font-weight: 500; letter-spacing: -.02em;
  text-decoration: none; border-bottom: 2px solid rgba(255, 255, 255, .3);
  overflow-wrap: anywhere; transition: border-color .2s;
}
.mail:hover { border-color: var(--white); }
.contact-note { margin-top: 18px; color: var(--mute-dark); font-size: 16px; }

/* ---------- alt bilgi ---------- */
.footer { border-top: 1px solid var(--line-dark); padding: 32px 0 40px; font-size: 13px; color: var(--mute-dark); }
.footer-in { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.footer-logo { height: 18px; width: auto; opacity: .9; }
.footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer nav a { text-decoration: none; }
.footer nav a:hover { color: var(--white); }
.copy { margin-left: auto; }

/* ---------- kaydırma efektleri (html.fx: JS açık ve hareket azaltılmamış) ---------- */
.fx .hero-copy, .fx .hero-bear { will-change: transform, opacity; }

/* beyaz bölüm yuvarlak karttan tam ekrana açılır */
.fx .games {
  clip-path: inset(0 var(--inset, 5vw) round var(--round, 48px));
}

/* telefon yaklaştıkça büyür */
.fx .phone { transform: scale(.86); transform-origin: center 70%; will-change: transform; }

/* sırayla belirme */
.fx [data-reveal]:not([data-reveal="mask"]) {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity .9s cubic-bezier(.2, .7, .1, 1) var(--d, 0ms), transform 1s cubic-bezier(.2, .7, .1, 1) var(--d, 0ms);
}
.fx [data-reveal].in { opacity: 1; transform: none; }

/* başlık maskeden yukarı kayar */
.mask { display: block; overflow: hidden; padding: .06em 0 .14em; margin: -.06em 0 -.14em; }
.mask > span { display: block; }
.fx [data-reveal="mask"] .mask > span { transform: translate3d(0, 110%, 0); transition: transform 1.1s cubic-bezier(.2, .7, .1, 1); }
.fx [data-reveal="mask"].in .mask > span { transform: none; }

/* ayırıcı çizgiler soldan sağa çizilir */
.fx .facts > div, .fx .values > div, .fx .perks > div { position: relative; }
.fx .facts > div { border-bottom-color: transparent; }
.fx .values > div, .fx .perks > div { border-top-color: transparent; }
.fx .facts > div::after, .fx .values > div::before, .fx .perks > div::before {
  content: ""; position: absolute; left: 0; right: 0; height: 1px;
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.2s cubic-bezier(.2, .7, .1, 1) calc(var(--d, 0ms) + 150ms);
}
.fx .facts > div::after { bottom: -1px; background: var(--line-light); }
.fx .values > div::before { top: -1px; background: var(--line-dark); }
.fx .perks > div::before { top: -1px; background: var(--line-light); }
.fx .facts > div.in::after, .fx .values > div.in::before, .fx .perks > div.in::before { transform: scaleX(1); }

/* stüdyo cümlesi kelime kelime aydınlanır */
.fx .statement .w { color: #3a3a3c; transition: color .35s ease; }
.fx .statement .w.on { color: var(--white); }

/* iletişim adresinin alt çizgisi */
.fx .contact .mail[data-reveal] {
  border-bottom-color: transparent;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 2px no-repeat;
  transition: opacity .9s cubic-bezier(.2, .7, .1, 1) var(--d), transform 1s cubic-bezier(.2, .7, .1, 1) var(--d), background-size 1.2s cubic-bezier(.2, .7, .1, 1) calc(var(--d) + 400ms);
}
.fx .contact .mail.in { background-size: 100% 2px; }

/* ---------- tablet ve telefon ---------- */
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; gap: 8px; min-height: auto; }
  .hero-copy { padding-bottom: 0; }
  .hero-bear { width: min(78%, 380px); justify-self: end; margin-top: 24px; }
  .feature { grid-template-columns: 1fr; }
  .phone { width: min(78%, 320px); }
  .perks { grid-template-columns: 1fr 1fr; }
  .highlights { grid-template-columns: 1fr 1fr; }
  .highlights li:nth-child(3) { padding-left: 0; border-left: 0; }
  .highlights li:nth-child(n+3) { margin-top: 24px; }
  .values { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand img { height: 18px; }
  .nav nav { gap: 16px; }
  .nav nav a { font-size: 13px; }
  .hero-game { margin-top: 36px; }
  .perks { grid-template-columns: 1fr; gap: 28px; }
  .gallery-nav { display: none; }
  .store { height: 52px; padding: 0 18px 0 14px; }
  .store b { font-size: 18px; }
  .copy { margin-left: 0; width: 100%; }
}
