/* ==========================================================================
   BASE — tasarım tokenları, reset, tipografi, yardımcı sınıflar
   ========================================================================== */

/* Font tanımı (@font-face) interface.php → head() içinde, önceden yüklenen sürümlü adreslerle aynı olsun diye */

/* ---------- Tokenlar ---------- */
:root {
  /* Marka: logodaki lacivert ve kırmızı */
  --navy-950: #071328;
  --navy-900: #0b1f45;
  --navy-800: #132b57;
  --navy-700: #1e3a6d;
  --navy-200: #c9d3e3;
  --navy-100: #e6ebf3;
  --navy-50:  #f1f4f9;

  --red-600: #d3141c;
  --red-500: #e3262e;
  --red-100: #fbe2e3;
  --red-50:  #fdf2f2;

  /* Durum renkleri (arayüz mockup'larında kullanılır) */
  --green-600: #0b8a5f;
  --green-500: #14a676;
  --green-100: #dcf3e9;
  --amber-600: #a86400;
  --amber-500: #e59400;
  --amber-100: #fcefd4;

  /* Nötrler: lacivertten türetilmiş serin, temiz griler */
  --ink:      #0a1630;
  --ink-2:    #3a4660;
  --muted:    #67718a;
  --line:     #e5e9f1;
  --line-2:   #d3dae6;
  --bg:       #ffffff;
  --bg-alt:   #f4f6fa;
  --surface:  #ffffff;
  --surface-2:#f7f9fc;

  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-xs: .75rem;
  --fs-sm: .875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: clamp(1.125rem, 1rem + .4vw, 1.25rem);
  --fs-h3: 1.1875rem;
  --fs-h2: clamp(1.875rem, 1.3rem + 2.3vw, 3rem);
  --fs-h1: clamp(2.25rem, 1.3rem + 3.8vw, 4.25rem);

  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;

  --shadow-xs: 0 1px 1px rgb(11 26 51 / .05);
  --shadow-sm: 0 1px 2px rgb(11 26 51 / .06), 0 2px 6px -2px rgb(11 26 51 / .06);
  --shadow:    0 1px 2px rgb(11 26 51 / .05), 0 12px 32px -12px rgb(11 26 51 / .18);
  --shadow-lg: 0 2px 4px rgb(11 26 51 / .04), 0 32px 72px -24px rgb(11 26 51 / .38);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);

  --container: 1360px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 80px;
  --section-y: clamp(72px, 3rem + 4vw, 124px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  word-spacing: .04em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
fieldset { margin: 0; padding: 0; border: 0; }
[hidden] { display: none !important; }

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

::selection { background: var(--navy-900); color: #fff; }

/* ---------- Tipografi ---------- */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.12;
  text-wrap: balance;
}

p { text-wrap: pretty; }

/* Rakamlar: sabit genişlik (sayaçlar akarken titremesin). Mono font yalnızca etiketlerde. */
.num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  letter-spacing: -.02em;
}

/* Başlıktaki vurgu: marka kırmızısı + görünür olunca soldan çizilen alt çizgi */
.hl {
  position: relative;
  color: var(--red-600);
  white-space: nowrap;
}
.hl::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: .02em;
  height: .09em;
  border-radius: 99px;
  background: currentColor;
  opacity: .28;
  transform-origin: left;
  transition: transform 1s var(--ease-out) .5s;
}
.js .hl::after { transform: scaleX(0); }
.js .is-in .hl::after,
.js .hl.is-in::after { transform: none; }

/* Bölümler arasında ritim için açık gri zemin */
.section--alt { background: var(--bg-alt); }

/* ---------- Yerleşim yardımcıları ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

.section-head {
  display: grid;
  gap: 18px;
  max-width: 720px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head--split {
  max-width: none;
  grid-template-columns: 1fr;
  align-items: end;
}

@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.1fr 1fr; gap: 48px; }
}

/* Bölüm etiketi: kırmızı kısa çizgi + büyük harfli kısa ad */
.section-index {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--red-600);
}
.section-index::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.section-index--light { color: #ff6b72; }

.section-title {
  font-size: var(--fs-h2);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.08;
}

.section-lead {
  color: var(--muted);
  font-size: var(--fs-lg);
  line-height: 1.55;
  max-width: 56ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}
.eyebrow b {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--navy-900);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
}

.pulse-dot {
  position: relative;
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-500);
  flex: none;
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 1.5px solid var(--green-500);
  opacity: 0;
  animation: pulse 2.4s var(--ease-out) infinite;
}

@keyframes pulse {
  0%   { transform: scale(.5); opacity: .9; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Ortak: küçükten büyüyerek yerine oturma (hero satırları, berat takvimi) */
@keyframes pop {
  0%   { transform: scale(.4); }
  100% { transform: scale(1); }
}

/* Ortak: dönen yükleniyor göstergesi */
@keyframes spin { to { transform: rotate(360deg); } }

/* Ortak: liste satırlarının sağdan kayarak gelmesi (sekme mockup'ları, tebligat akışı) */
@keyframes row-in {
  from { opacity: 0; transform: translate3d(12px, 0, 0); }
}

/* ---------- Erişilebilirlik ---------- */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--navy-900);
  color: #fff;
  transform: translateY(-160%);
  transition: transform .2s var(--ease-out);
}
.skip-link:focus { transform: none; }

/* ---------- Görünür olunca beliren öğeler ----------
   Yalnızca JS çalışıyorsa gizlenir; JS yoksa içerik doğrudan görünür. */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition:
    opacity .8s var(--ease-out),
    transform .9s var(--ease-out);
  transition-delay: calc(var(--reveal-i, 0) * 70ms);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* Bölüm sonundaki "devamı" bağlantısı (ilgili alt sayfaya yönlendirir) */
.section-more {
  display: flex;
  justify-content: center;
  margin-top: clamp(32px, 4vw, 48px);
}
