:root {
  --bg: #0b0d12;
  --bg-2: #11141b;
  --surface: #161a23;
  --surface-2: #1c212c;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #eef1f6;
  --muted: #9aa3b2;
  --faint: #6b7385;
  --accent: #3d8bff;
  --accent-2: #7b5cff;
  --accent-soft: rgba(61, 139, 255, 0.14);
  --ok: #34c77b;
  --warn: #f5b041;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
  --max: 1160px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f7fb;
    --bg-2: #eef0f6;
    --surface: #ffffff;
    --surface-2: #f3f5fa;
    --border: rgba(10, 20, 40, 0.08);
    --border-strong: rgba(10, 20, 40, 0.16);
    --text: #0e1320;
    --muted: #4d5668;
    --faint: #7a8396;
    --accent-soft: rgba(61, 139, 255, 0.1);
    --shadow: 0 30px 80px -40px rgba(20, 30, 60, 0.35);
    color-scheme: light;
  }
}

html[data-lang="en"] [data-l="tr"],
html[data-lang="tr"] [data-l="en"] {
  display: none !important;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
code, kbd { font: 0.88em ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 0.1em 0.4em; }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 17px; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang {
  display: inline-flex; border: 1px solid var(--border-strong); border-radius: 999px; overflow: hidden;
}
.lang button {
  appearance: none; border: 0; background: transparent; color: var(--muted);
  font: 600 12px/1 inherit; padding: 7px 10px; cursor: pointer; font-family: inherit;
}
.lang button[aria-pressed="true"] { background: var(--accent-soft); color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 650; font-size: 15px; border-radius: 12px; padding: 12px 20px;
  border: 1px solid var(--border-strong); color: var(--text); background: var(--surface);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary {
  color: #fff; border: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 30px -10px rgba(61, 139, 255, 0.7);
}
.btn-primary:hover { box-shadow: 0 14px 34px -10px rgba(61, 139, 255, 0.85); }
.btn-lg { font-size: 17px; padding: 15px 26px; border-radius: 14px; }
.btn-sm { font-size: 13px; padding: 8px 14px; border-radius: 10px; }

/* Hero */
.hero { position: relative; padding: 88px 0 40px; text-align: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto; height: 760px; z-index: -1;
  background:
    radial-gradient(closest-side, rgba(61, 139, 255, 0.28), transparent 70%) 30% 40% / 60% 80% no-repeat,
    radial-gradient(closest-side, rgba(123, 92, 255, 0.24), transparent 70%) 70% 30% / 55% 70% no-repeat;
  filter: blur(10px);
}
.hero-icon { width: 108px; height: 108px; margin: 0 auto 22px; border-radius: 24px; box-shadow: 0 20px 50px -18px rgba(61, 139, 255, 0.7); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--muted);
  border: 1px solid var(--border-strong); border-radius: 999px; padding: 6px 12px; margin-bottom: 20px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(52, 199, 123, 0.18); }
h1 { font-size: clamp(38px, 6.4vw, 72px); line-height: 1.04; letter-spacing: -0.035em; margin: 0 0 18px; font-weight: 800; }
.grad { background: linear-gradient(120deg, var(--accent), var(--accent-2) 60%, #c86bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 700px; margin: 0 auto 32px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.release-meta { margin-top: 16px; font-size: 13px; color: var(--faint); display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; }
.release-meta span { display: inline-flex; align-items: center; gap: 6px; }
.release-meta svg { width: 14px; height: 14px; }

.window {
  margin: 56px auto 0; max-width: 1080px; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border-strong); box-shadow: var(--shadow); background: var(--surface);
}
.window img { width: 100%; height: auto; }

.trust { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; padding: 34px 0 10px; color: var(--muted); font-size: 14px; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--ok); }

/* Sections */
section { padding: 88px 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--border); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.kicker { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.12; letter-spacing: -0.025em; margin: 10px 0 14px; font-weight: 750; }
h3 { font-size: 18px; margin: 0 0 8px; letter-spacing: -0.01em; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
}
.card p { color: var(--muted); margin: 0; font-size: 15px; }
.card ul { color: var(--muted); margin: 10px 0 0; padding-left: 18px; font-size: 15px; }
.card li { margin: 4px 0; }
.icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: var(--accent-soft); color: var(--accent);
}
.icon svg { width: 22px; height: 22px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 960px; margin: 0 auto; }
.chip { font-size: 14px; padding: 7px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); }
.chip-strong { color: var(--text); border-color: var(--border-strong); }

.formats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.format { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.format b { display: block; font-size: 15px; margin-bottom: 4px; }
.format span { color: var(--faint); font-size: 13px; }

/* Screens: slideshow */
.gallery { max-width: 1120px; margin: 0 auto; outline: none; }
.gallery:focus-visible .gallery-frame { outline: 3px solid var(--accent); outline-offset: 4px; }
.gallery-tabs {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px;
}
.gallery-tabs button {
  appearance: none; font: 600 13px/1 inherit; font-family: inherit; cursor: pointer;
  padding: 9px 14px; border-radius: 999px; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.gallery-tabs button:hover { color: var(--text); border-color: var(--border-strong); }
.gallery-tabs button[aria-selected="true"] {
  color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.gallery-stage { position: relative; }
.gallery-frame {
  position: relative; border-radius: 14px; overflow: hidden; background: var(--surface);
  border: 1px solid var(--border-strong); box-shadow: var(--shadow);
}
.slide { margin: 0; animation: slide-in 0.28s ease; }
.slide-zoom { all: unset; display: block; cursor: zoom-in; }
.slide-zoom img { width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: contain; background: var(--bg); }
.slide figcaption {
  padding: 14px 20px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--border); min-height: 52px;
}
.slide figcaption b { color: var(--text); margin-right: 6px; }
@keyframes slide-in { from { opacity: 0.25; transform: scale(0.995); } to { opacity: 1; transform: none; } }
.gallery-nav {
  position: absolute; top: calc(50% - 26px); transform: translateY(-50%); z-index: 2;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--border-strong); color: var(--text);
  background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6); transition: transform 0.15s, background 0.15s;
}
.gallery-nav:hover { background: var(--surface-2); transform: translateY(-50%) scale(1.06); }
.gallery-nav svg { width: 22px; height: 22px; }
.gallery-nav.prev { left: -23px; }
.gallery-nav.next { right: -23px; }
.gallery-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; color: var(--faint); font-size: 13px; gap: 12px; }
.gallery-count { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--muted); }
.gallery-hint kbd { font-size: 11px; padding: 1px 6px; }

dialog.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh;
  display: none; align-items: center; justify-content: center;
}
dialog.lightbox[open] { display: flex; }
dialog.lightbox::backdrop { background: rgba(5, 7, 12, 0.9); backdrop-filter: blur(6px); }
dialog.lightbox img { max-width: 94vw; max-height: 86vh; width: auto; height: auto; border-radius: 12px; box-shadow: var(--shadow); }
.lb-btn {
  position: fixed; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: #fff; cursor: pointer;
  display: grid; place-items: center; font-size: 30px; line-height: 1; width: 48px; height: 48px;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.24); }
.lb-btn.close { top: 18px; right: 18px; font-size: 26px; width: 42px; height: 42px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-caption { position: fixed; bottom: 14px; left: 0; right: 0; text-align: center; color: #cfd5df; font-size: 14px; margin: 0; padding: 0 70px; }

/* Requirements */
.req { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.req .card { padding: 20px; }
.req .label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); font-weight: 700; }
.req .value { font-size: 19px; font-weight: 700; margin: 6px 0 4px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.badge-ok { color: var(--ok); background: rgba(52, 199, 123, 0.12); }
.badge-no { color: #ff6b6b; background: rgba(255, 107, 107, 0.12); }

.steps { counter-reset: step; display: grid; gap: 14px; max-width: 820px; margin: 0 auto; }
.step { position: relative; padding: 20px 22px 20px 72px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 22px; top: 20px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 15px; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.steps-gap { margin-top: 40px; }
.lead-left { margin: 0; text-align: left; }

.note {
  max-width: 820px; margin: 18px auto 0; padding: 16px 20px; border-radius: 14px;
  background: rgba(245, 176, 65, 0.08); border: 1px solid rgba(245, 176, 65, 0.25); color: var(--muted); font-size: 15px;
}
.note b { color: var(--text); }

/* Security */
.security { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; }
.flow { display: grid; gap: 10px; }
.flow .row { display: flex; align-items: center; gap: 12px; padding: 16px 18px; }
.flow .row svg { width: 22px; height: 22px; color: var(--ok); flex: none; }
.flow .row p { margin: 0; color: var(--muted); font-size: 15px; }
.flow .row b { color: var(--text); }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0 20px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-weight: 650; display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--faint); font-size: 22px; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p, .faq details ul { color: var(--muted); margin: 0 0 18px; }

/* Legal */
.legal-box { max-width: 860px; margin: 0 auto; font-size: 14px; color: var(--muted); }
.legal-box p { margin: 0 0 10px; }

.download-band { text-align: center; }
.download-band .sha {
  margin: 28px auto 0; max-width: 620px; display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.sha-label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.sha code {
  display: block; max-width: 100%; padding: 8px 12px; font-size: 12px; line-height: 1.5; color: var(--muted);
  word-break: break-all; user-select: all; text-align: center;
}
.download-band .agree { margin: 24px 0 0; font-size: 13px; color: var(--faint); }
.download-band .lead { margin: 0 auto 26px; }
.download-band .card { padding: 48px 24px; background: linear-gradient(160deg, var(--surface), var(--surface-2)); }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 36px 0 48px; color: var(--faint); font-size: 13px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--muted); }
.fineprint { flex-basis: 100%; margin: 0; max-width: 900px; }

/* Article pages */
.article { max-width: 820px; margin: 0 auto; padding: 64px 0 88px; }
.article h1 { font-size: clamp(32px, 5vw, 48px); }
.article h2 { font-size: 24px; margin-top: 44px; }
.article p, .article li { color: var(--muted); }
.article .updated { color: var(--faint); font-size: 14px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.toc a { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); }

@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .gallery-nav.prev { left: 10px; }
  .gallery-nav.next { right: 10px; }
  .formats, .req { grid-template-columns: repeat(2, 1fr); }
  .security { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

@media (max-width: 640px) {
  section { padding: 64px 0; }
  .hero { padding-top: 56px; }
  .grid-3, .grid-2, .formats, .req { grid-template-columns: 1fr; }
  .gallery-tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 6px; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .gallery-tabs button { flex: none; }
  .gallery-nav { width: 38px; height: 38px; }
  .slide figcaption { padding: 12px 14px 14px; }
  .slide figcaption b { display: block; }
  .gallery-hint { display: none; }
  .nav .btn-sm { display: none; }
  .nav-actions { margin-left: auto; }
  .btn-lg { width: 100%; }
  .window { margin-top: 36px; }
}

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