:root {
  --bg: #161c24;
  --bg-2: #1d2430;
  --text: #e9ecf0;
  --muted: #a9b2be;
  --accent: #f2a23c;
  --line: rgba(255, 255, 255, 0.1);
  --display: "Big Shoulders Display", Impact, sans-serif;
  --body: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --wrap: 1120px;
  --slant: 6vw; /* horizontal shift of each "/" in the hero */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.section { padding: 96px 0; }
.mt { margin-top: 96px; }
.muted { color: var(--muted); }

h1, h2 {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  margin: 0;
}
h2 { font-size: clamp(36px, 5vw, 48px); line-height: 1; margin-bottom: 40px; }
h3 { font-size: 20px; font-weight: 600; margin: 12px 0 8px; }

/* Nav */
.nav {
  position: absolute; inset: 0 0 auto; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  width: min(var(--wrap), 100% - 32px); margin-inline: auto; padding: 24px 0;
}
.brand { font-family: var(--display); font-weight: 900; font-size: 28px; letter-spacing: 0.5px; }
.brand span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 28px; color: rgba(233, 236, 240, 0.85); font-size: 15px; font-weight: 500; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6); }
.lang button { text-shadow: none; }
.nav-links a:hover { color: var(--text); }
.lang { display: flex; gap: 4px; margin-left: 8px; }
.lang button { padding: 4px 8px; border-radius: 6px; color: var(--muted); font-size: 13px; font-weight: 600; }
.lang button[aria-pressed="true"] { color: var(--bg); background: var(--accent); }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; background: var(--bg); }
/* Mouse parallax: the whole city (panels + "/" cuts) drifts slightly; main.js sets --px / --py.
   Slight scale keeps the edges hidden while it moves. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .hero-media {
    transform: translate3d(var(--px, 0px), var(--py, 0px), 0) scale(1.05);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
  }
}
.hero-panel {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 60%;
}
/* Order left → right: Tech (calm, behind the headline) · Mobile Apps · Games (the eye-catcher).
   The panoramas are mirrored so the game elements land on the right. */
.hero-panel[data-panel="tech"]  { background-image: url(assets/hero/pano-tech-flip.jpg);  clip-path: polygon(0 0, calc(33.333% + var(--slant) / 2) 0, calc(33.333% - var(--slant) / 2) 100%, 0 100%); }
.hero-panel[data-panel="apps"]  { background-image: url(assets/hero/pano-apps-flip.jpg);  clip-path: polygon(calc(33.333% + var(--slant) / 2) 0, calc(66.666% + var(--slant) / 2) 0, calc(66.666% - var(--slant) / 2) 100%, calc(33.333% - var(--slant) / 2) 100%); }
.hero-panel[data-panel="games"] { background-image: url(assets/hero/pano-games-flip.jpg); clip-path: polygon(calc(66.666% + var(--slant) / 2) 0, 100% 0, 100% 100%, calc(66.666% - var(--slant) / 2) 100%); }
/* "/" separators */
.hero-cuts { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; }
.hero-cuts line { stroke: rgba(207, 213, 221, 0.55); stroke-width: 2; vector-effect: non-scaling-stroke; }
/* Panel labels */
.hero-labels { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero-labels span {
  position: absolute; top: 108px;
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: 22px; letter-spacing: 3px; color: #cfd5dd;
  z-index: 2; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}
.hero-labels [data-panel="tech"] { left: 4%; }
.hero-labels [data-panel="apps"] { left: calc(33.333% + var(--slant) / 2 + 2%); }
.hero-labels [data-panel="games"] { left: calc(66.666% + var(--slant) / 2 + 2%); }
/* Readability gradient */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  /* Darken only where text sits: top (nav), left and bottom (headline). The right side stays vivid. */
  background:
    /* Nav band: solid enough for the menu, fading out ~30px below it */
    linear-gradient(180deg, rgba(22,28,36,0.85) 0px, rgba(22,28,36,0.7) 76px, rgba(22,28,36,0) 110px),
    linear-gradient(90deg, rgba(22,28,36,0.55) 0%, rgba(22,28,36,0.15) 40%, rgba(22,28,36,0) 60%),
    linear-gradient(180deg, rgba(22,28,36,0.65) 0%, rgba(22,28,36,0) 16%, rgba(22,28,36,0) 50%, rgba(22,28,36,0.9) 100%);
}
.hero-content { position: relative; z-index: 3; padding-bottom: 72px; }
.hero h1 {
  font-size: clamp(52px, 8vw, 116px); line-height: 0.88; letter-spacing: -1px;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.35);
}
.hero .lead { font-size: clamp(18px, 1.6vw, 22px); font-weight: 700; color: #fff; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6), 0 2px 18px rgba(0, 0, 0, 0.7); }
.lead { max-width: 520px; margin: 24px 0 32px; font-size: 18px; line-height: 1.6; color: rgba(233, 236, 240, 0.85); }
.actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 999px;
  background: var(--accent); color: var(--bg); font-weight: 700;
  transition: transform 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
/* Secondary action: outlined pill matching .btn */
.link {
  display: inline-block; padding: 13px 25px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.85); color: #fff; font-weight: 700;
  background: rgba(22, 28, 36, 0.25); backdrop-filter: blur(4px);
  transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.link:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

/* What we do */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.num { font-family: var(--display); font-weight: 900; font-size: 56px; line-height: 1; color: var(--accent); }
.steps p, .prose p { color: var(--muted); margin: 0; }
.prose { max-width: 680px; }
.prose p { font-size: 18px; line-height: 1.65; margin-bottom: 20px; }

/* Gallery */
.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.row h2 { margin: 0; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 600; }
.chip.is-active { color: var(--bg); background: var(--text); border-color: var(--text); }
.gallery {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  --edge: max(16px, calc((100vw - var(--wrap)) / 2));
  padding: 0 var(--edge) 16px;
  scroll-padding-inline: var(--edge);
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.card { flex: 0 0 280px; scroll-snap-align: start; text-align: left; }
.card-media {
  position: relative; height: 340px; border-radius: 18px; overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--line);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.4s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(10,13,18,0.85)); }
.card-title {
  position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1;
  font-family: var(--display); font-weight: 900; font-size: 30px; line-height: 0.95; text-transform: uppercase;
}
.tag {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  background: rgba(22,28,36,0.75); color: var(--text); backdrop-filter: blur(6px);
}
.tag.original { background: var(--accent); color: var(--bg); }
.card-sub { margin: 10px 2px 0; color: var(--muted); font-size: 14px; }
/* Cards without screenshots */
.art { position: absolute; inset: 0; display: grid; place-items: center; }
.art svg { width: 46%; height: auto; opacity: 0.9; }
.art.web { background: radial-gradient(120% 90% at 20% 10%, #2a3446, #161c24); }
.art.fintech { background: radial-gradient(120% 90% at 80% 10%, #3a2a16, #161c24); }
.art.health { background: radial-gradient(120% 90% at 20% 90%, #1e3a33, #161c24); }
.art.consumer { background: radial-gradient(120% 90% at 50% 0%, #2b2440, #161c24); }
.art.android { background: radial-gradient(120% 90% at 80% 90%, #22361f, #161c24); }
.art .domain { font-family: var(--display); font-weight: 900; font-size: 26px; text-transform: uppercase; color: var(--text); }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 64px; }
.faq h3 { margin-top: 0; }
.faq p { color: var(--muted); margin: 0; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 32px 0 48px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 24px; color: var(--muted); font-size: 15px; }
.footer nav a:hover { color: var(--text); }
.footer .brand { font-size: 22px; }

/* Detail dialog */
.detail {
  width: min(880px, 100% - 32px); max-height: min(86vh, 900px);
  padding: 0; border: 1px solid var(--line); border-radius: 22px;
  background: var(--bg); color: var(--text);
}
.detail::backdrop { background: rgba(8, 10, 14, 0.7); backdrop-filter: blur(4px); }
.detail-close { position: sticky; top: 12px; float: right; margin: 12px 12px 0 0; width: 40px; height: 40px; border-radius: 50%; background: var(--bg-2); font-size: 22px; z-index: 2; }
.detail-body { padding: 36px; }
.detail-head { display: flex; gap: 18px; align-items: center; margin-bottom: 20px; }
.detail-head img { width: 72px; height: 72px; border-radius: 18px; }
.detail h2 { margin: 0; font-size: 48px; }
.detail .meta { color: var(--accent); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }
.detail p { color: var(--muted); font-size: 17px; line-height: 1.65; max-width: 640px; }
.shots { display: flex; gap: 12px; overflow-x: auto; margin: 24px 0; }
.shots img { height: 380px; width: auto; border-radius: 14px; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 24px; }
.pills span { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* Mobile */
@media (max-width: 760px) {
  .nav-links a { display: none; }
  /* Panels become three stacked bands in the top part; text gets the bottom part. */
  .hero-panel { background-size: auto 66%; background-repeat: no-repeat; }
  .hero-panel[data-panel="games"] { background-position: 100% 0; clip-path: polygon(0 0, 100% 0, 100% 22%, 0 30%); }
  .hero-panel[data-panel="apps"]  { background-position: 50% 0;  clip-path: polygon(0 30%, 100% 22%, 100% 38%, 0 46%); }
  .hero-panel[data-panel="tech"]  { background-position: 0% 0;   clip-path: polygon(0 46%, 100% 38%, 100% 58%, 0 66%); }
  .hero-cuts { display: none; }
  .hero-labels span { left: auto !important; right: 16px; }
  .hero-labels [data-panel="games"] { top: 80px; }
  .hero-labels [data-panel="apps"] { top: 32%; }
  .hero-labels [data-panel="tech"] { top: 48%; }
  .hero::after { background: linear-gradient(180deg, rgba(22,28,36,0.7) 0%, rgba(22,28,36,0.25) 14%, rgba(22,28,36,0.35) 45%, rgba(22,28,36,0.97) 68%); }
  .steps, .faq { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .mt { margin-top: 72px; }
  .card { flex-basis: 240px; }
  .card-media { height: 300px; }
  .detail-body { padding: 24px; }
  .detail h2 { font-size: 36px; }
  .shots img { height: 300px; }
}

/* ---------- Legal pages (privacy.html, terms.html) ---------- */
.nav--solid { position: sticky; top: 0; width: 100%; padding: 20px max(16px, calc((100% - var(--wrap)) / 2)); background: rgba(22, 28, 36, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
/* Show only the active language (body[data-lang] is set by legal.js; EN before JS runs). */
.page-legal main[lang="tr"], .page-legal span[lang="tr"] { display: none; }
.page-legal[data-lang="tr"] main[lang="tr"], .page-legal[data-lang="tr"] span[lang="tr"] { display: block; }
.page-legal[data-lang="tr"] span[lang="tr"] { display: inline; }
.page-legal[data-lang="tr"] main[lang="en"], .page-legal[data-lang="tr"] span[lang="en"] { display: none; }

.legal-page { padding: 72px 0 40px; max-width: 820px; }
.legal-hero { margin-bottom: 40px; }
.legal-hero .pill { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--accent); color: var(--bg); font-size: 12px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }
.legal-hero h1 { font-size: clamp(48px, 7vw, 88px); line-height: 0.95; margin: 18px 0 16px; }
.legal-hero__lead { font-size: 19px; line-height: 1.6; color: rgba(233, 236, 240, 0.85); margin: 0 0 10px; }
.legal-hero__date { color: var(--muted); font-size: 14px; margin: 0; }
.legal p, .legal li { color: var(--muted); font-size: 16px; line-height: 1.7; }
.legal strong { color: var(--text); }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal ul, .legal ol { padding-left: 20px; }
.legal-intro { font-size: 17px !important; }
.toc { margin: 32px 0; padding: 22px 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2); }
.toc__title { margin: 0 0 8px; color: var(--text) !important; font-weight: 700; }
.toc ol { margin: 0; columns: 2; column-gap: 32px; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--accent); }
.callout { margin: 32px 0 48px; padding: 26px 28px; border-radius: 18px; border: 1px solid rgba(242, 162, 60, 0.35); background: linear-gradient(135deg, rgba(242, 162, 60, 0.12), rgba(242, 162, 60, 0.02)); }
.callout__label { margin: 0 0 6px; color: var(--accent) !important; font-weight: 700; font-size: 13px !important; text-transform: uppercase; letter-spacing: 1px; }
.callout h2 { font-size: 30px; margin: 0 0 10px; }
.legal-section { padding: 28px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.legal-section h2 { display: flex; align-items: baseline; gap: 14px; font-size: 34px; margin: 0 0 14px; }
.legal-section h2 .num { font-size: 22px; color: var(--accent); }
.legal-section h3 { margin: 22px 0 6px; font-size: 18px; }
.table-wrap { overflow-x: auto; margin: 14px 0 24px; border: 1px solid var(--line); border-radius: 14px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); color: var(--muted); }
.data-table th { color: var(--text); background: var(--bg-2); font-weight: 600; }
.data-table tr:last-child td { border-bottom: 0; }
.status { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.status--no { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.status--yes { background: rgba(242, 162, 60, 0.18); color: var(--accent); }
@media (max-width: 760px) {
  .toc ol { columns: 1; }
  .legal-section h2 { font-size: 28px; }
  .nav--solid { padding: 14px 16px; }
  .nav--solid .brand { font-size: 22px; }
  .nav--solid .nav-links { gap: 12px; font-size: 14px; }
  .nav--solid .nav-links a { display: inline; }
  .nav--solid .nav-links a:first-child { display: none; } /* "Work" — brand already links home */
  .nav--solid .lang { margin-left: 0; }
}
