/* =================================================================== */
/* === LANDING PAGE CSS - Non-Critical Styles === */
/* =================================================================== */
/* Bu dosya landing.php'den taşınan non-critical CSS'i içerir */
/* Critical CSS (above-the-fold) landing.php'de inline bırakıldı */

:root {
  --bg: #f8fafc;
  --card: rgba(255, 255, 255, 0.95);
  --primary: #6366f1;
  --accent: #06b6d4;
  --muted: #64748b;
  --radius: 14px;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: 'Inter', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji', 'EmojiOne Color', 'Android Emoji', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 50%, #e9d5ff 100%);
  background-attachment: fixed;
  background-size: cover;
  color: #1e293b;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: #0284c7; text-decoration: none; transition: none; }

a:hover {
  color: #0369a1;
}

/* NAVBAR - Prestige Dark */
.navbar-glass.scrolled {
  background: #1e293b;
  backdrop-filter: none;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border-bottom: none;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  transition: none;
  filter: brightness(1.1);
  transform: translateZ(0);
  backface-visibility: hidden;
}

.logo-img:hover {
  transform: translateZ(0);
}

.navbar-glass.scrolled .logo-img {
  filter: brightness(1.1);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 800;
  letter-spacing: 0.3px;
  font-size: 1.1rem;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: -2px;
  font-weight: 500;
}

.nav-link {
  font-size: .9rem;
  color: var(--muted);
  padding: .4rem .9rem;
  border-radius: 8px;
  transition: none;
  position: relative;
  transform: translateZ(0);
  /* Touch target minimum 44x44px (WCAG 2.1 AA standardı) */
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  touch-action: manipulation; /* Double-tap zoom'u önler, daha hızlı tap */
}

.nav-link:hover {
  color: #1e293b;
  background: rgba(241, 245, 249, 0.8);
}

.navbar-glass.scrolled .nav-link {
  color: #ffffff;
}

.navbar-glass.scrolled .nav-link:hover {
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.1);
}

.btn-glow {
  background: linear-gradient(135deg,#6366f1,#8b5cf6);
  border: none;
  border-radius: 12px;
  padding: .7rem 1.4rem;
  font-weight: 700;
  box-shadow: 0 15px 35px rgba(99,102,241,0.45);
  color: #fff;
  transition: none;
  cursor: pointer;
  transform: translateZ(0);
  /* Touch target minimum 44x44px (WCAG 2.1 AA standardı) */
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation; /* Double-tap zoom'u önler, daha hızlı tap */
}

.btn-glow:hover {
  transform: translateZ(0);
  box-shadow: 0 20px 45px rgba(99,102,241,0.6);
  color: #fff;
}

.btn-glass {
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(226, 232, 240, 0.8);
  padding: .6rem 1.2rem;
  border-radius: 12px;
  color: #1e293b;
  transition: none;
  cursor: pointer;
  backdrop-filter: blur(20px);
  transform: translateZ(0);
  /* Touch target minimum 44x44px (WCAG 2.1 AA standardı) */
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation; /* Double-tap zoom'u önler, daha hızlı tap */
}

.btn-glass:hover {
  background: rgba(248, 250, 252, 0.95);
  border-color: #cbd5e1;
  color: #1e293b;
  transform: translateZ(0);
}

.navbar-glass.scrolled .btn-glass {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #ffffff;
}

.navbar-glass.scrolled .btn-glass:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
  color: #ffffff;
}

/* Dropdown menü stilleri - Tüm sayfalarda aynı */
.dropdown-menu {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  min-width: 200px;
}

.dropdown-item {
  color: #1e293b;
  padding: .6rem 1rem;
  transition: all 0.3s ease;
  text-decoration: none;
  display: block;
}

.dropdown-item:hover {
  background: rgba(241, 245, 249, 0.8);
  color: #1e293b;
}

.dropdown-item:focus {
  background: rgba(241, 245, 249, 0.8);
  color: #1e293b;
}

.dropdown-divider {
  margin: 0.5rem 0;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.dropdown-toggle::after {
  margin-left: 0.4em;
  vertical-align: 0.255em;
}

/* Scroll durumunda dropdown stilleri */
.navbar-glass.scrolled .dropdown-menu {
  background: rgba(30, 41, 59, 0.95);
  border: 1px solid rgba(255,255,255,0.1);
}

.navbar-glass.scrolled .dropdown-item {
  color: #ffffff;
}

.navbar-glass.scrolled .dropdown-item:hover,
.navbar-glass.scrolled .dropdown-item:focus {
  background: rgba(255,255,255,0.1);
  color: #ffffff;
}

.navbar-glass.scrolled .dropdown-divider {
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* HERO */
.hero-badge {
  display: inline-flex;
  gap: .6rem;
  align-items: center;
  padding: .5rem 1rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid rgba(226, 232, 240, 0.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Stat number - H4 yerine div kullanımı için */
.stat-number {
  font-weight: 800;
  font-size: 1.8rem;
  line-height: 1;
  margin-bottom: 0.5rem;
  display: block;
}

/* Marketplace title - H4 yerine H3 kullanımı için */
.marketplace-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  line-height: 1.3;
}

.hero-badge .badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  animation: pulse-dot 2s infinite;
  transform: translateZ(0);
  will-change: transform, opacity; /* Sadece animasyonlu elementlerde */
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1) translateZ(0); }
  50% { opacity: 0.7; transform: scale(1.2) translateZ(0); }
}

/* Scroll sırasında pulse animasyonunu durdur */
.is-scrolling .hero-badge .badge-dot {
  animation: none !important;
  transform: scale(1) translateZ(0) !important;
}

.gradient-text {
  background: linear-gradient(135deg, #6366f1, #06b6d4, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% auto;
  animation: gradient-shift 3s ease infinite;
  transform: translateZ(0);
  will-change: background-position; /* Sadece animasyonlu elementlerde */
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Scroll sırasında gradient animasyonunu durdur */
.is-scrolling .gradient-text {
  animation: none !important;
  background-position: 0% 50% !important;
}

.hero-lead {
  color: var(--muted);
  max-width: 62ch;
  font-size: 1.1rem;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  color: #1e293b;
}

.dashboard-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(20px);
  transition: none;
  color: #1e293b;
  transform: translateZ(0);
  contain: layout style paint;
}

.dashboard-card:hover {
  transform: translateZ(0);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.95);
  padding: 1rem;
  border-radius: 14px;
  text-align: center;
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: none;
  color: #1e293b;
  transform: translateZ(0);
  contain: layout style paint;
}

.stat-card:hover {
  border-color: rgba(99,102,241,0.4);
  transform: translateZ(0);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.stat-card h4 {
  font-weight: 800;
  margin: 0;
  font-size: 1.5rem;
  color: #1e293b;
}

.stat-card p {
  font-size: .8rem;
  color: var(--muted);
  margin: 0.5rem 0 0 0;
}

/* FEATURES */
.feature-card {
  border-radius: 18px;
  padding: 2.2rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(226, 232, 240, 0.8);
  min-height: 240px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transition: none;
  height: 100%;
  backdrop-filter: blur(20px);
  color: #1e293b;
  transform: translateZ(0);
  contain: layout style paint;
}

.feature-card:hover {
  transform: translateZ(0);
  border-color: rgba(99,102,241,0.4);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.feature-card h3 {
  font-weight: 700;
  margin: 1rem 0 0.5rem 0;
  font-size: 1.25rem;
  color: #1e293b;
}

.feature-card p {
  color: #334155;
  line-height: 1.7;
  margin-top: .5rem;
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(6,182,212,0.1));
  border: 1px solid rgba(99,102,241,0.2);
  font-size: 1.5rem;
  color: #6366f1;
  transition: none;
  transform: translateZ(0);
}

.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(6,182,212,0.2));
  transform: translateZ(0);
  border-color: rgba(99,102,241,0.4);
}

/* MARKETPLACES */
.marketplace-card {
  border-radius: 16px;
  padding: 2.5rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  background: rgba(255, 255, 255, 0.95);
  text-align: center;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transition: none;
  height: 100%;
  backdrop-filter: blur(20px);
  color: #1e293b;
  transform: translateZ(0);
  contain: layout style paint;
}

.marketplace-card:hover {
  transform: translateZ(0);
  border-color: rgba(99,102,241,0.4);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.marketplace-card h4 {
  color: #1e293b;
}

.marketplace-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem auto;
  transition: none;
  object-fit: contain;
  display: block;
  transform: translateZ(0);
}

.marketplace-card:hover .marketplace-icon {
  transform: translateZ(0);
}

/* CTA */
.cta-card {
  border-radius: 24px;
  padding: 3.5rem 2.5rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  text-align: center;
  backdrop-filter: blur(20px);
  color: #1e293b;
}

.cta-card h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #1e293b;
}

.cta-card p {
  color: #334155;
}

footer {
  padding: 60px 0 32px;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  background: rgba(255, 255, 255, 0.95);
  margin-top: 60px;
  backdrop-filter: blur(20px);
  color: #1e293b;
  position: static;
  z-index: 0;
}

.footer-logo {
  height: 60px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  filter: brightness(1);
  margin-bottom: 1rem;
}

.footer-title {
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1e293b;
  font-size: 1.1rem;
}

.footer-link {
  display: flex;
  align-items: center;
  font-size: .9rem;
  text-decoration: none;
  margin-bottom: .5rem;
  color: var(--muted);
  transition: none;
  /* Touch target minimum 44x44px (WCAG 2.1 AA standardı) */
  min-height: 44px;
  touch-action: manipulation; /* Double-tap zoom'u önler, daha hızlı tap */
}

.footer-link:hover {
  color: #0284c7;
  padding-left: 4px;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-social a {
  width: 44px; /* WCAG 2.1 AA standardı için 40px'den 44px'e artırıldı */
  height: 44px; /* WCAG 2.1 AA standardı için 40px'den 44px'e artırıldı */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(241, 245, 249, 0.8);
  border: 1px solid rgba(226, 232, 240, 0.8);
  color: var(--muted);
  transition: none;
  transform: translateZ(0);
  touch-action: manipulation; /* Double-tap zoom'u önler, daha hızlı tap */
}

.footer-social a:hover {
  background: rgba(99,102,241,0.1);
  border-color: rgba(99,102,241,0.3);
  color: #6366f1;
  transform: translateZ(0);
}

/* Reveal animations - OPTIMIZED */
.reveal {
  /* Progressive Enhancement: JavaScript yüklenene kadar görünür */
  opacity: 1 !important;
  transform: translateZ(0);
  transition: opacity .6s ease-out, transform .6s ease-out;
  will-change: auto; /* Sadece gerektiğinde GPU kullan */
}

/* JavaScript yüklendikten sonra başlangıç durumu - Sadece JavaScript varsa */
html.js-loaded .reveal:not(.active) {
  opacity: 0;
  transform: translateY(20px) translateZ(0);
  will-change: transform, opacity; /* Animasyon sırasında GPU kullan */
}

.reveal.active {
  opacity: 1 !important;
  transform: translateZ(0);
  will-change: auto;
}

/* Fallback: JavaScript yoksa veya IntersectionObserver desteklenmiyorsa görünür tut */
html:not(.js-loaded) .reveal,
.no-js .reveal {
  opacity: 1 !important;
  transform: translateZ(0) !important;
}

/* Scroll sırasında reveal animasyonlarını tamamen durdur */
.is-scrolling .reveal {
  transition: none !important;
  animation: none !important;
  will-change: auto !important;
}

/* === SCROLL PERFORMANS OPTİMİZASYONLARI === */
html {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* GPU acceleration */
.navbar-glass,
.logo-img,
.nav-link,
.btn-glow,
.btn-glass,
.dashboard-card,
.stat-card,
.feature-card,
.marketplace-card,
.footer-link,
.footer-social a {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Scroll sırasında transition'ları devre dışı bırak */
.is-scrolling * {
  transition: none !important;
  animation-play-state: paused !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.is-scrolling button,
.is-scrolling a,
.is-scrolling input,
.is-scrolling select {
  pointer-events: auto !important;
}

:focus {
  outline: 3px solid rgba(99,102,241,0.5);
  outline-offset: 3px;
  border-radius: 4px;
}

/* === ACCESSIBILITY: Prefers Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero { padding: 100px 0 50px; min-height: auto; }
  .stat-grid { gap: .7rem; }
  .feature-card, .marketplace-card { margin-bottom: 1.5rem; }
  .logo-img { height: 60px; max-width: 220px; }
  .brand-text { display: none; }
  .cta-card { padding: 2.5rem 1.5rem; }
  .marketplace-icon { width: 60px; height: 80px; }
  /* Mobile'de touch target'ları koru */
  .nav-link, .btn-glow, .btn-glass, .footer-link {
    min-height: 44px;
  }
}

@media (max-width: 576px) {
  .logo-img { height: 55px; max-width: 200px; }
  .hero h1 { font-size: 2rem; }
  .btn-glow, .btn-glass { 
    padding: .75rem 1.25rem; /* Touch target için artırıldı */
    font-size: .9rem; 
    min-height: 44px; /* WCAG 2.1 AA standardı */
  }
  .marketplace-icon { width: 50px; height: 50px; }
  .nav-link {
    padding: .75rem 1rem; /* Touch target için artırıldı */
    min-height: 44px;
  }
}

/* =============================================
   App Preview – Browser Mockup + Floating Badges
   ============================================= */

.app-preview-wrap {
  position: relative;
  padding: 3rem 2.5rem 3.5rem;
  overflow: visible;
}

/* Browser çerçevesi */
.browser-mockup {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 24px 60px rgba(99, 102, 241, 0.22),
    0 8px 24px rgba(0,0,0,0.10),
    0 0 0 1px rgba(203, 213, 225, 0.9);
  background: #fff;
  z-index: 2;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .75rem;
  background: linear-gradient(to bottom, #f1f5f9, #e8edf5);
  border-bottom: 1px solid rgba(203, 213, 225, 0.8);
  flex-wrap: nowrap;
  min-width: 0;
}

.browser-dots { display: flex; gap: 5px; flex-shrink: 0; }
.browser-dots span { width: 11px; height: 11px; border-radius: 50%; }
.browser-dots span:nth-child(1) { background: #ef4444; }
.browser-dots span:nth-child(2) { background: #fbbf24; }
.browser-dots span:nth-child(3) { background: #22c55e; }

.browser-url {
  flex: 1;
  font-size: .72rem;
  color: #64748b;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(203,213,225,0.8);
  border-radius: 6px;
  padding: .22rem .6rem;
  text-align: center;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.browser-tabs-bar { display: flex; gap: .35rem; flex-shrink: 0; }

.browser-tab {
  padding: .25rem .6rem;
  font-size: .68rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1.5px solid transparent;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  transition: all .2s ease;
  display: flex;
  align-items: center;
  gap: .3rem;
  white-space: nowrap;
}
.browser-tab:hover { background: rgba(99,102,241,0.08); color: #6366f1; }
.browser-tab.active {
  background: #fff;
  border-color: rgba(99,102,241,0.35);
  color: #6366f1;
  box-shadow: 0 2px 6px rgba(99,102,241,0.14);
}

/* Slideshow ekran alanı */
.browser-screen {
  position: relative;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: #f8fafc;
  line-height: 0;
}

.slide-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  display: block;
  opacity: 0;
  transition: opacity .7s ease;
}
.slide-img.slide-active { opacity: 1; }

/* Dot göstergeleri */
.slide-dots {
  display: flex;
  justify-content: center;
  gap: .45rem;
  padding: .55rem 0;
  background: linear-gradient(to bottom, #f8fafc, #f1f5f9);
  border-top: 1px solid rgba(226,232,240,0.7);
}
.slide-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(99,102,241,0.25);
  cursor: pointer;
  transition: all .25s ease;
}
.slide-dot.active { background: #6366f1; width: 20px; border-radius: 4px; }

/* Floating stat badge'leri */
.fp-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem .9rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid rgba(226,232,240,0.9);
  z-index: 10;
  animation: badgeFloat 3.5s ease-in-out infinite;
}

.fp-badge__icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem;
  flex-shrink: 0;
}
.fp-badge__val { font-size: .9rem; font-weight: 800; color: #1e293b; line-height: 1.1; }
.fp-badge__lbl { font-size: .65rem; color: #64748b; font-weight: 500; margin-top: 1px; white-space: nowrap; }

.fp-badge--orders  { top: 15%; left: -1.2rem; animation-delay: 0s; }
.fp-badge--revenue { top: 42%; right: -1.2rem; animation-delay: 1.2s; }
.fp-badge--success { bottom: 16%; left: -1.2rem; animation-delay: 2.4s; }

.fp-badge--orders  .fp-badge__icon { background: linear-gradient(135deg,#6366f1,#818cf8); color:#fff; }
.fp-badge--revenue .fp-badge__icon { background: linear-gradient(135deg,#10b981,#34d399); color:#fff; }
.fp-badge--success .fp-badge__icon { background: linear-gradient(135deg,#06b6d4,#22d3ee); color:#fff; }

@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}

@media (max-width: 991px) {
  .fp-badge { display: none; }
  .app-preview-wrap { padding: 0; }
}
