:root {
  --ink: #13110f;
  --cream: #f4eee6;
  --cream-dim: rgba(244, 238, 230, 0.78);
  --line: rgba(244, 238, 230, 0.16);
  --muted: rgba(19, 17, 15, 0.5);
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", Inter, "Segoe UI", sans-serif;
  --pad: clamp(20px, 5vw, 80px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

#apps,
#games,
#tools,
#contact {
  scroll-margin-top: 108px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}

img { display: block; max-width: 100%; }

a { color: inherit; }

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

.skip:focus { top: 12px; }

.stage {
  background: var(--ink);
  color: var(--cream);
  border-bottom-left-radius: 48px;
  border-bottom-right-radius: 48px;
  position: relative;
  z-index: 1;
}

.nav {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 22px var(--pad);
  color: #fff;
}

.nav.is-stuck {
  top: 12px;
  left: 12px;
  right: 12px;
  padding: 12px 18px 12px 22px;
  background: #1c1916;
  border-radius: 28px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.wordmark {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1;
  text-decoration: none;
  letter-spacing: -0.03em;
  justify-self: start;
}

.nav nav {
  display: flex;
  gap: 28px;
}

.nav nav a {
  text-decoration: none;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.88);
}

.nav nav a:hover,
.nav nav a:focus-visible { color: #fff; }

.contact-btn {
  justify-self: end;
  text-decoration: none;
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 500;
}

.contact-btn:hover { background: var(--cream); }

.nav-toggle {
  display: none;
  justify-self: end;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
}

.hero {
  position: relative;
  height: clamp(380px, 49vh, 460px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 96px 24px 28px;
  text-align: center;
  overflow: hidden;
}

.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
  object-position: center 36%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(19, 17, 15, 0.2) 0%, rgba(19, 17, 15, 0.05) 34%, rgba(19, 17, 15, 0.2) 72%, #13110f 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 920px;
}

.hero h1 {
  margin: 0 auto 22px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(46px, 5.6vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.hero p {
  margin: 0 auto;
  max-width: 35rem;
  font-size: 18px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

.apps {
  padding: 150px var(--pad) 28px;
}

.apps-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 32px 48px;
  align-items: end;
  margin-bottom: 48px;
}

.apps-intro h2,
.footer h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.apps-intro h2,
.footer h2 { font-size: clamp(40px, 3.9vw, 56px); }

.apps-intro p {
  margin: 0;
  justify-self: end;
  max-width: 28rem;
  text-align: right;
  color: var(--cream-dim);
  font-size: 16px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
}

.card {
  display: flex;
  flex-direction: column;
  min-height: 460px;
  padding: 36px 28px 32px;
  text-decoration: none;
  color: inherit;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.card:nth-child(3n) { border-right: 0; }
.card:nth-last-child(-n + 3) { border-bottom: 0; }

.card img {
  width: 148px;
  height: 148px;
  margin: 36px auto 56px;
  border-radius: 34px;
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
}

.card p {
  margin: 0;
  color: var(--cream-dim);
  font-size: 14.5px;
  line-height: 1.45;
}

.card:hover { background: rgba(255, 255, 255, 0.025); }

.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 28px;
}

.details-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 18px;
  border: 1px solid rgba(244, 238, 230, 0.32);
  border-radius: 999px;
  color: var(--cream);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.details-btn:hover,
.details-btn:focus-visible {
  border-color: var(--cream);
  background: var(--cream);
  color: var(--ink);
}

/* Apple'ın resmi App Store rozeti; değiştirilmeden yalnızca boyutlandırılır */
.store-badge {
  display: inline-flex;
  border-radius: 7px;
  transition: opacity 0.15s ease;
}

.card .store-badge img {
  display: block;
  width: auto;
  height: 40px;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

.store-badge:hover { opacity: 0.85; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.spark {
  width: 12px;
  height: 12px;
  background:
    linear-gradient(#fff, #fff) center / 1.5px 100% no-repeat,
    linear-gradient(#fff, #fff) center / 100% 1.5px no-repeat;
  transform: rotate(20deg);
}

.games {
  padding: 88px var(--pad) 80px;
}

.game-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.8fr);
  gap: 36px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  text-decoration: none;
  color: inherit;
}

.game-feature img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 18px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

.wrap .eyebrow,
.legal .eyebrow { color: var(--muted); }

.game-feature h3 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 4vw, 52px);
  letter-spacing: -0.03em;
  line-height: 1;
}

.game-feature p:last-of-type {
  margin: 0 0 18px;
  color: var(--cream-dim);
  max-width: 36rem;
}

.more {
  font-weight: 500;
  color: #fff;
}

.game-feature:hover,
.game-feature:focus-visible { background: rgba(255, 255, 255, 0.035); }

.footer {
  overflow: hidden;
  padding: 96px var(--pad) 0;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 40px 64px;
  align-items: start;
}

.footer h2 {
  max-width: 460px;
}

.cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding-top: 8px;
}

.cols h3 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.cols a,
.cols span {
  display: block;
  padding: 5px 0;
  font-size: 15px;
  text-decoration: none;
}

.cols a:hover,
.cols a:focus-visible { text-decoration: underline; }

.cols span { color: var(--muted); }

.legal-links {
  display: flex;
  gap: 22px;
  margin: 36px 0 0;
  font-size: 14px;
}

.legal-links a { color: var(--muted); text-decoration: none; }
.legal-links a:hover,
.legal-links a:focus-visible { color: var(--ink); }

.giant {
  margin: 72px 0 -0.16em;
  font-family: var(--serif);
  font-weight: 300;
  font-size: calc((100vw - (var(--pad) * 2)) / 6.5);
  line-height: 0.78;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.subpage { background: var(--cream); }

.game-banner {
  margin: 0;
  padding: 108px var(--pad) 0;
}

.game-banner img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 28px;
}

.wrap {
  width: min(920px, calc(100% - (var(--pad) * 2)));
  margin: 0 auto;
  padding: 56px 0 88px;
}

.wrap h1,
.legal h1 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(48px, 6vw, 76px);
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.lede {
  margin: 0 0 28px;
  font-size: 20px;
  line-height: 1.45;
}

.wrap h2,
.legal h2 {
  margin: 40px 0 10px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.02em;
  scroll-margin-top: 96px;
}

.legal h3 {
  margin: 22px 0 6px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.011em;
  scroll-margin-top: 96px;
}

.wrap p,
.legal p,
.wrap li,
.legal li {
  font-size: 16.5px;
  line-height: 1.6;
}

.gallery {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 12px;
  margin: 28px 0 8px;
}

.gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 18px;
}

.gallery .wide { grid-column: 1 / -1; }

.feature-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 12px 0;
  border-top: 1px solid rgba(19, 17, 15, 0.12);
}

.closer {
  margin-top: 28px;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 300;
  letter-spacing: -0.03em;
}

.legal {
  width: min(740px, calc(100% - (var(--pad) * 2)));
  margin: 0 auto;
  padding: 132px 0 96px;
}

.legal .meta {
  margin: 0 0 18px;
  color: var(--muted);
}

.legal .summary {
  margin: 0 0 22px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(19, 17, 15, 0.04);
}

.legal ol.toc {
  margin: 0 0 12px;
  padding: 16px 18px 18px 40px;
  border: 1px solid rgba(19, 17, 15, 0.12);
  border-radius: 16px;
}

.legal ol.toc li { margin: 4px 0; }

.legal h2 + p,
.legal h3 + p { margin-top: 0; }

.legal ul,
.legal ol {
  margin: 8px 0 16px;
  padding-left: 1.25rem;
}

.legal li { margin: 5px 0; }

.legal a { color: inherit; }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

@media (max-width: 860px) {
  .nav {
    grid-template-columns: 1fr auto auto;
  }

  .nav-toggle { display: inline-flex; }

  .nav nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: #1c1916;
    border-radius: 18px;
  }

  .nav nav.is-open { display: flex; }

  .nav nav a { padding: 10px 8px; }

  .apps-intro,
  .footer-top,
  .game-feature,
  .gallery { grid-template-columns: 1fr; }

  .apps-intro p {
    justify-self: start;
    text-align: left;
  }

  .grid { grid-template-columns: 1fr; }

  .card {
    min-height: 0;
    border-right: 0;
  }

  .card:nth-last-child(-n + 3) { border-bottom: 1px solid var(--line); }
  .card:last-child { border-bottom: 0; }

  .cols { grid-template-columns: 1fr 1fr; }

  .hero { height: 420px; }
  .apps { padding-top: 96px; }
  .gallery .wide { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Cookie consent */
.legal-links button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.legal-links button:hover,
.legal-links button:focus-visible { color: var(--ink); }

.consent {
  position: fixed;
  z-index: 100;
  left: 16px;
  bottom: 16px;
  width: min(420px, calc(100% - 32px));
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--ink);
  color: var(--cream-dim);
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.45);
}

.consent[hidden] { display: none; }
.consent p { margin: 0; }
.consent a { color: var(--cream); }

.consent-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.consent-btn {
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--cream);
  font: 500 14px/1 var(--sans);
  cursor: pointer;
}

.consent-btn:hover { border-color: rgba(244, 238, 230, 0.4); }
.consent-btn-primary { border-color: var(--cream); background: var(--cream); color: var(--ink); }
.consent-btn-primary:hover { background: #fff; }
