/* CBA Core — ana sayfa. site.css'in üstüne gelir; yalnız <body class="home">'da geçerli.
   Yön: donanım hassasiyeti — sahne cihazı gibi sade ızgara, ince çizgiler, tek kırmızı ışık;
   açılışta önce programın kendisi: ~15 sn'lik tanıtım (anim/tanitim.js + anim/tanitim.css).
   Yazı tipi site.css'ten gelir (Archivo); "CBA CORE" yazısı uygulamadaki gibi sistem yazı tipinde kalır (site.css › .brand). */

.home {
  --wide: 1200px;
  --gutter: 20px;
  --text-2: #c4c4cc;   /* ikincil yazı */
  font-size: 17px;
  line-height: 1.6;
}
@media (min-width: 641px) { .home { --gutter: 32px; } }
@media (min-width: 1024px) { .home { --gutter: 48px; } }

.home .wrap {
  max-width: var(--wide);
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

/* Betik çalışmazsa iki dil yan yana görünür: araya ayraç */
html:not([data-active-lang]) .home span[data-lang="en"]::before { content: " · "; }

/* Yalnız ekran okuyucu için (sayfanın adı) */
.gizli {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Üst menü: Ana sayfa · Klavyeni seç (Videolar ilk video gelince). Bulunulan sayfa beyaz, altında ince kırmızı çizgi;
   telefonda menü üst şeridin ikinci satırında */
.menu { display: flex; align-items: center; gap: 0 28px; margin: 0 8px 0 auto; }
.menu a {
  padding: 10px 0;
  font: 600 15px/1.2 var(--font);
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.menu a:hover { color: var(--text); }
.menu a[aria-current="page"] {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}
/* Orta düzenin darında (İngilizce, menüde Videolar da varken) düğmeler sığsın */
@media (min-width: 641px) and (max-width: 760px) { .menu { gap: 0 20px; margin-right: 4px; } }
@media (max-width: 640px) {
  .home .top-in { flex-wrap: wrap; gap: 0 16px; min-height: 0; }
  .home .top-in .brand { height: 60px; }
  .menu { order: 3; flex-basis: 100%; gap: 0 24px; margin: 0; border-top: 1px solid var(--line); }
  .menu a { padding: 12px 0; }
}

/* Ortak parçalar */
.home h2 {
  margin: 0 0 clamp(32px, 5vw, 64px);
  max-width: 18em;
  font-size: clamp(28px, 3.8vw, 52px);
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.home h2::before { width: 32px; margin-bottom: clamp(18px, 2.4vw, 26px); }

.etiket {
  margin: 0 0 12px;
  font: 600 11px/1.2 var(--font);
  font-stretch: 125%;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Kırmızı ışık: sitedeki tek kırmızı, yalnız küçük bir nokta */
.led {
  display: inline-block;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(228, 0, 43, .14), 0 0 12px rgba(228, 0, 43, .55);
}

.bolum { padding: clamp(72px, 10vw, 140px) 0; border-top: 1px solid var(--line); }

/* Düğme: beyaz, içinde kırmızı ışık */
.dugme {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px 16px 22px;
  border-radius: 999px;
  background: var(--text);
  color: var(--ink);
  font: 600 16px/1 var(--font);
  letter-spacing: .01em;
  text-decoration: none;
  transition: background-color .2s ease, transform .2s ease;
}
.dugme:hover { background: #fff; }
.dugme:active { transform: translateY(1px); }
.dugme .led { width: 7px; height: 7px; }

/* 1 · Açılış: tanıtım (kabı #tanitim; düzeni tanitim.js verir — genis · orta · dar · yatay), altında tek satır ve düğme;
   tablet ortada durduğu için satır ve düğme de ortada; satır 1280 × 800'de ilk ekranda (Tayfun, 17 Kasım).
   App Store düğmeleri uygulama onaylanana dek gizli (HTML'de hidden) */
.hero { padding: clamp(12px, 2vw, 28px) 0 clamp(56px, 8vw, 112px); }
.hero-alt { display: grid; justify-items: center; gap: 24px; margin-top: clamp(20px, 2.5vw, 32px); text-align: center; }
.alt-soz { margin: 0; max-width: 26em; font-size: clamp(19px, 2vw, 24px); line-height: 1.4; color: var(--text-2); text-wrap: balance; }
/* Tanıtımın iki dilli parçaları (.tr / .en: yazı satırı, "Temsili çizim") sitenin dil seçimine uyar */
html[data-active-lang="tr"] .tanitim .en,
html[data-active-lang="en"] .tanitim .tr { display: none; }
/* Yatay telefon: çizim ekranın boyuna sığar; üst şerit (64 px) ve üstteki boşluk düşülür */
.home .tanitim[data-duzen="yatay"] .tn-svg { max-height: calc(100vh - 88px); max-height: calc(100svh - 88px); }
/* Tanıtım gelmeden yeri ayrılır (betikler yüklenirken sayfa zıplamasın): çizimin oranı (tanitim.js › KADRAJ) + yazı satırının
   payı. Düzenler tanitim.js'teki sınırlarla: geniş ≥1024 · yatay telefon (yatay, <1024) · orta ≥641 · dik telefon */
.tanitim-yer:empty { box-sizing: content-box; aspect-ratio: 1; padding-bottom: 62px; }
@media (min-width: 641px) { .tanitim-yer:empty { aspect-ratio: 3300 / 2475; padding-bottom: 50px; } }
@media (min-width: 1024px) { .tanitim-yer:empty { aspect-ratio: 4150 / 2100; padding-bottom: 35px; } }
@media (orientation: landscape) and (max-width: 1023px) {
  .tanitim-yer:empty { aspect-ratio: auto; height: calc(100vh - 88px); height: calc(100svh - 88px); padding-bottom: 0; }
}

/* 2 · Videolar (sahne fotoğrafının yerine): solda Kronos'un COMBI çizimi, sağda videonun görüntüsü ve bağlantısı.
   Şimdilik iskelet — ilk video gelene dek gizli; video yeri yazısız: oynat işareti ve başlığın yerini tutan çizgi */
.vd-izgara { display: grid; gap: clamp(28px, 4vw, 48px); align-items: center; }
@media (min-width: 900px) { .vd-izgara { grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); } }
.vd-sol { margin: 0; }
.vd-cizim svg { display: block; width: 100%; height: auto; }
.vd-temsili { margin-top: 8px; font-size: 13px; line-height: 1.4; color: #8C8C96; text-align: right; }
.vd-video { display: grid; gap: 16px; }
.vd-kare {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  background: #111114;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.vd-oynat {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(245, 245, 247, .08);
  border: 1px solid rgba(245, 245, 247, .3);
}
.vd-oynat::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 19px;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent var(--text);
}
.vd-satir { display: block; width: 60%; height: 12px; border-radius: 6px; background: #1d1d22; }

/* 3 · Kurulum: üç adım, altında kurulum sayfasına bağlantı */
.adimlar { display: grid; margin: 0; padding: 0; list-style: none; }
.adimlar li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: baseline;
  gap: 16px;
  margin: 0;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.adimlar li:last-child { border-bottom: 1px solid var(--line); }
.adimlar .no { font-size: 44px; font-weight: 250; font-stretch: 125%; line-height: 1; color: var(--muted); font-variant-numeric: tabular-nums; }
.adimlar .ad { font-size: clamp(21px, 2.2vw, 28px); font-weight: 560; line-height: 1.25; letter-spacing: -0.012em; }
@media (min-width: 641px) {
  .adimlar { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; }
  .adimlar li { grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 5vw, 56px); padding: 28px 0 0; }
  .adimlar li:last-child { border-bottom: 0; }
  .adimlar .no { font-size: clamp(56px, 7vw, 96px); }
}
.kurulum-git { margin: clamp(36px, 5vw, 56px) 0 0; font-size: clamp(19px, 2vw, 22px); font-weight: 600; }

/* 4 · Kapanış: App Store ve altında küçük "Desteklenen cihazlar" alanı */
.son { padding: clamp(84px, 12vw, 168px) 0 clamp(56px, 8vw, 96px); border-top: 1px solid var(--line); text-align: center; }
.son .app-ikon { display: block; width: 88px; height: 88px; margin: 0 auto 32px; border-radius: 22%; box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .95); }
.cihazlar {
  max-width: 560px;
  margin: clamp(56px, 8vw, 96px) auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
}
.cihazlar p { margin: 0; }
.cihazlar .etiket { margin-bottom: 10px; }

.home .foot { margin-top: 0; }
