:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --text: #16161a;
  --muted: #6c6c74;
  --line: #e9e9e3;
  --chip: #efefea;
  --accent: #16161a;
  --accent-text: #ffffff;
  --warm: #f5a524;
  --shadow: 0 1px 2px rgb(20 20 25 / 0.06), 0 8px 24px -8px rgb(20 20 25 / 0.18);
  --shadow-hover: 0 2px 4px rgb(20 20 25 / 0.08), 0 18px 36px -10px rgb(20 20 25 / 0.28);
  --radius-icon: 22.37%;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e10;
    --surface: #17171a;
    --text: #f1f1ee;
    --muted: #9a9aa2;
    --line: #26262b;
    --chip: #202024;
    --accent: #f1f1ee;
    --accent-text: #0e0e10;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px -8px rgb(0 0 0 / 0.6);
    --shadow-hover: 0 2px 4px rgb(0 0 0 / 0.5), 0 18px 36px -10px rgb(0 0 0 / 0.75);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, system-ui, sans-serif;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

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

:focus-visible {
  outline: 2px solid var(--warm);
  outline-offset: 3px;
  border-radius: 8px;
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ───────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 650;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1d1d22, #3a2c1f);
  display: grid;
  place-items: center;
  color: #ffd66b;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.nav { display: flex; gap: 6px; align-items: center; }

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.nav a:hover { color: var(--text); background: var(--chip); }

.nav .pill {
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  margin-left: 4px;
}

.nav .pill:hover { background: var(--accent); color: var(--accent-text); opacity: 0.88; }

/* ── Hero ─────────────────────────────────────────────── */
.hero { padding-block: 72px 28px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warm);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--warm) 22%, transparent);
}

h1 {
  margin: 16px 0 14px;
  font-size: clamp(38px, 7vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 700;
  max-width: 14ch;
}

.lede {
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 2.2vw, 20px);
  max-width: 46ch;
}

/* ── Icon gallery ─────────────────────────────────────── */
.gallery-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 56px 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.gallery-head h2 { margin: 0; font-size: 15px; font-weight: 600; }
.gallery-head span { color: var(--muted); font-size: 14px; }

.gallery {
  list-style: none;
  margin: 0;
  padding: 8px 0 72px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 36px 20px;
}

.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  text-align: center;
  border-radius: 22px;
  padding: 8px 4px;
}

.icon {
  width: 104px;
  aspect-ratio: 1;
  border-radius: var(--radius-icon);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--chip);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.icon img { width: 100%; height: 100%; object-fit: cover; }

.tile:hover .icon,
.tile:focus-visible .icon {
  transform: translateY(-6px) scale(1.04);
  box-shadow: var(--shadow-hover);
}

.tile:active .icon { transform: scale(0.97); }

.tile-name { font-weight: 600; font-size: 15px; line-height: 1.25; }
.tile-meta { font-size: 13px; color: var(--muted); line-height: 1.2; margin-top: -6px; }

.tile.placeholder { pointer-events: none; }

.tile.placeholder .icon {
  background: transparent;
  border: 1.5px dashed var(--line);
  box-shadow: none;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 28px;
}

.tile.placeholder .tile-name { color: var(--muted); font-weight: 500; }

/* ── Detail sheet ─────────────────────────────────────── */
dialog.sheet {
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--bg);
  color: var(--text);
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease), overlay 0.35s allow-discrete, display 0.35s allow-discrete;
}

dialog.sheet[open] { opacity: 1; transform: none; }

@starting-style {
  dialog.sheet[open] { opacity: 0; transform: translateY(24px); }
}

dialog.sheet::backdrop { background: transparent; }

.sheet-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 24px 80px;
}

.sheet-inner:focus { outline: none; }

.sheet-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
}

.close {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  padding: 10px 12px;
  margin-left: -12px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.close:hover { color: var(--text); background: var(--chip); }
.close kbd { font: inherit; font-size: 12px; opacity: 0.6; margin-left: 4px; }

.status {
  font-size: 13px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--chip);
  color: var(--text);
}

.status.live { background: color-mix(in srgb, #34d399 20%, var(--chip)); }

.detail-hero { text-align: center; padding: 28px 0 8px; }

.detail-icon {
  width: 184px;
  margin: 0 auto 28px;
  border-radius: var(--radius-icon);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  aspect-ratio: 1;
}

.detail-icon img { width: 100%; height: 100%; object-fit: cover; }

.detail-hero h2 {
  margin: 0;
  font-size: clamp(28px, 5vw, 38px);
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.tagline { margin: 8px 0 14px; color: var(--muted); font-size: 18px; }

.chip {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--chip);
}

.section { margin-top: 44px; }

.section h3 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.about { margin: 0; font-size: 17px; line-height: 1.65; }

.notice { margin: 14px 0 0; font-size: 14px; color: var(--muted); }

.rows { margin: 0; padding: 0; list-style: none; }

.rows li {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}

.rows li span:first-child { color: var(--muted); }
.rows li span:last-child { text-align: right; font-weight: 500; }
.rows a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.rows a:hover { text-decoration-color: currentColor; }

.features { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }

.features li {
  position: relative;
  padding: 14px 16px 14px 44px;
  border-radius: 14px;
  background: var(--chip);
  font-size: 16px;
  line-height: 1.45;
}

.features li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 21px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warm);
}

/* ── Legal pages ──────────────────────────────────────── */
.legal { max-width: 720px; padding: 56px 24px 96px; }
.legal h1 { font-size: clamp(32px, 6vw, 46px); max-width: none; margin: 0 0 4px; letter-spacing: -0.04em; }
.legal .updated { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.legal h2 { font-size: 18px; margin: 32px 0 6px; letter-spacing: -0.02em; }
.legal p { margin: 0 0 12px; color: color-mix(in srgb, var(--text) 88%, var(--muted)); }
.legal a { text-underline-offset: 3px; }

/* ── Footer ───────────────────────────────────────────── */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
}

.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }

@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .hero { padding-block: 44px 20px; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 28px 12px; }
  .icon { width: 88px; }
  .sheet-inner { padding: 12px 18px 64px; }
  .detail-icon { width: 156px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .tile:hover .icon { transform: none; }
}

/* ── Uygulama siteleri ── */
.brand-icon { border-radius: 22%; }
.app-hero { text-align: center; padding: 64px 24px 24px; }
.app-icon { width: 132px; height: 132px; border-radius: 22.37%; margin: 0 auto 24px; box-shadow: var(--shadow-hover); }
.app-hero h1 { margin: 0 auto 10px; max-width: none; }
.app-hero .lede { margin: 0 auto; max-width: 40ch; }
.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 28px 0 8px; }
.btn { display: inline-block; padding: 13px 22px; border-radius: 999px; background: linear-gradient(135deg, var(--grad1), var(--grad2)); color: #111; font-weight: 650; text-decoration: none; }
.btn.disabled { background: var(--chip); color: var(--muted); }
.btn:hover { filter: brightness(1.05); }
.social { color: var(--muted); font-size: 14px; }
.about-app { max-width: 720px; padding-bottom: 72px; }
.about-app .about { text-align: center; margin-bottom: 28px; }
.about-app .notice { text-align: center; }
.legal ul { padding-left: 22px; margin: 0 0 14px; }
.legal li { margin: 4px 0; }
.legal h3 { font-size: 16px; margin: 20px 0 6px; }
