/* ==========================================================================
   ZEKASTRA Forensic — Yeniden Tasarlanmış Ana Sayfa Stili (Parça 5)
   Yükleme yeri: /forensic/ ve /tr/adli-bilisim/ (brand.css sonrasında)
   Kurallar: CSP uyumlu, satır içi stil yok, yalnızca mevcut değişkenler ve
   iki temalı yeni --fx-* değişkenleri, WCAG AA kontrast, 44px dokunma hedefi.
   ========================================================================== */
.fx-hub {
  --fx-mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
  --fx-blue: var(--forensic);
  --fx-cyan: var(--accent);
  --fx-violet: #8fa8d6;
  --fx-ok: #4fd1a5;
  --fx-amber: #f2c46b;
  --fx-surface: color-mix(in srgb, var(--panel) 74%, var(--bg));
  --fx-band-alt: color-mix(in srgb, var(--panel-soft) 52%, var(--bg));
  --fx-line: color-mix(in srgb, var(--hairline) 88%, transparent);
  --fx-glass: color-mix(in srgb, var(--panel) 84%, transparent);
  --fx-shadow: 0 36px 80px -38px rgba(0, 0, 0, 0.78);
  /* Koyu cam görsel çerçevesi: 79 illüstrasyonun hem koyu hem açık temada
     kontrast kaybetmeden "laboratuvar cam paneli" içinde okunmasını sağlar */
  --fx-art-bg: #070b1e;
  --fx-art-border: color-mix(in srgb, var(--fx-blue) 34%, #1b2754);
  --fx-art-glow: rgba(61, 213, 243, 0.14);
  --fx-sticky: 84px;
  overflow-x: clip;
}
:root[data-theme=light] .fx-hub,
html[data-theme=light] .fx-hub {
  --fx-violet: #3f5f9a;
  --fx-ok: #0b7a55;
  --fx-amber: #8a5a00;
  --fx-surface: color-mix(in srgb, var(--panel) 88%, var(--bg));
  --fx-band-alt: color-mix(in srgb, var(--fx-blue) 5%, var(--panel-soft));
  --fx-shadow: 0 28px 64px -34px rgba(13, 20, 51, 0.28);
  --fx-glass: color-mix(in srgb, var(--panel) 94%, transparent);
  /* Açık temada da görseller koyu yuvarlatılmış cam panel içinde kalır */
  --fx-art-bg: #090e26;
  --fx-art-border: color-mix(in srgb, var(--fx-blue) 45%, #1d2b5e);
  --fx-art-glow: rgba(61, 213, 243, 0.18);
}
.fx-hub h2 { max-width: none; }
.fx-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--fx-blue);
  font-weight: 650;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--fx-blue) 42%, transparent);
}
.fx-link:hover { border-bottom-color: var(--fx-blue); }
.fx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.fx-btn-lg {
  min-height: 52px;
  padding: 14px 24px;
  font-size: 0.92rem;
  border-radius: 12px;
}
.fx-btn-ghost {
  background: color-mix(in srgb, var(--panel) 55%, transparent);
  border: 1px solid color-mix(in srgb, var(--fx-blue) 36%, var(--line));
  color: var(--ink);
}
.fx-btn-ghost:hover {
  border-color: var(--fx-blue);
  background: color-mix(in srgb, var(--fx-blue) 10%, transparent);
}
/* ---------- Cam Panel Görsel Çerçevesi (Her iki temada da çalışır) ---------- */
/* ---------- Hero ---------- */
.fx-hero {
  position: relative;
  isolation: isolate;
  border-bottom: 1px solid var(--fx-line);
}
.fx-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.fx-hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
  opacity: 0.32;
  -webkit-mask-image: linear-gradient(90deg, transparent 18%, #000 72%);
  mask-image: linear-gradient(90deg, transparent 18%, #000 72%);
  pointer-events: none;
}
@media (max-width: 760px) {
  .fx-hero-art { opacity: 0.14; -webkit-mask-image: none; mask-image: none; }
}
.fx-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(color-mix(in srgb, var(--fx-blue) 10%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--fx-blue) 10%, transparent) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 82% 72% at 65% 35%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 82% 72% at 65% 35%, #000 25%, transparent 78%);
}
.fx-hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(620px 440px at 76% 34%, color-mix(in srgb, var(--fx-blue) 24%, transparent), transparent 72%),
    radial-gradient(540px 380px at 90% 68%, color-mix(in srgb, var(--fx-violet) 18%, transparent), transparent 72%),
    radial-gradient(680px 480px at 10% 0%, color-mix(in srgb, var(--fx-cyan) 10%, transparent), transparent 70%);
}
.fx-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
  padding-block: 68px 56px;
}
.fx-kicker {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 7px 14px 7px 12px;
  border: 1px solid color-mix(in srgb, var(--fx-blue) 32%, var(--hairline));
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 65%, transparent);
  color: var(--muted);
  font-family: var(--fx-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.fx-kicker > span[lang] { color: var(--ink); font-weight: 600; }
.fx-kicker-sep { opacity: 0.5; }
.fx-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fx-ok);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--fx-ok) 22%, transparent);
  animation: fx-pulse 2.4s ease-in-out infinite;
  flex: none;
}
@keyframes fx-pulse {
  50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--fx-ok) 0%, transparent); }
}
.fx-hero h1 {
  max-width: 12ch;
  margin: 0 0 22px;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.fx-hero h1 em {
  display: block;
  font-style: normal;
  background: linear-gradient(var(--fx-blue), var(--fx-blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.08em;
}
.fx-lede {
  max-width: 54ch;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.68;
}
.fx-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 36px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--fx-line);
}
.fx-hero-stats div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel) 55%, transparent);
  border: 1px solid var(--fx-line);
}
.fx-hero-stats dd {
  margin: 0;
  font-family: var(--display);
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.03em;
}
.fx-hero-stats dt {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}
/* ---------- Hero Stage (Hex & ZF-01 Card — KORUNDU) ---------- */
.fx-stage {
  position: relative;
  margin: 0;
  padding: 0 0 292px 0;
}
/* Açılış sahnesi: illüstrasyon artık tüm kahraman alanına esnetilmez; hex ve ZF-01
   pencerelerinin arkasında sınırı belli, sabit oranlı bir cam panel olarak durur. */
.fx-win-hex { position: relative; z-index: 1; margin-right: 16px; }
.fx-win {
  border: 1px solid color-mix(in srgb, var(--fx-blue) 28%, var(--hairline));
  border-radius: 16px;
  background: var(--fx-glass);
  backdrop-filter: blur(14px);
  box-shadow: var(--fx-shadow);
  overflow: hidden;
}
.fx-win-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--fx-line);
  background: color-mix(in srgb, var(--panel-soft) 72%, transparent);
  color: var(--muted);
  font-family: var(--fx-mono);
  font-size: 0.74rem;
}
.fx-lights { display: inline-flex; gap: 6px; }
.fx-lights i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); opacity: .7; }
.fx-win-tag {
  margin-left: auto;
  padding: 2px 8px;
  border: 1px solid var(--fx-line);
  border-radius: 6px;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.fx-hex {
  position: relative;
  padding: 18px 18px 10px;
  font-family: var(--fx-mono);
  font-size: 0.74rem;
  line-height: 1.95;
  overflow: hidden;
}
.fx-hex-row {
  display: grid;
  grid-template-columns: 64px auto minmax(0, 1fr);
  gap: 14px;
  white-space: nowrap;
}
.fx-hex-off { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.fx-hex-bytes { display: flex; color: var(--muted); }
.fx-hex-bytes span { display: inline-block; width: 2.55ch; text-align: center; border-radius: 3px; }
.fx-hex-ascii { color: color-mix(in srgb, var(--muted) 80%, transparent); letter-spacing: 0.06em; }
.fx-hex-bytes .fx-hex-magic { color: var(--fx-cyan); background: color-mix(in srgb, var(--fx-cyan) 12%, transparent); }
.fx-hex-bytes .fx-hex-page { color: var(--fx-amber); background: color-mix(in srgb, var(--fx-amber) 16%, transparent); }
.fx-hex-bytes .fx-hex-wal { color: var(--fx-violet); background: color-mix(in srgb, var(--fx-violet) 18%, transparent); }
.fx-hex-bytes .fx-hex-count { color: var(--fx-ok); background: color-mix(in srgb, var(--fx-ok) 14%, transparent); }
.fx-hex-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding: 12px 18px 16px;
  list-style: none;
  border-top: 1px dashed var(--fx-line);
  font-size: 0.76rem;
  color: var(--muted);
}
.fx-hex-legend li { display: inline-flex; align-items: center; gap: 8px; }
.fx-hex-legend i { width: 10px; height: 10px; border-radius: 3px; }
.fx-hex-legend .fx-hex-magic { background: var(--fx-cyan); }
.fx-hex-legend .fx-hex-page { background: var(--fx-amber); }
.fx-hex-legend .fx-hex-wal { background: var(--fx-violet); }
.fx-hex-legend .fx-hex-count { background: var(--fx-ok); }
.fx-stage figcaption {
  position: absolute;
  right: 0;
  bottom: 8px;
  max-width: 100%;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.55;
  font-family: var(--fx-mono);
  text-align: right;
}
/* ---------- Hero Altı Standartlar + Doğrudan İrtibat Şeridi ---------- */
.fx-trust-bar {
  border-top: 1px solid var(--fx-line);
  background: color-mix(in srgb, var(--panel) 58%, var(--bg));
}
.fx-trust-inner {
  display: grid;
  gap: 14px;
  padding-block: 18px;
}
.fx-standards {
  display: flex;
  align-items: center;
  gap: 24px;
}
.fx-standards-label {
  flex: none;
  color: var(--muted);
  font-family: var(--fx-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.fx-standards ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  flex: 1;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fx-standards li {
  font-family: var(--fx-mono);
  font-size: 0.84rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--ink) 78%, transparent);
  white-space: nowrap;
}
/* ---------- Sabit Alt Gezinme (Subnav) ---------- */
/* ---------- Bölüm Ritim ve Boşlukları (240px boşluk 168px'e indirildi) ---------- */
.fx-section {
  padding-block: 84px;
}
.fx-hub section[id] {
  scroll-margin-top: calc(var(--fx-sticky) + 52px);
}
/* ---------- İlkeler (Principles) ---------- */
/* ---------- Başvuru Kütüphanesi (Library Portal & Featured) ---------- */
/* ---------- Araçlar, Çalışma Alanları ve Laboratuvar ---------- */
/* ---------- Tek Amaçlı Araçlar (8 Amblemli Kart) ---------- */
/* ---------- İnceleme Laboratuvarı ve 10 Alan Şeridi ---------- */
/* ---------- Metodoloji (4 Kontrollü Adım) ---------- */
/* ---------- Hemen Deneyin: FILETIME -> UTC Terminal ---------- */
/* ---------- Beş Vaka Dosyası (ZF-01..05) ---------- */
/* ---------- Kimler İçin (Audience) ---------- */
/* ---------- YENİ ZORUNLU BÖLÜM: Uzman Desteği ve İrtibat ---------- */
/* ---------- Müfredat (Curriculum) ---------- */
/* ---------- Standartlar ve Kaynaklar ---------- */
/* ---------- SSS (FAQ — details/summary KORUNDU) ---------- */
/* ---------- Kapanış (Final CTA) ---------- */
/* ---------- Arka Plan Bant Görselleri ---------- */
/* ---------- HATA #6 ÇÖZÜMÜ: Animasyon çalışmasa da içerik her zaman görünür ---------- */
@media (prefers-reduced-motion: reduce) {
.fx-dot {
    animation: none;
  }
}
/* ---------- Kırılımlar (1440, 1024, 768, 390, 320) ---------- */
@media (max-width: 1440px) {
.fx-section { padding-block: 76px; }
}
@media (max-width: 1024px) {
.fx-hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-block: 52px 40px;
  }
.fx-stage { max-width: 680px; padding-bottom: 0; }
.fx-win-hex { margin-right: 0; }
.fx-stage figcaption { position: static; max-width: none; margin-top: 12px; text-align: left; }
.fx-standards { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (max-width: 860px) {
.fx-hub { --fx-sticky: 0px; }
}
@media (max-width: 768px) {
.fx-hero h1 { font-size: clamp(2.4rem, 10vw, 3.2rem); }
/* The hex window is hidden here, so its caption goes with it rather than standing alone under the stats. */
.fx-stage { display: none; }
.fx-hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fx-section { padding-block: 60px; }
}
@media (max-width: 390px) {
.fx-hex { font-size: 0.64rem; padding: 12px 10px 8px; }
.fx-hex-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
.fx-hex-off,
.fx-hex-ascii { display: none; }
.fx-hex-bytes span { width: auto; flex: 1; }
.fx-actions .button {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }
}
@media (max-width: 320px) {
.fx-hero h1 { font-size: 2.1rem; }
}
/* ---------- Açık tema: arka plan görselleri ve bantlar ----------
   Koyu temada görseller tam görünür. Açık temada da görünür kalırlar; metnin
   durduğu taraf maskeyle boşaltılır, böylece okunurluk bozulmaz. */
/* Dar ekranlarda metin tam genişlikte durur; açık temada görseller daha da hafif kalır. */
/* Arka plan bantları tüm bölüm yüksekliğine `cover` ile uzar; dar ekranlarda bölüm 900-4000 px
   uzunluğa çıktığı için 16:9 / 7:3 kaynak 3-17 kat büyüyordu (ölçüldü). Metin tam genişlikte
   durduğundan bu ekranlarda bant görselleri gösterilmez ve (lazy olduğu için) indirilmez. */
/* Yol çubuğu: kütüphaneden rapora dört adım */
/* ---------- Short hub: real-evidence line, numbered section cards, where to start, principles, contact ---------- */
.fx-hub { padding-bottom: 48px; }
.fx-hub-notice { margin-top: 24px; }
.fx-hub .fx-evidence-notice {
  margin: 0;
  padding: 12px 18px;
  border: 1px solid color-mix(in srgb, var(--fx-amber) 50%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--fx-amber) 12%, transparent);
  font-size: 0.92rem;
  line-height: 1.6;
}
.fx-hub .fx-evidence-notice p { margin: 0; }
.fx-hub .fx-evidence-notice a { color: var(--ink); font-weight: 650; white-space: nowrap; }
.fx-hub .fx-section { padding-block: 56px 0; }
.fx-section-title { margin: 0 0 24px; font-size: clamp(1.45rem, 2.4vw, 1.9rem); letter-spacing: -0.02em; }
.fx-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.fx-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border: 1px solid var(--fx-line);
  border-radius: 14px;
  background: var(--fx-surface);
  transition: border-color 0.15s;
}
.fx-card:hover,
.fx-card:focus-within { border-color: var(--fx-blue); }
.fx-card-code { display: flex; justify-content: space-between; gap: 10px; margin: 0; color: var(--muted); font-family: var(--fx-mono); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.06em; }
.fx-card h3 { margin: 0; font-size: 1.12rem; font-weight: 800; letter-spacing: -0.01em; }
.fx-card-link { color: inherit; text-decoration: none; }
.fx-card-link::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.fx-card-sum { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.55; }
.fx-card-sub { display: flex; flex-wrap: wrap; gap: 0 16px; margin: auto 0 0; padding: 8px 0 0; border-top: 1px solid var(--fx-line); list-style: none; }
.fx-card-sub a { position: relative; z-index: 1; display: inline-block; padding-block: 8px; color: var(--fx-blue); font-size: 0.86rem; font-weight: 650; text-decoration: none; }
.fx-card-sub a:hover { text-decoration: underline; }
.fx-start { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.fx-start > li { padding: 20px; border-top: 2px solid var(--fx-blue); border-radius: 0 0 12px 12px; background: var(--fx-surface); }
.fx-start h3 { margin: 0 0 8px; font-size: 1.05rem; }
.fx-start p { margin: 0 0 10px; color: var(--muted); font-size: 0.9rem; line-height: 1.55; }
.fx-start ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.fx-start a { display: inline-block; padding-block: 6px; color: var(--fx-blue); font-size: 0.88rem; font-weight: 650; text-decoration: none; }
.fx-start a:hover { text-decoration: underline; }
.fx-principles { margin: 0; border-top: 1px solid var(--fx-line); }
.fx-principles > div { display: grid; grid-template-columns: 200px minmax(0, 75ch); gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--fx-line); }
.fx-principles dt { font-weight: 750; }
.fx-principles dd { margin: 0; color: var(--muted); line-height: 1.65; }
.fx-contact-strip { padding: 26px 28px; border: 1px solid var(--fx-line); border-radius: 16px; background: var(--fx-surface); }
.fx-contact-strip h2 { margin: 0 0 8px; font-size: 1.4rem; }
.fx-contact-strip p { max-width: 75ch; margin: 0 0 16px; color: var(--muted); line-height: 1.65; }
.fx-contact-strip .fx-contact-more { margin: 0; }
.fx-contact-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; padding: 0; list-style: none; }
@media (max-width: 1100px) {
.fx-card-grid,
.fx-start { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
.fx-card-grid,
.fx-start { grid-template-columns: minmax(0, 1fr); }
.fx-principles > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
.fx-hub .fx-section { padding-block: 32px 0; }
.fx-contact-strip { padding: 20px; }
}

/* ---------- Short hero: the hex window alone, caption below it ---------- */
.fx-hero-inner { min-height: 0; padding-block: 48px 40px; }
.fx-hero h1 { margin-bottom: 20px; font-size: clamp(2.6rem, 5.2vw, 4.4rem); }
.fx-lede { margin-bottom: 28px; }
.fx-hero-stats { margin-top: 32px; padding-top: 22px; }
.fx-stage { padding: 0; }
.fx-stage figcaption { position: static; max-width: none; margin-top: 10px; text-align: left; }

@media (max-width: 640px) {
  .fx-lede { margin-bottom: 20px; font-size: 1rem; line-height: 1.6; }
  .fx-hero-inner { padding-block: 32px 28px; gap: 28px; }
  .fx-hero .fx-actions { flex-wrap: nowrap; gap: 8px; }
  .fx-hero .fx-actions .button { flex: 1 1 0; min-width: 0; min-height: 48px; padding: 10px 12px; font-size: 0.84rem; }
  .fx-hero-stats { margin-top: 24px; }
}

/* ---------- Phone widths: the same content, tighter. The hub stays a short list (browser-qa caps it at 6500px up to 390px wide). ---------- */
@media (max-width: 640px) {
  .fx-card-sub { gap: 0 14px; padding-top: 4px; }
  .fx-card-sub a { padding-block: 6px; }
  .fx-start { gap: 12px; }
  .fx-start p { margin-bottom: 6px; }
  .fx-start ul { display: flex; flex-wrap: wrap; gap: 0 16px; }
  .fx-principles > div { padding: 12px 0; }
  .fx-contact-buttons { gap: 8px; }
  .fx-contact-buttons .button { min-height: 44px; padding: 8px 14px; font-size: 0.84rem; }
  .fx-card-grid { gap: 12px; }
  .fx-card { padding: 14px 16px; }
  .fx-start > li { padding: 14px 16px; }
  .fx-hero-stats { gap: 8px; padding-top: 18px; }
  .fx-hero-stats div { gap: 4px; padding: 10px 12px; }
  .fx-hero-stats dd { font-size: 1.7rem; }
  .fx-contact-strip { padding: 18px 16px; }
  .fx-contact-strip p { font-size: 0.95rem; line-height: 1.6; }
  /* The standards strip names the same documents as the Law and standards page, which the sub-nav links on every page. */
  .fx-trust-bar { display: none; }
}
