:root {
  --paper: #F2F4F7;
  --surface: #FFFFFF;
  --ink: #14182B;
  --muted: #5B6178;
  --line: #D9DDE6;
  --cobalt: #2B3FD6;
  --cobalt-deep: #1E2DA8;
  --signal: #FFD23F;
  --ok: #1F8A5B;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Figtree', system-ui, sans-serif;
  --r-sm: 8px;
  --r-md: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.02em; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: var(--r-sm); z-index: 10; }
.skip:focus { left: 8px; }

/* ---------- üst bar ---------- */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.mark { text-decoration: none; font-family: var(--display); font-size: 26px; line-height: 1; display: inline-flex; align-items: baseline; }
.mark-eea { font-weight: 800; color: var(--cobalt); letter-spacing: -0.04em; }
.mark-soft { font-weight: 500; color: var(--ink); margin-left: 2px; }
.tabs { display: flex; gap: 4px; margin-right: auto; }
.tabs a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--muted); padding: 8px 12px; border-radius: var(--r-sm); position: relative; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); }
.tabs a[aria-current="page"]::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -15px; height: 3px; background: var(--cobalt); border-radius: 3px 3px 0 0; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); }
.lang button { border: 0; background: none; font: 600 13px var(--body); color: var(--muted); padding: 5px 11px; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }

@media (max-width: 760px) {
  .top-inner { flex-wrap: wrap; height: auto; padding-top: 12px; gap: 8px 16px; }
  .mark { margin-right: auto; }
  .tabs { order: 3; width: 100%; margin: 0 -12px; overflow-x: auto; scrollbar-width: none; }
  .tabs a { white-space: nowrap; padding: 10px 12px 14px; }
  .tabs a[aria-current="page"]::after { bottom: 0; }
}

/* ---------- ana sayfa ---------- */
.hero-head { padding-top: clamp(40px, 7vw, 88px); padding-bottom: 32px; max-width: 1160px; }
.hero-title { font-size: clamp(38px, 6vw, 72px); font-weight: 800; line-height: 1.02; max-width: 14ch; }
.hero-sub { color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); max-width: 56ch; margin: 20px 0 0; }

.doors { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; padding-bottom: 72px; }
.door {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: clamp(260px, 34vw, 420px); padding: clamp(24px, 3vw, 40px);
  border-radius: 28px; text-decoration: none; overflow: hidden; isolation: isolate; container-type: inline-size;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.door:hover { transform: translateY(-4px); }
.door-word { font-family: var(--display); font-weight: 800; font-size: clamp(44px, 17cqi, 128px); line-height: .9; letter-spacing: -0.045em; }
.door-hint { font-weight: 500; margin-top: 14px; font-size: 17px; display: inline-flex; align-items: center; gap: 10px; }
.door-hint::after { content: ''; width: 22px; height: 2px; background: currentColor; transition: width .3s; }
.door:hover .door-hint::after { width: 40px; }
.door-count { position: absolute; top: clamp(24px, 3vw, 40px); left: clamp(24px, 3vw, 40px); font-weight: 600; font-size: 14px; padding: 6px 12px; border-radius: 999px; }
.door-count:empty { display: none; }

.door-games { background: var(--cobalt); color: #fff; }
.door-games::before {
  /* oyun kolu yön tuşu motifi */
  content: ''; position: absolute; z-index: -1; right: -6%; top: -10%; width: 62%; aspect-ratio: 1;
  background:
    linear-gradient(var(--signal), var(--signal)) center / 33.4% 100% no-repeat,
    linear-gradient(var(--signal), var(--signal)) center / 100% 33.4% no-repeat;
  border-radius: 18px; opacity: .95; transform: rotate(-12deg);
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.door-games:hover::before { transform: rotate(-4deg) scale(1.04); }
.door-games .door-count { background: rgba(255,255,255,.16); }

.door-soft { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.door-soft::before {
  /* kod parantezi motifi */
  content: '{ }'; position: absolute; z-index: -1; right: 6%; top: 2%;
  font-family: var(--display); font-weight: 800; font-size: clamp(120px, 16vw, 230px); line-height: 1; letter-spacing: -0.08em;
  color: var(--paper); transition: color .4s;
}
.door-soft:hover::before { color: #E3E7F5; }
.door-soft .door-count { background: var(--paper); color: var(--muted); }

@media (max-width: 760px) { .doors { grid-template-columns: 1fr; } }

/* ---------- sayfa başlığı ---------- */
.page-head { padding-top: clamp(40px, 6vw, 72px); padding-bottom: 36px; }
.page-head h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 800; line-height: 1; }
.lede { color: var(--muted); font-size: 19px; max-width: 58ch; margin: 16px 0 0; }
.empty { color: var(--muted); padding: 48px 0; }

/* ---------- oyunlar ---------- */
.games { list-style: none; margin: 0; padding: 0 0 80px; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.game { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 24px; display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: start; }
.game-icon { width: 96px; height: 96px; border-radius: 22%; object-fit: cover; background: var(--paper); box-shadow: 0 1px 0 rgba(20,24,43,.06), 0 8px 20px -10px rgba(20,24,43,.35); }
.game-icon.ph { display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 40px; color: #fff; background: var(--cobalt); }
.game h3 { font-size: 22px; font-weight: 700; line-height: 1.15; }
.game p { color: var(--muted); font-size: 15px; margin: 6px 0 0; }
.stores { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  background: var(--ink); color: #fff; border-radius: 12px; padding: 9px 16px 9px 13px; min-width: 150px;
  transition: background .2s;
}
.store:hover { background: #2A3050; }
.store i { font-size: 22px; width: 22px; text-align: center; }
.store small { display: block; font-size: 10.5px; line-height: 1.1; opacity: .75; }
.store strong { display: block; font-size: 15px; line-height: 1.15; font-weight: 600; }
.store.soon { background: transparent; color: var(--muted); border: 1px dashed var(--line); pointer-events: none; }
@media (max-width: 420px) {
  .game { grid-template-columns: 72px 1fr; padding: 18px; gap: 14px; }
  .game-icon { width: 72px; height: 72px; }
  .store { flex: 1; min-width: 0; }
}

/* ---------- danışmanlık ---------- */
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 40px; }
.services li { border-top: 2px solid var(--ink); padding: 18px 0 32px; }
.services h3 { font-size: 21px; font-weight: 700; }
.services p { color: var(--muted); margin: 8px 0 0; font-size: 16px; }

.clients { padding-top: 40px; padding-bottom: 88px; }
.clients-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.clients-head h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 700; }
.filter { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.filter button { border: 0; background: none; font: 500 15px var(--body); color: var(--muted); padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.filter button[aria-selected="true"] { background: var(--cobalt); color: #fff; }
.filter .n { opacity: .65; font-size: 13px; }

.companies { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.company { display: grid; grid-template-columns: 56px 1fr auto; gap: 18px; align-items: center; padding: 18px 22px; }
.company + .company { border-top: 1px solid var(--line); }
.co-logo { width: 56px; height: 56px; border-radius: 12px; object-fit: contain; background: var(--paper); padding: 6px; }
.co-logo.ph { display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--cobalt); padding: 0; }
.co-name { font-weight: 600; font-size: 18px; text-decoration: none; }
a.co-name:hover { color: var(--cobalt); }
.co-meta { color: var(--muted); font-size: 14px; }
.co-desc { color: var(--muted); font-size: 15px; margin: 4px 0 0; }
.co-status { font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.co-status.current { background: #E4F4EC; color: var(--ok); }
.co-status.past { background: var(--paper); color: var(--muted); }
@media (max-width: 560px) {
  .company { grid-template-columns: 44px 1fr; padding: 16px; gap: 12px; }
  .co-logo { width: 44px; height: 44px; }
  .co-status { grid-column: 2; justify-self: start; }
}

/* ---------- iletişim ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; padding-bottom: 88px; align-items: start; }
.contact-info { margin: 0; display: grid; gap: 24px; }
.contact-info dt { font-size: 14px; color: var(--muted); font-weight: 500; }
.contact-info dd { margin: 4px 0 0; font-size: 19px; font-weight: 500; }
.contact-info a { text-decoration: none; border-bottom: 2px solid var(--cobalt); }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 3vw, 32px); display: grid; gap: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: var(--muted); }
.form input, .form textarea {
  font: 400 16px var(--body); color: var(--ink); background: var(--paper);
  border: 1px solid transparent; border-radius: 10px; padding: 12px 14px; width: 100%; resize: vertical;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--cobalt); background: #fff; }
.form [aria-invalid="true"] { border-color: #C2362B; }
.hp { position: absolute !important; left: -9999px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.btn-primary { font: 600 16px var(--body); background: var(--cobalt); color: #fff; border: 0; border-radius: 12px; padding: 13px 22px; cursor: pointer; }
.btn-primary:hover { background: var(--cobalt-deep); }
.btn-primary:disabled { opacity: .6; cursor: wait; }
.form-status { margin: 0; font-size: 15px; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: #C2362B; }
@media (max-width: 760px) { .contact, .row2 { grid-template-columns: 1fr; } .contact { gap: 32px; } }

/* ---------- alt bilgi ---------- */
.foot { border-top: 1px solid var(--line); }
.foot-inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 32px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }

/* tek giriş animasyonu: ana sayfa kapıları */
@media (prefers-reduced-motion: no-preference) {
  .view[data-view="home"]:not([hidden]) .door { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .view[data-view="home"]:not([hidden]) .door-soft { animation-delay: .08s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
