/* ==========================================================================
   danismanim — ortak tasarım sistemi (landing + müşteri sayfası)
   ========================================================================== */

:root {
  /* Marka */
  --marka-1: #6d5dfc;
  --marka-2: #22d3ee;
  --marka-3: #f472b6;
  --wa: #25d366;
  --wa-koyu: #128c7e;
  --tehlike: #ef4444;
  --uyari: #f59e0b;

  /* Nötrler */
  --zemin: #f6f7fb;
  --yuzey: #ffffff;
  --yuzey-2: #f1f3f9;
  --cizgi: #e4e7f0;
  --metin: #0f172a;
  --metin-2: #475569;
  --metin-3: #94a3b8;

  /* Tipografi: sistem yazı tipleri (dış font isteği yok, ilk boyama hızlı) */
  --font-baslik: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-govde: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  /* Biçim */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --golge-1: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --golge-2: 0 10px 30px -12px rgba(15, 23, 42, .25);
  --golge-3: 0 30px 60px -20px rgba(15, 23, 42, .35);
  --gecis: 220ms cubic-bezier(.2, .8, .2, 1);
  --yay: 420ms cubic-bezier(.34, 1.56, .64, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font-govde);
  font-size: 16px;
  line-height: 1.55;
  color: var(--metin);
  background: var(--zemin);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-baslik); line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid rgba(109, 93, 252, .6); outline-offset: 2px; border-radius: 6px; }

.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;
}

/* ---------- Düğmeler ---------- */
.btn {
  --btn-zemin: var(--metin);
  --btn-metin: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 46px; padding: .7em 1.25em;
  border: 0; border-radius: 999px;
  background: var(--btn-zemin); color: var(--btn-metin);
  font-weight: 650; font-size: .97rem; text-decoration: none; white-space: nowrap;
  transition: transform var(--gecis), box-shadow var(--gecis), background var(--gecis), opacity var(--gecis);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--golge-2); }
.btn:active { transform: translateY(0) scale(.98); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

.btn-wa { --btn-zemin: var(--wa); --btn-metin: #04210f; }
.btn-wa:hover { box-shadow: 0 12px 30px -10px rgba(37, 211, 102, .7); }
.btn-hayalet { --btn-zemin: transparent; --btn-metin: var(--metin); box-shadow: inset 0 0 0 1.5px var(--cizgi); }
.btn-hayalet:hover { box-shadow: inset 0 0 0 1.5px var(--metin-3), var(--golge-1); }
.btn-tehlike { --btn-zemin: var(--tehlike); }
.btn-kucuk { min-height: 44px; padding: .45em 1em; font-size: .88rem; }
.btn-blok { width: 100%; }

/* ---------- Yükleniyor ---------- */
.donen {
  width: 22px; height: 22px; border-radius: 50%;
  border: 3px solid rgba(128, 128, 128, .3);
  border: 3px solid color-mix(in srgb, currentColor 25%, transparent);
  border-top-color: currentColor;
  animation: don 800ms linear infinite;
}
@keyframes don { to { transform: rotate(360deg); } }

/* ---------- Bildirim (toast) ---------- */
.bildirim {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translate(-50%, 20px); opacity: 0;
  background: #0f172a; color: #fff; padding: .7em 1.1em; border-radius: 999px;
  font-size: .9rem; font-weight: 550; box-shadow: var(--golge-3);
  transition: opacity var(--gecis), transform var(--gecis); z-index: 100; pointer-events: none;
}
.bildirim.goster { opacity: 1; transform: translate(-50%, 0); }

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