/* ==========================================================================
   ARIK LABS — Ortak stil dosyası
   Tüm sayfalar bu tek dosyayı kullanır. Framework yok, build adımı yok.

   İÇİNDEKİLER
   1. Tasarım değişkenleri (renk, yazı, boşluk)
   2. Temel / reset
   3. Yerleşim (container, section, grid)
   4. Tipografi
   5. Başlık (header) ve menü
   6. Butonlar ve bağlantılar
   7. Bileşenler (kart, etiket, tablo, rakamlar, zaman çizelgesi...)
   8. Sayfaya özel parçalar (hero, tehdit kartları, galeri, devlog)
   9. Alt bilgi (footer)
   10. Animasyonlar ve erişilebilirlik
   ========================================================================== */

/* 1. TASARIM DEĞİŞKENLERİ ------------------------------------------------- */
:root {
  /* DÜZENLE: Vurgu rengini değiştirmek istersen sadece --accent'i değiştir. */
  --accent: #ff6a1a;          /* Tek vurgu rengi: sinyal turuncusu */
  --accent-soft: rgba(255, 106, 26, 0.12);
  --accent-ink: #0a0d12;      /* Turuncu zemin üstündeki yazı rengi */

  --bg: #0a0d12;              /* Ana zemin */
  --bg-2: #0e1219;            /* Kart / yüzey zemini */
  --bg-3: #131925;            /* Hover yüzeyi */
  --line: rgba(160, 180, 205, 0.13);        /* İnce çizgiler */
  --line-strong: rgba(160, 180, 205, 0.28); /* Belirgin çizgiler */
  --grid: rgba(120, 150, 190, 0.045);       /* Blueprint ızgarası */

  --text: #e8ecf1;            /* Ana metin (kontrast ~16:1) */
  --muted: #9aa4b2;           /* İkincil metin (kontrast ~7.5:1) */
  --faint: #808b9a;           /* Soluk etiketler (kontrast ~5.3:1) */

  --ok: #e8ecf1;              /* Durumlar renk yerine şekil + metinle ayrılır */

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;

  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 10vw, 8rem);
  --radius: 2px;              /* Teknik çizim hissi için neredeyse köşesiz */
  --header-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* 2. TEMEL / RESET -------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  /* Blueprint ızgarası: küçük (24px) + büyük (120px) kareler */
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(rgba(120, 150, 190, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 150, 190, 0.035) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* 3. YERLEŞİM ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left));
}

.section {
  padding-block: var(--section-y);
  border-top: 1px solid var(--line);
  position: relative;
}
.section--flush { border-top: 0; }

/* Bölüm başlığı: "01 / VİZYON" gibi numaralı etiket + başlık */
.section-head {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  max-width: 760px;
}
.section-head--split {
  max-width: none;
  grid-template-columns: 1fr;
  align-items: end;
}
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1fr auto; }
}

.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid > * { background: var(--bg); }
.grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.split { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 7fr; align-items: start; }
  .split--even { grid-template-columns: 1fr 1fr; }
}

.stack > * + * { margin-top: 1rem; }

/* 4. TİPOGRAFİ ------------------------------------------------------------ */
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-wrap: balance;
}
.display {
  font-size: clamp(2.6rem, 9vw, 6rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
}
.display .dim { color: var(--muted); }
h1 { font-size: clamp(2.25rem, 6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); letter-spacing: -0.015em; }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--muted);
  max-width: 62ch;
  line-height: 1.6;
}
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }

/* Küçük, büyük harfli teknik etiket. Örn: "01 / PROTO-01" */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
}
.eyebrow--plain::before { display: none; }

.prose { max-width: 68ch; }
.prose p { color: var(--muted); }
.prose strong { color: var(--text); font-weight: 600; }
.prose h3 { margin: 2rem 0 0.75rem; }
.prose ul { padding-left: 1.1rem; color: var(--muted); }
.prose li { margin-bottom: 0.4rem; }
.prose li::marker { color: var(--accent); }

/* 5. HEADER VE MENÜ ------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid var(--line);
}
/* Bulanık zemin ayrı katmanda: backdrop-filter doğrudan header'a verilirse
   mobil menü (position: fixed) header'ın içine hapsolur ve kesilir. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(10, 13, 18, 0.82);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
}
body.nav-open .site-header::before { background: var(--bg); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  min-height: 44px;
}
.brand svg { width: 26px; height: 26px; flex: none; }
.brand span { white-space: nowrap; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  background: none;
  border: 0;
  color: var(--text);
  cursor: pointer;
}
.nav-toggle-bars { position: relative; width: 20px; height: 10px; }
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars::after { top: 8.5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 4px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 4px; transform: rotate(-45deg); }

/* Mobil menü: tam ekran panel */
.site-nav {
  position: fixed;
  inset: calc(var(--header-h) + env(safe-area-inset-top)) 0 0 0;
  padding: 1.5rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  background: var(--bg);
  border-top: 1px solid var(--line);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s 0.25s;
}
.site-nav.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.site-nav ul { list-style: none; display: grid; }
.site-nav li { border-bottom: 1px solid var(--line); }
.site-nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  min-height: 56px;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--muted);
}
.site-nav a::after {
  content: attr(data-num);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--faint);
}
.site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a[aria-current="page"]::after { color: var(--accent); }
body.nav-open { overflow: hidden; }

@media (min-width: 1000px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    padding: 0;
    background: none;
    border: 0;
    overflow: visible;
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: none;
  }
  .site-nav ul { display: flex; align-items: center; gap: 0.25rem; }
  .site-nav li { border: 0; }
  .site-nav a {
    position: relative;
    padding: 0.5rem 0.75rem;
    min-height: 44px;
    font-size: 0.875rem;
    color: var(--muted);
    transition: color 0.2s;
  }
  .site-nav a::after {
    content: "";
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 6px;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
  }
  .site-nav a:hover { color: var(--text); }
  .site-nav a:hover::after,
  .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
  .site-nav .nav-cta a {
    margin-left: 0.75rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--line-strong);
    color: var(--text);
  }
  .site-nav .nav-cta a::after { display: none; }
  .site-nav .nav-cta a:hover { border-color: var(--accent); }
}

/* 6. BUTONLAR VE BAĞLANTILAR --------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font: 500 0.95rem/1 var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn:hover { border-color: var(--text); }
.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}
.btn--primary:hover { background: #ff7d36; border-color: #ff7d36; }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Metin içi "devamını oku →" bağlantısı */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
}
.link-arrow::after { content: "→"; color: var(--accent); transition: transform 0.25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

.text-link {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.text-link:hover { color: var(--accent); }

/* 7. BİLEŞENLER ----------------------------------------------------------- */

/* Kart: köşelerinde teknik çizim işaretleri olan yüzey */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--bg);
  transition: background 0.3s var(--ease);
}
.card p { color: var(--muted); margin: 0; }
.card .card-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--faint);
}
a.card { text-decoration: none; }
a.card:hover, .card--hover:hover { background: var(--bg-2); }

/* Köşe işaretleri (crop marks) */
.ticks { position: relative; }
.ticks::before,
.ticks::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: var(--line-strong);
  border-style: solid;
  pointer-events: none;
  transition: border-color 0.3s var(--ease);
}
.ticks::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.ticks::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }
.ticks:hover::before, .ticks:hover::after { border-color: var(--accent); }

/* Durum etiketi */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border: 1px solid currentColor;
}
.badge--done { color: var(--text); }
.badge--done::before { background: var(--text); border-color: var(--text); }
.badge--active { color: var(--accent); border-color: rgba(255, 106, 26, 0.45); }
.badge--active::before { background: var(--accent); border-color: var(--accent); animation: blink 2s ease-in-out infinite; }

/* Teknik özellik tablosu */
.spec-table {
  font-size: 0.95rem;
  border-top: 1px solid var(--line-strong);
}
.spec-table caption {
  text-align: left;
  padding-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.spec-table th,
.spec-table td {
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.spec-table th {
  width: 40%;
  padding-right: 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.spec-table td { color: var(--text); }
.tbd { color: var(--faint); font-style: italic; } /* Henüz doldurulmamış değer */

/* Rakamlar */
.stat { padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--bg); }
.stat-value {
  display: block;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-value sup { font-size: 0.4em; color: var(--accent); vertical-align: top; margin-left: 0.15em; }
.stat-label {
  display: block;
  margin-top: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Fotoğraf yer tutucu: /images klasörüne foto ekleyince <img> ile değiştir */
.ph {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border: 1px dashed var(--line-strong);
  background:
    repeating-linear-gradient(135deg, transparent 0 11px, rgba(160, 180, 205, 0.05) 11px 12px),
    var(--bg-2);
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  overflow: hidden;
}
.ph span { padding: 0.4rem 0.7rem; background: var(--bg); border: 1px solid var(--line); }
.ph--wide { aspect-ratio: 16 / 9; }
.ph--tall { aspect-ratio: 3 / 4; }
/* Gerçek fotoğraf eklenince aynı çerçeveyi kullanır */
.photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.photo--portrait { aspect-ratio: 4 / 5; }
/* Proje sayfası kapağı: iki fotoğraf yan yana (mobilde alt alta) */
.photo-pair { display: grid; gap: 1.5rem; }
@media (min-width: 700px) { .photo-pair { grid-template-columns: 1fr 1fr; } }
figure { margin: 0; }
figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
figcaption b { color: var(--faint); font-weight: 500; }

/* Dikey zaman çizelgesi (yapım süreci, yol haritası) */
.timeline { list-style: none; position: relative; }
.timeline > li {
  position: relative;
  display: grid;
  gap: 0.75rem;
  padding: 0 0 clamp(2.25rem, 4vw, 3rem) 2.25rem;
  border-left: 1px solid var(--line-strong);
  margin-left: 6px;
}
.timeline > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline > li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.35rem;
  width: 13px;
  height: 13px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  transform: rotate(45deg);
}
.timeline > li.is-done::before { background: var(--text); border-color: var(--text); }
.timeline > li.is-active::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.timeline .tl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.timeline .tl-step { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; color: var(--faint); }
.timeline p { color: var(--muted); margin: 0; max-width: 64ch; }
.timeline ul { list-style: none; display: grid; gap: 0.35rem; color: var(--muted); font-size: 0.95rem; }
.timeline ul li::before { content: "— "; color: var(--faint); }

/* Değerler listesi (numaralı) */
.values { list-style: none; counter-reset: v; }
.values li {
  counter-increment: v;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.25rem 1rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}
.values li:last-child { border-bottom: 1px solid var(--line); }
.values li::before {
  content: "0" counter(v);
  grid-row: span 2;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  padding-top: 0.2rem;
}
.values strong { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }
.values span { color: var(--muted); }

/* Uyarı / not kutusu */
.note {
  display: grid;
  gap: 0.5rem;
  padding: 1.5rem;
  border: 1px solid var(--line-strong);
  border-left: 2px solid var(--accent);
  background: var(--bg-2);
}
.note p { margin: 0; color: var(--muted); }
.note strong { color: var(--text); }

/* 8. SAYFAYA ÖZEL PARÇALAR ------------------------------------------------ */

/* Ana sayfa hero */
.hero {
  position: relative;
  padding-block: clamp(3.5rem, 10vw, 7rem) clamp(3rem, 8vw, 6rem);
  overflow: hidden;
}
.hero-grid { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 6fr 5fr; } }
.hero .display { margin: 1.5rem 0; }
.hero .lead { margin-bottom: 2.25rem; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-meta b { color: var(--text); font-weight: 500; }

/* Teknik çizim (blueprint) SVG */
.drawing {
  position: relative;
  border: 1px solid var(--line);
  background: rgba(14, 18, 25, 0.6);
  padding: clamp(1rem, 3vw, 1.75rem);
}
.drawing-head,
.drawing-foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.drawing-head { padding-bottom: 0.85rem; border-bottom: 1px solid var(--line); }
.drawing-foot { padding-top: 0.85rem; border-top: 1px solid var(--line); }
.drawing svg { width: 100%; margin-block: 1rem; }
.drawing .stroke { fill: none; stroke: #c6d0dc; stroke-width: 1.2; }
.drawing .stroke-thin { fill: none; stroke: rgba(198, 208, 220, 0.45); stroke-width: 0.8; }
.drawing .stroke-accent { fill: none; stroke: var(--accent); stroke-width: 1.2; }
.drawing .dim { fill: none; stroke: rgba(198, 208, 220, 0.4); stroke-width: 0.8; stroke-dasharray: 3 3; }
.drawing text { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.08em; fill: #8d98a7; }
.drawing text.accent { fill: var(--accent); }

/* Çizgi çizilme animasyonu (sadece JS + hareket izni varsa) */
.js .draw-in .stroke,
.js .draw-in .stroke-accent { stroke-dasharray: 1200; stroke-dashoffset: 1200; }
.js .draw-in.is-visible .stroke,
.js .draw-in.is-visible .stroke-accent { animation: draw 2.4s var(--ease) forwards; }

/* Sayfa başlığı (alt sayfalar) */
.page-hero { padding-block: clamp(3.5rem, 9vw, 6.5rem) clamp(2.5rem, 6vw, 4rem); }
.page-hero h1 { margin: 1.25rem 0 1.25rem; max-width: 18ch; }
.page-hero .lead { margin: 0; }
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }

/* Öne çıkan ürün kartı (PROTO-01) */
.feature {
  display: grid;
  border: 1px solid var(--line);
  background: var(--bg);
}
@media (min-width: 900px) { .feature { grid-template-columns: 1fr 1fr; } }
.feature-media { border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .feature-media { border-bottom: 0; border-right: 1px solid var(--line); } }
.feature-media { position: relative; }
.feature-media .ph { aspect-ratio: auto; height: 100%; min-height: 280px; border: 0; }
.feature-media .photo { aspect-ratio: 4 / 3; border: 0; object-position: 50% 40%; }
@media (min-width: 900px) {
  .feature-media { min-height: 420px; }
  /* Masaüstünde fotoğraf, yanındaki metnin yüksekliğini doldurur */
  .feature-media .photo { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
}
.feature-body { display: flex; flex-direction: column; gap: 1.25rem; padding: clamp(1.75rem, 4vw, 3rem); }
.feature-body .spec-table { margin-top: 0.5rem; }

/* Tehdit kartı (güvenlik sayfası) */
.threat {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  background: var(--bg);
}
@media (min-width: 900px) { .threat { grid-template-columns: 2fr 3fr; gap: 3rem; } }
.threat-id { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; color: var(--faint); }
.threat h3 { margin: 0.6rem 0 1rem; font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
.threat dl { margin: 0; display: grid; gap: 1.25rem; }
.threat dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.35rem;
}
.threat dd { margin: 0; color: var(--muted); }
.threat dd ol { padding-left: 1.1rem; display: grid; gap: 0.35rem; }
.threat dd li::marker { color: var(--accent); font-family: var(--font-mono); font-size: 0.85em; }

/* Risk göstergesi: 4 kutucuk, renk + metin birlikte (renk körü dostu) */
.risk { display: inline-flex; align-items: center; gap: 0.75rem; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }
.risk-bar { display: inline-flex; gap: 3px; }
.risk-bar i { width: 14px; height: 6px; border: 1px solid var(--line-strong); }
.risk[data-level="1"] .risk-bar i:nth-child(-n+1),
.risk[data-level="2"] .risk-bar i:nth-child(-n+2),
.risk[data-level="3"] .risk-bar i:nth-child(-n+3),
.risk[data-level="4"] .risk-bar i:nth-child(-n+4) { background: var(--text); border-color: var(--text); }
.risk[data-level="4"] .risk-bar i,
.risk[data-level="4"] { color: var(--accent); }
.risk[data-level="4"] .risk-bar i { background: var(--accent); border-color: var(--accent); }

/* Özet tablo (güvenlik) — mobilde yatay kaydırma */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); }
.data-table { min-width: 620px; font-size: 0.92rem; }
.data-table th, .data-table td { padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table thead th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-2);
}
.data-table tbody tr:last-child > * { border-bottom: 0; }
.data-table td { color: var(--muted); }
.data-table tbody th { font-weight: 500; color: var(--text); }

/* Galeri */
.gallery { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(3, 1fr); } }

/* Devlog kartı */
.log-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.log-card {
  display: grid;
  gap: 0.75rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--bg);
  transition: background 0.3s var(--ease);
}
@media (min-width: 800px) {
  .log-card { grid-template-columns: 10rem 1fr; gap: 0 2.5rem; }
  .log-card .log-meta { grid-row: span 3; }
}
.log-card:hover { background: var(--bg-2); }
.log-meta { display: flex; flex-wrap: wrap; align-content: start; gap: 0.35rem 1rem; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 800px) { .log-meta { flex-direction: column; } }
.log-meta .log-no { color: var(--accent); }
.log-card h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
.log-card p { color: var(--muted); margin: 0; max-width: 70ch; }
.log-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin-top: 0.5rem; }
.log-tags li { padding: 0.2rem 0.55rem; border: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* İletişim kanalları */
.channel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-height: 200px;
  justify-content: space-between;
  text-decoration: none;
}
.channel-value { font-size: clamp(1rem, 2vw, 1.2rem); font-weight: 500; word-break: break-word; }
.channel .link-arrow { min-height: auto; }

/* CTA bandı */
.cta-band { display: grid; gap: 2rem; align-items: end; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; } }

/* 404 */
.notfound { min-height: 70vh; display: grid; align-content: center; }
.notfound .code { font-family: var(--font-mono); font-size: clamp(4rem, 18vw, 10rem); line-height: 1; letter-spacing: -0.04em; color: var(--line-strong); }

/* 9. FOOTER --------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 6vw, 4.5rem) calc(2rem + env(safe-area-inset-bottom));
  font-size: 0.9rem;
}
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-grid h2 {
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.footer-grid ul { list-style: none; display: grid; gap: 0.1rem; }
.footer-grid a { display: inline-flex; align-items: center; min-height: 36px; color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--text); }
.footer-grid p { color: var(--muted); max-width: 40ch; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

/* 10. ANİMASYONLAR VE ERİŞİLEBİLİRLİK ------------------------------------- */

/* Klavye odağı: her zaman net görünür */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
a:focus:not(:focus-visible), button:focus:not(:focus-visible) { outline: none; }

/* Ekran okuyucu için gizli metin */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Kaydırınca belirme. JS yoksa içerik zaten görünür kalır. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes blink { 50% { opacity: 0.35; } }

/* Hareket azaltma tercihi olan kullanıcılar için tüm animasyonlar kapanır */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .js .draw-in .stroke, .js .draw-in .stroke-accent { stroke-dashoffset: 0; }
}

/* Yazdırma: koyu zemini kaldır */
@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .nav-toggle { display: none; }
}
