/* =============================================================
 * ai.css — AI Transformation bölümü (/services) ve üç kapı sayfası.
 * Sitenin token'ları ve 838px kolonu kullanılır; yeni font/renk yok.
 * Dil: sakin yüzey bandı, ince çizgiler, magenta alıntı etiketleri,
 * numaralı adımlar ve küçük süre hapı. Görsel (raster) kullanılmaz.
 * ============================================================= */

/* ---- Ortak: ok her zaman görünen bağlantı (kopyadaki "→" ile aynı) ---- */
.ai-link .btn__arrow {
  max-width: 24px;
  opacity: 1;
  margin-left: 0;
  transition: transform var(--transition);
}
.ai-link:hover .btn__arrow { transform: translateX(3px); }
.ai-link--light,
.ai-link--light:hover { color: var(--c-on-dark); }

.ai-section-title {
  font-family: var(--font-heading); font-weight: 500; font-size: 26px; line-height: 36px;
  color: #000; margin: 0 0 32px;
}

/* =============================================================
 * /services — AI Transformation bandı
 * ============================================================= */
.svc .svc-hero { padding-bottom: 96px; }

.ai-band {
  background: var(--c-bg);
  padding: 0;
}
/* Başlık "Product & Software Engineering" ile aynı ölçüde (svc-expertise__title). */
.ai-band__title {
  font-family: var(--font-heading); font-weight: 500; font-size: 26px; line-height: 36px;
  color: #000; margin: 0;
}
.ai-band__lead {
  font-family: var(--font-body); font-weight: 500; font-size: 18px; line-height: 28px;
  color: var(--c-primary); margin: 6px 0 0;
}
.ai-band__intro {
  font-family: var(--font-body); font-size: 16px; line-height: 26px;
  color: var(--c-body); max-width: 744px; margin: 24px 0 0;
}

/* Üç kapı: tek panel (flip kartlarla aynı köşe ve çerçeve), hücreler ince dikey çizgiyle
   ayrılır. Tipografi Services kartlarıyla aynı (Lora 20 başlık, Manrope 14 metin); hover'da
   yüzey açık maviye döner ve ok sağ alt köşeye kayar (svc-card davranışı). */
.ai-doors {
  margin-top: 48px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.ai-door {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 248px;
  padding: 28px 28px 24px;
  color: inherit; text-decoration: none;
  transition: background-color var(--transition);
}
.ai-door + .ai-door { border-left: 1px solid var(--c-border); }
.ai-door:hover,
.ai-door:focus-visible { background: var(--c-primary-50); }
.ai-door:focus-visible { outline: 2px solid var(--c-primary); outline-offset: -2px; }
.ai-door__tag {
  font-family: var(--font-body); font-weight: 600; font-size: 13px; line-height: 20px;
  color: var(--c-secondary);
  min-height: 40px; /* iki satır: etiket kısa da olsa başlıklar aynı hizada başlar */
}
.ai-door__title {
  font-family: var(--font-heading); font-weight: 500; font-size: 20px; line-height: 30px;
  color: #000; margin: 10px 0 0;
}
.ai-door__text {
  flex: 1;
  font-family: var(--font-body); font-size: 14px; line-height: 20px;
  color: var(--c-body); margin: 8px 0 0;
}
.ai-door__link {
  margin-top: 20px;
  font-family: var(--font-body); font-weight: 600; font-size: 14px; line-height: 20px;
  color: var(--c-heading);
  transition: color var(--transition);
}
.ai-door:hover .ai-door__link { color: var(--c-primary); }
/* Ok: Services kartındaki gibi kart dışından sağ alt köşeye kayar. */
.ai-door__arrow {
  position: absolute; right: -24px; bottom: -24px; width: 24px; height: 24px;
  transition: right var(--transition), bottom var(--transition);
}
.ai-door:hover .ai-door__arrow,
.ai-door:focus-visible .ai-door__arrow { right: 20px; bottom: 22px; }

/* Discovery şeridi (Workshops sayfasındaki "After the workshop" da aynı kalıbı kullanır) */
.ai-discovery {
  margin-top: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 32px;
  scroll-margin-top: 96px;
}
.ai-discovery__title {
  font-family: var(--font-heading); font-weight: 500; font-size: 22px; line-height: 30px;
  color: var(--c-heading); margin: 0;
}
.ai-discovery__text {
  font-family: var(--font-body); font-size: 15px; line-height: 24px;
  color: var(--c-body); max-width: 520px; margin: 8px 0 0;
}
.ai-discovery__btn { flex-shrink: 0; white-space: nowrap; }
.ai-discovery .ai-link { flex-shrink: 0; align-self: center; white-space: nowrap; }

/* Orbi kanıt şeridi (koyu, footer rengi) */
.ai-orbi {
  margin-top: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  background: var(--c-dark);
  border-radius: var(--radius);
  padding: 32px;
  position: relative; overflow: hidden; isolation: isolate;
}
/* Orbi logotype (Outfit 800, pembe "o") ve sağ altta filigran halka: ana sayfadaki Orbi
   bandıyla aynı kimlik. */
.ai-orbi__logo {
  display: inline-block; margin-bottom: 14px;
  font-family: 'Outfit', var(--font-body); font-weight: 800; font-size: 26px; line-height: 1;
  letter-spacing: -0.03em; color: var(--c-on-dark);
}
.ai-orbi__logo-o { color: #d6006e; }
.ai-orbi__ring {
  position: absolute; z-index: -1;
  right: -110px; top: -130px;
  width: 240px; height: 240px; border-radius: 50%;
  border: 48px solid rgba(214, 0, 110, .22);
  pointer-events: none;
}
.ai-orbi__title {
  font-family: var(--font-heading); font-weight: 500; font-size: 20px; line-height: 30px;
  color: var(--c-on-dark); margin: 0;
}
.ai-orbi__text {
  font-family: var(--font-body); font-size: 15px; line-height: 24px;
  color: var(--c-on-dark-muted); max-width: 540px; margin: 6px 0 0;
}
.ai-orbi__body > .ai-orbi__text:first-child { margin-top: 0; }
.ai-orbi .ai-link { flex-shrink: 0; align-self: center; white-space: nowrap; }

/* Engineering bölümü: 7 kart, 3 sütun → ilk iki satırın altında çizgi */
.svc-eng { margin-top: 96px; scroll-margin-top: 96px; }
.svc .svc-grid .svc-card:nth-child(-n+6) { border-bottom: 1px solid var(--c-border); }

/* =============================================================
 * Kapı sayfaları
 * ============================================================= */
.ai-hero { margin-top: 40px; padding-top: 112px; }
.ai-hero__back {
  display: inline-flex; gap: 6px; align-items: center;
  font-family: var(--font-body); font-size: 14px; font-weight: 500; line-height: 20px;
  color: var(--c-body); margin-bottom: 24px;
  transition: color var(--transition);
}
.ai-hero__back:hover { color: var(--c-primary); }
.ai-hero__title {
  font-family: var(--font-heading); font-weight: 600; font-size: 46px; line-height: 56px;
  color: var(--c-heading); margin: 0;
}
.ai-hero__lead {
  font-family: var(--font-body); font-size: 18px; line-height: 28px;
  color: var(--c-body); max-width: 744px; margin: 15px 0 0;
}
.ai-hero__lead .hl { font-weight: 700; color: var(--c-secondary); }

.ai-steps,
.ai-packages,
.ai-statement,
.ai-measure,
.ai-add,
.ai-path,
.ai-orbi-wrap { margin-top: 96px; }
.ai-cta { margin-top: 96px; }

/* Numaralı adımlar: daireler ince çizgiyle bağlanır */
.ai-steps__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
}
.ai-steps__item { position: relative; padding-top: 52px; }
.ai-steps__item::before {
  content: ""; position: absolute; top: 16px; left: 40px; right: -16px; height: 1px;
  background: var(--c-border);
}
.ai-steps__item:last-child::before { display: none; }
.ai-steps__num {
  position: absolute; top: 0; left: 0;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--c-primary); background: var(--c-bg);
  display: grid; place-items: center;
  font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: .5px;
  color: var(--c-primary);
}
.ai-steps__title {
  font-family: var(--font-heading); font-weight: 500; font-size: 18px; line-height: 26px;
  color: var(--c-heading); margin: 0;
}
.ai-steps__text {
  font-family: var(--font-body); font-size: 14px; line-height: 22px;
  color: var(--c-body); margin: 8px 0 0;
}
.ai-steps__note {
  font-family: var(--font-body); font-style: italic; font-size: 14px; line-height: 22px;
  color: var(--c-body); margin: 32px 0 0; padding-top: 16px;
  border-top: 1px solid var(--c-border);
}

/* Workshop paketleri: solda ad + süre hapı + özet, sağda modüller */
.ai-package {
  display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px;
  padding: 40px 0;
  border-top: 1px solid var(--c-border);
  scroll-margin-top: 96px;
}
.ai-package:last-child { border-bottom: 1px solid var(--c-border); }
.ai-package__title {
  font-family: var(--font-heading); font-weight: 500; font-size: 24px; line-height: 32px;
  color: var(--c-heading); margin: 0;
}
.ai-pill {
  display: inline-block; margin-top: 12px;
  padding: 4px 12px; border-radius: var(--radius-pill);
  background: var(--c-primary-50); border: 1px solid var(--c-primary-100);
  font-family: var(--font-body); font-size: 12px; line-height: 16px; font-weight: 600;
  color: var(--c-primary);
}
.ai-package__text {
  font-family: var(--font-body); font-size: 14px; line-height: 22px;
  color: var(--c-body); margin: 16px 0 0;
}
/* Paket satırındaki rezervasyon bağlantısı (paketi seçili açar) */
.ai-package__book { margin-top: 20px; }
.ai-modules { list-style: none; margin: 0; padding: 0; }
.ai-modules__item {
  font-family: var(--font-body); font-size: 14px; line-height: 22px; color: var(--c-body);
  padding: 12px 0; border-bottom: 1px solid var(--c-border);
}
.ai-modules__item:first-child { padding-top: 0; }
.ai-modules__item:last-child { border-bottom: 0; padding-bottom: 0; }
.ai-modules__item strong { font-weight: 600; color: var(--c-heading); }

.ai-format {
  margin: 48px 0 0;
  background: var(--c-surface); border-radius: 2px; padding: 20px 24px;
  font-family: var(--font-body); font-size: 15px; line-height: 24px; color: var(--c-body);
}
.ai-after .ai-discovery { margin-top: 0; }
.ai-after { margin-top: 16px; }

/* Automation: neden ölçerek başlıyoruz */
.ai-statement > * { padding-left: 32px; border-left: 2px solid var(--c-secondary); }
.ai-statement__title {
  font-family: var(--font-heading); font-weight: 500; font-size: 30px; line-height: 40px;
  color: var(--c-heading); margin: 0; padding-bottom: 16px;
}
.ai-statement__text {
  font-family: var(--font-body); font-size: 16px; line-height: 26px;
  color: var(--c-body); max-width: 776px; margin: 0;
}

/* Automation: ne ölçüyoruz */
.ai-measure__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ai-measure__item { border-top: 1px solid var(--c-heading); padding-top: 20px; }
.ai-measure__title {
  font-family: var(--font-heading); font-weight: 500; font-size: 20px; line-height: 30px;
  color: var(--c-heading); margin: 0;
}
.ai-measure__text {
  font-family: var(--font-body); font-size: 14px; line-height: 22px;
  color: var(--c-body); margin: 8px 0 0;
}

/* Existing Systems: ne ekliyoruz (2×2) */
.ai-add__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ai-add__card {
  border: 1px solid var(--c-border); border-radius: 2px; padding: 28px 24px;
  transition: background-color var(--transition);
}
.ai-add__card:hover { background: var(--c-surface); }
.ai-add__title {
  font-family: var(--font-heading); font-weight: 500; font-size: 20px; line-height: 30px;
  color: var(--c-heading); margin: 0;
}
.ai-add__text {
  font-family: var(--font-body); font-size: 14px; line-height: 22px;
  color: var(--c-body); margin: 8px 0 0;
}
.ai-add__modernize {
  margin: 32px 0 0;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px;
  font-family: var(--font-body); font-size: 16px; line-height: 26px; color: var(--c-body);
}

/* Existing Systems: veri ve güvenlik (koyu bant) */
.ai-secure { margin-top: 96px; background: var(--c-dark); padding: 80px 0; }
.ai-secure__title {
  font-family: var(--font-heading); font-weight: 500; font-size: 30px; line-height: 40px;
  color: var(--c-on-dark); margin: 0;
}
.ai-secure__text {
  font-family: var(--font-body); font-size: 16px; line-height: 26px;
  color: var(--c-on-dark-muted); max-width: 640px; margin: 16px 0 0;
}

/* Existing Systems: yolculuk cümlesi + dört noktalı çizgi */
.ai-path__text {
  font-family: var(--font-body); font-weight: 500; font-size: 18px; line-height: 28px;
  color: var(--c-heading); margin: 0;
}
.ai-path__line {
  list-style: none; margin: 24px 0 0; padding: 0;
  display: flex; max-width: 620px;
}
.ai-path__line li {
  position: relative; flex: 1;
  padding-top: 22px;
  font-family: var(--font-body); font-size: 13px; line-height: 18px; font-weight: 600;
  color: var(--c-body);
}
.ai-path__line li:last-child { flex: 0 0 auto; }
.ai-path__line li::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 9px; height: 9px; border-radius: 50%;
  border: 1px solid var(--c-primary); background: var(--c-bg);
}
.ai-path__line li::after {
  content: ""; position: absolute; top: 4px; left: 15px; right: 6px; height: 1px;
  background: var(--c-border);
}
.ai-path__line li:last-child::after { display: none; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .ai-doors { grid-template-columns: 1fr; }
  .ai-door { min-height: 0; }
  .ai-door + .ai-door { border-left: 0; border-top: 1px solid var(--c-border); }
  .ai-door__arrow { display: none; } /* dokunmatikte hover yok */
  .ai-discovery,
  .ai-orbi { flex-direction: column; align-items: flex-start; gap: 20px; }
  .ai-discovery .ai-link,
  .ai-orbi .ai-link { align-self: flex-start; }


  .ai-steps,
  .ai-packages,
  .ai-statement,
  .ai-measure,
  .ai-add,
  .ai-path,
  .ai-orbi-wrap,
  .ai-cta,
  .ai-secure,
  .svc-eng { margin-top: 72px; }

  /* Adımlar dikey: çizgi numaraların altından aşağı iner */
  .ai-steps__list { grid-template-columns: 1fr; gap: 0; }
  .ai-steps__item { padding: 4px 0 32px 52px; }
  .ai-steps__item:last-child { padding-bottom: 0; }
  .ai-steps__item::before { top: 40px; bottom: 8px; left: 16px; right: auto; width: 1px; height: auto; }

  .ai-package { grid-template-columns: 1fr; gap: 24px; padding: 32px 0; }
  .ai-measure__grid,
  .ai-add__grid { grid-template-columns: 1fr; }
  .ai-secure { padding: 64px 0; }
}
@media (max-width: 560px) {
  .ai-hero { padding-top: 72px; }
  .ai-hero__title { font-size: 34px; line-height: 42px; }
  .ai-band__lead { font-size: 16px; line-height: 24px; }
  .ai-door { padding: 24px 20px; }
  .ai-door__tag { min-height: 0; }
  .ai-discovery,
  .ai-orbi { padding: 24px 20px; }
  .ai-discovery__btn { white-space: normal; }
  .ai-statement > * { padding-left: 20px; }
  .ai-statement__title,
  .ai-secure__title { font-size: 24px; line-height: 32px; }
  .ai-path__line li { font-size: 12px; }
}
