/* Alt sayfalar: indirme, yasal metinler ve paylaşım karşılama sayfaları.
   Ana sayfayla (site.css) aynı dil: siyah zemin, sistem fontu, cam yüzeyler. */

:root {
  color-scheme: dark;
  --ink: #f5f5f7;
  --muted: #a1a1a6;
  --gray: #86868b;
  --line: rgba(255, 255, 255, 0.12);
  --surface: rgba(255, 255, 255, 0.05);
  --purple: #8a6bff;
  --pink: #e65bac;
  --mint: #67d8cc;
  --blue: #0071e3;
  --link: #2997ff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(60rem 30rem at 50% -8rem, rgba(138, 107, 255, 0.28), transparent 70%),
    radial-gradient(40rem 24rem at 85% 10%, rgba(230, 91, 172, 0.14), transparent 70%),
    #000;
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", sans-serif;
  letter-spacing: -0.016em;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ---------- Üst bar ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 52px;
  padding: 0 max(22px, calc((100% - 1000px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}

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

.brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  box-shadow: 0 4px 14px rgba(138, 107, 255, 0.35);
}

.site-nav { display: flex; gap: 24px; }
.site-nav a { color: #d2d2d7; text-decoration: none; font-size: 13px; opacity: 0.85; }
.site-nav a:hover { opacity: 1; }

/* ---------- İçerik ---------- */

main {
  flex: 1;
  width: min(820px, calc(100% - 40px));
  margin: 64px auto 72px;
}

.hero, .document {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(22, 22, 26, 0.72);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55);
}

.hero { padding: clamp(40px, 7vw, 80px) clamp(24px, 6vw, 64px); text-align: center; }
.document { padding: clamp(28px, 6vw, 60px); }

/* İndirme sayfasında ikon kartın üstünde durur. */
.hero::before {
  content: "";
  display: block;
  width: 88px;
  height: 88px;
  margin: 0 auto 26px;
  border-radius: 21px;
  background: url("/assets/icon-256.png") center / cover;
  box-shadow: 0 20px 50px rgba(138, 107, 255, 0.45);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

h1 {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", sans-serif;
  font-size: clamp(38px, 7vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.hero h1 {
  background: linear-gradient(180deg, #fff 30%, #c9c3e6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.document h1 { font-size: clamp(34px, 6vw, 50px); }

h2 { margin: 40px 0 10px; font-size: 22px; font-weight: 600; line-height: 1.3; letter-spacing: -0.02em; }
p { margin: 0 0 16px; color: #d2d2d7; }
.document ul, .document ol { color: #d2d2d7; padding-left: 22px; }
.document li { margin-bottom: 8px; }
.document a { color: var(--link); text-decoration: none; }
.document a:hover { text-decoration: underline; }
strong { color: var(--ink); }

.lead { max-width: 620px; margin: 20px auto 0; color: var(--muted); font-size: 20px; }
.document .lead { margin-left: 0; }

/* ---------- Mağaza ve eylem butonları ---------- */

.stores {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.store {
  min-width: 200px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-decoration: none;
  text-align: center;
  color: var(--ink);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s, border-color 0.25s;
}
.store:hover { transform: scale(1.03); border-color: rgba(255, 255, 255, 0.55); }

/* İlk buton ana eylemdir. */
.store:first-child {
  border-color: transparent;
  background: var(--blue);
  color: #fff;
}
.store:first-child:hover { background: #0077ed; }

.store-kind { display: block; font-size: 12px; opacity: 0.75; }
.store strong { display: block; font-size: 17px; font-weight: 600; }

.links {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  text-align: left;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-2px); border-color: rgba(138, 107, 255, 0.55); }
.card strong { display: block; }
.card span { display: block; margin-top: 3px; color: var(--muted); font-size: 14px; }

.callout {
  margin: 28px 0;
  padding: 18px 20px;
  border: 1px solid rgba(103, 216, 204, 0.3);
  border-radius: 16px;
  background: rgba(103, 216, 204, 0.08);
}
.callout p:last-child { margin-bottom: 0; }

.meta { margin-top: 40px; color: var(--gray); font-size: 14px; }
.email { color: var(--link); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }

footer {
  width: min(1000px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--gray);
  text-align: center;
  font-size: 13px;
}
footer a { color: var(--muted); }

@media (max-width: 640px) {
  .site-nav { gap: 16px; }
  main { margin-top: 36px; }
  .links { grid-template-columns: 1fr; }
  .stores { flex-direction: column; align-items: stretch; }
  .store { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
