/* Vanesca site motion — 3D parallax / kurumsal (emoji yok) */

[data-reveal] {
  opacity: 0;
  transform: translateY(1.5rem) scale(0.98);
  filter: blur(6px);
  transition:
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(1.25rem) translateZ(0);
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal-stagger].is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-stagger].is-visible > *:nth-child(1) { transition-delay: 0ms; }
[data-reveal-stagger].is-visible > *:nth-child(2) { transition-delay: 80ms; }
[data-reveal-stagger].is-visible > *:nth-child(3) { transition-delay: 160ms; }
[data-reveal-stagger].is-visible > *:nth-child(4) { transition-delay: 240ms; }
[data-reveal-stagger].is-visible > *:nth-child(5) { transition-delay: 320ms; }
[data-reveal-stagger].is-visible > *:nth-child(6) { transition-delay: 400ms; }
[data-reveal-stagger].is-visible > *:nth-child(7) { transition-delay: 480ms; }
[data-reveal-stagger].is-visible > *:nth-child(8) { transition-delay: 560ms; }

/* ========== Hero 3D parallax ========== */
.hero-parallax {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 4rem;
  min-height: min(92vh, 820px);
  background:
    radial-gradient(ellipse 70% 50% at 70% 40%, rgba(59, 130, 246, 0.14), transparent 55%),
    linear-gradient(180deg, #f8fafc 0%, #eef4ff 45%, #f8fafc 100%);
}

.hero-parallax__depth {
  position: absolute;
  inset: 0;
  pointer-events: none;
  perspective: 1200px;
}

.parallax-layer {
  position: absolute;
  inset: -10%;
  will-change: transform;
}

.depth-grid {
  display: block;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 60% 55% at 65% 45%, #000 20%, transparent 70%);
  transform: perspective(800px) rotateX(58deg) scale(1.4);
  transform-origin: center 40%;
}

.depth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
}

.depth-orb--a {
  width: 28rem;
  height: 28rem;
  right: 5%;
  top: 10%;
  background: rgba(59, 130, 246, 0.35);
}

.depth-orb--b {
  width: 18rem;
  height: 18rem;
  left: 8%;
  bottom: 15%;
  background: rgba(37, 99, 235, 0.2);
}

.hero-parallax__inner {
  position: relative;
  z-index: 2;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-parallax__inner {
    grid-template-columns: 1fr 1.05fr;
    gap: 2.5rem;
    padding: 0 2rem;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  border: 1px solid #bfdbfe;
  background: rgba(239, 246, 255, 0.9);
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #1d4ed8;
  backdrop-filter: blur(8px);
}

.hero-parallax__title {
  margin: 1.25rem 0 0;
  font-size: clamp(2rem, 4vw, 3.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #0f172a;
}

.hero-parallax__lead {
  margin: 1.25rem 0 0;
  font-size: 1.125rem;
  line-height: 1.7;
  color: #64748b;
  max-width: 36rem;
}

.hero-parallax__cta {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #3b82f6;
  color: #fff;
  padding: 0.8rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 12px 32px -12px rgba(37, 99, 235, 0.55);
  transition: background 0.2s, transform 0.2s;
}

.btn-hero-primary:hover { background: #2563eb; transform: translateY(-1px); }

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.85);
  color: #1f2937;
  padding: 0.8rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: box-shadow 0.2s, transform 0.2s;
}

.btn-hero-secondary:hover {
  box-shadow: 0 8px 24px -12px rgba(15, 23, 42, 0.2);
  transform: translateY(-1px);
}

/* 3D stage */
.hero-stage {
  perspective: 1400px;
  perspective-origin: 50% 40%;
  min-height: 360px;
}

.hero-stage__world {
  position: relative;
  height: 380px;
  transform-style: preserve-3d;
  transform: rotateX(12deg) rotateY(-18deg);
  will-change: transform;
  transition: transform 0.15s ease-out;
}

@media (min-width: 1024px) {
  .hero-stage__world { height: 420px; }
}

.stage-card {
  position: absolute;
  border-radius: 1rem;
  transform-style: preserve-3d;
  will-change: transform;
}

.stage-card--main {
  inset: 8% 12% 18% 4%;
  z-index: 2;
}

.stage-card__glass,
.pos-panel {
  height: 100%;
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(160deg, #0f172a, #1e293b);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow:
    0 40px 80px -30px rgba(15, 23, 42, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.stage-card__banner {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stage-card__scan,
.pos-panel__scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #60a5fa, transparent);
  animation: hero-scan 3s ease-in-out infinite;
  pointer-events: none;
}

.stage-card__glass { position: relative; }

.pos-panel { display: flex; flex-direction: column; position: relative; }

.pos-panel__chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  background: #1e293b;
  border-bottom: 1px solid #334155;
}

.pos-panel__chrome span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #64748b;
}

.pos-panel__chrome span:nth-child(1) { background: #ef4444; }
.pos-panel__chrome span:nth-child(2) { background: #f59e0b; }
.pos-panel__chrome span:nth-child(3) { background: #22c55e; }

.pos-panel__chrome strong {
  margin-left: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
}

.pos-panel__body {
  position: relative;
  flex: 1;
  padding: 1.25rem;
}

.pos-lines { display: flex; flex-direction: column; gap: 0.75rem; }

.pos-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: #94a3b8;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #334155;
}

.pos-row span:last-child { color: #e2e8f0; font-weight: 500; }

.pos-row--total {
  border: 0;
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: #2563eb;
  color: #fff;
}

.pos-row--total span { color: #fff !important; font-weight: 700; }

.stage-card--float {
  z-index: 4;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 20px 40px -20px rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(12px);
  /* parallax offset via --py/--pz from JS; subtle idle bob via --float */
  transform: translate3d(0, calc(var(--py, 0px) + var(--float, 0px)), var(--pz, 0px));
  animation: float-bob 5s ease-in-out infinite;
}

.stage-card--stock {
  top: 4%;
  right: 0;
  width: 9.5rem;
  animation-delay: 0s;
}

.stage-card--sale,
.stage-card--alert {
  bottom: 6%;
  right: 2%;
  width: 9rem;
  animation-delay: -1.5s;
}

.stage-card--barcode {
  bottom: 12%;
  left: -2%;
  width: 8rem;
  animation-delay: -2.8s;
  background: #0f172a;
  border-color: #334155;
}

.stage-card__label {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.stage-card__metric {
  margin: 0.35rem 0 0;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.stage-card__metric--sm { font-size: 1.15rem; }

.stage-card__sub {
  margin: 0.25rem 0 0;
  font-size: 0.7rem;
  color: #64748b;
}

.stage-card--barcode .stage-card__sub { color: #94a3b8; }

.stage-meter,
.stage-bars {
  margin-top: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.stage-meter {
  height: 0.35rem;
  border-radius: 9999px;
  background: #e2e8f0;
  overflow: hidden;
}

.stage-meter__fill {
  display: block;
  height: 100%;
  width: var(--meter, 50%);
  border-radius: inherit;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  transform-origin: left center;
  animation: bar-grow 1.2s 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.stage-bar {
  display: block;
  height: 0.3rem;
  width: var(--w, 50%);
  border-radius: 9999px;
  background: #3b82f6;
  transform-origin: left center;
  animation: bar-grow 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.stage-bar:nth-child(2) { animation-delay: 0.12s; background: #60a5fa; }
.stage-bar:nth-child(3) { animation-delay: 0.24s; background: #2563eb; }
.stage-bar--warn { animation-delay: 0.36s; background: #f59e0b; }

.barcode-lines {
  height: 2.25rem;
  margin-bottom: 0.4rem;
  background: repeating-linear-gradient(
    90deg,
    #e2e8f0 0 2px,
    transparent 2px 4px,
    #94a3b8 4px 5px,
    transparent 5px 8px,
    #cbd5e1 8px 11px,
    transparent 11px 13px
  );
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.barcode-lines::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: #60a5fa;
  animation: barcode-sweep 2.2s ease-in-out infinite;
}

@property --float {
  syntax: '<length>';
  inherits: false;
  initial-value: 0px;
}

@keyframes float-bob {
  0%, 100% { --float: 0px; }
  50% { --float: -10px; }
}

@keyframes hero-scan {
  0% { top: 10%; opacity: 0; }
  15% { opacity: 0.85; }
  85% { opacity: 0.85; }
  100% { top: 88%; opacity: 0; }
}

@keyframes bar-grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes barcode-sweep {
  0% { left: 0; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { left: calc(100% - 2px); opacity: 0; }
}

/* ========== QR cafe + feature showcase ========== */
.feature-qr-cafe {
  background: #0f172a;
  color: #fff;
  padding: 4rem 0;
}

.feature-qr-cafe__inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .feature-qr-cafe__inner {
    grid-template-columns: 1fr 1.15fr;
    gap: 3rem;
    padding: 0 2rem;
  }
}

.feature-qr-cafe__badge {
  display: inline-flex;
  border-radius: 9999px;
  border: 1px solid rgba(96, 165, 250, 0.35);
  background: rgba(37, 99, 235, 0.15);
  padding: 0.35rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #93c5fd;
}

.feature-qr-cafe__copy h2 {
  margin: 1rem 0 0;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.feature-qr-cafe__copy > p {
  margin: 1rem 0 0;
  color: #94a3b8;
  line-height: 1.7;
  max-width: 32rem;
}

.feature-qr-cafe__list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.feature-qr-cafe__list li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.25rem;
  color: #cbd5e1;
  font-size: 0.9375rem;
}

.feature-qr-cafe__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #3b82f6;
}

.feature-showcase {
  background: #f8fafc;
  padding: 4rem 0 5rem;
  border-top: 1px solid #e2e8f0;
}

.feature-showcase__inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 1024px) {
  .feature-showcase__inner { padding: 0 2rem; }
}

.feature-showcase__header {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 3rem;
}

.feature-showcase__header h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.feature-showcase__header p {
  margin: 0.75rem 0 0;
  color: #64748b;
  line-height: 1.65;
}

.feature-showcase__row {
  display: grid;
  gap: 1.75rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

@media (min-width: 900px) {
  .feature-showcase__row {
    grid-template-columns: 1.15fr 1fr;
    gap: 2.5rem;
  }
  .feature-showcase__row--flip .feature-showcase__media { order: 2; }
  .feature-showcase__row--flip .feature-showcase__copy { order: 1; }
}

.feature-showcase__eyebrow {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #2563eb;
  line-height: 1.4;
}

.feature-showcase__copy h3 {
  margin: 0.5rem 0 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.feature-showcase__copy > p:last-child {
  margin: 0.75rem 0 0;
  color: #475569;
  line-height: 1.7;
  font-size: 0.9375rem;
}

.feature-showcase__media {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-shot {
  margin: 0;
  border-radius: 0.85rem;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #0f172a;
  box-shadow: 0 16px 40px -24px rgba(15, 23, 42, 0.35);
}

.feature-shot--dark {
  border-color: #334155;
}

.feature-shot img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.feature-shot__btn {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  line-height: 0;
}

.feature-shot__btn:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.feature-shot--secondary {
  max-width: 16rem;
  align-self: flex-end;
  box-shadow: 0 12px 28px -16px rgba(15, 23, 42, 0.4);
}

/* Lightbox */
.site-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.site-lightbox[hidden] { display: none !important; }

.site-lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(15, 23, 42, 0.82);
  cursor: pointer;
}

.site-lightbox__panel {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 1100px);
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-lightbox__img {
  display: block;
  max-width: 96vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  background: #0f172a;
}

.site-lightbox__close {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 9999px;
  background: #fff;
  color: #0f172a;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-lightbox__close:hover { background: #f1f5f9; }

body.lightbox-open { overflow: hidden; }

/* Feature cards 3D */
.feature-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.3s, transform 0.3s;
  transform-style: preserve-3d;
  will-change: transform;
}

.feature-card--3d:hover {
  box-shadow: 0 20px 40px -24px rgba(15, 23, 42, 0.25);
}

.feature-card__accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, #3b82f6, #1d4ed8);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover .feature-card__accent { opacity: 1; }

.sector-chip {
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.sector-chip:hover {
  border-color: #93c5fd;
  box-shadow: 0 4px 16px -6px rgba(37, 99, 235, 0.35);
  transform: translateY(-2px);
}

/* Page banner */
.page-banner {
  position: relative;
  min-height: 220px;
  height: clamp(220px, 32vw, 320px);
  overflow: hidden;
  margin-top: -1rem;
}

.page-banner__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 8s ease-out;
}

.page-banner.is-visible .page-banner__img { transform: scale(1); }

@media (max-width: 640px) {
  .hero-parallax {
    min-height: auto;
    padding: 4.5rem 0 2.5rem;
  }
  .hero-parallax__inner { gap: 2rem; }
  .hero-stage { min-height: 280px; }
  .hero-stage__world {
    transform: rotateX(8deg) rotateY(-8deg);
    height: 300px;
  }
  .stage-card--barcode,
  .stage-card--alert { display: none; }
  .stage-card--stock { width: 7.5rem; }
  .feature-shot--secondary { max-width: 100%; align-self: stretch; }
  .feature-showcase { padding: 2.5rem 0 3rem; }
  .feature-showcase__row { margin-bottom: 2.5rem; }
  .feature-qr-cafe { padding: 2.5rem 0; }
  .site-lightbox__close {
    top: 0.5rem;
    right: 0.5rem;
  }
}

/*
 * prefers-reduced-motion: Hero 3D / float / scan bilerek KALDIRILMADI.
 * Musteri talebi: animasyon PC + mobil her cihazda zorunlu gorunsun.
 * (Windows "animasyonlari kapat" ayari PC'de sahneyi durduruyordu.)
 */
