/* ─── lexone.com — stil ─────────────────────────────────────────────
 *
 * TEK DOSYA, HARİCİ BAĞIMLILIK YOK. Yazı tipi işletim sisteminin
 * kendi yüzüdür: Google Fonts bağlantısı, gizlilik sayfasında
 * "üçüncü taraf betiği/kaynağı kullanılmaz" cümlesini yalanlardı ve
 * ilk boyayı bir ağ turu geciktirirdi.
 *
 * ─── Renk ───
 *
 * Beyaz / koyu lacivert / turkuaz. Lacivert kurumsal ağırlık, turkuaz
 * yalnız VURGU için — gövde metninde kullanılmaz, çünkü turkuazın
 * beyaz üzerindeki kontrastı metin için yetersizdir.
 *
 * ─── Kontrast ───
 *
 * Gövde metni #1c2b3f / beyaz = 11.6:1. İkincil metin #475569 /
 * beyaz = 7.5:1. Turkuaz yalnız lacivert üzerinde (#2fd3c4 / #0b1f3a
 * = 9.1:1) ya da dekoratif olarak kullanılır. Hepsi WCAG AA'nın
 * (4.5:1) üzerinde.
 */

:root {
  --navy-900: #071527;
  --navy-800: #0b1f3a;
  --navy-700: #15304f;
  --navy-100: #e8eef5;
  --teal-500: #0f8f84;   /* beyaz üzerinde metin için: 4.7:1 */
  --teal-400: #2fd3c4;   /* lacivert üzerinde vurgu */
  --ink: #1c2b3f;
  --ink-soft: #475569;
  --line: #d7e0ea;
  --bg: #ffffff;
  --bg-soft: #f6f9fc;
  --radius: 10px;
  --wrap: 1120px;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    'Noto Sans', sans-serif;
}

/* ─── Koyu kip ───
 *
 * İşletim sistemi tercihine uyar. Ayrı bir düğme YOK: tercihi zaten
 * işletim sisteminde belirtmiş birine ikinci bir anahtar sunmak,
 * saklanması gereken bir durum ve bir çerez daha demektir.
 */
@media (prefers-color-scheme: dark) {
  :root {
    --navy-100: #16263c;
    --ink: #e6edf5;
    --ink-soft: #a9bace;
    --line: #22364f;
    --bg: #081426;
    --bg-soft: #0c1d33;
    --teal-500: #2fd3c4;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  /* Türkçe ve İtalyanca metinde tireleme olmadan uzun kelimeler
   * dar ekranda taşabiliyor. */
  overflow-wrap: break-word;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  /* 16px yan boşluk: telefonda metin kenara yapışmasın. */
  padding-inline: 16px;
}

/* ─── Erişilebilirlik ───────────────────────────────────────────── */

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--navy-800);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 var(--radius) 0;
}

.skip:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--teal-500);
  outline-offset: 2px;
}

/* ─── Üst çubuk ─────────────────────────────────────────────────── */

.top {
  background: var(--navy-800);
  color: #fff;
  border-bottom: 1px solid var(--navy-700);
}

.top__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding-block: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 650;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  margin-inline-end: auto;
}

.brand__mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--teal-400), #1b8f88);
  flex: none;
}

.brand__name em {
  font-style: italic;
  color: var(--teal-400);
  font-weight: 500;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.nav a {
  color: #cfe0f0;
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  font-size: 0.975rem;
}

.nav a:hover,
.nav a:focus-visible {
  color: #fff;
  border-bottom-color: var(--teal-400);
}

.nav a[aria-current='page'] {
  color: #fff;
  border-bottom-color: var(--teal-400);
}

.langs {
  display: flex;
  gap: 10px;
  font-size: 0.85rem;
}

.langs a {
  color: #9fb6cd;
  text-decoration: none;
}

.langs a:hover,
.langs a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.langs [aria-current='true'] {
  color: var(--teal-400);
  font-weight: 600;
}

/* Mobil menü düğmesi. HTML'de `hidden`; betik açar. Böylece betik
 * çalışmazsa menü görünür kalır. */
.burger {
  display: none;
  background: transparent;
  border: 1px solid var(--navy-700);
  border-radius: 8px;
  color: #fff;
  width: 42px;
  height: 38px;
  cursor: pointer;
  position: relative;
}

.burger span[aria-hidden] {
  position: absolute;
  inset: 50% 10px auto;
  height: 2px;
  background: #fff;
  box-shadow: 0 -6px 0 #fff, 0 6px 0 #fff;
}

@media (max-width: 860px) {
  .burger:not([hidden]) {
    display: block;
  }
  .nav {
    flex-basis: 100%;
    flex-direction: column;
    gap: 0;
  }
  .nav[data-collapsed='true'] {
    display: none;
  }
  .nav a {
    padding: 10px 0;
    border-bottom: 1px solid var(--navy-700);
    border-left: 2px solid transparent;
  }
  .nav a[aria-current='page'] {
    border-left-color: var(--teal-400);
    padding-left: 8px;
  }
}

/* ─── Kahraman ──────────────────────────────────────────────────── */

.hero {
  padding-block: clamp(36px, 7vw, 76px) 8px;
  max-width: 54ch;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal-500);
  font-weight: 650;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 4.6vw, 3rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-weight: 680;
}

.hero__text {
  margin: 0;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--ink-soft);
}

/* ─── Bölümler ──────────────────────────────────────────────────── */

.section {
  padding-block: 28px;
  border-top: 1px solid var(--line);
  max-width: 68ch;
}

.section:first-of-type {
  border-top: 0;
  padding-top: 20px;
}

h2 {
  margin: 0 0 10px;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 650;
}

.section p {
  margin: 0 0 12px;
  color: var(--ink-soft);
}

.list {
  margin: 0 0 12px;
  padding-left: 1.1em;
  color: var(--ink-soft);
}

.list li {
  margin-bottom: 6px;
}

/* ─── Yetenek durumu ────────────────────────────────────────────────
 *
 * Durum YALNIZ renkle anlatılmaz: her satır METİN etiketi taşır.
 * Renk körü bir kullanıcı için "yeşil nokta" hiçbir şey söylemez.
 */

.caps {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.cap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.85rem;
}

.cap__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
  background: var(--ink-soft);
}

.cap__id {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-inline-end: auto;
}

.cap__state {
  font-weight: 600;
}

.cap--canli .cap__dot {
  background: #0f8f84;
}
.cap--canli .cap__state {
  color: #0b6f66;
}

.cap--saglayici_gerekli .cap__dot {
  background: #b8761a;
}
.cap--saglayici_gerekli .cap__state {
  color: #8a5a12;
}

.cap--gelistiriliyor .cap__dot {
  background: #3f6ea8;
}
.cap--gelistiriliyor .cap__state {
  color: #2f5582;
}

.cap--yok .cap__dot {
  background: #8d97a3;
}
.cap--yok .cap__state {
  color: #5c6675;
}

@media (prefers-color-scheme: dark) {
  .cap--canli .cap__state {
    color: #4fd8ca;
  }
  .cap--saglayici_gerekli .cap__state {
    color: #e7b55f;
  }
  .cap--gelistiriliyor .cap__state {
    color: #8fb6e8;
  }
  .cap--yok .cap__state {
    color: #aab6c4;
  }
}

/* ─── Eylem çağrısı ─────────────────────────────────────────────── */

.cta {
  margin-block: 36px 8px;
  padding: clamp(22px, 4vw, 36px);
  background: var(--navy-800);
  color: #fff;
  border-radius: 14px;
}

.cta h2 {
  margin: 0 0 18px;
  max-width: 42ch;
  color: #fff;
}

.cta__actions {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 650;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn--primary {
  background: var(--teal-400);
  color: var(--navy-900);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: #4fe0d1;
}

.btn--ghost {
  border-color: #46617f;
  color: #fff;
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--teal-400);
}

/* ─── Dürüstlük notu ────────────────────────────────────────────── */

.honesty {
  margin: 28px 0 44px;
  padding: 14px 16px;
  border-left: 3px solid var(--teal-500);
  background: var(--bg-soft);
  color: var(--ink-soft);
  font-size: 0.9rem;
  max-width: 72ch;
}

/* ─── Form ──────────────────────────────────────────────────────── */

.form {
  max-width: 44rem;
}

.form__row {
  margin-bottom: 16px;
  display: grid;
  gap: 6px;
}

.form label {
  font-weight: 600;
  font-size: 0.95rem;
}

.req {
  color: var(--ink-soft);
  font-weight: 400;
  font-size: 0.85rem;
}

.form input,
.form textarea {
  font: inherit;
  color: inherit;
  background: var(--bg);
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 100%;
}

.form textarea {
  resize: vertical;
  min-height: 7rem;
}

.form input:invalid:not(:placeholder-shown),
.form textarea:invalid:not(:placeholder-shown) {
  border-color: #b3261e;
}

.form__consent {
  font-size: 0.85rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

.form__status {
  min-height: 1.5em;
  margin: 12px 0 0;
  font-weight: 600;
}

.form__status--ok {
  color: #0b6f66;
}

.form__status--fail {
  color: #b3261e;
}

.form__fallback {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.form__fallback a,
.section a {
  color: var(--teal-500);
}

/* ─── Alt bilgi ─────────────────────────────────────────────────── */

.foot {
  margin-top: 20px;
  background: var(--navy-900);
  color: #c6d6e6;
  padding-block: 30px 36px;
  font-size: 0.9rem;
}

.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 18px;
}

.foot__links a {
  color: #c6d6e6;
  text-decoration: none;
}

.foot__links a:hover,
.foot__links a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.foot__legal {
  margin: 0 0 10px;
  max-width: 76ch;
  color: #9db1c6;
}

.foot__brand {
  margin: 0;
  color: #7e94ab;
}

/* ─── Yazdırma ──────────────────────────────────────────────────── */

@media print {
  .top,
  .foot,
  .cta,
  .skip,
  .langs {
    display: none;
  }
  body {
    font-size: 11pt;
  }
}

/* ─── Görsel yuvaları ───────────────────────────────────────────────
 *
 * YER HER ZAMAN AYRILIR. Görsel henüz üretilmemiş olsa bile kutu
 * kendi en-boy oranında durur; dosya eklendiğinde sayfa ZIPLAMAZ
 * (CLS = 0). `--vw` / `--vh` değerleri şablondan gelir ve
 * `width`/`height` nitelikleriyle aynı sayılardır.
 */

.visual {
  margin: 20px 0 28px;
  max-width: calc(var(--vw) * 1px);
}

.visual img,
.visual__placeholder {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: var(--vw) / var(--vh);
  border-radius: 12px;
  background: var(--navy-800);
}

.visual img {
  object-fit: cover;
  /* Lacivert zemin, görsel yüklenirken beyaz bir boşluk bırakmasın. */
  border: 1px solid var(--line);
}

/* ─── Vektör yuvalar ───
 *
 * Raster kahraman görseli KIRPILARAK kutuyu doldurur (`cover`):
 * fotoğrafik bir karede kenarlardan birkaç piksel kaybetmek
 * önemsizdir.
 *
 * Vektör illüstrasyonlar öyle değil: kompozisyonun kenarındaki bir
 * nesne kırpılırsa anlatım bozulur. Onlar SIĞDIRILIR (`contain`) ve
 * artan yer, çizimin kendi açık zeminiyle aynı renkle doldurulur —
 * koyu kipte de, çünkü boşluğun rengini belirleyen şey sayfa teması
 * değil ÇİZİMİN KENDİSİ.
 */
.visual--vector img {
  object-fit: contain;
  background: #ffffff;
}

.visual figcaption {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* ─── Henüz üretilmemiş yuva ───
 *
 * SAHTE ARAYÜZ ÇİZİLMEZ. Yer tutucu bilinçli olarak soyut: bir ürün
 * ekranı taklidi, boş bir kutudan daha yanıltıcı olurdu.
 */
.visual--planned .visual__placeholder {
  display: grid;
  place-content: center;
  gap: 6px;
  text-align: center;
  padding: 16px;
  border: 1px dashed #3a5a7d;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(47, 211, 196, 0.07) 0 10px,
      transparent 10px 20px
    ),
    var(--navy-800);
}

.visual__badge {
  color: #cfe0f0;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.visual__kind {
  color: var(--teal-400);
  font-size: 0.78rem;
}

/* Gerçek ekran görüntüsü yuvası, illüstrasyondan AYIRT EDİLİR:
 * kullanıcı neye baktığını bilmeli. */
.visual--screenshot .visual__placeholder {
  border-style: solid;
  border-color: #46617f;
}

/* ─── Dört ajan ızgarası ─── */

.agent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0 26px;
  max-width: 540px;
}

.agent-grid .visual {
  margin: 0;
  max-width: none;
}

.agent-grid figcaption {
  font-size: 0.78rem;
}

@media (min-width: 700px) {
  .agent-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: none;
  }
}

/* Kahraman görseli metnin hemen altında, tam genişlikte. */
.hero + .visual {
  margin-top: 24px;
}
