/* ---------- Yazı tipleri (IBM Plex, OFL lisanslı, siteyle birlikte sunulur) ---------- */
@font-face { font-family: "Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/ibm-plex-sans-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex Sans"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(/fonts/ibm-plex-sans-latin-400-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Sans"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(/fonts/ibm-plex-sans-latin-ext-400-italic.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/fonts/ibm-plex-sans-latin-600-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/fonts/ibm-plex-sans-latin-ext-600-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/ibm-plex-mono-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Renkler ---------- */
:root {
  --bg: #fdfdfc;
  --surface: #f5f5f3;
  --text: #191919;
  --muted: #6b6b68;
  --line: #e6e6e2;
  --accent-light: #1f6b45;
  --accent-dark: #74c99a;
  --accent: var(--accent-light);
  --max: 760px;
  --sans: "Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}
/* Koyu tema: cihaz koyuysa otomatik, ya da düğmeyle seçilirse */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1a1a19;
    --surface: #232322;
    --text: #ededeb;
    --muted: #a6a6a1;
    --line: #333331;
    --accent: var(--accent-dark);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1a1a19;
  --surface: #232322;
  --text: #ededeb;
  --muted: #a6a6a1;
  --line: #333331;
  --accent: var(--accent-dark);
  color-scheme: dark;
}

[hidden] { display: none !important; }

/* Dil değiştirme */
html[data-lang="tr"] [data-l="en"],
html[data-lang="en"] [data-l="tr"] { display: none !important; }

/* ---------- Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: #fff; }

a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: text-decoration-color .15s, color .15s; }
a:hover { color: var(--accent); text-decoration-color: currentColor; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); font-size: 13.5px; letter-spacing: 0; }
.muted { color: var(--muted); }

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

/* ---------- Üst bar ---------- */
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 28px; }
.brand { font-weight: 600; text-decoration: none; }
.top nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--text); }
@media (max-width: 600px) { .top nav .links { display: none; } }
.top .links { display: flex; gap: 22px; }

.lang { font-family: var(--mono); font-size: 13px; display: inline-flex; gap: 6px; color: var(--muted); }
.lang button { border: 0; background: none; padding: 0; font: inherit; color: var(--muted); cursor: pointer; }
.lang button:hover { color: var(--text); }
html[data-lang="tr"] .lang [data-set-lang="tr"],
html[data-lang="en"] .lang [data-set-lang="en"] { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

.controls { display: flex; align-items: center; gap: 18px; }
.theme { border: 0; background: none; padding: 4px; margin: -4px; color: var(--muted); cursor: pointer; display: inline-grid; place-items: center; border-radius: 6px; }
.theme:hover { color: var(--text); }
.theme svg { width: 16px; height: 16px; display: block; }
.theme .moon { display: none; }
:root[data-theme="dark"] .theme .sun { display: none; }
:root[data-theme="dark"] .theme .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme .sun { display: none; }
  :root:not([data-theme="light"]) .theme .moon { display: block; }
}

/* ---------- Giriş ---------- */
.intro { padding: 40px 0 40px; }
.intro h1 { font-size: clamp(34px, 6vw, 46px); line-height: 1.12; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 6px; }
.intro .role { font-family: var(--mono); font-size: 14px; color: var(--accent); margin: 0 0 32px; }
.intro p { margin: 0 0 16px; max-width: 620px; font-size: 18px; }
.intro .links-inline { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; font-size: 15px; }

/* ---------- Bölümler: solda başlık, sağda içerik ---------- */
.block { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 40px 0; border-top: 1px solid var(--line); }
.block > h2 { font-size: 15px; font-weight: 600; margin: 3px 0 0; color: var(--muted); letter-spacing: 0; }
.block p { margin: 0 0 14px; }
.block p:last-child { margin-bottom: 0; }
@media (max-width: 640px) { .block { grid-template-columns: 1fr; gap: 14px; padding: 32px 0; } }

/* Ürün listesi */
.products { list-style: none; margin: 0; padding: 0; }
.products li + li { margin-top: 6px; }
.product { display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: center; padding: 12px; margin: 0 -12px; border-radius: 12px; text-decoration: none; transition: background .15s; }
.product:hover { background: var(--surface); color: inherit; }
.product .ph { width: 44px; height: 44px; border-radius: 10px; display: block; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.product .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product strong { font-weight: 600; display: block; line-height: 1.3; }
.product span.d { color: var(--muted); font-size: 15px; display: block; line-height: 1.45; }
.product .arrow { color: var(--muted); transition: transform .15s; }
.product:hover .arrow { transform: translateX(3px); color: var(--accent); }

/* Tanım listesi (alanlar, teknolojiler) */
.rows { margin: 0; }
.rows > div { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 0 0 18px; }
.rows > div:last-child { padding-bottom: 0; }
.rows dt { font-weight: 600; }
.rows dd { margin: 0; }
.rows dd .mono { display: block; color: var(--muted); margin-top: 4px; }
@media (max-width: 420px) { .rows > div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Alt bilgi ---------- */
footer { border-top: 1px solid var(--line); margin-top: 24px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; padding-bottom: 48px; font-size: 14px; color: var(--muted); }
footer nav { display: flex; gap: 18px; }
footer a { text-decoration: none; }

/* ---------- Uygulama sayfaları ---------- */
.app-head { padding: 56px 0 32px; }
.app-head .icon { width: 72px; height: 72px; border-radius: 16px; display: block; margin-bottom: 24px; background: var(--surface); border: 1px solid var(--line); object-fit: cover; }
.app-head h1 { font-size: clamp(34px, 6vw, 46px); line-height: 1.12; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 12px; }
.app-head p { font-size: 19px; color: var(--muted); max-width: 600px; margin: 0 0 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button { display: inline-block; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; font-size: 15px; font-weight: 600; }
.button.primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.button.primary:hover { color: var(--bg); opacity: .88; }
.button:hover { text-decoration: none; }
.steps { margin: 0; padding-left: 22px; }
.steps li { margin-bottom: 12px; padding-left: 4px; }
.steps li::marker { font-family: var(--mono); color: var(--muted); }
.steps li:last-child { margin-bottom: 0; }

/* ---------- Metin sayfaları (gizlilik, destek) ---------- */
.doc { padding: 40px 0 64px; }
.doc h1 { font-size: clamp(30px, 5vw, 40px); line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 8px; }
.doc .meta { font-family: var(--mono); font-size: 13.5px; color: var(--muted); margin: 0 0 36px; }
.doc h2 { font-size: 19px; font-weight: 600; margin: 36px 0 8px; }
.doc ul { padding-left: 20px; }
.doc details { border-top: 1px solid var(--line); padding: 14px 0; }
.doc details:last-of-type { border-bottom: 1px solid var(--line); }
.doc summary { cursor: pointer; font-weight: 600; }
.doc details p { color: var(--muted); margin: 8px 0 0; }

/* ---------- 404 ---------- */
.notfound { padding: 96px 0; }
.notfound h1 { font-size: 40px; font-weight: 600; margin: 0 0 12px; letter-spacing: -0.02em; }
