/* eMuhasebeHub — temel: tasarım değişkenleri, sıfırlama, tipografi, ortak bileşenler */

:root {
  /* Metin */
  --ink: #14231f;
  --ink-2: #46554f;
  --ink-3: #7a8a84;
  --ink-4: #a2b0aa;

  /* Yüzey ve çizgi */
  --bg: #ffffff;
  --bg-soft: #f3f8f6;
  --line: #e2ebe7;
  --line-2: #d3e0da;

  /* Marka: zümrüt yeşili + nane vurgusu (logodan) */
  --primary: #0d5c4a;
  --primary-700: #0a4a3c;
  --primary-900: #06332a;
  --primary-100: #d3ece3;
  --primary-50: #ebf6f2;
  --accent: #18a878;
  --accent-soft: #7fdcb8;

  /* Durum renkleri (GİB yanıtları) */
  --success: #17805a;
  --success-bg: #e3f3eb;
  --warn: #9a6205;
  --warn-bg: #fbf0d9;
  --danger: #b8382b;
  --danger-bg: #fbe8e5;
  --info: #1b6a9c;
  --info-bg: #e2eef7;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-xs: 0 1px 2px rgba(14, 44, 37, 0.06);
  --shadow-sm: 0 2px 6px -2px rgba(14, 44, 37, 0.08), 0 1px 2px rgba(14, 44, 37, 0.05);
  --shadow: 0 18px 40px -18px rgba(14, 44, 37, 0.22);
  --shadow-lg: 0 50px 100px -40px rgba(8, 62, 50, 0.38), 0 20px 40px -24px rgba(8, 62, 50, 0.22);

  /* Sistem yazı tipi: dış kaynaktan font çekilmez (ziyaretçi verisi yurt dışına gitmez) */
  --font: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI Variable",
    "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;

  --container: 1180px;
  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  --grad-soft:
    radial-gradient(900px 520px at 8% -10%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 60%),
    radial-gradient(800px 600px at 100% 30%, rgba(204, 232, 221, 0.75), rgba(204, 232, 221, 0) 60%),
    linear-gradient(180deg, #edf6f2 0%, #dcebe4 100%);
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

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

table {
  border-collapse: collapse;
}

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

.nowrap {
  white-space: nowrap;
}

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

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

/* Simgeler (sprite) */
.i {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Butonlar */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 560;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
}

.btn .i {
  transition: transform 0.25s var(--ease);
}

.btn:hover .i-arrow {
  transform: translateX(3px);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 10px 24px -10px rgba(13, 92, 74, 0.7);
}

.btn-primary:hover {
  background: var(--primary-700);
}

.btn-soft {
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.btn-soft:hover {
  background: #fff;
}

.btn-outline {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line-2);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-white {
  background: #fff;
  color: var(--primary);
}

.btn-white:hover {
  background: var(--primary-50);
}

.btn-ghost-light {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-sm {
  height: 42px;
  padding: 0 20px;
  font-size: 14.5px;
}

.btn-block {
  width: 100%;
}

/* Bölüm iskeleti */
.section {
  position: relative;
  padding: 128px 0;
}

.section-soft {
  background: var(--grad-soft);
}

.section-head {
  max-width: 800px;
  margin: 0 auto 64px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(34px, 4.6vw, 56px);
}

.section-head p {
  margin: 22px auto 0;
  max-width: 680px;
  font-size: 18px;
  color: var(--ink-2);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--primary-100);
}

.eyebrow .i {
  color: var(--accent);
}

/* Durum etiketleri */
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.92em;
  font-weight: 560;
  white-space: nowrap;
}

.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-success { color: var(--success); background: var(--success-bg); }
.status-warn { color: var(--warn); background: var(--warn-bg); }
.status-danger { color: var(--danger); background: var(--danger-bg); }
.status-info { color: var(--info); background: var(--info-bg); }

/* Kaydırınca beliren öğeler (yalnızca JS varsa gizlenir) */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0s);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 88px 0;
  }

  .section-head {
    margin-bottom: 44px;
  }

  .section-head p {
    font-size: 16.5px;
  }

  .container {
    width: min(100% - 32px, var(--container));
  }
}
