/* ==========================================================================
   Nitec Yazılım — kurumsal site stil dosyası
   Tek dosya, harici bağımlılık yok (font/CDN/analytics çağrısı yapılmaz).
   ========================================================================== */

/* --- 1. Tasarım belirteçleri ------------------------------------------- */

:root {
  --bg:            #ffffff;
  --bg-soft:       #f7f8fa;
  --bg-inset:      #eef1f5;
  --text:          #10151c;
  --text-muted:    #59636f;
  --border:        #e2e6ec;
  --border-strong: #cfd6df;
  --accent:        #1b49e5;
  --accent-hover:  #1739b4;
  --accent-soft:   #eaefff;
  --on-accent:     #ffffff;
  --warn-bg:       #fff5d6;
  --warn-text:     #6b4a00;
  --warn-border:   #e0b64a;

  --radius:    10px;
  --radius-lg: 16px;
  --shell:     1140px;
  --gutter:    clamp(1.25rem, 5vw, 2.5rem);

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:            #0c1017;
    --bg-soft:       #111721;
    --bg-inset:      #171e29;
    --text:          #e8edf4;
    --text-muted:    #94a2b3;
    --border:        #212a37;
    --border-strong: #303c4d;
    --accent:        #5b85ff;
    --accent-hover:  #7a9cff;
    --accent-soft:   #16233f;
    --on-accent:     #0c1017;
    --warn-bg:       #3a2f10;
    --warn-text:     #ffd98a;
    --warn-border:   #7d6420;
  }
}

/* --- 2. Temel ---------------------------------------------------------- */

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

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }
svg { display: block; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4 {
  margin: 0 0 .6em;
  line-height: 1.2;
  letter-spacing: -.02em;
  font-weight: 650;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.35rem); letter-spacing: -.032em; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.15rem); }
h3 { font-size: 1.16rem; letter-spacing: -.012em; }
h4 { font-size: 1rem; }

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-inline-start: 1.35em; }
li { margin-bottom: .45em; }
li:last-child { margin-bottom: 0; }

code, kbd {
  font-family: var(--mono);
  font-size: .875em;
  background: var(--bg-inset);
  border-radius: 5px;
  padding: .12em .4em;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection { background: var(--accent); color: var(--on-accent); }

/* --- 3. Yerleşim ------------------------------------------------------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Dar okuma sütunu. Kapsayıcıyı daraltıp ortalamak yerine, kapsayıcı tam
   genişlikte kalır ve yalnızca içeriği sınırlanır — böylece dar metin,
   geniş bölümlerle (kart ızgaraları, sayfa başlığı) AYNI sol hizada durur.
   Ortalamak, üstteki geniş başlıkla arada gözle görülür bir kayma yaratıyordu. */
.shell--narrow { max-width: var(--shell); }
.shell--narrow > * { max-width: 47rem; }

section { padding-block: clamp(3.5rem, 7vw, 6rem); }
section.tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.soft { background: var(--bg-soft); border-block: 1px solid var(--border); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--on-accent);
  padding: .7rem 1.1rem;
  border-radius: 0 0 var(--radius) 0;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* --- 4. Başlık / gezinme ---------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 68px;
  padding-block: .6rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 680;
  font-size: 1.19rem;
  letter-spacing: -.03em;
  flex-shrink: 0;
}
.brand:hover { color: var(--text); }
.brand__mark { width: 30px; height: 30px; flex-shrink: 0; }
.brand__suffix { font-weight: 420; color: var(--text-muted); letter-spacing: -.01em; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(.35rem, 2vw, 1.35rem);
  overflow-x: auto;
  scrollbar-width: none;
  margin-inline: -.4rem;
  padding-inline: .4rem;
}
.site-nav::-webkit-scrollbar { display: none; }

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: .955rem;
  font-weight: 520;
  white-space: nowrap;
  padding: .4rem .1rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* .site-nav a (0,1,1) `.btn--primary` (0,1,0) kuralını ezdiği için buton
   renkleri burada özgüllüğü yükseltilerek geri alınır. */
.site-nav .btn { border-bottom: 0; }
.site-nav .btn--primary,
.site-nav .btn--primary:hover { color: var(--on-accent); }
.site-nav .btn--ghost,
.site-nav .btn--ghost:hover { color: var(--text); }

/* --- 5. Düğmeler ------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .68rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: .965rem;
  font-weight: 570;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn--primary:hover { background: var(--accent-hover); color: var(--on-accent); }

.btn--ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: transparent;
}
.btn--ghost:hover { background: var(--bg-inset); color: var(--text); border-color: var(--text-muted); }

.btn--sm { padding: .48rem .9rem; font-size: .9rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}

/* --- 6. Hero ----------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4rem, 9vw, 7.5rem) clamp(3.5rem, 7vw, 6rem);
  border-bottom: 1px solid var(--border);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(ellipse 75% 62% at 62% 12%, #000 0%, transparent 72%);
          mask-image: radial-gradient(ellipse 75% 62% at 62% 12%, #000 0%, transparent 72%);
  opacity: .8;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: -22%;
  right: -8%;
  width: 46rem;
  height: 46rem;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 13%, transparent) 0%, transparent 62%);
  pointer-events: none;
}

.hero .shell { position: relative; z-index: 1; }
.hero__body { max-width: 42rem; }
.hero p.lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.22rem); color: var(--text-muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  font-weight: 640;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 999px;
  padding: .34rem .85rem;
  margin-bottom: 1.5rem;
}

.section-head { max-width: 44rem; margin-bottom: 2.75rem; }
.section-head .eyebrow { background: none; border: 0; padding: 0; margin-bottom: .8rem; }
.section-head p { color: var(--text-muted); margin-bottom: 0; }

/* --- 7. Izgaralar ve kartlar ------------------------------------------ */

.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); }

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
}
.soft .card { background: var(--bg); }

.card h3 { margin-bottom: .5rem; }
.card p { color: var(--text-muted); font-size: .96rem; margin-bottom: 0; }

.card__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.card__icon svg { width: 20px; height: 20px; }

/* Numaralı adım akışı */
.steps { counter-reset: step; display: grid; gap: 1.25rem; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  background: var(--bg);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--mono);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--accent);
  margin-bottom: .9rem;
}
.step h3 { margin-bottom: .45rem; }
.step p { color: var(--text-muted); font-size: .96rem; margin-bottom: 0; }

/* Özellik listesi */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.5rem 2.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
}
.feature-list li { margin: 0; }
.feature-list h3 {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: .4rem;
  font-size: 1.03rem;
}
.feature-list h3 svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.feature-list p { color: var(--text-muted); font-size: .95rem; margin: 0; }

/* Teknoloji şeridi */
.tech-strip {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.tech-strip li {
  margin: 0;
  font-family: var(--mono);
  font-size: .82rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .35rem .85rem;
  background: var(--bg);
}

/* Anahtar/değer künye tablosu */
.kunye {
  width: 100%;
  border-collapse: collapse;
  font-size: .96rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.kunye th, .kunye td {
  text-align: start;
  vertical-align: top;
  padding: .85rem 1.1rem;
  border-bottom: 1px solid var(--border);
}
.kunye tr:last-child th, .kunye tr:last-child td { border-bottom: 0; }
.kunye th {
  font-weight: 550;
  color: var(--text-muted);
  width: 15rem;
  background: var(--bg-soft);
}
.kunye td { font-weight: 500; }
@media (max-width: 620px) {
  .kunye, .kunye tbody, .kunye tr, .kunye th, .kunye td { display: block; width: auto; }
  .kunye th { border-bottom: 0; padding-bottom: .1rem; font-size: .82rem; }
  .kunye td { padding-top: .1rem; }
}

/* İletişim kartı */
.contact-block {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}
.contact-block dt {
  font-size: .8rem;
  font-weight: 620;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .3rem;
}
.contact-block dd { margin: 0; font-size: 1.02rem; }

/* Vurgu kutusu */
.callout {
  border: 1px solid var(--border);
  border-inline-start: 3px solid var(--accent);
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  font-size: .97rem;
}
.callout p:last-child { margin-bottom: 0; }

/* Kapanış çağrısı */
.cta {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  padding: clamp(2rem, 4vw, 3.25rem);
  text-align: center;
}
.cta h2 { margin-bottom: .5rem; }
.cta p { color: var(--text-muted); max-width: 38rem; margin-inline: auto; }
.cta .btn-row { justify-content: center; }

/* --- 8. Uzun metin sayfaları (KVKK, çerez) ---------------------------- */

.prose { font-size: 1.02rem; }
.prose h2 { margin-top: 2.75rem; font-size: 1.5rem; }
.prose h2:first-of-type { margin-top: 0; }
.prose h3 { margin-top: 1.9rem; }
.prose ul, .prose ol { margin-bottom: 1.15em; }
.prose .updated {
  font-size: .9rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
}

.page-head {
  padding-block: clamp(3rem, 6vw, 4.5rem) clamp(1.75rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--border);
}
.page-head p { color: var(--text-muted); max-width: 44rem; margin-bottom: 0; font-size: 1.06rem; }

/* --- 9. Alt bilgi ------------------------------------------------------ */

.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding-block: 3.25rem 2rem;
  font-size: .93rem;
}

.footer-grid {
  display: grid;
  gap: 2.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  margin-bottom: 2.75rem;
}
.footer-grid > div:first-child { grid-column: span 1; }

.footer-grid h4 {
  font-size: .78rem;
  font-weight: 640;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .9rem;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .5rem; }
.footer-grid a { color: var(--text); text-decoration: none; }
.footer-grid a:hover { color: var(--accent); text-decoration: underline; }
.footer-grid p { color: var(--text-muted); margin-bottom: 0; }

.footer-legal {
  border-top: 1px solid var(--border);
  padding-top: 1.75rem;
  color: var(--text-muted);
  font-size: .855rem;
  line-height: 1.7;
}
.footer-legal strong { color: var(--text); font-weight: 570; }
.footer-legal p { margin-bottom: .5rem; }
.footer-legal .row {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.25rem;
  margin-top: 1rem;
}

/* --- 11. 404 ----------------------------------------------------------- */

.notfound {
  min-height: 58vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 4rem;
}
.notfound .code {
  font-family: var(--mono);
  font-size: .85rem;
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: .75rem;
}

/* --- 12. Yazdırma ------------------------------------------------------ */

@media print {
  .site-header, .site-nav, .btn-row, .cta { display: none !important; }
  body { font-size: 11pt; color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
  .hero::before, .hero::after { display: none; }
}
