:root {
  --bg: #0b1320;
  --panel: #121c2e;
  --border: #22314a;
  --text: #e8edf6;
  --muted: #9aacc4;
  --accent: #3fa9f5;
  --accent-2: #38d68f;
  --radius: 14px;
  --max-w: 880px;
}

html.theme-light {
  --bg: #f4f6fb;
  --panel: #ffffff;
  --border: #dce3ef;
  --text: #121a2b;
  --muted: #5c6a82;
  --accent: #1f7fd1;
  --accent-2: #1fa868;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, "SF Pro Text", "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  transition: background 0.15s ease, color 0.15s ease;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- i18n: show Turkish by default, English when html.lang-en is set --- */
html:not(.lang-en) .i18n-en { display: none; }
html.lang-en .i18n-tr { display: none; }

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 12px;
  gap: 16px;
  padding: 18px max(16px, calc((100% - var(--max-w)) / 2));
  border-bottom: 1px solid var(--border);
}

header.site .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
}

header.site .brand img { width: 28px; height: 28px; border-radius: 7px; }

header.site .right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

nav.site {
  display: flex;
  gap: 18px;
  font-size: 14px;
  color: var(--muted);
  flex-wrap: wrap;
}

nav.site a { color: var(--muted); }
nav.site a:hover { color: var(--text); }

.toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
}

.icon-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.4;
}
.icon-btn:hover { background: var(--panel); }

main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 16px 80px;
}

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

.hero img.app-icon {
  width: 96px; height: 96px; border-radius: 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  margin-bottom: 20px;
}

.hero h1 { font-size: clamp(26px, 5vw, 34px); margin: 0 0 10px; }
.hero p.tagline { color: var(--muted); font-size: 17px; margin: 0 auto 28px; max-width: 560px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent), #2f8ee0);
  color: #06111f;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 15px;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.meta-line { color: var(--muted); font-size: 13px; margin-top: 14px; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 48px 0;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.card h3 { margin: 0 0 8px; font-size: 16px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }

h1, h2, h3 { line-height: 1.25; }
h1 { font-size: clamp(24px, 5vw, 32px); }
h2 { font-size: clamp(20px, 4vw, 24px); margin-top: 44px; }

article.legal h2:first-of-type { margin-top: 0; }
article.legal p, article.legal li { color: var(--muted); font-size: 15px; }
article.legal strong { color: var(--text); }

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
}

.updated { color: var(--muted); font-size: 13px; margin-bottom: 32px; }

.about-grid {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  align-items: start;
}
.about-grid img { width: 120px; height: 120px; border-radius: 16px; object-fit: cover; }

footer.site {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 32px 16px 48px;
  border-top: 1px solid var(--border);
}
footer.site a { color: var(--muted); }
footer.site nav { display: flex; gap: 14px; justify-content: center; margin-top: 10px; flex-wrap: wrap; }

@media (max-width: 680px) {
  header.site { justify-content: center; text-align: center; }
  header.site .right { width: 100%; justify-content: center; }
  main { padding: 36px 16px 64px; }
  .panel { padding: 22px 18px; }
  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .about-grid img { margin: 0 auto; }
  .btn { width: 100%; justify-content: center; }
  .btn-row { flex-direction: column; align-items: stretch; }
}

@media (max-width: 420px) {
  .cards { grid-template-columns: 1fr; }
  nav.site { gap: 12px; font-size: 13px; }
}
