/* ===== Estorix Premium Motion — animasyon dili + erişilebilirlik ===== */
:root {
  --epm-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --epm-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --epm-duration: 0.45s;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --epm-duration: 0.01ms;
  }
  .epm-progress,
  .epm-trust-ticker,
  .epm-marquee-track,
  .epm-aurora,
  .epm-kinetic {
    animation: none !important;
  }
  .hero-reveal-row,
  .epm-reveal {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* Üst scroll ilerlemesi */
.epm-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 10002;
  pointer-events: none;
  background: transparent;
}

.epm-progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--odoo-primary), var(--odoo-teal));
  box-shadow: 0 0 12px rgba(113, 75, 103, 0.35);
  transition: width 0.12s linear;
}

/* Anchor kaydırma — sabit header payı */
section[id] {
  scroll-margin-top: 92px;
}

/* Hero aurora + katman */
.hero--epm {
  position: relative;
  overflow: hidden;
}

.hero--epm .epm-aurora {
  position: absolute;
  inset: -40% -20%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 15% 30%, rgba(113, 75, 103, 0.11), transparent 55%),
    radial-gradient(ellipse 70% 45% at 85% 70%, rgba(23, 162, 184, 0.09), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(135, 90, 123, 0.06), transparent 45%);
  animation: epm-aurora-drift 22s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes epm-aurora-drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(2%, -2%) scale(1.03); }
}

.hero--epm > .container {
  position: relative;
  z-index: 1;
}

/* Hero başlık satır reveal */
.hero-title--premium {
  display: flex;
  flex-direction: column;
  gap: 0.15em;
}

.hero-reveal-row {
  display: block;
  opacity: 0;
  transform: translateY(22px);
  animation: epm-hero-line-in var(--epm-duration) var(--epm-ease-out) forwards;
}

.hero-reveal-row:nth-child(1) { animation-delay: 0.08s; }
.hero-reveal-row:nth-child(2) { animation-delay: 0.22s; }

@keyframes epm-hero-line-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Gradient metin canlı kayma */
/* Kontrast + Safari: arka plan konumu animasyonu yerine statik zengin gradient (composite uyarılarını azaltır) */
.gradient-text.gradient-text--live {
  background: linear-gradient(
    100deg,
    var(--odoo-primary) 0%,
    var(--odoo-purple) 28%,
    var(--odoo-teal) 55%,
    var(--odoo-purple) 78%,
    var(--odoo-primary) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
}

/* Kinetik kelime */
.epm-kinetic {
  display: inline-block;
  min-width: 18ch;
  text-align: left;
  transition: opacity 0.35s var(--epm-ease);
}

.epm-kinetic.is-switching {
  opacity: 0.55;
}

/* Hero görsel tilt kapsayıcı */
.hero-image--tilt {
  perspective: 900px;
  transform-style: preserve-3d;
}

.hero-image--tilt picture {
  transition: transform 0.35s var(--epm-ease-out);
  will-change: transform;
}

/* Hafif shimmer (kart içi) */
.epm-shimmer-wrap {
  position: relative;
}

.epm-shimmer-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 65%
  );
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.35;
  transform: translateZ(0);
}

/* Güven bandı (ticker) */
.epm-trust-ticker {
  background: linear-gradient(90deg, #f3f0f5 0%, #fff 50%, #f3f0f5 100%);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
  padding: 12px 0;
}

.epm-trust-ticker-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: epm-marquee-left 32s linear infinite;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.epm-trust-ticker-track span {
  white-space: nowrap;
}

@keyframes epm-marquee-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Özellik kartı tilt + reveal */
.epm-tilt-card {
  transition: box-shadow 0.35s var(--epm-ease), transform 0.35s var(--epm-ease);
  transform-style: preserve-3d;
  will-change: transform;
}

.epm-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--epm-ease-out), transform 0.65s var(--epm-ease-out);
}

.epm-reveal.is-inview {
  opacity: 1;
  transform: translateY(0);
}

.features-grid .epm-tilt-card.epm-reveal:nth-child(1) { transition-delay: 0.04s; }
.features-grid .epm-tilt-card.epm-reveal:nth-child(2) { transition-delay: 0.1s; }
.features-grid .epm-tilt-card.epm-reveal:nth-child(3) { transition-delay: 0.16s; }
.features-grid .epm-tilt-card.epm-reveal:nth-child(4) { transition-delay: 0.22s; }
.features-grid .epm-tilt-card.epm-reveal:nth-child(5) { transition-delay: 0.28s; }
.features-grid .epm-tilt-card.epm-reveal:nth-child(6) { transition-delay: 0.34s; }

/* Ekran görüntüsü / referans hover parlaması */
.epm-float-card {
  transition: transform 0.4s var(--epm-ease), box-shadow 0.4s var(--epm-ease);
}

.epm-float-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.epm-stars {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  color: #f59e0b;
  font-size: 18px;
  letter-spacing: 2px;
}

/* Logo bandı */
.epm-marquee-section {
  padding: 28px 0;
  background: var(--bg-light);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.epm-marquee {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.epm-marquee-track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  animation: epm-marquee-left 40s linear infinite;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.epm-marquee-track span {
  white-space: nowrap;
  opacity: 0.85;
}

.epm-marquee-track span::before {
  content: "✦";
  margin-right: 10px;
  color: var(--odoo-primary);
  opacity: 0.5;
}

/* ROI ipucu */
.epm-roi-hint {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 24px;
  margin-bottom: 28px;
  border-radius: var(--border-radius-lg);
  background: linear-gradient(135deg, rgba(113, 75, 103, 0.06), rgba(23, 162, 184, 0.06));
  border: 1px solid var(--border-color);
}

.epm-roi-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--odoo-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.epm-roi-hint p {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Nav çizgisi */
.nav-links > a.epm-nav-link {
  position: relative;
}

.nav-links > a.epm-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--odoo-primary), var(--odoo-teal));
  transition: width 0.38s var(--epm-ease);
}

.nav-links > a.epm-nav-link:hover::after,
.nav-links > a.epm-nav-link:focus-visible::after {
  width: 100%;
}

/* Ripple için hazır katman */
.epm-ripple-wrap {
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.epm-ripple-wrap > * {
  position: relative;
  z-index: 1;
}

.btn.epm-ripple-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.45) 0%, transparent 70%);
  opacity: 0;
  transform: scale(0);
  pointer-events: none;
}

.btn.epm-ripple-wrap.is-rippling::after {
  animation: epm-ripple 0.55s var(--epm-ease-out) forwards;
}

@keyframes epm-ripple {
  0% {
    opacity: 0.5;
    transform: scale(0);
  }
  100% {
    opacity: 0;
    transform: scale(2.5);
  }
}
