/* ==========================================================================
   SanalAjans — site sistemi
   Değerler brand/tokens.css'ten gelir. Bu dosyada renk kodu yazılmaz.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--sa-canvas);
  color: var(--sa-ink);
  font: 400 17px/1.6 var(--sa-font);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p, h1, h2, h3, h4, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--sa-accent); color: var(--sa-accent-ink); }
:focus-visible { outline: 2px solid var(--sa-accent); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: fixed; left: 16px; top: 12px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: var(--sa-ink); color: var(--sa-canvas); text-decoration: none;
  transform: translateY(-160%); transition: transform .2s var(--sa-ease);
}
.skip:focus-visible { transform: none; }

/* --- Düzen -------------------------------------------------------------- */
:root { --gut: clamp(20px, 5vw, 80px); --nav-h: 64px; }
.wrap { width: min(100% - 2 * var(--gut), 1240px); margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
@media (max-width: 700px) { .grid { grid-template-columns: minmax(0, 1fr); row-gap: 32px; } .grid > * { grid-column: 1 / -1 !important; } }

.section { position: relative; padding-block: clamp(96px, 14vh, 160px); }
.section--screen { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.section--dark {
  --sa-ink: var(--sa-dark-ink); --sa-ink-soft: var(--sa-dark-ink-soft); --sa-line: var(--sa-dark-line);
  --sa-accent: var(--sa-dark-accent); --sa-accent-ink: var(--sa-dark);
  --sa-surface: var(--sa-dark-surface);
  background: var(--sa-dark); color: var(--sa-ink);
}
.section--sunken { background: var(--sa-sunken); }
.section--tight { position: relative; padding-block: clamp(72px, 10vh, 120px); }

/* --- Yazı ---------------------------------------------------------------- */
.display, h1 {
  font-size: clamp(42px, 6.2vw, 88px); line-height: 1.02; font-weight: 500;
  letter-spacing: var(--sa-track-display); text-wrap: balance;
}
h2, .h2 {
  font-size: clamp(32px, 4.2vw, 60px); line-height: 1.05; font-weight: 500;
  letter-spacing: var(--sa-track-display); text-wrap: balance;
}
h3, .h3 { font-size: clamp(21px, 1.8vw, 26px); line-height: 1.2; font-weight: 500; letter-spacing: var(--sa-track-tight); }
.lead { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.45; color: var(--sa-ink-soft); text-wrap: pretty; max-width: 40ch; }
.body { color: var(--sa-ink-soft); text-wrap: pretty; max-width: 62ch; }
.small { font-size: 14px; line-height: 1.5; color: var(--sa-ink-soft); }
.muted { color: var(--sa-ink-soft); }
.eyebrow { font-size: 15px; font-weight: 500; color: var(--sa-accent); margin-bottom: 20px; }
.num { font-variant-numeric: tabular-nums; }
.link {
  color: var(--sa-accent); text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, var(--sa-accent) 40%, transparent);
  transition: text-decoration-color .18s var(--sa-ease);
}
.link:hover { text-decoration-color: currentColor; }
.head { display: grid; gap: 20px; margin-bottom: clamp(48px, 7vh, 88px); max-width: 860px; }

/* --- Düğmeler ------------------------------------------------------------- */
.btn {
  --b-bg: var(--sa-accent); --b-ink: var(--sa-accent-ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  background: var(--b-bg); color: var(--b-ink);
  font-size: 16px; font-weight: 500; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .16s var(--sa-ease), translate .35s var(--sa-ease), background-color .18s var(--sa-ease), border-color .18s var(--sa-ease);
  translate: var(--mx, 0px) var(--my, 0px);
}
.btn:hover { background: color-mix(in srgb, var(--b-bg) 88%, var(--sa-ink)); }
.btn:active { transform: scale(.97); }
.btn--ghost { --b-bg: transparent; --b-ink: var(--sa-ink); border-color: var(--sa-line); }
.btn--ghost:hover { background: transparent; border-color: var(--sa-ink); }
.btn--lg { min-height: 56px; padding: 0 30px; font-size: 17px; }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 520px) { .actions .btn { width: 100%; } }

/* --- Gezinme -------------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  background: var(--sa-canvas);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--sa-ease);
}
.nav.is-stuck { border-bottom-color: var(--sa-line); }
.nav__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 500; font-size: 19px; letter-spacing: -0.03em; }
.brand svg { width: 28px; height: 28px; flex: none; }
.nav__links { display: flex; gap: 30px; font-size: 15px; }
.nav__links a { text-decoration: none; color: var(--sa-ink-soft); transition: color .16s var(--sa-ease); }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--sa-ink); }
.nav__end { display: flex; align-items: center; gap: 12px; }
.nav__toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; }
.nav__toggle span { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform .2s var(--sa-ease); }
.nav__toggle span + span { margin-top: 5px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.menu { display: none; }
@media (max-width: 900px) {
  .nav__links, .nav__end .btn { display: none; }
  .nav__toggle { display: flex; }
  .menu {
    position: fixed; inset: var(--nav-h) 0 0; z-index: 49; display: flex; flex-direction: column; gap: 8px;
    padding: 24px var(--gut) 40px; background: var(--sa-canvas);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s var(--sa-ease), transform .2s var(--sa-ease), visibility 0s linear .2s;
  }
  .menu.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .menu a:not(.btn) { font-size: 30px; font-weight: 500; letter-spacing: var(--sa-track-tight); text-decoration: none; padding: 8px 0; }
  .menu .btn { margin-top: auto; }
}

/* --- Dil seçici: TR / EN ---------------------------------------------------- */
/* Sade metin seçici: seçili dil koyu ve ince bir çizgiyle, diğeri soluk.
   Düğme gibi görünmez; ana eylem düğmesiyle yarışmaz. */
.lang { display: inline-flex; align-items: center; font-size: 13px; font-weight: 500; line-height: 1; letter-spacing: 0.04em; }
.lang a {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; min-height: 40px; padding: 0 4px;
  color: color-mix(in srgb, var(--sa-ink-soft) 70%, transparent); text-decoration: none;
  transition: color .18s var(--sa-ease);
}
.lang a + a::before {
  content: ""; position: absolute; left: -1px; top: 50%; width: 1px; height: 12px; transform: translateY(-50%);
  background: var(--sa-line);
}
.lang a::after {
  content: ""; position: absolute; left: 50%; bottom: 9px; width: 14px; height: 1.5px; border-radius: 1px;
  background: currentColor; transform: translateX(-50%) scaleX(0); transition: transform .22s var(--sa-ease);
}
.lang a:hover { color: var(--sa-ink); }
.lang a[aria-current="true"] { color: var(--sa-ink); }
.lang a[aria-current="true"]::after { transform: translateX(-50%) scaleX(1); }
.lang a:focus-visible { outline-offset: -2px; border-radius: 6px; }
.nav__end .lang { margin-right: 8px; }

/* Telefonda seçici üst çubukta, menü düğmesinin yanında durur; menünün içinde ikinci kopyaya gerek yok. */
.menu .lang { display: none; }
@media (max-width: 900px) { .nav__end .lang { margin-right: 0; } }
main { display: block; }

/* --- Kartlar ve satırlar --------------------------------------------------- */
.window {
  background: var(--sa-surface); border-radius: var(--sa-radius-l);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--sa-ink) 6%, transparent), 0 24px 60px -24px color-mix(in srgb, var(--sa-ink) 28%, transparent);
  overflow: hidden;
}
.window__bar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--sa-line); font-size: 13px; color: var(--sa-ink-soft); }
.window__dots { display: flex; gap: 6px; }
.window__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--sa-line); }
.rows { border-top: 1px solid var(--sa-line); }
.rows > li, .rows > div { border-bottom: 1px solid var(--sa-line); }

/* --- Alt bilgi ------------------------------------------------------------- */
.closing { padding-block: clamp(96px, 14vh, 160px) 40px; }
.closing__cta { display: grid; gap: 24px; max-width: 900px; }
.closing__word {
  margin-top: clamp(72px, 12vh, 140px);
  font-size: clamp(54px, 15vw, 222px); line-height: .82; font-weight: 500; letter-spacing: -0.06em;
  display: flex; align-items: flex-end; gap: .04em; white-space: nowrap; overflow: hidden;
}
.closing__word svg { width: .74em; height: .74em; flex: none; margin-bottom: .02em; }
.foot { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--sa-line); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; font-size: 15px; }
.foot h2 { font-size: 14px; font-weight: 500; letter-spacing: 0; margin-bottom: 14px; color: var(--sa-ink); }
.foot ul { display: grid; gap: 8px; }
.foot a { color: var(--sa-ink-soft); text-decoration: none; transition: color .16s var(--sa-ease); }
.foot a:hover { color: var(--sa-ink); }
.legal { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; color: var(--sa-ink-soft); }
.legal a { color: inherit; }
@media (max-width: 700px) { .foot { grid-template-columns: 1fr 1fr; } }

/* --- Hareket ---------------------------------------------------------------
   Giriş: yalnızca açılışta bir kez. Kaydırma: yalnızca [data-scene] bölümleri.
   Azaltılmış harekette her şey son halinde durur, hiçbir şey gizli kalmaz. */
.js [data-enter] > * { opacity: 0; transform: translateY(14px); }
.js.is-ready [data-enter] > * {
  opacity: 1; transform: none;
  transition: opacity .8s var(--sa-ease), transform .8s var(--sa-ease);
  transition-delay: calc(var(--i, 0) * 70ms + 80ms);
}
@media (hover: hover) and (pointer: fine) {
  a.lift { transition: transform .2s var(--sa-ease); }
  a.lift:hover { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .js [data-enter] > * { opacity: 1; transform: none; }
}
