/* ==========================================================================
   Ana sayfa
   ========================================================================== */

/* ---------- Hero ---------- */
.home-hero {
  padding-top: 144px;
  padding-bottom: 176px;
}

.home-hero__title {
  margin-top: 44px;
}

.home-hero__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-40);
  margin-top: 36px;
}

.home-hero__lead {
  max-width: 500px;
}

.home-hero__actions {
  flex: none;
}

/* Kesim planı şeridi: tek stok, beş parça, 4px kerf */
.stock {
  margin-top: 64px;
}

.stock__head {
  margin-bottom: 12px;
}

.stock__bar {
  display: grid;
  grid-template-columns: 374fr 373fr 211fr 235fr 69fr;
  gap: var(--kerf-gap);
  list-style: none;
  padding: 0;
  height: 100px;
}

.stock__part {
  position: relative;
  min-width: 0;
  background: #111110;
  color: var(--bone);
}

.stock__part a {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 14px 14px 13px;
}

.stock__part .label {
  color: var(--bone);
}

.stock__value {
  font-size: var(--fs-small);
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stock__part a:hover .stock__value {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.stock__part--games {
  background: var(--kerf);
  color: var(--ink);
}

.stock__part--games .label {
  color: var(--ink);
}

.stock__part--rest {
  background: repeating-linear-gradient(-45deg, #d6d6d0 0 1px, transparent 1px 7px);
}

/* Ölçü çizgileri */
.stock__dims {
  display: grid;
  grid-template-columns: 374fr 373fr 211fr 235fr 69fr;
  gap: 6px;
  margin-top: 12px;
  height: 2px;
}

.stock__dims i {
  display: block;
  background: #d0d0ca;
}

.stock__dims i:last-child {
  background: repeating-linear-gradient(90deg, #c4c4be 0 3px, transparent 3px 6px);
}

/* ---------- Seçili işler ---------- */
.selected__head {
  margin-bottom: 48px;
}

.selected__rule {
  height: 1px;
  background: var(--ink);
  margin-bottom: 64px;
}

/* C/01 — koyu bant */
.feature-client {
  padding-block: 100px 120px;
}

.feature-client__body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-40);
  margin-top: 72px;
}

.feature-client__body h3 {
  max-width: 820px;
}

.feature-client__link {
  flex: none;
  margin-bottom: 0.4em;
}

.feature-client__scope {
  margin-top: 48px;
}

/* P/01 — CamERP */
.feature-product {
  padding-block: var(--section) 0;
}

.feature-product__grid {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: start;
}

.feature-product__text {
  grid-column: 1 / span 5;
  padding-top: 72px;
}

.feature-product__title {
  margin-top: 26px;
  margin-bottom: 30px;
}

.feature-product__text .t-lead {
  max-width: 480px;
}

.feature-product__status {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
}

.feature-product__links {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-top: 34px;
}

.feature-product__visual {
  grid-column: 7 / -1;
  position: relative;
  aspect-ratio: 709 / 520;
}

.feature-product__photo img {
  object-position: 12% 50%;
}

.feature-product__photo {
  position: absolute;
  top: 0;
  right: 0;
  width: 87%;
  height: 88.8%;
  overflow: hidden;
  background: #dde7f1;
}

.feature-product__sheet {
  position: absolute;
  left: 6%;
  top: 38.3%;
  width: 68%;
  height: auto;
  --ph-ratio: 481 / 300;
  box-shadow: 0 32px 60px -20px rgba(17, 17, 16, 0.22);
}

/* P/02 · P/03 — kesim kartları */
.cut-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gutter);
  margin-top: 150px;
}

.cut-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 600px;
  padding: 40px;
}

.cut-card--1d {
  background: #0b1f3a;
  color: #e8eef8;
  --fg-3: #a9bcda;
  --fg: #e8eef8;
  --bg: #0b1f3a;
  --status-live: #38ed7a;
}

.cut-card--2d {
  background: var(--sheet);
}

.cut-card__foot {
  margin-top: auto;
}

.cut-card__title {
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.375rem);
  letter-spacing: -0.06em;
  transition: transform var(--transition-normal);
}

.cut-card__link:hover .cut-card__title {
  transform: translateX(4px);
}

.cut-card__desc {
  max-width: 440px;
  margin-top: 14px;
  font-size: var(--fs-body);
  line-height: 1.5;
}

.cut-card--1d .cut-card__desc {
  color: #c4d4ed;
}

.cut-card--2d .cut-card__desc {
  color: var(--ink-2);
}

.mini-1d {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 134px;
}

.mini-1d__row {
  display: flex;
  gap: 3px;
  height: 26px;
}

.mini-1d__row i {
  display: block;
  background: #1561f5;
}

.mini-1d__row i.b2 {
  background: #3b7bff;
}

.mini-1d__row i.fire {
  background: #f26a1c;
}

.mini-1d__row i.artik {
  background: #2dd4c0;
}

.mini-2d {
  position: relative;
  margin-top: 64px;
  aspect-ratio: 549 / 275;
}

.mini-2d i {
  position: absolute;
  display: block;
  border: 1px solid #5b5b57;
}

.mini-2d .p-a { left: 0; top: 0; width: 40.1%; height: 53.1%; background: #ffe3d5; }
.mini-2d .p-b { left: 40.4%; top: 0; width: 29.7%; height: 53.1%; background: #e3ebfe; }
.mini-2d .p-d { left: 70.4%; top: 0; width: 23.5%; height: 33.1%; background: #e7f4ea; }
.mini-2d .p-r1 { left: 70.4%; top: 33.8%; width: 23.5%; height: 19.3%; background: #f3f2ee; border: 1px dashed #c2380a; }
.mini-2d .p-trim { left: 94.4%; top: 0; width: 5.6%; height: 100%; background: #ead3c5; border: 0; }
.mini-2d .p-c1 { left: 0; top: 54.2%; width: 26.6%; height: 45.8%; background: #fff3c7; }
.mini-2d .p-c2 { left: 26.9%; top: 54.2%; width: 26.8%; height: 45.8%; background: #fff3c7; }
.mini-2d .p-e { left: 54%; top: 54.2%; width: 19.6%; height: 45.8%; background: #efe5fe; }
.mini-2d .p-b2 { left: 74%; top: 54.2%; width: 19.9%; height: 26.9%; background: #e3ebfe; }
.mini-2d .p-r2 { left: 74%; top: 81.8%; width: 19.9%; height: 18.2%; background: #f3f2ee; border: 1px dashed #c2380a; }

/* C/02 — Winperax */
.feature-client-light {
  padding-top: 186px;
}

.feature-client-light .container {
  border-top: 1px solid var(--ink);
  padding-top: 0;
}

.feature-client-light__meta {
  padding-top: 20px;
}

.feature-client-light__grid {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: var(--space-24);
  align-items: end;
  margin-top: 64px;
  margin-bottom: 40px;
}

.feature-client-light__grid h3 {
  grid-column: 1 / span 7;
}

.feature-client-light__grid p {
  grid-column: 8 / -1;
}

/* Mobil bölümü */
.mobile-sect {
  padding-block: 200px var(--section);
}

.mobile-sect__grid {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: center;
}

.mobile-sect__grid > :first-child {
  grid-column: 1 / span 6;
}

.mobile-list {
  margin-top: 36px;
  border-top: 1px solid var(--line);
}

.mobile-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  min-height: 54px;
  border-bottom: 1px solid var(--line);
}

.mobile-list a {
  font-size: var(--fs-body);
  letter-spacing: -0.01em;
  transition: color var(--transition-fast);
}

.mobile-list a:hover {
  color: var(--ink-3);
}

.phones {
  grid-column: 7 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
  padding-top: 48px;
}

.phones > :nth-child(2) {
  margin-top: -48px;
}

/* ---------- Gece: oyunlar ---------- */
.home-games {
  padding-block: 150px 140px;
}

.home-games__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-24);
  margin-bottom: 64px;
}

.home-games__title {
  font-size: clamp(3rem, 1.2rem + 6.2vw, 6.5rem);
}

.home-games__kerf {
  color: var(--kerf);
}

.home-games__head .label {
  padding-bottom: 0.9em;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto auto auto;
  column-gap: var(--gutter);
  list-style: none;
  padding: 0;
}

.game-tile {
  min-width: 0;
}

.game-tile__art {
  position: relative;
  display: block;
  overflow: hidden;
}

.game-tile__art img {
  transition: transform 900ms var(--ease);
}

.game-tile:hover .game-tile__art img {
  transform: scale(1.02);
}

.game-tile__foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-16);
  padding-block: 20px 24px;
}

.game-tile__foot a:hover {
  color: var(--fg-3);
}

.game-tile__foot--ruled {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  margin-top: 64px;
}

.game-tile--misket {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
}

.game-tile--misket .game-tile__art {
  flex: 1;
  min-height: 560px;
  background: #bfe3f3;
  color: var(--ink);
  --fg: var(--ink);
  --fg-3: var(--ink-2);
}

.game-tile--misket .game-tile__foot--ruled {
  margin-right: calc(-1 * var(--gutter));
  padding-right: var(--gutter);
}

.game-tile__overlay {
  position: absolute;
  top: 28px;
  left: 28px;
  right: 28px;
  z-index: 1;
}

.misket-trio {
  position: absolute;
  inset: 68px 5.8% auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.misket-trio picture:nth-child(2) {
  margin-top: 40px;
}

.misket-trio img {
  width: 100%;
  border-radius: 14px;
}

.game-tile--bw .game-tile__art {
  aspect-ratio: 629 / 354;
}

.game-tile--bw .game-tile__art img {
  object-position: top;
}

.game-tile--kiy .game-tile__art {
  aspect-ratio: 629 / 276;
}

.game-tile--kiy .game-tile__art img {
  object-position: 50% 30%;
}

.game-tile--bw,
.game-tile--kiy {
  grid-column: 2;
}

.game-tile--kiy .game-tile__foot {
  padding-bottom: 0;
}

/* Alt sıra: CEPHE 81 ve Pack the Truck yan yana */
.game-tile--cephe {
  grid-column: 1;
  grid-row: 3;
  margin-top: var(--space-40);
}

.game-tile--cephe .game-tile__art {
  aspect-ratio: 629 / 300;
}

.game-tile--cephe .game-tile__art img {
  object-position: 50% 72%;
}

.game-tile--ptt {
  grid-column: 2;
  grid-row: 3;
  margin-top: var(--space-40);
}

.game-tile--ptt .game-tile__art {
  aspect-ratio: 629 / 300;
  background: #ff5a1f;
  overflow: hidden;
}

.ptt-trio {
  position: absolute;
  inset: 24px 24px 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 10px;
}

.ptt-trio picture {
  flex: 0 1 120px;
}

.ptt-trio img {
  width: 100%;
  height: auto;
  border-radius: 12px 12px 0 0;
}

.ptt-trio picture:nth-child(2) {
  transform: translateY(-16px);
}

/* Son sıra: Dino Hatch tam genişlik, mağaza ekranlarının üst yarısı */
.game-tile--dino {
  grid-column: 1 / -1;
  grid-row: 4;
  margin-top: var(--space-40);
}

.game-tile--dino .game-tile__art {
  aspect-ratio: 1280 / 300;
  background: #1f534c;
}

.dino-row {
  position: absolute;
  inset: 28px 24px 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 14px;
}

.dino-row picture {
  flex: 0 1 150px;
}

.dino-row img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.dino-row picture:nth-child(even) {
  transform: translateY(22px);
}

/* ---------- On proje ---------- */
.manifesto__text {
  max-width: 640px;
  margin-top: 40px;
}

.manifesto__link {
  display: inline-block;
  margin-top: 48px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1279px) {
  .stock__value {
    font-size: var(--fs-xs);
  }

  .cut-card__link {
    min-height: 540px;
  }
}

@media (max-width: 1023px) {
  .home-hero {
    padding-top: 96px;
  }

  .home-hero__foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .feature-client__body {
    flex-direction: column;
    align-items: flex-start;
  }

  .feature-product__text {
    grid-column: 1 / -1;
    padding-top: 0;
  }

  .feature-product__visual {
    grid-column: 1 / -1;
    margin-top: var(--space-64);
  }

  .cut-cards {
    margin-top: 120px;
  }

  .cut-card__link {
    padding: 28px;
    min-height: 480px;
  }

  .mini-1d {
    margin-top: 80px;
  }

  .feature-client-light__grid h3,
  .feature-client-light__grid p {
    grid-column: 1 / -1;
  }

  .mobile-sect__grid > :first-child,
  .phones {
    grid-column: 1 / -1;
  }

  .phones {
    margin-top: var(--space-64);
    max-width: 640px;
  }

  .game-tile--misket .game-tile__art {
    min-height: 480px;
  }
}

@media (max-width: 767px) {
  .home-hero {
    padding-top: 56px;
    padding-bottom: 72px;
  }

  .home-hero__title {
    margin-top: 32px;
  }

  .home-hero__foot {
    margin-top: 28px;
  }

  .home-hero__actions {
    display: none;
  }

  /* Şerit dikey: parçalar alt alta, sağda ölçü çizgisi */
  .stock {
    position: relative;
    margin-top: 48px;
    padding-right: 18px;
  }

  .stock__head {
    display: none;
  }

  .stock__bar {
    grid-template-columns: 1fr;
    grid-template-rows: 96px 96px 56px 64px 22px;
    height: auto;
  }

  .stock__part a {
    padding: 12px;
  }

  .stock__part--mobile a,
  .stock__part--games a {
    flex-direction: row;
    align-items: center;
  }

  .stock__value {
    font-size: 1rem;
  }

  .stock__dims {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: block;
    width: 1px;
    height: auto;
    margin: 0;
    background: #c4c4be;
  }

  .stock__dims i {
    display: none;
  }

  .selected__head {
    margin-bottom: 20px;
  }

  .selected__rule {
    margin-inline: var(--margin);
    margin-bottom: 34px;
  }

  .feature-client {
    margin-inline: var(--margin);
    padding-block: 40px;
  }

  .feature-client .container {
    padding-inline: 28px;
  }

  .feature-client__body {
    margin-top: 40px;
    gap: 28px;
  }

  .feature-client__body .t-xl {
    font-size: 2.5rem;
  }

  .feature-client__body .tone {
    margin-top: 10px;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
    line-height: 1.4;
    font-weight: 400;
    color: var(--fg-2);
  }

  .feature-client__meta > p:first-child {
    font-size: 0;
  }

  .feature-client__meta > p:first-child::before {
    content: "C/01";
    font-size: var(--fs-mono);
  }

  .feature-client__scope {
    margin-top: 28px;
  }

  .feature-product {
    padding-top: 80px;
  }

  .feature-product__grid {
    display: flex;
    flex-direction: column-reverse;
  }

  .feature-product__visual {
    margin: 0 0 20px;
    aspect-ratio: 350 / 220;
  }

  .feature-product__photo {
    width: 100%;
    height: 100%;
  }

  .feature-product__sheet {
    left: auto;
    right: 5%;
    top: 11%;
    bottom: 0;
    width: 34%;
    --ph-ratio: auto;
    aspect-ratio: auto;
    --shot-r: 18px 18px 0 0;
    --shot-pos: 0% 0%;
    box-shadow: none;
  }

  .feature-product__sheet .ph__label {
    writing-mode: vertical-rl;
  }

  .feature-product__title {
    margin-top: 16px;
    margin-bottom: 16px;
  }

  .feature-product__status {
    margin-top: 20px;
  }

  .feature-product__links {
    margin-top: 24px;
  }

  .cut-cards {
    margin-top: 56px;
    gap: 12px;
  }

  .cut-card__link {
    min-height: 0;
    aspect-ratio: 236 / 320;
    padding: 18px;
  }

  .cut-card__link > .label-row {
    display: none;
  }

  .mini-1d {
    margin-top: 0;
    gap: 6px;
  }

  .mini-1d__row {
    height: 16px;
    gap: 2px;
  }

  .mini-2d {
    margin-top: 0;
  }

  .cut-card__title {
    font-size: 1.875rem;
    margin-bottom: 8px;
  }

  .feature-client-light {
    padding-top: 64px;
  }

  .feature-client-light .container {
    border-top: 0;
  }

  .feature-client-light__meta {
    border-top: 1px solid var(--ink);
  }

  .feature-client-light__grid {
    margin-top: 28px;
    margin-bottom: 28px;
  }

  .feature-client-light__grid .t-1 {
    font-size: 2.5rem;
  }

  .feature-client-light__grid .tone {
    margin-top: 10px;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
    line-height: 1.4;
    font-weight: 400;
    color: var(--fg-2);
  }

  .feature-client-light__meta > p:first-child {
    font-size: 0;
  }

  .feature-client-light__meta > p:first-child::before {
    content: "C/02";
    font-size: var(--fs-mono);
  }

  .mobile-sect {
    padding-block: 96px 0;
  }

  .phones {
    display: none;
  }

  .home-games {
    padding-block: 88px 64px;
  }

  .home-games__head {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 40px;
  }

  .home-games__head .label {
    order: 2;
  }

  /* Oyunlar: yatay kaydırmalı kartlar */
  .home-games .container {
    padding-inline: 0;
  }

  .home-games__head {
    padding-inline: var(--margin);
  }

  .games-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--margin);
    padding-inline: var(--margin);
    padding-bottom: 12px;
    scrollbar-width: none;
  }

  .games-grid::-webkit-scrollbar {
    display: none;
  }

  .game-tile {
    flex: none;
    width: 64vw;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
  }

  .game-tile--misket .game-tile__art,
  .game-tile--bw .game-tile__art,
  .game-tile--kiy .game-tile__art {
    flex: none;
    min-height: 0;
    aspect-ratio: 346 / 212;
  }

  .game-tile__overlay {
    display: none;
  }

  .misket-trio {
    inset: 0 6% auto;
    top: -18%;
  }

  .misket-trio picture:nth-child(3) {
    display: none;
  }

  .misket-trio {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-tile__foot,
  .game-tile__foot--ruled {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    padding: 14px 0 0;
    border-top: 0;
  }

  .game-tile--misket .game-tile__foot--ruled {
    margin-right: 0;
    padding-right: 0;
  }

  .game-tile--cephe,
  .game-tile--ptt,
  .game-tile--dino {
    display: none;
  }

  .manifesto {
    padding-block: 120px 96px;
  }

  .manifesto__link {
    margin-top: 32px;
  }
}
