/* Merkezio 2026 Portal Stylesheet - Modern, Responsive, High Performance */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root, .theme {
  --base: #3A506B;
  --brand: #3A506B;
  --btn: #6FFFE9;
  --btn-ink: #0B132B;
  --deep: #0B132B;
  --deep2: #1C2541;
  --tint1: #F1F4F8;
  --tint2: #E4EAF2;
  --paper: #ffffff;
  --ink: #0B132B;
  --mute: #3A506B;
  --mute-d: #B4C0D2;
  --lift: #5BC0BE;
  --secondary: #35F39A;
  --tertiary: #47B7F2;
  --font-h: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-b: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-b);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Yalnızca body: html'e de verilirse body ayrı bir scroll container olur ve position: sticky hiçbir yerde çalışmaz */
body {
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease, color 0.2s ease;
}

a:hover {
  opacity: 0.85;
}

/* Animations */
@keyframes mzHeart {
  0% { transform: translateY(0) scale(0.5); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translateY(-84px) scale(1.15); opacity: 0; }
}

.mz-heart {
  position: absolute;
  bottom: 10px;
  animation: mzHeart 2.8s ease-out infinite;
  opacity: 0;
}

@keyframes mzLike {
  0% { transform: translateY(0) rotate(-12deg) scale(0.5); opacity: 0; }
  15% { opacity: 1; }
  50% { transform: translateY(-42px) rotate(6deg) scale(1.1); }
  100% { transform: translateY(-84px) rotate(-8deg) scale(1.15); opacity: 0; }
}

.mz-like {
  position: absolute;
  bottom: 10px;
  animation: mzLike 3.2s ease-out infinite;
  opacity: 0;
}

/* Navbar Base & Desktop */
.mz-nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  pointer-events: none;
}

/* Ana sayfa: menü hero'nun üzerinde yüzer, akışta yer kaplamaz */
.mz-landing > .mz-nav-wrapper {
  height: 0;
}

.mz-nav {
  pointer-events: auto;
  box-sizing: border-box;
  font-family: var(--font-b);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 clamp(20px, 5.5vw, 80px);
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mz-nav.light-header {
  border-bottom: 1px solid rgba(11, 19, 43, 0.12);
  background: var(--paper);
  color: var(--ink);
}

.mz-nav.dark-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #ffffff;
}

/* Scrolled Floating Pill Mode */
.mz-nav.scrolled {
  width: min(1080px, calc(100% - 32px));
  margin: 12px auto 0;
  padding: 8px 18px;
  border-radius: 999px;
  color: #ffffff !important;
  background: color-mix(in srgb, var(--deep) 68%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 32px rgba(10, 10, 30, 0.24);
}

.mz-nav-logo {
  font: 700 24px/1 var(--font-h);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  padding: 22px 0;
  text-decoration: none;
}

.mz-nav.scrolled .mz-nav-logo {
  padding: 6px 0;
}

.mz-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mz-nav-link-item {
  position: relative;
  font: 400 15px/1 var(--font-b);
  padding: 24px 4px;
}

.mz-nav.scrolled .mz-nav-link-item {
  padding: 6px 4px;
}

.mz-nav-link-item.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: currentColor;
}

.mz-nav.scrolled .mz-nav-link-item.active::after {
  bottom: -2px;
  background: var(--btn);
}

.mz-nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.mz-btn-login {
  font: 400 15px/1 var(--font-b);
  padding: 8px 12px;
}

.mz-btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--deep2);
  color: #ffffff;
  font: 600 15px/1 var(--font-h);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  white-space: nowrap;
}

.mz-btn-cta:hover {
  background: var(--lift);
  color: var(--deep);
  border-color: var(--lift);
  opacity: 1;
}

.mz-nav.light-header:not(.scrolled) .mz-btn-cta {
  background: var(--deep);
  color: #fff;
  border: none;
}

.mz-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--btn-ink);
  font: 600 16px/1 var(--font-h);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mz-btn-secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(53, 243, 154, 0.35);
  opacity: 1;
}

.mz-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  color: #ffffff;
  font: 600 16px/1 var(--font-h);
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.mz-btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
  opacity: 1;
}

.mz-btn-outline-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1.5px solid var(--deep);
  color: var(--deep);
  font: 600 16px/1 var(--font-h);
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
}

.mz-btn-outline-dark:hover {
  background: var(--tint1);
  opacity: 1;
}

/* Mobile Hamburger & Drawer */
.mz-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  background: rgba(11, 19, 43, 0.4);
  color: inherit;
  cursor: pointer;
}

.mz-nav.light-header:not(.scrolled) .mz-hamburger {
  border-color: rgba(11, 19, 43, 0.2);
  background: var(--tint1);
  color: var(--ink);
}

.mz-mobile-drawer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: rgba(11, 19, 43, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 24px 20px 40px;
  color: #ffffff;
  overflow-y: auto;
  flex-direction: column;
}

.mz-mobile-drawer.open {
  display: flex;
}

.mz-mobile-drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.mz-mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 32px 0;
}

.mz-mobile-drawer-link {
  font: 500 20px/1.3 var(--font-h);
  padding: 8px 0;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mz-mobile-drawer-link.active {
  color: var(--btn);
}

.mz-mobile-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}

@media (max-width: 960px) {
  .mz-nav-links, .mz-nav-right .mz-btn-login {
    display: none;
  }
  .mz-hamburger {
    display: flex;
  }
  .mz-nav {
    padding: 0 20px;
  }
  .mz-nav-logo {
    padding: 16px 0;
  }
}

/* Accordion Component */
.mz-accordion-item {
  border-radius: 20px;
  background: var(--tint1);
  color: var(--ink);
  transition: all 0.2s ease;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(11, 19, 43, 0.06);
}

.mz-accordion-item.open {
  box-shadow: inset 0 0 0 2px var(--brand);
}

.mz-accordion-trigger {
  width: 100%;
  min-height: 72px;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: 600 19px/1.3 var(--font-h);
  letter-spacing: -0.01em;
}

.mz-accordion-icon {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 600 22px/1 var(--font-b);
  transition: transform 0.2s ease;
}

.mz-accordion-content {
  display: none;
  padding: 0 28px 28px;
  max-width: 820px;
  font: 400 16px/1.65 var(--font-b);
  color: var(--mute);
}

.mz-accordion-item.open .mz-accordion-content {
  display: block;
}

.mz-accordion-item.open .mz-accordion-icon {
  background: var(--deep);
  color: #fff;
  transform: rotate(45deg);
}

/* Interactive Tabs */
.mz-tabs-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mz-tab-btn {
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  cursor: pointer;
  font: 600 15px/1 var(--font-h);
  border: 1px solid rgba(11, 19, 43, 0.2);
  background: transparent;
  color: var(--ink);
  transition: all 0.2s ease;
}

.mz-tab-btn.active {
  border-color: var(--deep2);
  background: var(--deep2);
  color: #ffffff;
}

.mz-tab-panel {
  display: none;
}

.mz-tab-panel.active {
  display: flex;
}

/* Responsive Containers & Grids */
.mz-container {
  max-width: 1280px;
  margin: 0 auto;
}

.mz-section {
  padding: 100px clamp(24px, 5.5vw, 80px);
}

.mz-section-sm {
  padding: 64px clamp(24px, 5.5vw, 80px);
}

/* Form Styles */
.mz-form-control {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.mz-label {
  font: 600 14px/1.2 var(--font-h);
  color: var(--ink);
}

.mz-input, .mz-select, .mz-textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1.5px solid var(--tint2);
  background: #ffffff;
  color: var(--ink);
  font: 400 15px/1.5 var(--font-b);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mz-input:focus, .mz-select:focus, .mz-textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(58, 80, 107, 0.15);
}

/* Landing: scroll ile çalışan bölümler */
#mz-hero-scroll {
  position: relative;
  z-index: 0;
  /* 900px fotoğraf açılışı + 200px bekleme + sabit ekran + üzerine binen bölüm */
  height: calc(1100px + 200vh);
  background: #1C2541;
}

#demo {
  position: sticky;
  top: 0;
  z-index: 0;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  background-color: #0B132B;
}

#ozellikler {
  position: relative;
  z-index: 1;
  margin-top: -100vh;
  background: #ffffff;
  padding: 120px clamp(24px, 5.5vw, 80px) 140px;
  color: var(--ink);
}

.sticky-left {
  position: sticky;
  top: 96px;
}

.mz-progress-item {
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.mz-progress-item.active {
  opacity: 1;
}

.mz-stack-card {
  position: sticky;
  transform-origin: 50% 0;
  will-change: transform;
}

/* Son kart da yığında bir süre sabit kalsın */
.mz-stack-hold {
  height: 160px;
}

#mz-hs {
  position: relative;
  z-index: 3;
  height: calc(100vh + 3080px);
  background: var(--paper);
}

#kurulum {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: var(--paper);
}

#mz-hs-track {
  --hs-k: 1;
  position: absolute;
  left: 0;
  bottom: 0;
  width: calc(3600px * var(--hs-k));
  will-change: transform;
}

.mz-hs-art {
  position: relative;
  height: calc(340px * var(--hs-k));
  background: #ffffff;
  overflow: hidden;
}

.mz-hs-art img {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
}

.mz-hs-step {
  flex: 0 0 calc(var(--w) * var(--hs-k));
  box-sizing: border-box;
  padding: 22px 40px 26px;
  border-left: 1.5px solid var(--deep2);
  color: var(--ink);
}

.mz-hs-step > * {
  width: fit-content;
  transform: translateX(var(--pin, 0px));
}

.mz-hs-step:first-child {
  padding-left: 80px;
  border-left: 0;
}

.mz-hs-step:last-child {
  padding-left: 100px;
}

@media (max-height: 800px) {
  .mz-progress-item {
    padding: 12px 0 !important;
  }
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .sticky-left {
    display: none !important;
  }
  .mz-stack-hold {
    display: none;
  }
  .mz-stack-card {
    position: relative !important;
    top: 0 !important;
    transform: none !important;
    min-height: auto !important;
    margin-bottom: 24px !important;
    padding: 28px 20px !important;
    border-radius: 20px !important;
  }
  /* Panoramik Yatay İz Mobilde Dikey Adım Kartlarına Dönüşür */
  #mz-hs {
    height: auto !important;
    padding-bottom: 48px !important;
    position: relative !important;
  }
  #mz-hs section#kurulum {
    position: relative !important;
    height: auto !important;
    overflow: visible !important;
    padding: 60px 20px 0 !important;
  }
  #mz-hs-track {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    margin-top: 24px !important;
  }
  #mz-hs-track > div:nth-child(2) {
    display: none !important;
  }
  #mz-hs-track > div:last-child {
    flex-direction: column !important;
    border: 1.5px solid var(--tint2) !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    background: #ffffff !important;
  }
  #mz-hs-track > div:last-child > div {
    flex: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-left: none !important;
    border-top: 1px solid var(--tint2) !important;
    padding: 24px 20px !important;
  }
  .mz-hs-step > * {
    transform: none;
  }
  #mz-hs-track > div:last-child > div:first-child {
    border-top: none !important;
  }
}

@media (max-width: 768px) {
  .mz-section {
    padding: 56px 18px;
  }
  .mz-section-sm {
    padding: 36px 18px;
  }

  input, select, textarea, .mz-input, .mz-select, .mz-textarea {
    font-size: 16px !important;
  }

  /* Mobil Hero: Akıcı, temiz, okunabilir ve dokunmatik odaklı kompakt görünüm */
  #ozellikler {
    margin-top: 0;
  }
  #mz-hero-scroll {
    height: auto !important;
    background: #0B132B !important;
  }
  #demo {
    position: relative !important;
    height: auto !important;
    min-height: auto !important;
    padding: 84px 18px 44px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    gap: 20px !important;
  }
  #mz-hero-photo-layer {
    position: absolute !important;
    inset: 0 !important;
    transform: none !important;
    opacity: 0.2 !important;
    z-index: 1 !important;
  }
  #mz-hero-photo-img {
    transform: none !important;
  }
  #mz-hero-video-layer {
    position: relative !important;
    height: 180px !important;
    width: 100% !important;
    margin: 6px 0 0 !important;
    border-radius: 18px !important;
    transform: none !important;
    filter: none !important;
    z-index: 4 !important;
    box-shadow: 0 16px 40px rgba(0,0,0,0.5) !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
  }
  #mz-hero-video-layer > div {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)) !important;
    grid-template-rows: none !important;
    grid-auto-rows: 72px !important;
    gap: 6px !important;
    padding: 6px !important;
  }
  #mz-slogan1 {
    display: none !important;
  }
  #mz-pop1, #mz-pop2 {
    display: none !important;
  }
  #mz-slogan2 {
    position: relative !important;
    bottom: auto !important;
    opacity: 1 !important;
    transform: none !important;
    padding: 8px 0 0 !important;
    z-index: 5 !important;
    pointer-events: auto !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 16px !important;
  }
  #mz-slogan2 h2 {
    font-size: clamp(26px, 6.5vw, 36px) !important;
    line-height: 1.15 !important;
    color: #ffffff !important;
    margin: 0 !important;
  }
  #mz-slogan2 p {
    margin-top: 10px !important;
    font-size: 15px !important;
    line-height: 1.55 !important;
    color: rgba(255, 255, 255, 0.85) !important;
  }
  #mz-slogan2 #basla {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    width: 100% !important;
    margin-top: 8px !important;
    gap: 12px !important;
  }
  #mz-slogan2 #basla a {
    flex: 1 1 140px !important;
    min-height: 50px !important;
    padding: 0 20px !important;
    font-size: 15px !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
}
