:root {
  --bg: #0b0e17;
  --bg-2: #141a2b;
  --card: #161b29;
  --line: #262d42;
  --text: #f2f4f8;
  --muted: #9ea3b0;
  --accent: #3b6fd8;
  --accent-2: #5c8cf0;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #1f2b47 0, var(--bg) 520px) no-repeat, var(--bg);
  min-height: 100vh;
}

a { color: var(--accent-2); }

.wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }

header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
}

.brand .logo { width: 30px; height: 30px; border-radius: 7px; }

.lang-switch { display: flex; gap: 4px; }

.lang-switch button {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 10px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

html[data-lang="tr"] .lang-switch [data-set="tr"],
html[data-lang="en"] .lang-switch [data-set="en"] {
  color: var(--text);
  border-color: var(--accent);
}

/* Without the script both languages stay visible. */
html[data-lang="tr"] [lang="en"]:not(html),
html[data-lang="en"] [lang="tr"]:not(html) {
  display: none !important;
}

.hero { padding: 48px 0 32px; }

.hero h1 { font-size: clamp(32px, 6vw, 48px); line-height: 1.15; margin: 0 0 14px; }

.hero p.lead { font-size: 19px; color: var(--muted); margin: 0 0 26px; max-width: 620px; }

.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }

.badge {
  font-size: 13px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 999px;
  padding: 3px 12px;
  color: var(--muted);
}

.buttons { display: flex; flex-wrap: wrap; gap: 10px; }

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--muted); cursor: default; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 26px 0 40px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}

.card h3 { margin: 0 0 6px; font-size: 17px; }

.card p { margin: 0; color: var(--muted); font-size: 15px; }

.doc { padding: 24px 0 40px; }

.doc h1 { font-size: 32px; margin: 10px 0 4px; }

.doc .updated { color: var(--muted); margin: 0 0 28px; font-size: 14px; }

.doc h2 { font-size: 20px; margin: 30px 0 8px; }

.doc li { margin: 4px 0; }

.doc table { border-collapse: collapse; width: 100%; font-size: 15px; }

.doc th, .doc td { text-align: left; border-bottom: 1px solid var(--line); padding: 8px 10px 8px 0; vertical-align: top; }

.note {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 18px 0;
}

kbd {
  font: 13px ui-monospace, monospace;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 1px 6px;
}

footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 36px;
  color: var(--muted);
  font-size: 14px;
}

footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px; }

footer nav a { color: var(--muted); }

footer .legal { font-size: 12px; margin: 8px 0 0; }
