/* ─── Renkler: açık tema varsayılan, koyu tema cihazdan ya da seçimden ─── */
:root {
  --bg: #f5f7fb;
  --bg-elev: #ffffff;
  --bg-soft: #edf1f8;
  --border: #dde3ee;
  --border-strong: #c9d2e3;
  --text: #0b1222;
  --muted: #55617a;
  --accent: #2f7bf5;
  --link: #1a5fd6;
  --link-hover: #0f47ad;
  --accent-soft: rgba(47, 123, 245, 0.1);
  --glow: rgba(47, 123, 245, 0.2);
  --grid: rgba(11, 18, 34, 0.05);
  --shadow: 0 1px 2px rgba(11, 18, 34, 0.05), 0 8px 24px rgba(11, 18, 34, 0.06);
  --shadow-lg: 0 30px 60px -20px rgba(16, 38, 84, 0.35);
  --header-bg: rgba(245, 247, 251, 0.78);
  --hero-img: 0.07;
  --hero-veil-center: rgba(245, 247, 251, 0.8);
  --live: #e5354a;
  --radius: 16px;
  --max: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #070b14;
    --bg-elev: #0e1424;
    --bg-soft: #121a2d;
    --border: #1d2740;
    --border-strong: #2a3757;
    --text: #e9eef8;
    --muted: #94a1bb;
    --accent: #4a8dff;
    --link: #6ea4ff;
    --link-hover: #9cc1ff;
    --accent-soft: rgba(74, 141, 255, 0.12);
    --glow: rgba(74, 141, 255, 0.28);
    --grid: rgba(255, 255, 255, 0.035);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, 0.7);
    --header-bg: rgba(7, 11, 20, 0.72);
    --hero-img: 0.26;
    --hero-veil-center: rgba(7, 11, 20, 0.7);
    --live: #ff4d5e;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #070b14;
  --bg-elev: #0e1424;
  --bg-soft: #121a2d;
  --border: #1d2740;
  --border-strong: #2a3757;
  --text: #e9eef8;
  --muted: #94a1bb;
  --accent: #4a8dff;
  --link: #6ea4ff;
  --link-hover: #9cc1ff;
  --accent-soft: rgba(74, 141, 255, 0.12);
  --glow: rgba(74, 141, 255, 0.28);
  --grid: rgba(255, 255, 255, 0.035);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, 0.7);
  --header-bg: rgba(7, 11, 20, 0.72);
  --hero-img: 0.26;
  --hero-veil-center: rgba(7, 11, 20, 0.7);
  --live: #ff4d5e;
  color-scheme: dark;
}

/* Temaya göre logo: açıkta light, koyuda dark dosyası */
.on-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .on-light { display: none; }
  :root:not([data-theme='light']) .on-dark { display: block; }
}
:root[data-theme='dark'] .on-light { display: none; }
:root[data-theme='dark'] .on-dark { display: block; }
:root[data-theme='light'] .on-light { display: block; }
:root[data-theme='light'] .on-dark { display: none; }

/* ─── Temel ─── */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { letter-spacing: -0.02em; text-wrap: balance; }
/* Korecede kelimeler ortasından bölünmesin */
:lang(ko) { word-break: keep-all; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--bg-elev); padding: 8px 12px; border-radius: 8px; z-index: 100; }

/* ─── Üst menü ─── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; flex-shrink: 0; margin-right: auto; }
.header-tools { display: flex; align-items: center; gap: 6px; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 15px; font-weight: 500; }
.nav a { color: var(--muted); text-decoration: none; padding: 6px 12px; border-radius: 999px; }
.nav a:hover { color: var(--text); background: var(--bg-soft); }
.nav a[aria-current='page'] { color: var(--text); background: var(--accent-soft); }
/* Dil menüsü (JS olmadan da çalışır) */
.lang-menu { position: relative; font-size: 15px; }
.lang-menu summary {
  display: inline-flex; align-items: center; gap: 7px; list-style: none; cursor: pointer;
  padding: 6px 30px 6px 11px; border: 1px solid var(--border-strong); border-radius: 999px;
  color: var(--muted); font-weight: 500; position: relative; user-select: none;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after {
  content: ''; position: absolute; right: 13px; top: 50%; width: 6px; height: 6px; margin-top: -5px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
}
.lang-menu[open] summary::after { transform: rotate(-135deg); margin-top: -1px; }
.lang-menu summary:hover, .lang-menu[open] summary { color: var(--text); background: var(--bg-soft); }
.lang-menu summary svg { width: 16px; height: 16px; }
.lang-menu ul {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 170px;
  margin: 0; padding: 6px; list-style: none;
  background: var(--bg-elev); border: 1px solid var(--border-strong); border-radius: 14px; box-shadow: var(--shadow-lg);
}
.lang-menu a { text-decoration: none; display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-radius: 9px; color: var(--text); }
.lang-menu a:hover { background: var(--bg-soft); }
.lang-menu a[aria-current] { background: var(--accent-soft); color: var(--link); font-weight: 600; }
.lang-menu a[aria-current]::after { content: '✓'; font-size: 13px; }
.theme-toggle {
  display: none; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0; margin-left: 2px;
  border: 1px solid var(--border-strong); border-radius: 999px;
  background: transparent; color: var(--muted); cursor: pointer;
}
.js .theme-toggle { display: inline-flex; }
.theme-toggle:hover { color: var(--text); background: var(--bg-soft); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme-toggle .sun { display: block; }
  :root:not([data-theme='light']) .theme-toggle .moon { display: none; }
}
:root[data-theme='dark'] .theme-toggle .sun { display: block; }
:root[data-theme='dark'] .theme-toggle .moon { display: none; }

/* ─── Ortak bölüm başlıkları ─── */
.section { padding: 88px 0; }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4.2vw, 40px); line-height: 1.15; margin: 0 0 12px; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }

/* ─── Hero ─── */
.hero { position: relative; isolation: isolate; overflow: hidden; }
/* Arka planda loş banner: görsel + üstünde temaya göre örtü */
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background: url('/brand/banner.webp') center 42% / cover no-repeat;
  opacity: var(--hero-img, 0.16);
  filter: blur(3px) saturate(1.15);
  transform: scale(1.04);
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 55% at 50% 45%, var(--hero-veil-center), transparent 80%),
    linear-gradient(180deg, transparent 55%, var(--bg) 100%),
    radial-gradient(700px 420px at 80% 10%, var(--glow), transparent 65%);
}
.hero .container { padding-top: 112px; padding-bottom: 128px; text-align: center; }
.hero-copy { max-width: 780px; margin: 0 auto; }
.hero-copy .stores, .hero-copy .games { justify-content: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 10px; margin-bottom: 22px;
  border: 1px solid var(--border-strong); border-radius: 999px;
  background: var(--bg-elev); box-shadow: var(--shadow);
  font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0.01em;
}
.dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--live); flex-shrink: 0; }
.dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: inherit; }

.hero h1 { font-size: clamp(38px, 6.4vw, 66px); line-height: 1.04; margin: 0 0 20px; font-weight: 800; letter-spacing: -0.035em; }
.hero h1 span {
  background: linear-gradient(100deg, #2f7bf5 10%, #5f9bff 55%, #8fbcff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-text { color: var(--muted); font-size: clamp(17px, 2vw, 19px); max-width: 600px; margin: 0 auto 32px; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  min-width: 190px; padding: 10px 20px 10px 16px; border-radius: 14px;
  background: var(--text); color: var(--bg); text-decoration: none;
  border: 1px solid transparent; box-shadow: var(--shadow);
}
.store svg { width: 26px; height: 26px; flex-shrink: 0; }
.store span { display: flex; flex-direction: column; line-height: 1.2; }
.store small { font-size: 11px; opacity: 0.75; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.store strong { font-size: 18px; font-weight: 700; white-space: nowrap; }
.store span { text-align: left; }
a.store:hover { color: var(--bg); transform: translateY(-1px); }
.store.soon { background: var(--bg-elev); color: var(--text); border-color: var(--border-strong); }
.store.soon small { color: var(--accent); opacity: 1; }

.games { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.games li {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); background: var(--bg-elev);
  border-radius: 999px; padding: 5px 14px 5px 11px; font-size: 14px; font-weight: 500; color: var(--muted);
}
.games li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.games li:nth-child(1)::before { background: #c8a24a; }
.games li:nth-child(2)::before { background: #ff4655; }
.games li:nth-child(3)::before { background: #e8a33d; }
.games li:nth-child(4)::before { background: #d1432f; }

/* ─── Özellikler ─── */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative; background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.icon-tile {
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px;
  border-radius: 13px; color: var(--accent); background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}
.icon-tile svg { width: 22px; height: 22px; }
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); }

/* ─── Bildirim akışı ─── */
.flow-section { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: step; position: relative; }
.flow::before {
  content: ''; position: absolute; top: 23px; left: 12%; right: 12%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent), transparent); opacity: 0.35;
}
.flow li { position: relative; text-align: center; padding: 0 8px; }
.flow li::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 16px;
  border-radius: 50%; background: var(--bg-elev); border: 2px solid var(--accent);
  color: var(--accent); font-weight: 800; font-size: 18px; box-shadow: 0 0 0 6px var(--bg-soft);
  position: relative;
}
.flow li:nth-child(2)::before { border-color: var(--live); color: var(--live); }
.flow h3 { margin: 0 0 6px; font-size: 17px; }
.flow p { margin: 0; color: var(--muted); font-size: 15px; }

/* ─── Çağrı bandı ─── */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px;
  padding: 44px 48px; border-radius: 28px; color: #fff;
  background: radial-gradient(600px 300px at 100% 0%, rgba(143, 188, 255, 0.45), transparent 60%), linear-gradient(120deg, #1450c4, #2f7bf5 60%, #4a8dff);
  box-shadow: var(--shadow-lg);
}
.cta::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 36px 36px;
}
.cta-icon { width: 120px; height: auto; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.25)); }
.cta h2 { margin: 0 0 6px; font-size: clamp(24px, 3.4vw, 34px); line-height: 1.15; }
.cta p { margin: 0; color: rgba(255, 255, 255, 0.85); font-size: 17px; }
.cta .store { background: #fff; color: #0b1222; }
.cta .store.soon { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.cta .store.soon small { color: #cfe0ff; }
.cta .stores { flex-direction: column; }

/* ─── Metin sayfaları ─── */
.page-head { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); isolation: isolate; }
.page-head::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(600px 260px at 85% 0%, var(--glow), transparent 70%);
}
.page-head .container { max-width: 820px; padding-top: 64px; padding-bottom: 40px; }
.page-head h1 { font-size: clamp(32px, 5.4vw, 48px); line-height: 1.1; margin: 0 0 10px; font-weight: 800; }
.page-head .updated { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); margin: 0; font-size: 14px; }
.page-head .updated::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.doc { max-width: 820px; padding-top: 44px; padding-bottom: 88px; font-size: 16.5px; }
.doc > p:first-child { font-size: 18px; color: var(--muted); }
.doc h2 { font-size: 22px; margin: 44px 0 12px; padding-top: 4px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 8px 0; }
.doc li::marker { color: var(--accent); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elev); margin: 16px 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { text-align: left; border-bottom: 1px solid var(--border); padding: 12px 16px; vertical-align: top; }
.doc tr:last-child td { border-bottom: 0; }
.doc th { color: var(--muted); font-weight: 600; background: var(--bg-soft); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
.note {
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: var(--radius); padding: 16px 20px; margin: 24px 0;
}
details {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: 14px;
  margin: 10px 0; box-shadow: var(--shadow);
}
details[open] { border-color: var(--border-strong); }
summary {
  cursor: pointer; font-weight: 600; padding: 16px 52px 16px 20px; list-style: none; position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ''; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; margin-top: -6px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg);
}
details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

/* ─── Alt bilgi ─── */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 40px; color: var(--muted); font-size: 14px; background: var(--bg-elev); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 24px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.footer-top img { height: 34px; width: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer p { margin: 6px 0; max-width: 820px; }

.not-found { text-align: center; padding: 110px 0; }
.not-found img { width: 160px; height: auto; margin: 0 auto 24px; }
.not-found h1 { font-size: clamp(30px, 5vw, 44px); margin: 0 0 8px; }
.not-found p { color: var(--muted); }
.button {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 11px 22px; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 600; text-decoration: none;
}
.button:hover { color: #fff; filter: brightness(1.08); }

/* ─── Duyarlı ─── */
@media (max-width: 960px) {
  .hero .container { padding-top: 72px; padding-bottom: 88px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .flow::before { display: none; }
  .cta { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 40px 28px; }
  .cta .stores { flex-direction: row; justify-content: center; }
}
@media (max-width: 640px) {
  .site-header .container { padding-top: 10px; padding-bottom: 10px; min-height: 0; }
  .brand img { height: 32px; }
  .header-tools { order: 2; }
  .nav { order: 3; width: 100%; gap: 2px; font-size: 14px; margin-left: -9px; }
  .nav a { padding: 5px 9px; }
  .section { padding: 64px 0; }
  .features { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .store { min-width: 0; flex: 1 1 160px; }
  .cta-icon { width: 96px; }
}

/* ─── Hareket ─── */
@media (prefers-reduced-motion: no-preference) {
  a, .store, .card, .theme-toggle, .nav a { transition: color 0.15s, background-color 0.15s, border-color 0.15s, transform 0.2s; }
  .dot::after { animation: ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite; }
  @keyframes ping { 75%, 100% { transform: scale(2.4); opacity: 0; } }
}
