/* ==========================================================================
   Reset, tipografi temeli ve layout yardımcıları
   ========================================================================== */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--ink);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-snug); }
h4 { font-size: var(--fs-base); line-height: var(--lh-snug); }

p { margin: 0; }

a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

::selection { background: var(--brand-200); color: var(--ink); }

/* --- Layout --------------------------------------------------------------- */

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

.section { padding-block: var(--s-9); }
.section--tight { padding-block: var(--s-8); }
.section--alt { background: var(--surface); }

.section__head {
  max-width: 640px;
  margin-bottom: var(--s-7);
}
.section__head--center { margin-inline: auto; text-align: center; }
.section__head p { margin-top: var(--s-3); color: var(--muted); font-size: var(--fs-lg); }

/* Eyebrow, bölümün hangi tarafa ait olduğunu söyler — dekoratif değil */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-3);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-600);
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.stack   { display: flex; flex-direction: column; gap: var(--s-4); }
.row     { display: flex; align-items: center; gap: var(--s-3); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.wrap    { flex-wrap: wrap; }

/* --- Metin yardımcıları --------------------------------------------------- */

.lead      { font-size: var(--fs-lg); color: var(--muted); line-height: 1.55; }
.muted     { color: var(--muted); }
.muted-2   { color: var(--muted-2); }
.small     { font-size: var(--fs-sm); }
.xs        { font-size: var(--fs-xs); }
.strong    { font-weight: 600; }
.center    { text-align: center; }

/* Para ve ölçüm rakamları kendi sesiyle konuşur: tabular, mono, kesin */
.money, .num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
  letter-spacing: -0.01em;
}

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

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 992px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding-block: var(--s-8); }
}

@media (max-width: 768px) {
  :root { --gutter: 20px; }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .section { padding-block: var(--s-7); }
  .section__head { margin-bottom: var(--s-6); }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: minmax(0, 1fr); }
}

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