:root {
  --brand: #dc2d38;
  --ink: #111014;
  --muted: #5c5c66;
  --bg: #ffffff;
  --card: #f6f6f9;
  --accent: #ff4d79;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

html, body { margin: 0; padding: 0; }

body {
  font-family: 'Outfit', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

section { scroll-margin-top: 72px; }

/* Utilities */
.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

h1, h2, h3 {
  color: var(--brand);
  letter-spacing: .2px;
  margin: 0 0 .6rem;
}
h1 { font-size: clamp(36px, 4.8vw, 48px); font-weight: 900; }
h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 900; }
h3 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; }

p {
  margin: .25rem 0 1rem;
  color: var(--muted);
  font-weight: 300;
  font-size: 1.525rem;
  line-height: 1.85rem;
}
li {
  font-weight: 300;
  font-size: 1.525rem;
  line-height: 1.85rem;
}

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--brand);
  color: #fff;
  line-height: 2.55;
}
.topbar .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 0;
}
.brand-mark {
  font-weight: 900;
  font-size: 2rem;
  letter-spacing: .5px;
  color: #fff;
  text-decoration: none;
}
.brand, .brand:visited, .brand-mark { text-decoration: none; }
.menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: .4rem .8rem;
  border-radius: 999px;
  font-size: 1.325rem;
}
.menu .btn { background: #fff; color: var(--brand); margin-left: .25rem; }

/* Brand link hitbox tidy + logo size (header) */
.topbar .brand {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  padding: 0;
  height: 72px;
}
.brand-logo {
  display: block;
  height: 64px;
  width: auto;
  max-height: 64px;
  object-fit: contain;
  vertical-align: middle;
}

/* Hero */
.hero {
  background: linear-gradient(180deg, #ffd1dd 0%, #fff 48%);
  position: relative;
  overflow: hidden;
}
.hero::after {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0.15) 100%
  );
}
.hero-inner { padding: 22px 0 24px; }

.hero-art {
  position: relative;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-art .hero-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  pointer-events: none;
  user-select: none;
}

.skyline {
  height: 2px;
  width: 100%;
  background: linear-gradient(180deg, rgba(255, 16, 68, .08), rgba(255, 16, 68, .08));
  margin-top: 48px;
  border-bottom: 1px solid #eee;
}
.skylineempty {
  height: 80px;
  width: 100%;
  margin-top: 48px;
  border-bottom: 1px solid #eee;
}

/* ======================== Games ======================== */
.games { padding: 64px 0 56px; background: #fff; text-align: center; }
.games h2 {
  font-weight: 900;
  color: var(--brand);
  font-size: clamp(32px, 4vw, 44px);
  margin-bottom: 36px;
}
.games .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 32px;
  width: min(1120px, 92vw);
  margin-inline: auto;
}
.game, .game-reverse {
  flex: 1 1 520px;
  max-width: 520px;
  background: var(--card);
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,.05);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  transition: transform .2s ease, box-shadow .2s ease;
}
.game-reverse { flex-direction: row-reverse; }
.game:hover, .game-reverse:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0,0,0,.08);
}
.game-copy { flex: 1; padding-right: 16px; }
.game-copy h3 { color: var(--brand); font-size: 1.3rem; margin-bottom: 8px; font-weight: 800; }
.game-copy p { font-size: 1rem; line-height: 1.55rem; color: var(--muted); margin-bottom: .75rem; font-weight: 300; }
.badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.badges .store { width: 110px; display: inline-block; }
.badges .store img { display: block; width: 100%; height: auto; }
.game-art { flex-shrink: 0; display: flex; justify-content: center; align-items: center; }
.game-art img.phone-img {
  width: 120px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  transition: transform .25s ease;
}
.game:hover img.phone-img, .game-reverse:hover img.phone-img { transform: scale(1.05); }

/* Force row layout */
.games .game, .games .game-reverse {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  gap: 16px;
}
.games .game-reverse { flex-direction: row-reverse !important; }
.games .game .phone-img, .games .game-reverse .phone-img {
  width: 120px; height: auto; border-radius: 12px; object-fit: cover;
}
.games .game-copy { flex: 1; }
.games .game-copy h3 { margin-top: 0; margin-bottom: 8px; font-size: 1.3rem; color: var(--brand); font-weight: 800; }
.games .game:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.08); }

/* Games responsive */
@media (max-width: 980px) {
  .games .container { flex-direction: column; align-items: center; }
  .game, .game-reverse { flex-direction: column; max-width: 100%; text-align: center; }
  .game-copy { padding: 0; }
  .game-art img.phone-img { width: min(220px, 80vw); margin-top: 12px; }
}
@media (max-width: 900px) {
  .games .game, .games .game-reverse { flex-direction: column !important; text-align: center; }
  .games .game .phone-img, .games .game-reverse .phone-img { width: min(240px, 80vw); margin-top: 16px; }
}

/* ======================== Other Games ======================== */
.other-games { padding: 56px 0; }
.other-games > .container > h2 { text-align: center; margin-bottom: 24px; }

.other-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
  gap: 15px;
  align-items: start;
  margin-top: 8px;
}
.other-card {
  --offset: 0px;
  background: #fff;
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .18s ease, box-shadow .18s ease;
  overflow: hidden;
  transform: translateY(var(--offset));
  position: relative;
}
.other-card:hover {
  transform: translateY(calc(var(--offset) - 4px));
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}
.other-card .thumb {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.other-card h3 { margin: 8px 6px 0; text-align: center; font-size: 1rem; }

@media (max-width: 560px) {
  .other-card h3 {
    font-size: 1rem;
  }
}

.other-card .card-link { position: relative; display: block; border-radius: 12px; overflow: hidden; }
.other-card .card-link::after{
  content:""; position:absolute; inset:0; border-radius:12px;
  background: radial-gradient(120% 120% at 50% 50%, rgba(220,45,56,0.0) 0%, rgba(220,45,56,0.08) 38%, rgba(220,45,56,0.28) 70%, rgba(0,0,0,0.45) 100%);
  opacity:0; transform:scale(1.04); transition: opacity .22s ease, transform .22s ease;
}
.other-card .overlay-label{
  position:absolute; left:50%; top:50%; transform:translate(-50%,-46%);
  display:inline-block; padding:.55rem 1.05rem; border-radius:999px; background:rgba(255,255,255,.92);
  color:var(--brand); font-weight:900; letter-spacing:.4px; font-size:.95rem; box-shadow:0 8px 24px rgba(0,0,0,.15);
  opacity:0; transition: opacity .22s ease, transform .22s ease;
}
.other-card:hover .card-link::after{ opacity:1; transform:scale(1); }
.other-card:hover .overlay-label{ opacity:1; transform:translate(-50%,-50%); }

@media (max-width: 980px) {
  .other-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
  .other-grid .other-card { --offset: 0px; }
  .other-card:hover { transform: translateY(-6px); }
}
@media (max-width: 560px) {
  .other-grid { grid-template-columns: 1fr; gap: 20px; minmax(100px, 1fr)}
  .other-card .badges .store { width: 64px; }
}

/* =================== Contact =================== */
.contact {
  padding: 64px 0 100px;
  background: linear-gradient(180deg, #fff 0%, #fff0f5 100%);
  border-top: 1px solid #eee;
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr .8fr;
  align-items: center;
  gap: 24px;
}
.contact .cta {
  display: inline-block;
  padding: .7rem 1.1rem;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  border-radius: 999px;
  text-decoration: none;
}
.astronaut-img {
  justify-self: end;
  width: 300px;
  height: 351px;
  object-fit: contain;
  display: block;
  pointer-events: none;
  user-select: none;
}
@media (max-width: 980px) { .astronaut-img { justify-self: center; } }
@media (max-width: 560px) {
  .astronaut-img { width: min(300px, 70vw); height: auto; }
}

/* =================== Values & Journey =================== */
.values { padding: 100px 0; background: #fafafa; }
.values h2 { text-align: center; font-weight: 900; color: var(--brand); margin-bottom: 60px; }
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}
.value-card {
  background: #fff;
  border-radius: 18px;
  padding: 40px 32px;
  box-shadow: 0 10px 24px rgba(0,0,0,.05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.value-card:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(0,0,0,.08); }
.value-card h3 { font-size: 1.75rem; color: var(--brand); margin-bottom: 16px; }
.value-card p { font-size: 1.125rem; line-height: 1.85rem; color: var(--muted); }

.journey {
  padding: 100px 0;
  background: #fff;
  border-top: 1px solid #eee;
  text-align: center;
}
.journey h2 { font-weight: 900; font-size: 2.5rem; margin-bottom: 24px; }
.journey p {
  font-size: 1.3rem; line-height: 1.95rem; max-width: 800px; margin: 0 auto; color: var(--muted);
}

/* =================== Footer (dikey sıkıştırılmış ve hizalanmış) =================== */
.footer {
  background: var(--brand);
  color: #fff;
  padding-block: 14px 22px;
}
.footer a { color: #fff; }

/* Grid yapısı: Logo yukarıda, menü + sosyal altta */
.footer-top {
  display: grid;
  grid-template-areas:
    "brand brand"
    "menu  social";
  grid-template-columns: 1fr auto;
  align-items: end;
  column-gap: clamp(16px, 3vw, 40px);
  row-gap: clamp(12px, 2vw, 20px);
}

/* Logo: büyük ve yukarıya yakın */
.footer .brand {
  grid-area: brand;
  display: inline-flex;
  align-items: flex-end;
}
.footer .brand-logo {
  height: clamp(96px, 11vw, 136px);
  width: auto;
  display: block;
  max-height: none;
  margin-top: -2px;
    margin-left: -12px; /* sola kaydırır */
}

/* Menü: alt çizgiye biraz daha yakın */
.footer-primary {
  grid-area: menu;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 2.6vw, 30px);
  justify-content: flex-start;
  align-items: flex-end;
  margin-bottom: 6px; /* Çizgiye yaklaşsın */
}
.footer-primary a {
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .2px;
  font-size: clamp(18px, 2.1vw, 22px);
  line-height: 1.1;
}

/* Sosyal ikonlar da menü hizasında */
.footer-social {
  grid-area: social;
  justify-self: end;
  align-self: flex-end;
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 18px);
  margin-bottom: 6px;
}
.footer-social .icon {
  width: clamp(22px, 2.6vw, 28px);
  height: clamp(22px, 2.6vw, 28px);
  background: #fff;
  display: inline-block;
  border-radius: 4px;
}
.footer-social .linkedin {
  mask: url('https://cdn.jsdelivr.net/gh/simple-icons/simple-icons/icons/linkedin.svg') center/contain no-repeat;
  -webkit-mask: url('https://cdn.jsdelivr.net/gh/simple-icons/simple-icons/icons/linkedin.svg') center/contain no-repeat;
  background: #fff;
}

/* Ayrım çizgisi */
.footer-divider {
  margin: clamp(10px, 2vw, 16px) 0;
  height: 1px;
  border: 0;
  background: rgba(255,255,255,.25);
}

/* Alt satır */
.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
}
.footer-copy {
  margin: 0;
  font-size: clamp(12px, 1.4vw, 14px);
  color: #ffffff;
  opacity: 1;
}
.footer-legal {
  display: flex;
  gap: clamp(14px, 2.2vw, 28px);
  flex-wrap: wrap;
}
.footer-legal a {
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(13px, 1.5vw, 16px);
  opacity: .95;
}
.footer-legal a:hover { opacity: .75; }

/* Responsive footer */
@media (max-width: 720px) {
  .footer-top {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "menu"
      "social";
    justify-items: center;
    row-gap: 8px;
  }
  .footer-primary { justify-content: center; margin-bottom: 8px; }
  .footer-bottom {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}


/* Layout tweaks */
@media (max-width: 980px) {
  .game, .game-reverse { grid-template-columns: 1fr; }
  .phone-right, .phone-left { justify-self: center; }
  .contact-inner { grid-template-columns: 1fr; text-align: center; }
}
@media (max-width:560px) {
  .topbar .nav { padding: .6rem 0; }
  .brand-mark { font-size: 2rem; }
  .hero-logo { font-size: 72px; }
  p, li { font-size: 1.125rem; line-height: 1.7rem; }
  .contact { padding: 40px 0 64px; }
  .hero-art .hero-image { max-height: 60vh; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .other-card, .other-card:hover {
    transition: none;
    transform: translateY(var(--offset));
  }
}

/* Map */
.map {
  width: 100%;
  background: #fff;
  border-top: 1px solid #eee;
  padding: clamp(24px, 6vw, 50px) 0;
}
.map iframe {
  display: block;
  width: 100%;
  min-height: 420px;
  border: 0;
}
@media (min-width:980px) { .map iframe { min-height: 520px; } }

/* ==================== Mobile Logo & Layout Fix ==================== */
@media (max-width: 560px) {
  /* Nav satırı sağlam flex */
  .topbar .nav{
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    padding:0.30rem 8px !important;
    gap:6px !important;
  }

  /* Logo daha büyük */
  .topbar .brand{
    height:64px !important;
    flex:0 0 auto !important;
  }
  .topbar .brand-logo{
    height:64px !important;
    max-height:64px !important;
    width:auto !important;
  }

  /* Menü satırı yan yana ve taşmadan akış */
  .menu{
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
    flex-wrap:nowrap !important;
    white-space:nowrap !important;
    gap:2px !important;
    flex:1 1 auto !important;
    overflow-x:auto;          /* Çok dar ekranda yatay kaydırma */
    -webkit-overflow-scrolling: touch;
  }

  /* Linkleri asla gizleme, fontu küçült, aralığı daralt */
  .menu a:not(.btn){ display:inline-flex !important; }
  .menu a{
    display:inline-flex !important;
    font-size:0.92rem !important;
    line-height:1 !important;
    padding:.22rem .38rem !important;
    margin:0 2px !important;
    border-radius:999px !important;
    font-weight:600 !important;
  }

  /* Footer logosu küçültme */
  .footer .brand-logo {
    height: clamp(64px, 18vw, 88px);
    margin-left: -4px;
  }

  /* Footer metin ve linkler */
  .footer-primary a {
    font-size: 1rem;
  }
  .footer-copy {
    font-size: .8rem;
  }

  /* Ek boşluk düzenlemeleri */
  .footer {
    padding-block: 12px 18px;
  }
  .footer-top {
    row-gap: 6px;
  }
}

/* ==================== Other Games Fix: Sabit Kart Boyutu ==================== */
.other-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 125px); /* her kart sabit 240px */
  justify-content: center; /* ortala */
  gap: 15px;
  margin-inline: auto;
}

/* Kartların sabit ölçüsü */
.other-card {
  width: 125px;
  flex: 0 0 auto;
}

/* Responsive spacing ayarı */
@media (max-width: 600px) {
  .other-grid {
    grid-template-columns: repeat(auto-fill, 125px); /* mobilde biraz daraltılmış */
    gap: 12px;
  }
  .other-card {
    width: 125px;
  }
}
