/* OmniScan — Ink & Silver
   Uygulamanın renk paleti birebir taşındı (OmniScanTheme.swift). */

:root {
  --ink-top: #121720;
  --ink-mid: #1a1f29;
  --ink-bottom: #0d0f17;
  --accent: #94d6e0;
  --accent-2: #739eb8;
  --text: rgba(255, 255, 255, 0.97);
  --text-2: rgba(255, 255, 255, 0.78);
  --text-3: rgba(255, 255, 255, 0.55);
  --stroke: rgba(255, 255, 255, 0.12);
  --surface: rgba(255, 255, 255, 0.05);
  --radius: 18px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink-bottom);
  color: var(--text);
  font-family: ui-rounded, -apple-system, BlinkMacSystemFont, "SF Pro Rounded",
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

/* Arka plan: uygulamadaki LiquidGlassBackground'ın web karşılığı */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60rem 40rem at 15% -10%, rgba(148, 214, 224, 0.16), transparent 60%),
    radial-gradient(50rem 40rem at 90% 20%, rgba(115, 158, 184, 0.13), transparent 60%),
    linear-gradient(160deg, var(--ink-top), var(--ink-mid) 45%, var(--ink-bottom));
}

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

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
}
.lang-switch button {
  background: none;
  border: 0;
  color: var(--text-3);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.lang-switch button[aria-pressed="true"] {
  background: var(--accent);
  color: #0d1117;
}

/* --- Yerleşim --- */
.wrap { width: min(var(--max), calc(100% - 2.5rem)); margin-inline: auto; }

header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(13, 15, 23, 0.72);
  border-bottom: 1px solid var(--stroke);
}
header.site .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  margin-inline-end: auto;
}
.brand img { width: 34px; height: 34px; border-radius: 9px; }

nav.site a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  margin-inline-end: 1.1rem;
}
nav.site a:hover { color: var(--accent); }

/* --- Hero --- */
.hero { padding: clamp(3rem, 9vw, 6.5rem) 0 3rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(148, 214, 224, 0.35);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  margin-bottom: 1.1rem;
}
h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}
h1 .grad {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede { font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--text-2); margin: 0 0 1.8rem; max-width: 34rem; }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.8rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn-primary { background: var(--accent); color: #0d1117; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(148, 214, 224, 0.28); }
.btn-ghost { border-color: var(--stroke); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }

/* --- Hero görseli: tarayıcı vizörü motifi (saf CSS/SVG, görsel dosyası yok) --- */
.scanframe {
  position: relative;
  aspect-ratio: 4 / 5;
  width: min(420px, 100%);
  margin-inline: auto;
  border-radius: 26px;
  background:
    linear-gradient(150deg, rgba(148, 214, 224, 0.10), rgba(115, 158, 184, 0.04)),
    rgba(255, 255, 255, 0.03);
  border: 1px solid var(--stroke);
  overflow: hidden;
  isolation: isolate;
}

/* İnce ızgara dokusu */
.scanframe::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(70% 60% at 50% 45%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 45%, #000 40%, transparent 100%);
}

/* Tarama ışını */
.scanframe::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  height: 34%;
  background: linear-gradient(180deg, transparent, rgba(148, 214, 224, 0.20), transparent);
  animation: sweep 4.5s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  pointer-events: none;
}
@keyframes sweep {
  0%, 100% { top: -10%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  95%, 100% { top: 78%; opacity: 0; }
}

/* Vizör köşe ayraçları */
.scanframe .corner {
  position: absolute;
  width: 42px;
  height: 42px;
  border: 2.5px solid var(--accent);
  z-index: 2;
}
.scanframe .corner.tl { top: 22px; left: 22px; border-right: 0; border-bottom: 0; border-radius: 12px 0 0 0; }
.scanframe .corner.tr { top: 22px; right: 22px; border-left: 0; border-bottom: 0; border-radius: 0 12px 0 0; }
.scanframe .corner.bl { bottom: 22px; left: 22px; border-right: 0; border-top: 0; border-radius: 0 0 0 12px; }
.scanframe .corner.br { bottom: 22px; right: 22px; border-left: 0; border-top: 0; border-radius: 0 0 12px 0; }

/* İçerideki soyut belge */
.scanframe .doc {
  position: absolute;
  inset: 17% 20%;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.10);
  padding: 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  z-index: 1;
  transform: rotate(-1.4deg);
}
.scanframe .doc span {
  display: block;
  height: 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.14);
}
.scanframe .doc span.hd { height: 12px; width: 58%; background: rgba(148, 214, 224, 0.5); }
.scanframe .doc span.w80 { width: 80%; }
.scanframe .doc span.w65 { width: 65%; }
.scanframe .doc span.w90 { width: 90%; }
.scanframe .doc span.w45 { width: 45%; }

/* Yüzen rozet */
.scanframe .chip {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(13, 15, 23, 0.82);
  border: 1px solid rgba(148, 214, 224, 0.32);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
}
.scanframe .chip svg { width: 14px; height: 14px; }

/* --- Rakam şeridi --- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
  padding: 1.8rem 0;
}
.stats div { text-align: center; }
.stats .n {
  display: block;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
}
.stats .l { font-size: 0.85rem; color: var(--text-3); }

/* --- Adımlar --- */
.steps { counter-reset: step; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps .card { position: relative; padding-top: 1.9rem; }
.steps .card::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 1.1rem;
  right: 1.2rem;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(148, 214, 224, 0.16);
}

/* --- Bölümler --- */
section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
}
.section-lede { color: var(--text-2); max-width: 42rem; margin: 0 0 2.2rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 1.4rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.card h3 { margin: 0.7rem 0 0.4rem; font-size: 1.05rem; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--text-2); font-size: 0.93rem; }
.card .ico {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: rgba(148, 214, 224, 0.14);
  color: var(--accent);
}
.card .ico svg { width: 20px; height: 20px; }

/* Öne çıkan gizlilik bloğu */
.highlight {
  background: linear-gradient(135deg, rgba(148, 214, 224, 0.12), rgba(115, 158, 184, 0.06));
  border: 1px solid rgba(148, 214, 224, 0.3);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.highlight h2 { margin-top: 0; }
.checklist { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 0.7rem; }
.checklist li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--text-2); }
.checklist svg { flex: none; width: 19px; height: 19px; color: var(--accent); margin-top: 0.2rem; }

/* Ekran görüntüsü şeridi */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
}
.shots figure { margin: 0; text-align: center; }
.shots img {
  width: 100%;
  border-radius: 22px;
  border: 1px solid var(--stroke);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}
.shots figcaption { margin-top: 0.7rem; font-size: 0.85rem; color: var(--text-3); }

/* --- Hukuki sayfalar --- */
.legal { padding-top: 2.5rem; max-width: 46rem; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.legal .updated { color: var(--text-3); font-size: 0.87rem; margin-bottom: 2rem; }
.legal h2 { font-size: 1.2rem; margin: 2rem 0 0.5rem; color: var(--accent); }
.legal p, .legal li { color: var(--text-2); }
.legal ul { padding-inline-start: 1.2rem; }
.legal a { color: var(--accent); }

/* --- Footer --- */
footer.site {
  border-top: 1px solid var(--stroke);
  padding: 2.5rem 0;
  margin-top: 3rem;
  color: var(--text-3);
  font-size: 0.88rem;
}
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-items: center; }
footer.site a { color: var(--text-2); text-decoration: none; }
footer.site a:hover { color: var(--accent); }
footer.site .spacer { margin-inline-start: auto; }

@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; }
  .scanframe { width: min(340px, 88%); }
  nav.site a { margin-inline-end: 0.85rem; font-size: 0.85rem; }
  footer.site .spacer { margin-inline-start: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
  .scanframe::after { animation: none; opacity: 0.35; top: 33%; }
}
