:root {
  --paper: #F5F8FC;
  --panel: #FFFFFF;
  --ink: #0E1C36;
  --ink-2: #222D3A;
  --muted: #56657E;
  --rule: #D7E0EC;
  --accent: #1A5FFF;
  --accent-bright: #40C0FF;
  --accent-soft: #E6F0FE;
  --down: #A33A2E;
  --serif: "Literata", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  --measure: 40rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
}

a { color: inherit; text-decoration-color: var(--rule); text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 52rem; }

/* Header */
.site-head { padding: 1.5rem 0; }
.site-head .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.brand { font-family: var(--sans); font-weight: 800; font-size: 1rem; text-decoration: none; letter-spacing: -0.01em; }
.nav { display: flex; gap: 1.25rem; flex-wrap: wrap; font-family: var(--sans); font-size: 0.9375rem; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

.dark { background: var(--ink); color: #EEF1EC; }
.dark .brand { color: #fff; }
.dark .nav a { color: #A9B3BE; }
.dark .nav a:hover { color: #fff; }

/* Hero */
.hero { padding: 3rem 0 4.5rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 3.5rem; align-items: end; }
.hero h1 {
  font-weight: 500;
  font-size: clamp(2.25rem, 5.6vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 0 0 1.5rem;
}
.hero .lede { color: #C3CBD3; max-width: 34rem; margin: 0 0 2rem; font-size: 1.125rem; }
.actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn {
  font-family: var(--sans); font-weight: 700; font-size: 0.9375rem;
  display: inline-block; padding: 0.7rem 1.15rem; border-radius: 6px; text-decoration: none;
}
.btn.primary { background: var(--accent-bright); color: var(--ink); }
.btn.primary:hover { background: #7ED3B9; }
.btn.ghost { border: 1px solid #3A4757; color: #EEF1EC; }
.btn.ghost:hover { border-color: #EEF1EC; }

/* Kimlik kartı */
.idcard { background: var(--ink-2); border: 1px solid #334050; border-radius: 10px; padding: 1.5rem; font-family: var(--sans); }
.idcard-top { display: flex; align-items: center; gap: 1rem; padding-bottom: 1.25rem; border-bottom: 1px solid #334050; margin-bottom: 1rem; }
.portrait {
  width: 4.5rem; height: 4.5rem; border-radius: 50%; flex: none;
  display: grid; place-items: center; overflow: hidden;
  background: var(--accent); color: #fff; font-family: var(--serif); font-size: 1.5rem; font-weight: 500;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.idcard-name { font-weight: 700; font-size: 1.0625rem; color: #fff; line-height: 1.3; }
.idcard-role { font-size: 0.875rem; color: #A9B3BE; }
.facts { margin: 0; display: grid; gap: 0.6rem; }
.facts div { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.875rem; }
.facts dt { color: #A9B3BE; }
.facts dd { margin: 0; color: #EEF1EC; font-weight: 600; text-align: right; }

/* Sections */
.section { padding: 4rem 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.section h2 { font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.15; letter-spacing: -0.015em; margin: 0; }
.section-note { font-family: var(--sans); font-size: 0.9375rem; color: var(--muted); margin: 0; max-width: 26rem; }

/* Araçlar */
.tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.tool { background: var(--panel); padding: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; min-height: 14rem; font-family: var(--sans); }
.tool-top { display: flex; justify-content: space-between; align-items: center; }
.tool-code { font-weight: 800; font-size: 0.9375rem; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.tool h3 { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; margin: 0.4rem 0 0; line-height: 1.25; }
.tool p { margin: 0; color: var(--muted); font-size: 0.9375rem; line-height: 1.55; }
.tool .go { margin-top: auto; font-weight: 700; font-size: 0.9375rem; color: var(--accent); text-decoration: none; }
.tool .go:hover { text-decoration: underline; }
.tool.is-live { background: var(--accent-soft); }
.status { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 0.15rem 0.55rem; border-radius: 999px; white-space: nowrap; }
.status.soon { background: #E9EFF7; color: var(--muted); }
.status.live { background: var(--accent); color: #fff; }

/* Notlar */
.series { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 3rem; }
.series-about p { color: var(--muted); margin: 0 0 1rem; max-width: 28rem; }
.notes { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.notes li { padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
.notes .meta { font-family: var(--sans); font-size: 0.8125rem; color: var(--muted); }
.notes a { font-size: 1.3rem; font-weight: 500; text-decoration: none; }
.empty { padding: 2rem 0; color: var(--muted); border-bottom: 1px solid var(--rule); margin: 0; }

/* Yol */
.timeline { list-style: none; margin: 0; padding: 0; font-family: var(--sans); }
.timeline li { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--rule); font-size: 0.9375rem; }
.timeline li:first-child { border-top: 1px solid var(--ink); }
.timeline .yr { font-weight: 800; font-variant-numeric: tabular-nums; }
.timeline .now { color: var(--accent); }
.more { font-family: var(--sans); font-weight: 700; font-size: 0.9375rem; color: var(--accent); text-decoration: none; }
.more:hover { text-decoration: underline; }

/* Prose (Hakkında, araç sayfaları) */
.prose { max-width: var(--measure); padding-bottom: 3rem; }
.prose h1 { font-weight: 500; font-size: clamp(1.9rem, 4.5vw, 2.6rem); line-height: 1.15; letter-spacing: -0.02em; margin: 2.5rem 0 1.5rem; }
.prose h2 { font-family: var(--sans); font-size: 1.125rem; margin: 2.25rem 0 0.75rem; }
.prose dl { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.6rem 1rem; margin: 0; }
.prose dt { font-family: var(--sans); font-size: 0.875rem; color: var(--muted); padding-top: 0.2rem; }
.prose dd { margin: 0; }

/* Hesaplayıcı */
.calc { background: var(--panel); border: 1px solid var(--rule); border-radius: 10px; padding: 1.5rem; font-family: var(--sans); margin: 1.5rem 0 2rem; }
.calc-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.calc label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--muted); margin-bottom: 0.35rem; }
.calc input { width: 100%; font: inherit; font-size: 1.25rem; font-weight: 700; padding: 0.6rem 0.75rem; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); color: var(--ink); font-variant-numeric: tabular-nums; }
.calc input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.result { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.result-label { font-size: 0.875rem; color: var(--muted); }
.result-value { font-size: clamp(2.25rem, 7vw, 3.25rem); font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.result-value.up { color: var(--accent); }
.result-value.down { color: var(--down); }
.result-text { font-size: 0.9375rem; color: var(--muted); margin: 0.5rem 0 0; }

/* Footer */
.site-foot { border-top: 1px solid var(--rule); padding: 2rem 0 3rem; font-family: var(--sans); font-size: 0.8125rem; color: var(--muted); }
.site-foot .wrap { display: grid; gap: 0.75rem; }
.site-foot p { margin: 0; max-width: 46rem; }

@media (max-width: 860px) {
  .hero-grid, .series { grid-template-columns: 1fr; gap: 2.5rem; }
  .tools { grid-template-columns: 1fr; }
  .tool { min-height: 0; }
}
@media (max-width: 560px) {
  .calc-row { grid-template-columns: 1fr; }
  .prose dl { grid-template-columns: 1fr; gap: 0.1rem; }
  .prose dd { margin-bottom: 0.75rem; }
  .timeline li { grid-template-columns: 4.5rem 1fr; }
}
.series-about h2 { margin-bottom: 1.25rem; }

/* Getiriler aracı */
.prose.wide { padding-bottom: 1rem; }
.race { background: var(--panel); border: 1px solid var(--rule); border-radius: 10px; padding: 1.25rem 1.5rem; font-family: var(--sans); margin-bottom: 2rem; }
.race-head { font-weight: 700; font-size: 0.9375rem; margin-bottom: 0.9rem; }
.race-row { display: grid; grid-template-columns: 11.5rem 1fr 5.5rem; gap: 0.9rem; align-items: center; padding: 0.4rem 0; font-size: 0.9375rem; }
.race-track { height: 0.75rem; background: #E9EFF7; border-radius: 3px; overflow: hidden; }
.race-track i { display: block; height: 100%; border-radius: 3px; }
.race-val { font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }

.rt { font-family: var(--sans); margin-bottom: 2rem; }
.rt-tabs { display: flex; gap: 0.25rem; flex-wrap: wrap; border-bottom: 1px solid var(--ink); }
.rt-tabs button { font: inherit; font-weight: 700; font-size: 0.9375rem; background: none; border: 0; padding: 0.7rem 0.9rem; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.rt-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.rt-tabs button:hover { color: var(--ink); }
.rt-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rt-table th, .rt-table td { padding: 0.55rem 0; border-bottom: 1px solid var(--rule); text-align: left; }
.rt-table thead th { font-size: 0.8125rem; color: var(--muted); font-weight: 600; padding-top: 1rem; }
.rt-table tbody th { font-weight: 800; width: 4.5rem; }
.rt-table .r { text-align: right; }
.rt-bar { position: relative; height: 1.9rem; background: #E9EFF7; border-radius: 4px; overflow: hidden; margin-right: 1rem; }
.rt-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; }
.rt-bar span { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; font-weight: 700; font-size: 0.875rem; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rt-bar span.in { left: 0.65rem; color: #fff; }
.rt-bar span.out { color: var(--ink); }
.rt-cum { font-weight: 800; width: 6rem; }
.rt-foot { font-size: 0.8125rem; color: var(--muted); margin: 0.75rem 0 0; }

@media (max-width: 560px) {
  .race-row { grid-template-columns: 1fr auto; }
  .race-track { grid-column: 1 / -1; grid-row: 2; }
  .rt-tabs button { padding: 0.6rem 0.5rem; font-size: 0.875rem; }
}

/* Sosyal medya */
.social, .idcard-links, .dd-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.social a { font-weight: 700; color: var(--ink); text-decoration: none; }
.social a:hover { color: var(--accent); }
.idcard-links { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid #334050; font-size: 0.875rem; }
.idcard-links a { color: var(--accent-bright); font-weight: 700; text-decoration: none; }
.idcard-links a:hover { color: #fff; }
.dd-links a { color: var(--accent); }

/* Hakkında: kariyer listesi */
.prose dl.cv { grid-template-columns: 10rem 1fr; gap: 0; }
.prose dl.cv dt, .prose dl.cv dd { padding: 0.85rem 0; border-bottom: 1px solid var(--rule); }
.prose dl.cv dt { font-variant-numeric: tabular-nums; }
.prose dl.cv dd strong { display: block; font-weight: 500; }
.prose dl.cv dd span { display: block; font-family: var(--sans); font-size: 0.9rem; color: var(--muted); margin-top: 0.15rem; }
@media (max-width: 560px) {
  .prose dl.cv { grid-template-columns: 1fr; }
  .prose dl.cv dt { border-bottom: 0; padding-bottom: 0; }
  .prose dl.cv dd { margin-bottom: 0; }
}
.prose dl.cv dd ul { margin: 0.4rem 0 0.6rem; padding-left: 1.1rem; font-size: 0.95rem; line-height: 1.55; }
.prose dl.cv dd ul:last-child { margin-bottom: 0; }
.prose dl.cv dd li { margin: 0.2rem 0; }
.prose dl.cv dd li::marker { color: var(--accent); }
.prose dl.cv dd span + ul + span { margin-top: 0.5rem; }

/* Çalışma Masası */
.calc-note { font-family: var(--sans); font-size: 0.875rem; color: var(--muted); max-width: 46rem; margin: 1.5rem 0 3rem; }
.tool .tool-code { white-space: nowrap; }

/* Açılış: tek sütun */
.hero-text { max-width: 46rem; }
.hero-text h1 { max-width: 20ch; }
.hero-text .lede { max-width: 40rem; }

/* Hakkında: portre */
.about-head { display: grid; grid-template-columns: minmax(0, 1fr) 11rem; gap: 2.5rem; align-items: center; margin: 2.5rem 0 1.5rem; }
.about-head h1 { margin: 0; }
.about-photo { width: 11rem; height: 11rem; border-radius: 50%; object-fit: cover; display: block; box-shadow: 0 0 0 6px var(--paper), 0 0 0 7px var(--rule); }
@media (max-width: 560px) {
  .about-head { grid-template-columns: 1fr; gap: 1.25rem; margin-top: 1.75rem; }
  .about-photo { width: 8rem; height: 8rem; order: -1; }
}

/* Kart başlıkları kaldırıldı: başlık kartın üstünde */
.tool h3 { margin-top: 0; }
.tool { min-height: 0; }

/* Açılış: açık renk, sayfaya yumuşak geçiş */
.dark { background: linear-gradient(180deg, #DCEEFC 0%, #E8F3FD 55%, var(--paper) 100%); color: var(--ink); }
.dark .brand { color: var(--ink); }
.dark .nav a { color: var(--muted); }
.dark .nav a:hover { color: var(--ink); }
.hero .lede { color: var(--muted); }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--navy); }
.btn.ghost { border: 1px solid #B7CBE3; color: var(--ink); background: rgba(255,255,255,.5); }
.btn.ghost:hover { border-color: var(--ink); background: #fff; }
.hero { padding-bottom: 5rem; }

/* Logo */
.brand { display: inline-flex; align-items: center; }
.brand img { height: 40px; width: auto; display: block; }
@media (max-width: 560px) { .brand img { height: 34px; } }

/* Logo renkleriyle uyumlu palet */
:root {
  --paper: #F5F8FC;
  --ink: #0E1C36;
  --muted: #56657E;
  --rule: #D7E0EC;
  --navy: #003894;
  --accent: #1A5FFF;
  --accent-bright: #40C0FF;
  --accent-soft: #E6F0FE;
  --sky: #05A0F5;
  --up: #12805C;
  --down: #C0392B;
}
.tool.is-live { background: var(--panel); border-top: 3px solid var(--sky); }
.tool h3 { color: var(--navy); }
.tools { border-color: var(--rule); }
.prose h1, .section h2, .hero h1 { color: var(--navy); }
.rt-tabs { border-bottom-color: var(--navy); }
.tool.is-live:only-child, .tools .tool:not(.is-live) { border-top: 3px solid var(--rule); }

/* Tüm sayfalarda ana sayfadaki açık mavi geçiş */
body { background: linear-gradient(180deg, #DCEEFC 0, #E8F3FD 220px, var(--paper) 520px) no-repeat, var(--paper); }
.dark { background: transparent; }

/* Piyasa notları */
.notes .note-summary { margin: .35rem 0 0; color: var(--muted); font-size: 1rem; max-width: 36rem; }
.note-meta { font-family: var(--sans); font-size: .875rem; color: var(--muted); margin: 2.5rem 0 -0.75rem; }
.note-question { font-size: 1.25rem; line-height: 1.55; color: var(--navy); border-left: 3px solid var(--sky); padding-left: 1rem; margin: 0 0 1.5rem; }
.note-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; margin: 1.75rem 0 .5rem; font-family: var(--sans); }
.note-figures div { background: var(--panel); padding: 1rem 1.1rem; }
.note-figures span { display: block; font-size: .8125rem; color: var(--muted); }
.note-figures b { display: block; font-size: 1.5rem; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; margin-top: .2rem; }
.note-caption { font-family: var(--sans); font-size: .8125rem; color: var(--muted); margin-top: .25rem; }
.note-table-wrap { overflow-x: auto; margin: 1rem 0 .25rem; }
.note-table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: .9375rem; font-variant-numeric: tabular-nums; }
.note-table th, .note-table td { padding: .55rem .75rem .55rem 0; border-bottom: 1px solid var(--rule); text-align: left; }
.note-table thead th { font-size: .8125rem; color: var(--muted); font-weight: 600; border-bottom-color: var(--navy); }
.note-table tbody th { font-weight: 800; }
.note-table td.dn { color: var(--down); font-weight: 700; }
.note ul { padding-left: 1.2rem; }
.note li { margin: .6rem 0; }
.note-disclaimer { font-family: var(--sans); font-size: .8125rem; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 1rem; margin-top: 2rem; }
@media (max-width: 560px) {
  .note-figures { grid-template-columns: 1fr; }
  .note-figures b { font-size: 1.3rem; }
}
.prose a { color: var(--accent); text-decoration-color: currentColor; }
