/* Sektör açılış sayfası. home.css (.hp) üzerine gelir; yalnız .sx kapsamı. Düz zemin, ince çizgi, gradyan/parıltı yok. */
.sx { --sx-r: 12px; --sx-dark: #0e1b2a; }

/* Hero */
.sx-hero { padding-block: clamp(20px, 3vw, 36px) clamp(40px, 6vw, 72px); }
.sx .mk-crumbs ol { margin: 0 0 clamp(28px, 4vw, 48px); font-family: var(--f); }
.sx-hero__top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px clamp(32px, 6vw, 88px); align-items: end; margin-bottom: clamp(32px, 4vw, 52px); }
.sx-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.sx-eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--live); }
.sx .sx-h1 { font-size: clamp(2.1rem, 1.2rem + 3.2vw, 3.9rem); line-height: 1.04; letter-spacing: -.045em; }
.sx .sx-lead { color: var(--ink-2); font-size: var(--t-md); line-height: 1.55; }
.sx-hero__side .hp-acts { margin-top: 24px; }
@media (max-width: 900px) { .sx-hero__top { grid-template-columns: 1fr; } }

/* Tarayıcı çerçevesi (canlı demo) */
.sx-demo { position: relative; }
.sx-browser { border: 1px solid #c9d0de; border-radius: 14px; overflow: hidden; background: var(--paper); box-shadow: 0 30px 70px -40px rgba(14, 27, 42, .45), 0 2px 6px rgba(14, 27, 42, .06); }
.sx-bar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: #eef1f6; border-bottom: 1px solid #d5dae5; }
.sx-dots { display: flex; gap: 7px; flex: none; }
.sx-dots i { width: 11px; height: 11px; border-radius: 50%; background: #cdd3e0; }
.sx-addr { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; max-width: 720px; margin-inline: auto; padding: 5px 6px 5px 12px; background: var(--paper); border: 1px solid #d5dae5; border-radius: 999px; font-size: .8125rem; color: var(--ink-2); }
.sx-addr > svg { flex: none; color: var(--live-ink); }
.sx-addr__url { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-live {
  flex: none; color: var(--ink-2); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding-left: 10px; border-left: 1px solid #d5dae5;
}
.sx .sx-ext { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: var(--ink-2); text-decoration: none; }
.sx .sx-ext:hover { background: var(--paper); color: var(--ink); }
.sx-stage { display: grid; background: var(--wash); }
.sx-stage > .sx-shot { grid-area: 1 / 1; }
.sx-shot { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; color: inherit; }
.sx-shot[hidden] { display: none; }
.sx-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .6s var(--mk-ease); }
.sx-shot__cta { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(14, 27, 42, .38); opacity: 0; transition: opacity .25s ease; }
.sx-shot__cta > span { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 8px; background: var(--paper); color: var(--ink); font-weight: 700; }
.sx-shot:hover .sx-shot__cta, .sx-shot:focus-visible .sx-shot__cta { opacity: 1; }
.sx-shot:hover img { transform: scale(1.015); }
@media (hover: none) { .sx-shot__cta { display: none; } }
.sx-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.sx-tabs button { font: 600 .875rem/1 var(--f); color: var(--ink-2); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 11px 16px; cursor: pointer; transition: border-color .2s, color .2s, background-color .2s; }
.sx-tabs button:hover { color: var(--ink); border-color: var(--ink-2); }
.sx-tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.sx .sx-demo__cap { margin-top: 14px; font-size: .875rem; color: var(--ink-2); }
.sx-demo.is-rot .sx-shot { opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s linear .45s; }
.sx-demo.is-rot .sx-shot.is-on { opacity: 1; visibility: visible; transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) { .sx-demo.is-rot .sx-shot, .sx-shot img, .sx-shot__cta { transition: none; } }
@media (max-width: 640px) {
  .sx-bar { padding: 8px 10px; gap: 8px; }
  .sx-dots { display: none; }
  .sx-addr { margin-inline: 0; }
  .sx-live { display: none; }
  .sx-shot { aspect-ratio: 4 / 3; }
}

/* Şablonu olmayan sektör: sayı özeti */
.sx-glance { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--sx-r); background: var(--wash); }
.sx-glance div { padding: clamp(18px, 3vw, 32px); border-left: 1px solid var(--line); }
.sx-glance div:first-child { border-left: 0; }
.sx-glance dt { font-size: .875rem; color: var(--ink-2); font-weight: 600; }
.sx-glance dd { margin: 6px 0 0; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem); letter-spacing: -.04em; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .sx-glance { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sx-glance div:nth-child(3) { border-left: 0; } .sx-glance div:nth-child(n+3) { border-top: 1px solid var(--line); } }

.hp .sx-kicker, .hp .hp-head p.sx-kicker { margin: 0 0 14px; font-size: .8125rem; line-height: 1.2; color: var(--live-ink); }
.sx-kicker { margin-bottom: 14px; font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--live-ink); }

/* Sorunlar */
.sx-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(32px, 6vw, 88px); align-items: start; }
.sx-split__head { position: sticky; top: 96px; }
.sx-problems { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.sx-problems li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 8px; align-items: baseline; padding-block: 26px; border-bottom: 1px solid var(--line); }
.sx-problems__n { font-size: 1rem; font-weight: 800; color: var(--live-ink); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.sx .sx-problems p { font-size: var(--t-md); line-height: 1.5; color: var(--ink); letter-spacing: -.01em; }
@media (max-width: 860px) { .sx-split { grid-template-columns: 1fr; } .sx-split__head { position: static; } }

/* Modüller */
.sx-modules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.sx-module { display: flex; flex-direction: column; gap: 12px; padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--sx-r); transition: border-color .2s, transform .2s; }
.sx-module:hover { border-color: var(--ink-2); transform: translateY(-2px); }
.sx-module__icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 8px; border-radius: 10px; background: var(--ink); color: #fff; }
.sx-module h3 { font-size: var(--t-lg); letter-spacing: -.025em; font-weight: 800; line-height: 1.2; }
.sx .sx-module p { color: var(--ink-2); }
@media (max-width: 960px) { .sx-modules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .sx-modules { grid-template-columns: 1fr; } .sx-module { padding: 22px; } }
@media (prefers-reduced-motion: reduce) { .sx-module { transition: none; } .sx-module:hover { transform: none; } }

/* Hazır sayfalar: şablonun gerçek sayfa görüntüleri */
.sx .sx-pageset__name { margin-bottom: 20px; font-weight: 700; color: var(--ink-2); font-size: .9375rem; }
.sx-pageset[hidden] { display: none; }
.sx-shots { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.sx-pshot a { display: grid; gap: 12px; color: inherit; text-decoration: none; }
.sx-pshot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border: 1px solid var(--line); border-radius: 10px; background: var(--wash); transition: border-color .2s, transform .25s var(--mk-ease); }
.sx-pshot a:hover img, .sx-pshot a:focus-visible img { border-color: var(--ink-2); transform: translateY(-2px); }
.sx-pshot__name { font-weight: 700; letter-spacing: -.01em; }
.sx-pshot__name::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--live); transform: translateY(-.1em); }
.sx-pagelist { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sx-pagelist li { padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: .9375rem; }
@media (max-width: 960px) { .sx-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sx-shots { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .sx-pshot img { transition: none; } .sx-pshot a:hover img { transform: none; } }

/* Şablon kartları (ortak partial'ı bu sayfanın diline uydurur) */
.sx .mk-tpl, .sx .mk-empty { border-radius: var(--sx-r); box-shadow: none; border-color: var(--line); background: var(--paper); font-family: var(--f); }
.sx .mk-tpl:hover { transform: none; box-shadow: none; border-color: var(--ink-2); }
.sx .mk-tpl__title { font-family: var(--f); letter-spacing: -.02em; font-weight: 800; }
.sx .mk-btn { border-radius: 8px; }
.sx .mk-btn--primary { background: var(--btn); box-shadow: none; }
.sx .mk-btn--primary:hover { background: var(--btn-hover); }
.sx .mk-btn:hover { transform: none; }
.sx-more { margin-top: 32px; }
.sx .sx-more .hp-btn { text-decoration: none; }

/* SSS, diğer sektörler, kapanış */
.sx .hp-faq > h2 { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.3rem); }
.sx-others { padding-block: clamp(40px, 5vw, 64px); }
.sx-others .hp-h3 { margin-bottom: 18px; }
.sx .mk-chips { margin: 0; }
.sx .mk-chip { border-color: var(--line); font-family: var(--f); }
.sx .mk-chip:hover { border-color: var(--ink); color: var(--ink); }
.sx-close__acts { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) { .sx-close__acts .hp-btn { flex: 1 1 14rem; } }

/* Tek şablon varsa kart yatay açılır */
@media (min-width: 760px) {
  .sx-tpls:has(> .mk-tpl:only-child) { grid-template-columns: minmax(0, 1fr); }
  .sx-tpls > .mk-tpl:only-child { flex-direction: row; }
  .sx-tpls > .mk-tpl:only-child .mk-tpl__media { flex: 0 0 58%; aspect-ratio: auto; min-height: 340px; border-bottom: 0; border-right: 1px solid var(--line); }
  .sx-tpls > .mk-tpl:only-child .mk-tpl__body { flex: 1; justify-content: center; padding: clamp(24px, 3vw, 40px); }
}

.sx-capbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 16px; }
.sx .sx-capbar .sx-demo__cap { margin: 0; flex: 1 1 16rem; }
.sx-capbar .hp-btn { gap: 8px; }
