:root {
  --zemin: #f4f6f8;
  --yuzey: #ffffff;
  --metin: #0f1d2b;
  --ikincil: #5a6876;
  --cizgi: #e2e7ec;
  --yesil: #2a9d8f;
  --yesil-acik: #e3f3f1;
  --turuncu: #e76f51;
  --turuncu-acik: #fdece7;
  --koyu: #12263a;
  --yazi: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, Roboto, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: #0c1722; color: var(--metin); font-family: var(--yazi); overflow: hidden; }

/* 1600x900 sabit tuval, pencereye ölçeklenir (sunum.js) */
#sahne { position: fixed; inset: 0; display: grid; place-items: center; }
#tuval { width: 1600px; height: 900px; position: relative; transform-origin: center center; }
.slayt {
  position: absolute; inset: 0; background: var(--zemin); padding: 70px 90px 60px;
  display: flex; flex-direction: column; gap: 26px;
  opacity: 0; visibility: hidden; transition: opacity .35s ease, transform .35s ease; transform: translateY(14px);
  border-radius: 6px; overflow: hidden;
}
.slayt.aktif { opacity: 1; visibility: visible; transform: none; }

.bolum { font-size: 17px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--yesil); }
h2 { font-size: 46px; line-height: 1.12; font-weight: 700; letter-spacing: -.02em; margin-top: -12px; }
h3 { font-size: 23px; font-weight: 650; margin-bottom: 10px; }
p, li, td, th { font-size: 21px; line-height: 1.45; }
b { font-weight: 650; }
.turuncu { color: var(--turuncu); }
.yesil { color: var(--yesil); }

.iki { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; flex: 1; min-height: 0; }
.iki.genis-sol { grid-template-columns: 1.35fr 1fr; }
.kolon2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; flex: 1; }
.kolon3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.kolon3.kucuk p { font-size: 18px; }
.kolon3.kucuk h3 { font-size: 20px; }

.kart { background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: 20px; padding: 28px 30px; box-shadow: 0 1px 2px rgba(15,29,43,.04); }
.kart p + p { margin-top: 12px; }
.vurgu-kart { background: var(--yesil-acik); border-color: #bfe3de; }
.ikon { font-size: 40px; margin-bottom: 12px; }

figure { display: flex; flex-direction: column; align-items: center; min-height: 0; height: 100%; justify-content: center; }
figure img { max-width: 100%; max-height: 600px; object-fit: contain; border-radius: 14px; background: #fff; border: 1px solid var(--cizgi); padding: 8px; }
figure.tam img { max-height: 420px; }
figcaption { font-size: 16px; color: var(--ikincil); margin-top: 10px; text-align: center; }
.iki > figure + figure img { max-height: 560px; }

.tablo { width: 100%; border-collapse: collapse; background: var(--yuzey); border-radius: 14px; overflow: hidden; border: 1px solid var(--cizgi); margin-bottom: 22px; }
.tablo th, .tablo td { padding: 11px 18px; text-align: left; border-bottom: 1px solid var(--cizgi); font-size: 19px; }
.tablo th { background: #eef2f5; font-weight: 600; color: var(--ikincil); font-size: 16px; text-transform: uppercase; letter-spacing: .04em; }
.tablo tr:last-child td { border-bottom: 0; }
.tablo .s { text-align: right; font-variant-numeric: tabular-nums; }
.tablo em { color: var(--ikincil); font-style: normal; font-size: 16px; }
.tablo tr.dl td { background: var(--turuncu-acik); }
.tablo tr.eniyi td { font-weight: 650; }

.madde { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.madde li { padding-left: 26px; position: relative; }
.madde li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 9px; height: 9px; border-radius: 50%; background: var(--yesil); }
.buyuk { font-size: 24px; margin-bottom: 18px; }
.kutu { border-radius: 16px; padding: 20px 24px; font-size: 20px; line-height: 1.45; }
.turuncu-kutu { background: var(--turuncu-acik); border: 1px solid #f6c9bc; }
.dipnot { font-size: 17px; color: var(--ikincil); margin-top: auto; }
.formul { font-family: "Cambria Math", "Times New Roman", serif; font-size: 28px; background: #f4f6f8; border-radius: 12px; padding: 14px 18px; margin: 6px 0 16px; text-align: center; }
.kucuk-formul { font-size: 22px; }

.hedefler { display: flex; gap: 14px; flex-wrap: wrap; margin-top: auto; }
.hedefler span { background: var(--koyu); color: #fff; padding: 10px 20px; border-radius: 999px; font-size: 18px; }

.sayi-kart { display: flex; align-items: center; gap: 20px; background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: 18px; padding: 18px 24px; margin-bottom: 16px; }
.sayi-kart span:last-child { font-size: 18px; color: var(--ikincil); line-height: 1.35; }
.sayi { font-size: 58px; font-weight: 750; letter-spacing: -.03em; min-width: 150px; font-variant-numeric: tabular-nums; }

.vektor { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.vektor span { width: 120px; font-weight: 600; font-size: 18px; }
.vektor code { font-family: "SF Mono", Consolas, monospace; font-size: 19px; background: #f4f6f8; padding: 8px 12px; border-radius: 8px; flex: 1; }
.kart .madde { margin-top: 18px; }

/* SVG diyagramlar */
svg.akis { width: 100%; height: 250px; }
svg.mimari { width: 100%; flex: 1; min-height: 0; }
svg text { font-family: var(--yazi); font-size: 24px; font-weight: 650; text-anchor: middle; fill: var(--metin); }
svg text.k { font-size: 18px; font-weight: 450; fill: var(--ikincil); }
.adim rect { fill: #fff; stroke: var(--cizgi); stroke-width: 2; }
.vurgu-adim rect { fill: var(--turuncu-acik); stroke: #f6c9bc; }
.girdi rect { fill: #fff; stroke: #cfd8e0; stroke-width: 2; }
.girdi rect.sayisal { fill: #eef2f5; }
.katman rect { fill: var(--yesil-acik); stroke: #a9d9d2; stroke-width: 2; }
.katman.bir rect { fill: #fff; stroke: #cfd8e0; }
.cikis rect { fill: var(--koyu); }
.cikis text { fill: #fff; }
.cikis text.k { fill: #b9c6d2; }

.sonuclar { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 40px; }
.sonuclar > div { display: flex; gap: 18px; align-items: flex-start; background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: 18px; padding: 22px 24px; }
.sonuclar > div:last-child { grid-column: 1 / -1; }
.sonuclar .no { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--yesil); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 20px; }
.sonuclar p { font-size: 20px; }

/* Kapak */
.kapak { background: radial-gradient(1200px 700px at 85% 40%, #173a4f 0%, #0f2232 55%, #0b1824 100%); color: #fff; justify-content: center; gap: 30px; }
.kapak .etiket { font-size: 19px; letter-spacing: .14em; text-transform: uppercase; color: #7fd6c9; font-weight: 600; }
.kapak h1 { font-size: 84px; line-height: 1.04; letter-spacing: -.035em; font-weight: 750; max-width: 1000px; }
.kapak .vurgu { color: #7fd6c9; }
.kapak .alt { font-size: 25px; color: #b9c8d4; max-width: 900px; line-height: 1.45; }
.kapak .alt b { color: #fff; }
.kapak-alt { display: flex; gap: 60px; margin-top: 30px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.15); max-width: 1000px; }
.kapak-alt div { display: flex; flex-direction: column; gap: 4px; }
.kapak-alt b { font-size: 22px; }
.kapak-alt span { font-size: 16px; color: #8ea3b4; }
.kapak-sekil { position: absolute; right: 60px; top: 50%; transform: translateY(-50%); width: 420px; color: #7fd6c9; }
.kapak-sekil .n1 { fill: #1d4a60; stroke: #7fd6c9; stroke-width: 2; }
.kapak-sekil .n2 { fill: #2a9d8f; }
.kapak-sekil .n3 { fill: #e76f51; }
.kapak-sekil .nt { fill: #fff; font-size: 15px; }
.son h1 { font-size: 110px; }

/* Arayüz */
#ilerleme { position: fixed; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.08); }
#ilerleme i { display: block; height: 100%; width: 0; background: var(--yesil); transition: width .3s; }
#sayac { position: fixed; right: 20px; bottom: 14px; color: #8ea3b4; font-size: 14px; font-variant-numeric: tabular-nums; }
#ipucu { position: fixed; left: 20px; bottom: 14px; color: #5f7487; font-size: 13px; transition: opacity 1s; }

/* PDF çıktısı: her slayt bir sayfa */
@media print {
  @page { size: 1600px 900px; margin: 0; }
  html, body { overflow: visible; height: auto; background: #fff; }
  #sahne { position: static; display: block; }
  #tuval { transform: none !important; width: 1600px; height: auto; }
  .slayt { position: relative; opacity: 1; visibility: visible; transform: none; width: 1600px; height: 900px; border-radius: 0; page-break-after: always; break-after: page; transition: none; }
  #ilerleme, #sayac, #ipucu { display: none; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
